:root {
    --field-paper: #f4ede0;
    --field-paper-deep: #ece3d2;
    --field-ink: #1a1612;
    --field-ink-soft: #5b524a;
    --field-rule: rgba(26, 22, 18, 0.16);
    --field-accent: #8b2a1b;
    --field-accent-soft: #c46a4f;
    --field-display: "Newsreader", "Source Serif 4", "Spectral", Georgia, serif;
    --field-body: "Inter Tight", "IBM Plex Sans", system-ui, sans-serif;
    --field-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
    --bg-0: var(--field-paper);
    --bg-1: var(--field-paper-deep);
    --ink-0: var(--field-ink);
    --ink-1: var(--field-ink);
    --ink-2: var(--field-ink-soft);
    --line: var(--field-rule);
    --glass: rgba(244, 237, 224, 0.78);
    --shadow-lg: 0 24px 48px rgba(26, 22, 18, 0.12);
    --shadow-md: 0 14px 28px rgba(26, 22, 18, 0.09);
    --accent: var(--field-ink);
    --accent-soft: var(--field-ink-soft);
    --accent-red: var(--field-accent);
    --ok: #2f8f58;
    --err: #b44949;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --nearby-readable-shell-width: 668px;
    --list-reference-thumb-size: 78px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--field-body);
    color: var(--ink-0);
    background:
        linear-gradient(180deg, rgba(236, 227, 210, 0.38), rgba(244, 237, 224, 0) 220px),
        var(--field-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    padding: 22px;
}

button,
input {
    font: inherit;
}

.is-hidden {
    display: none !important;
}

.location-screen {
    min-height: calc(100vh - 44px);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 52px 0 36px;
    overflow-y: auto;
}

.location-shell {
    width: min(430px, 100%);
    padding: 0 26px;
}

.location-card {
    margin-top: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.location-logo {
    margin: 0;
    font-family: var(--field-display);
    font-size: 60px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 0.92;
    color: var(--field-ink);
}

.location-logo-dot {
    color: var(--field-accent);
    font-style: normal;
}

.location-logo span:last-child {
    font-style: normal;
}

.location-logo-area {
    font-style: normal;
}

.location-logo-area span:last-child {
    font-style: italic;
}

.area-guide-mode .location-logo-area {
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.area-guide-mode .location-logo-area .location-logo-dot {
    margin: 0 0.045em;
}

.area-guide-mode .location-card {
    margin-top: 34px;
}

.area-guide-mode .location-card-area-search {
    margin-top: 28px;
}

.area-guide-mode .location-divider {
    margin-top: 0;
    font-size: 13.3px;
}

.area-guide-mode .location-divider-area-start {
    margin: 34px 0 0;
}

.location-kicker-desktop {
    display: none;
}

.location-title-block {
    margin-top: 16px;
    margin-bottom: 0;
}

.location-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 22px 0 0;
    padding: 18px 18px 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 42, 27, 0.22);
    background: rgba(244, 237, 224, 0.82);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.location-notice::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #8b2a1b;
}

.location-notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b2a1b;
}

.location-notice-text {
    margin: 0;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.location-notice-close {
    border: none;
    background: transparent;
    color: rgba(26, 22, 18, 0.44);
    font-family: var(--field-display);
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.location-notice-close:hover {
    color: var(--ink-0);
}

.location-title {
    margin: 0;
    font-family: var(--field-display);
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.location-kicker {
    margin: 0;
    color: var(--field-ink-soft);
    font-family: var(--field-display);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
}

.location-card-intro {
    margin-bottom: 28px;
}

.location-form-block {
    margin-top: 0;
}

.location-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-primary-action {
    margin-top: 4px;
}

.btn-nearby-primary {
    width: 100%;
    min-height: 84px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: var(--field-ink);
    box-shadow: none;
    color: var(--field-paper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.location-primary-eyebrow,
.location-primary-label {
    display: block;
}

.location-primary-eyebrow {
    margin-bottom: 4px;
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.2;
    opacity: 0.7;
    text-transform: uppercase;
}

.location-primary-label {
    font-family: var(--field-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.location-primary-arrow {
    flex: 0 0 auto;
    font-family: var(--field-display);
    font-size: 26px;
    line-height: 1;
    opacity: 0.9;
}

.location-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 10px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.location-divider::before,
.location-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--field-rule);
}

.location-search-label {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--ink-2);
}

#nearby-search-btn {
    width: auto;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--field-display);
    font-size: 14px;
    font-weight: 500;
}

.location-search-row {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    align-items: center;
    padding: 4px 6px 4px 14px;
    margin: 0;
    border: 1px solid var(--field-rule);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.28);
    transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.location-search-row.is-highlighted {
    border-color: rgba(139, 42, 27, 0.42);
    background: rgba(236, 227, 210, 0.72);
    box-shadow: 0 0 0 3px rgba(139, 42, 27, 0.08);
}

.location-search-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--field-ink-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nearby-locating-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--field-paper);
    color: var(--field-ink);
}

.nearby-locating-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: min(430px, 100%);
    min-height: 100%;
    padding: 60px 26px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.nearby-locating-modal-content .lds-ripple {
    width: 62px;
    height: 62px;
    border-radius: 0;
    background: transparent;
}

.nearby-locating-modal-content .lds-ripple div {
    width: 54px;
    height: 54px;
    border-width: 2.5px;
}

.nearby-locating-message {
    margin: 22px 0 0;
    max-width: none;
    text-align: center;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.nearby-locating-kicker {
    align-self: flex-start;
    margin-bottom: 82px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nearby-locating-copy {
    margin: 60px 0 0;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
}

.radar-sweep {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
}

.radar-sweep::before,
.radar-sweep::after,
.radar-sweep-grid::before,
.radar-sweep-grid::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(26, 22, 18, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radar-sweep::before {
    width: 236px;
    height: 236px;
}

.radar-sweep::after {
    width: 172px;
    height: 172px;
}

.radar-sweep-grid::before {
    width: 110px;
    height: 110px;
}

.radar-sweep-grid::after {
    width: 52px;
    height: 52px;
}

.radar-sweep-grid {
    position: absolute;
    inset: 0;
}

.radar-sweep-grid {
    background:
        linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(26, 22, 18, 0.08) 50%, transparent calc(50% + 0.5px)),
        linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(26, 22, 18, 0.08) 50%, transparent calc(50% + 0.5px));
}

.radar-sweep-beam {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(139, 42, 27, 0.36), rgba(139, 42, 27, 0.08) 34deg, transparent 72deg, transparent 360deg);
    mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.95) 54%, transparent 76%);
    animation: radar-rot 2.6s linear infinite;
    transform-origin: center;
}

.radar-sweep-center,
.radar-sweep-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--field-accent);
}

.radar-sweep-center {
    inset: 50% auto auto 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
}

.radar-sweep-dot {
    width: 8px;
    height: 8px;
    opacity: 0.18;
    animation: radar-blink 1.4s ease-in-out infinite;
}

.radar-sweep-dot-1 {
    left: 28%;
    top: 31%;
}

.radar-sweep-dot-2 {
    left: 70%;
    top: 24%;
    animation-delay: 0.7s;
}

.radar-sweep-dot-3 {
    left: 62%;
    top: 66%;
    animation-delay: 1.4s;
}

.radar-sweep-dot-4 {
    left: 34%;
    top: 74%;
    animation-delay: 2.1s;
}

@keyframes radar-rot {
    to {
        transform: rotate(360deg);
    }
}

@keyframes radar-blink {
    0%,
    100% {
        opacity: 0.18;
        transform: scale(0.82);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.weekly-picks {
    margin-top: 38px;
}

.weekly-picks-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--field-rule);
}

.weekly-picks-header h2 {
    margin: 0;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.weekly-picks-header em {
    font-style: italic;
}

.weekly-picks-header span,
.weekly-picks-list button > span:last-child {
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.weekly-picks-list {
    display: flex;
    flex-direction: column;
}

.weekly-picks-list button {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--field-rule);
    background: transparent;
    color: var(--field-ink);
    cursor: pointer;
    text-align: left;
}

.weekly-picks-list button:last-child {
    border-bottom: none;
}

.weekly-picks-list strong,
.weekly-picks-list em {
    display: block;
    font-family: var(--field-display);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.weekly-picks-list strong {
    font-size: 19px;
    line-height: 1.15;
}

.weekly-picks-list em {
    margin-top: 2px;
    color: var(--field-ink-soft);
    font-size: 14px;
    font-style: italic;
    line-height: 1.35;
}

.area-guide-mode .weekly-picks {
    margin-top: 10px;
}

.area-guide-mode .weekly-picks-header {
    align-items: flex-end;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #1a1612;
}

.weekly-picks-title-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.weekly-picks-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8b2a1b;
    font-family: var(--field-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.weekly-picks-kicker-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8b2a1b;
}

.area-guide-mode .weekly-picks-header h2 {
    font-size: 38px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.98;
}

.area-guide-mode .weekly-picks-header > span {
    padding-bottom: 6px;
}

.area-guide-mode .weekly-picks-list button {
    align-items: center;
    padding: 16px 0;
    border-bottom-color: rgba(26, 22, 18, 0.10);
}

.area-guide-mode .weekly-picks-list strong {
    font-size: 24px;
    font-style: normal;
    letter-spacing: -0.01em;
    line-height: 1.08;
}

.area-guide-mode .weekly-picks-list button > span:last-child {
    color: rgba(26, 22, 18, 0.42);
    font-family: var(--field-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.nearby-app {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nearby-list-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.lds-ripple {
    color: #dc2231;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

.lds-ripple,
.lds-ripple div {
    box-sizing: border-box;
}

.lds-ripple div {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 3px solid currentColor;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 0;
    animation: lds-ripple 1.25s cubic-bezier(0.2, 0.66, 0.2, 1) infinite;
    will-change: transform, opacity;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.62s;
}

@keyframes lds-ripple {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.15);
    }

    5% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

.search-row input,
.location-form input {
    width: 100%;
    min-width: 0;
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    font-size: 15px;
    color: var(--ink-0);
    background: transparent;
    outline: none;
    transition: color 0.2s ease;
}

.search-row input:focus,
.location-form input:focus {
    box-shadow: none;
}

.btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    color: var(--field-paper);
    background: var(--field-ink);
    box-shadow: none;
}

.btn-secondary {
    color: var(--field-paper);
    background: var(--field-ink);
    border: none;
}

.status-row {
    margin-top: 12px;
    min-height: 0;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.status-row.is-loading {
    color: var(--field-ink-soft);
}

.status-row.is-error {
    color: var(--field-accent);
}

.status-row.is-success {
    color: var(--ok);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(400px, 1.1fr);
    gap: 0;
    min-height: min(72vh, 820px);
}

.list-pane {
    position: relative;
    border-right: 1px solid var(--line);
    padding: 22px 0 18px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pane-head {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: flex-start;
    padding: 4px 22px 14px 8px;
}

.pane-head-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.pane-title-stack {
    min-width: 0;
}

.pane-back-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.pane-title {
    margin: 0;
    font-family: var(--field-display);
    font-size: clamp(34px, 3vw, 44px);
    font-style: italic;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--ink-0);
    white-space: pre-line;
}

.pane-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
}

.pane-meta.is-hidden {
    display: none;
}

.pane-meta::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--field-accent);
    flex: 0 0 auto;
}

.list-search-bar {
    margin: 8px 6px 18px;
}

.list-search-bar.is-hidden,
.tag-filter-bar.is-hidden {
    display: none !important;
}

.list-loading-interstitial {
    min-height: min(100svh, 720px);
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 34px 20px;
    background: var(--field-paper);
}

.nearby-list.is-loading {
    padding: 0;
}

.nearby-list.is-loading > :not(#list-loading-interstitial):not(#list-summary) {
    display: none !important;
}

.nearby-list.is-loading #list-loading-interstitial {
    min-height: 100%;
    flex: 1 1 auto;
}

.list-loading-interstitial .radar-sweep {
    width: 210px;
    height: 210px;
}

.list-loading-message {
    width: min(360px, calc(100vw - 56px));
    min-height: 1.35em;
    margin: 0;
    color: var(--field-ink-soft);
    font-family: var(--field-display);
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
}

.list-loading-message.think-in {
    opacity: 1;
}

.list-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--field-rule);
    border-radius: var(--radius-sm);
    background: rgba(236, 227, 210, 0.52);
}

.list-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: none;
    stroke: rgba(17, 18, 22, 0.45);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.list-search-input {
    width: 100%;
    padding: 11px 38px 11px 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink-0);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.list-search-input::-webkit-search-cancel-button,
.list-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    display: none;
}

.list-search-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.list-search-input-wrap:focus-within {
    border-color: rgba(139, 42, 27, 0.45);
    background: rgba(236, 227, 210, 0.82);
}

.list-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(17, 18, 22, 0.55);
    padding: 0;
}

.list-search-clear:hover {
    background: rgba(17, 18, 22, 0.08);
    color: var(--ink-0);
}

.list-search-clear svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.list-search-clear.is-hidden {
    display: none;
}

.tag-filter-bar {
    display: flex;
    justify-content: flex-start;
    margin: 0 8px 20px 2px;
    padding-top: 1px;
}

.tag-filter-pills {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--field-rule);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: opacity 0.25s;
}

.tag-filter-pills:empty {
    display: none;
}

.tag-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 6px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-family: var(--field-display);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    color: var(--ink-0);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.tag-filter-pill:hover {
    background: rgba(26, 22, 18, 0.06);
    color: var(--ink-0);
}

.tag-filter-pill.is-active {
    background: var(--field-ink);
    color: var(--field-paper);
    font-style: italic;
}

.tag-filter-pill.is-active:hover {
    background: var(--field-ink);
    color: var(--field-paper);
}

.list-filter-meta {
    display: none;
}

.list-filter-meta:empty {
    display: none;
}

.nearby-list {
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 22px calc(14px + 62px) 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.list-index-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 6px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--field-rule);
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 29px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.list-index-meta {
    flex: 0 0 auto;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.28em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nearby-list::-webkit-scrollbar {
    display: none;
}

.place-item {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    color: var(--ink-0);
    -webkit-text-fill-color: var(--ink-0);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 14px 8px 14px 0;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.place-item:last-child {
    border-bottom: none;
}

.place-item:hover {
    background: rgba(255, 255, 255, 0.34);
}

.place-item.is-active {
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.5);
}

.place-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 16px;
    width: 4px;
    background: var(--accent-red);
}

.place-item.is-ghost {
    pointer-events: none;
    background: transparent;
    border-bottom-color: rgba(26, 22, 18, 0.10);
}

.place-item.has-reference-image {
    overflow: visible;
}

.place-item-content {
    flex: 1;
    min-width: 0;
}

.venue-reference-strip {
    width: 100%;
    margin: 14px 0 12px;
    background: rgba(17, 23, 38, 0.06);
    overflow: hidden;
    position: relative;
}

.venue-reference-thumb-frame {
    width: var(--list-reference-thumb-size);
    height: var(--list-reference-thumb-size);
    flex: 0 0 var(--list-reference-thumb-size);
    margin-top: 1px;
    background:
        linear-gradient(180deg, rgba(244, 237, 224, 0), rgba(139, 42, 27, 0.08)),
        rgba(26, 22, 18, 0.08);
    border: 1px solid rgba(26, 22, 18, 0.12);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    filter: saturate(0.82) contrast(0.95) sepia(0.1);
}

@media (min-width: 700px) {
    :root {
        --list-reference-thumb-size: 156px;
    }

    .place-item.has-reference-image {
        gap: 16px;
    }
}

.venue-reference-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.venue-reference-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.venue-reference-strip.is-loading .venue-reference-thumb,
.venue-reference-thumb-frame.is-loading .venue-reference-thumb,
.place-image-shell.is-loading .place-image-media {
    opacity: 0;
}

.venue-reference-strip.is-loaded .venue-reference-thumb,
.venue-reference-thumb-frame.is-loaded .venue-reference-thumb,
.place-image-shell.is-loaded .place-image-media {
    opacity: 1;
}

.venue-reference-strip.is-failed,
.venue-reference-thumb-frame.is-failed,
.place-image-shell.is-failed {
    background: rgba(17, 23, 38, 0.08);
}

.place-item--image {
    display: block;
    padding: 0;
    overflow: hidden;
    color: var(--ink-1);
    cursor: pointer;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    transition: background-color 0.16s ease, padding-left 0.16s ease;
}

.place-item--image:last-child {
    border-bottom: none;
}

.place-item--image:hover {
    background: rgba(255, 255, 255, 0.34);
}

.place-item--image.is-active {
    background: rgba(255, 255, 255, 0.5);
}

.place-item--image.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-red);
}

.place-image-shell {
    display: block;
    width: 100%;
    background: rgba(17, 23, 38, 0.06);
    margin-top: 18px;
    overflow: hidden;
    position: relative;
}

.place-image-media {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    background: rgba(17, 23, 38, 0.06);
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.place-image-footer {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 0 16px;
}

.place-image-title {
    flex: 1;
    min-width: 0;
    margin-right: auto;
    font-size: 14px;
    color: var(--ink-0);
    font-weight: 400;
    line-height: 1.35;
}

.place-image-title-ghost {
    flex: 1;
    min-width: 0;
    margin-right: auto;
    height: 14px;
    width: 55%;
    border-radius: 4px;
}


.place-name-ghost {
    height: 22px;
    width: 62%;
    border-radius: 0;
}

.place-distance-ghost {
    height: 14px;
    width: 74px;
    border-radius: 999px;
    margin-left: auto;
    margin-top: 8px;
}

.place-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
}

.place-head-main {
    flex: 1;
    min-width: 0;
}

.place-name {
    margin: 0;
    font-family: var(--field-display);
    font-size: clamp(22px, 2vw, 28px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: var(--ink-0);
    -webkit-text-fill-color: var(--ink-0);
    overflow-wrap: anywhere;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(115, 77, 0, 0.26);
    background: rgba(255, 204, 82, 0.22);
    color: #6d4300;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 4px 9px;
}

.place-chevron {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-family: var(--field-display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    color: rgba(29, 35, 51, 0.55);
    margin-left: 8px;
    align-self: baseline;
    transform: translateY(2px);
}

.place-distance {
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.64);
    padding: 0;
    white-space: nowrap;
    margin-left: auto;
}

.place-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.place-best-for {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-1);
    text-align: left;
}

.place-best-for strong {
    color: inherit;
    font-weight: inherit;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: inherit;
}

.place-best-for.is-hidden {
    display: none;
}

.place-best-for-ghost {
    width: 64%;
    max-width: 320px;
    height: 11px;
}

.place-summary {
    margin: 10px 0 0;
    width: 100%;
    max-width: none;
    color: rgba(29, 35, 51, 0.9);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.place-nano-summary {
    margin: 8px 0 0;
    width: 100%;
    color: var(--field-ink-soft);
    font-family: var(--field-display);
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.34;
    text-align: left;
}

.stories-count-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.stories-count-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--field-ink);
    -webkit-text-fill-color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.15;
    cursor: inherit;
}

.stories-count-pill-number {
    display: inline-flex;
    align-items: center;
    color: var(--field-accent);
    -webkit-text-fill-color: var(--field-accent);
    font-family: var(--field-mono);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
}

.stories-count-pill-label {
    color: var(--field-ink);
    -webkit-text-fill-color: var(--field-ink);
}

.stories-count-pill-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin-left: 2px;
    color: var(--field-accent);
    -webkit-text-fill-color: var(--field-accent);
    font-family: var(--field-mono);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
}

.stories-count-pill:hover {
    color: var(--field-ink);
    -webkit-text-fill-color: var(--field-ink);
}

.ghost-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(26, 22, 18, 0.08);
    border: 1px solid rgba(26, 22, 18, 0.05);
    border-radius: var(--radius-sm);
}

.ghost-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(244, 237, 224, 0.74) 48%, transparent 100%);
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.ghost-summary-row {
    display: block;
    height: 11px;
    margin-top: 8px;
    border-radius: 0;
}

.place-image-ghost {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
}

.place-summary-ghost {
    width: 72%;
    height: 13px;
    margin-top: 12px;
}

.ghost-summary-row.is-short {
    width: 62%;
}

.ghost-summary-row.is-full {
    width: 92%;
}

.ghost-tag-pill {
    display: inline-block;
    width: 66px;
    height: 11px;
    border-radius: 0;
}

.tag-row {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.tag-row--compact {
    margin-top: 9px;
    justify-content: flex-start;
    max-width: 100%;
}

.tag-row--compact .tag {
    font-size: 9px;
    padding: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    font-family: var(--field-mono);
    font-size: 9px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
    box-shadow: none;
}

.tag::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent-red);
    flex: 0 0 auto;
}

.tag--price {
    color: rgba(26, 22, 18, 0.52) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.52);
}

.tag--nature {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--default,
.tag--tone-0 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-1 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-2 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-3 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-4 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-5 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-6 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.tag--tone-7 {
    color: rgba(26, 22, 18, 0.48) !important;
    -webkit-text-fill-color: rgba(26, 22, 18, 0.48);
}

.card-pane {
    position: relative;
    min-height: 0;
    padding: 22px 22px calc(18px + 62px) 12px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
}

.card-pane::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.panel-card {
    height: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel-placeholder {
    align-items: stretch;
    justify-content: center;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 24px;
    text-align: center;
    line-height: 1.15;
    gap: 18px;
    min-height: 100%;
}

.detail-placeholder-mobile-head {
    display: none;
    width: 100%;
    justify-content: flex-start;
}

.detail-placeholder-copy {
    display: grid;
    gap: 8px;
    max-width: 22ch;
    margin: auto;
}

.detail-placeholder-copy span {
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.detail-placeholder-copy strong {
    color: var(--field-ink);
    font-weight: 500;
}

.detail-sticky-header {
    position: sticky;
    top: 0;
    z-index: 9;
    margin: 0 0 18px;
    padding: 14px 0 16px;
    background: var(--bg-0);
    border-bottom: 1px solid rgba(17, 23, 38, 0.14);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card-head--detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.detail-name {
    margin: 0;
    max-width: 100%;
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 840;
    line-height: 0.94;
    letter-spacing: 0;
    color: var(--ink-0);
}

.detail-image-description,
.detail-nano,
.detail-short,
.detail-distance-inline {
    margin: 0;
    color: var(--ink-1);
    line-height: 1.55;
}

.detail-image-description {
    max-width: 52ch;
    font-size: 16px;
    margin-top: 12px;
    color: rgba(29, 35, 51, 0.9);
}

.detail-nano {
    font-size: 15px;
    font-weight: 550;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-top: 10px;
}

.detail-short {
    max-width: 52ch;
    font-size: 18px;
    margin-top: 16px;
    color: rgba(29, 35, 51, 0.92);
}

.detail-short p {
    margin: 0 0 0.85em;
}

.detail-short p:last-child {
    margin-bottom: 0;
}

.detail-sources {
    max-width: 52ch;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 23, 38, 0.1);
    color: rgba(29, 35, 51, 0.72);
}

.detail-sources.is-hidden {
    display: none;
}

.detail-sources h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-sources ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-sources a {
    color: inherit;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: rgba(29, 35, 51, 0.28);
    text-underline-offset: 3px;
}

.detail-sources a:hover {
    color: var(--ink-0);
    text-decoration-color: currentColor;
}

.detail-taxonomy-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.detail-visitor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-visitor-tags .tag {
    font-size: 12.4px;
    line-height: 1.35;
}

.detail-visitor-tags .tag::before {
    width: 7px;
    height: 7px;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #36566f;
    border: none;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.detail-price-pill {
    align-self: baseline;
    position: relative;
    top: 2px;
}

.detail-meta {
    margin-top: 22px;
}

.meta-box {
    border: none;
    border-top: 1px solid rgba(17, 23, 38, 0.14);
    border-bottom: 1px solid rgba(17, 23, 38, 0.14);
    border-radius: 0;
    background: transparent;
    padding: 16px 0 14px;
}

.meta-label {
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.best-for-inline {
    color: var(--ink-0);
    font-size: 17px;
    line-height: 1.5;
    word-break: break-word;
    max-width: 48ch;
}

.map-links--detail {
    margin-top: 18px;
}

.map-link {
    color: var(--ink-0);
    text-decoration: none;
    font-weight: 700;
}

#detail-get-there-link,
#detail-wikimedia-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    border-radius: 0;
    border: 1px solid rgba(18, 23, 37, 0.16);
    background: transparent;
    font-size: 18px;
    font-weight: 790;
    letter-spacing: -0.02em;
}

.report-image-btn {
    width: 100%;
    display: block;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
}

.report-image-btn:hover {
    color: var(--err);
}

.report-image-btn:disabled {
    cursor: default;
    color: var(--ink-2);
    opacity: 0.5;
}

.venue-reference-gallery {
    width: 100%;
    margin-top: 14px;
    background: rgba(17, 23, 38, 0.06);
    overflow: hidden;
}

.venue-reference-gallery.is-hidden {
    display: none;
}

.detail-image-hero {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    background: rgba(17, 23, 38, 0.06);
}

.detail-image-license {
    margin: 0;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.5);
    line-height: 1.3;
}

#detail-card.is-image-detail .detail-taxonomy-row,
#detail-card.is-image-detail .detail-meta,
#detail-card.is-image-detail #detail-short,
#detail-card.is-image-detail #detail-plaque-writeup,
#detail-card.is-image-detail .qa-card-head,
#detail-card.is-image-detail #qa-chat,
#detail-card.is-image-detail #qa-suggested,
#detail-card.is-image-detail #qa-form {
    display: none;
}

.detail-distance-inline {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.64);
    text-align: right;
    line-height: 1.3;
}

.qa-card-head {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 23, 38, 0.14);
}

.qa-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-0);
}

.qa-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    flex: 0 0 auto;
}

.qa-venue {
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: none;
}

.qa-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 0 8px;
    overflow: visible;
}

.chat-message {
    max-width: min(84%, 520px);
    border-radius: 18px;
    padding: 12px 14px;
    line-height: 1.56;
    font-size: 15px;
    word-break: break-word;
    border: 1px solid rgba(17, 23, 38, 0.12);
}

.chat-message.user {
    align-self: flex-end;
    background: #151821;
    color: #fff;
    max-width: min(72%, 460px);
    border-color: #151821;
    border-bottom-right-radius: 6px;
}

.chat-message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-0);
    border-bottom-left-radius: 6px;
    width: 100%;
    max-width: 100%;
}

.chat-message.intro {
    color: var(--ink-1);
    background: rgba(241, 244, 250, 0.92);
    border-style: dashed;
}

.chat-message p {
    margin: 0 0 10px;
}

.chat-message p:last-child {
    margin-bottom: 0;
}

.typing-status {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 1.4em;
    color: var(--ink-1);
}

.typing-status span {
    position: absolute;
    inset: 0 auto auto 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    animation: typing-status-cycle 7.2s infinite ease-in-out;
}

.typing-status span:nth-child(2) {
    animation-delay: 1.8s;
}

.typing-status span:nth-child(3) {
    animation-delay: 3.6s;
}

.typing-status span:nth-child(4) {
    animation-delay: 5.4s;
}

@keyframes typing-status-cycle {

    0%,
    100% {
        opacity: 0;
        transform: translateY(4px);
    }

    10%,
    26% {
        opacity: 1;
        transform: translateY(0);
    }

    36% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.qa-suggested {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.qa-suggested button {
    border: 1px solid rgba(20, 27, 44, 0.15);
    background: transparent;
    color: var(--ink-1);
    border-radius: 0;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.qa-form {
    margin-top: 14px;
    border: none;
    border-top: 1px solid rgba(18, 23, 37, 0.14);
    border-radius: 0;
    background: transparent;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 0 0;
}

.qa-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    background: transparent;
    color: var(--ink-0);
}

.detail-mini-map {
    margin-top: 18px;
    border: 1px solid rgba(26, 22, 18, 0.2);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: 210px;
    min-height: 210px;
    background: #fff;
    display: none;
    cursor: pointer;
    flex: none;
}

.detail-mini-map.is-visible {
    display: block;
}

#detail-mini-map.maplibregl-map {
    display: block;
}

.detail-plaque-writeup {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 23, 38, 0.12);
    color: rgba(29, 35, 51, 0.92);
    font-size: 18px;
    line-height: 1.55;
}

.detail-plaque-writeup.is-hidden {
    display: none;
}

.detail-plaque-writeup[aria-busy="true"] {
    min-height: 88px;
}

.detail-plaque-writeup p {
    margin: 0 0 10px;
}

.detail-plaque-writeup p:last-child {
    margin-bottom: 0;
}

.detail-plaque-writeup .ghost-summary-row:nth-child(2) {
    width: 86%;
}

.detail-plaque-writeup .ghost-summary-row:nth-child(3) {
    width: 74%;
}

.detail-stories-section {
    margin-top: 18px;
    padding-top: 0;
    border-top: none;
}

.detail-stories-section.is-hidden {
    display: none;
}

.detail-stories-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}

.detail-stories-eyebrow,
.detail-stories-era {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-stories-eyebrow {
    color: var(--ink-0);
}

.detail-stories-era {
    color: rgba(109, 114, 128, 0.95);
    text-align: right;
    white-space: nowrap;
}

.detail-stories-era.is-hidden {
    display: none;
}

.detail-stories-list {
    display: grid;
    gap: 14px;
}

.story-mosaic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.story-mosaic-feature,
.story-mosaic-card {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none;
    text-align: left;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 20, 28, 0.04);
    font: inherit;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.story-mosaic-feature:active,
.story-mosaic-card:active {
    opacity: 0.94;
    transform: scale(0.98);
}

.story-mosaic-feature:focus-visible,
.story-mosaic-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18), 0 1px 2px rgba(17, 20, 28, 0.04);
}

.story-mosaic-feature {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #11141c;
    box-shadow: 0 1px 2px rgba(17, 20, 28, 0.04), 0 6px 20px rgba(17, 20, 28, 0.06);
}

.story-mosaic-feature.is-typographic {
    aspect-ratio: auto;
    min-height: 190px;
}

.story-mosaic-card {
    aspect-ratio: 5 / 3;
    border-radius: 12px;
    background: #11141c;
}

.story-mosaic-card.is-typographic {
    padding: 13px;
}

.story-mosaic-feature.is-typographic {
    padding: 16px;
    color: #fff;
}

.story-mosaic-treatment-0 {
    background: #11141c;
    color: #fff;
}

.story-mosaic-treatment-1 {
    background: #fbe3dd;
    color: #11141c;
}

.story-mosaic-treatment-2 {
    background: #f5f5f7;
    color: #11141c;
}

.story-mosaic-treatment-3 {
    background: var(--accent-red);
    color: #fff;
}

.story-mosaic-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-mosaic-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.story-mosaic-feature.has-image .story-mosaic-overlay {
    background: linear-gradient(180deg, rgba(17, 20, 28, 0.35) 0%, rgba(17, 20, 28, 0) 22%, rgba(17, 20, 28, 0) 50%, rgba(17, 20, 28, 0.95) 100%);
}

.story-mosaic-card.has-image .story-mosaic-overlay {
    background: linear-gradient(180deg, rgba(17, 20, 28, 0.25) 0%, rgba(17, 20, 28, 0) 35%, rgba(17, 20, 28, 0.92) 100%);
}

.story-card-year {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #11141c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.story-mosaic-feature .story-card-year {
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    font-size: 10px;
}

.story-card-relationship {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 82px);
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(17, 20, 28, 0.55);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-mosaic-feature .story-card-relationship {
    font-size: 10.5px;
}

.story-mosaic-feature .story-card-relationship,
.story-mosaic-card.has-image .story-card-relationship,
.story-mosaic-treatment-0 .story-card-relationship,
.story-mosaic-treatment-3 .story-card-relationship {
    color: rgba(255, 255, 255, 0.78);
}

.story-mosaic-card.is-typographic .story-card-year,
.story-mosaic-feature.is-typographic .story-card-year {
    position: static;
    align-self: flex-start;
    margin-bottom: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    opacity: 0.62;
}

.story-mosaic-content {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: auto;
    color: currentColor;
}

.story-mosaic-card.has-image .story-mosaic-content {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    color: #fff;
}

.story-mosaic-feature.has-image .story-mosaic-content {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    color: #fff;
}

.story-mosaic-title {
    display: block;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-wrap: balance;
}

.story-mosaic-card .story-mosaic-title {
    font-size: 17px;
}

.story-mosaic-card.has-image .story-mosaic-title {
    font-size: 14px;
}

.story-mosaic-feature .story-mosaic-title {
    font-size: 23px;
}

.story-mosaic-teaser {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
}

.story-mosaic-feature.is-typographic .story-mosaic-teaser {
    color: rgba(255, 255, 255, 0.78);
}

#detail-card {
    height: auto;
    display: block;
    overflow: visible;
}

#detail-card.panel-card {
    padding: 0 0 60px;
}

.detail-hero {
    position: relative;
    height: 280px;
    min-height: 280px;
    overflow: hidden;
    background: var(--field-paper-deep);
}

#detail-card.has-empty-hero .detail-hero {
    height: 168px;
    min-height: 168px;
    border-bottom: 1px solid var(--field-rule);
}

.detail-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    width: 48px;
    height: 48px;
    color: #fff;
    background: rgba(26, 22, 18, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.detail-back-btn svg {
    width: 24px;
    height: 24px;
}

#detail-card.has-empty-hero .detail-back-btn {
    color: var(--field-ink);
    background: rgba(255, 255, 255, 0.62);
    border-color: var(--field-rule);
}

.detail-walk-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 92px);
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--field-paper);
    color: var(--field-ink);
    box-shadow: 0 6px 18px rgba(26, 22, 18, 0.14);
}

#detail-card.has-empty-hero .detail-walk-pill {
    border: 1px solid var(--field-rule);
}

.detail-walk-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--field-accent);
    flex: 0 0 auto;
}

.detail-distance-inline {
    margin: 0;
    color: var(--field-ink);
    font-family: var(--field-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.detail-hero .venue-reference-gallery {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
}

.detail-hero .venue-reference-gallery.is-loading {
    background: #e4d9c8;
    border: 0;
    border-radius: 0;
}

.detail-hero .venue-reference-gallery.is-hidden {
    display: none;
}

.detail-image-hero {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    background: transparent;
}

.detail-image-hero.is-loading {
    opacity: 0;
}

.detail-hero-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #587c98 0%, #86a2b4 37%, #d1c4aa 38%, #bfb092 100%);
}

#detail-card.has-empty-hero .detail-hero-placeholder {
    background: var(--field-paper-deep);
}

.detail-hero-placeholder.is-hidden {
    display: none;
}

.detail-hero-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(244, 237, 224, 0.14), transparent 34%, rgba(26, 22, 18, 0.08)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 17px);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

#detail-card.has-empty-hero .detail-hero-placeholder::after {
    background: repeating-linear-gradient(
        135deg,
        rgba(26, 22, 18, 0.035) 0,
        rgba(26, 22, 18, 0.035) 1px,
        transparent 1px,
        transparent 10px
    );
    mix-blend-mode: normal;
}

.detail-hero-sky,
.detail-hero-ground,
.detail-hero-building {
    position: absolute;
    display: block;
}

#detail-card.has-empty-hero .detail-hero-sky,
#detail-card.has-empty-hero .detail-hero-ground,
#detail-card.has-empty-hero .detail-hero-building {
    display: none;
}

.detail-hero-sky {
    inset: 0 0 auto;
    height: 43%;
    background: linear-gradient(180deg, rgba(39, 70, 101, 0.72), rgba(151, 177, 189, 0.42));
}

.detail-hero-ground {
    left: -8%;
    right: -8%;
    bottom: 0;
    height: 34%;
    background: linear-gradient(180deg, #cfc2a8, #b7a98d);
    transform: skewY(-4deg);
    transform-origin: left bottom;
}

.detail-hero-building {
    bottom: 26%;
    background: #efe5cf;
    box-shadow: 0 16px 0 rgba(26, 22, 18, 0.1);
}

.detail-hero-building--main {
    left: 28%;
    width: 38%;
    height: 38%;
    clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}

.detail-hero-building--main::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 44%;
    background:
        radial-gradient(ellipse at center bottom, #b7ad96 0 52%, transparent 54%) left bottom / 33% 100% no-repeat,
        radial-gradient(ellipse at center bottom, #b7ad96 0 52%, transparent 54%) center bottom / 33% 100% no-repeat,
        radial-gradient(ellipse at center bottom, #b7ad96 0 52%, transparent 54%) right bottom / 33% 100% no-repeat;
}

.detail-hero-building--left {
    left: -2%;
    width: 28%;
    height: 30%;
    background: #efe2c7;
}

.detail-hero-building--right {
    right: -4%;
    width: 28%;
    height: 27%;
    background: #e6ddcb;
}

.detail-hero-placeholder[data-variant="1"] {
    background: linear-gradient(180deg, #486d86 0%, #8aa4b5 40%, #c9b99b 41%, #b5aa91 100%);
}

.detail-hero-placeholder[data-variant="2"] {
    background: linear-gradient(180deg, #456b78 0%, #9bb2b3 39%, #d2c09e 40%, #aaa183 100%);
}

.detail-hero-placeholder[data-variant="3"] {
    background: linear-gradient(180deg, #587192 0%, #a7b5c5 38%, #d0bda8 39%, #b9a989 100%);
}

.detail-hero-placeholder[data-variant="4"] {
    background: linear-gradient(180deg, #526f67 0%, #9eb5a9 38%, #d3c3a6 39%, #b4a585 100%);
}

.detail-body {
    padding: 24px 26px 0;
}

.detail-meta-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.45;
    text-transform: uppercase;
}

.detail-name {
    margin: 6px 0 0;
    max-width: 100%;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 42px;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
}

#detail-card.is-story-detail .detail-name,
#detail-card.is-plaque-detail .detail-name,
#detail-card.is-image-detail .detail-name {
    font-size: 34px;
    line-height: 1.04;
}

.detail-story-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-story-category span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--field-accent);
}

.detail-image-description,
.detail-nano,
.detail-short {
    margin: 0;
    color: var(--field-ink-soft);
}

.detail-image-description,
.detail-nano {
    margin-top: 12px;
    max-width: 34ch;
    font-family: var(--field-display);
    font-size: 19px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
}

.detail-short {
    margin-top: 24px;
    max-width: 48ch;
    color: var(--field-ink);
    font-family: var(--field-body);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.65;
    white-space: pre-wrap;
    text-wrap: pretty;
}

#detail-card.is-story-detail .detail-short {
    max-width: none;
    white-space: normal;
}

#detail-card.is-story-detail .detail-sources {
    max-width: none;
}

#detail-card.is-story-detail .detail-short p {
    margin: 0 0 0.85em;
}

#detail-card.is-story-detail .detail-short p:last-child {
    margin-bottom: 0;
}

.detail-sources {
    max-width: 48ch;
    color: var(--field-ink-soft);
    font-family: var(--field-body);
    font-size: 15.5px;
    line-height: 1.65;
}

.detail-sources h3 {
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: inherit;
    line-height: inherit;
}

.detail-sources a {
    font-size: inherit;
    line-height: inherit;
}

.detail-sources a {
    color: var(--field-ink-soft);
}

.detail-sources a:hover {
    color: var(--field-ink);
}

.detail-taxonomy-row {
    margin-top: 14px;
}

.detail-visitor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-pill,
.detail-price-pill {
    position: static;
    top: auto;
    align-self: baseline;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.45;
}

.detail-meta {
    margin-top: 28px;
}

.meta-box {
    padding: 18px 0 0;
    border: none;
    border-top: 1px solid var(--field-rule);
    background: transparent;
}

.meta-label {
    margin-bottom: 10px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.25;
    text-transform: uppercase;
}

.best-for-inline {
    max-width: none;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 17px;
    line-height: 1.32;
}

.best-for-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.best-for-list li {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--field-rule);
}

.best-for-list li:last-child {
    border-bottom: none;
}

.best-for-number {
    flex: 0 0 22px;
    padding-top: 3px;
    color: var(--field-accent);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.detail-stories-section {
    margin-top: 34px;
}

.detail-stories-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--field-rule);
}

.detail-stories-eyebrow {
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
}

.detail-stories-eyebrow em {
    font-style: italic;
}

.detail-stories-era {
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.detail-stories-list {
    display: grid;
    gap: 12px;
}

.story-mosaic-grid {
    gap: 12px;
}

.story-mosaic-feature,
.story-mosaic-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--field-rule);
    background: var(--field-paper-deep);
    color: var(--field-ink);
    box-shadow: none;
}

.story-mosaic-feature {
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
}

.story-mosaic-feature.has-image {
    min-height: 260px;
}

.story-mosaic-feature.is-typographic {
    min-height: 210px;
    padding: 18px;
}

.story-mosaic-card {
    aspect-ratio: auto;
    aspect-ratio: 0.88 / 1;
    min-height: 0;
    padding: 16px;
}

.story-mosaic-card.has-image {
    min-height: 174px;
}

.story-mosaic-card.is-typographic {
    padding: 16px;
}

.story-mosaic-feature.is-typographic {
    color: var(--field-ink);
}

.story-mosaic-treatment-0,
.story-mosaic-treatment-4 {
    background: var(--field-paper);
    color: var(--field-ink);
}

.story-mosaic-treatment-1,
.story-mosaic-treatment-3 {
    background: var(--field-paper-deep);
    color: var(--field-ink);
}

.story-mosaic-treatment-2 {
    background: #e3cdbf;
    border-color: rgba(139, 42, 27, 0.30);
    color: var(--field-ink);
}

.story-card-year {
    position: static;
    order: 1;
    align-self: flex-start;
    margin-bottom: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font-family: var(--field-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.62;
}

.story-mosaic-feature.has-image .story-card-year,
.story-mosaic-card.has-image .story-card-year {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(244, 237, 224, 0.92);
    color: var(--field-ink);
    opacity: 1;
}

.story-card-relationship {
    position: static;
    order: 3;
    align-self: flex-end;
    margin-top: auto;
    max-width: 100%;
    color: var(--field-accent);
    font-family: var(--field-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    opacity: 1;
}

.story-mosaic-card.is-typographic .story-card-relationship,
.story-mosaic-feature.is-typographic .story-card-relationship {
    color: var(--field-accent);
}

.story-mosaic-card.is-typographic .story-card-year,
.story-mosaic-feature.is-typographic .story-card-year {
    color: currentColor;
}

.story-mosaic-content {
    order: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 22px;
}

.story-mosaic-card.has-image .story-mosaic-content,
.story-mosaic-feature.has-image .story-mosaic-content {
    color: #fff;
}

.story-mosaic-title {
    color: currentColor;
    font-family: var(--field-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.12;
}

.story-mosaic-feature .story-mosaic-title {
    font-size: 24px;
    line-height: 1.06;
}

.story-mosaic-card.has-image .story-mosaic-title {
    font-size: 17px;
}

.story-mosaic-teaser {
    color: var(--field-ink-soft);
    font-family: var(--field-body);
    font-size: 13.5px;
    line-height: 1.55;
}

.story-mosaic-feature.is-typographic .story-mosaic-teaser {
    color: var(--field-ink-soft);
}

.story-mosaic-card.has-image .story-card-relationship,
.story-mosaic-feature.has-image .story-card-relationship {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    color: rgba(255, 255, 255, 0.86);
}

.story-mosaic-card.has-image .story-mosaic-content,
.story-mosaic-feature.has-image .story-mosaic-content {
    margin-top: auto;
    padding-bottom: 22px;
}

.detail-mini-map {
    margin-top: 30px;
    height: 190px;
    min-height: 190px;
    border: 1px solid rgba(26, 22, 18, 0.34);
    border-radius: var(--radius-xl);
    background: #d8ccb7;
    box-shadow: 0 0 0 1px rgba(244, 237, 224, 0.28) inset;
}

#detail-get-there-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--field-ink);
    border-radius: var(--radius-md);
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
}

#detail-get-there-link > span {
    display: block;
    min-height: 1em;
}

#detail-get-there-link > span:first-child {
    transform: translateY(2px);
}

#detail-get-there-distance {
    color: rgba(26, 22, 18, 0.6);
    font-family: var(--field-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}

#detail-wikimedia-link {
    border-radius: var(--radius-md);
    border-color: var(--field-rule);
    font-family: var(--field-display);
    font-size: 17px;
    font-weight: 500;
}

.detail-plaque-writeup {
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
    color: var(--field-ink);
    font-family: var(--field-body);
    font-size: 15.5px;
    line-height: 1.65;
}

.qa-card-head {
    margin-top: 30px;
    padding-top: 0;
    border-top: 1px solid var(--field-rule);
    padding-top: 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.qa-title {
    display: block;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.05;
    text-transform: none;
}

.qa-title::before {
    display: none;
}

.qa-venue {
    display: none;
    margin: 0;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.25;
    text-align: right;
    text-transform: uppercase;
}

.qa-chat {
    gap: 16px;
    padding: 14px 0 8px;
}

.ag-turn {
    animation: ag-rise 0.32s ease both;
}

.chat-message {
    border: none;
    word-break: normal;
    overflow-wrap: anywhere;
}

.chat-message.user,
.ag-turn-user {
    align-self: flex-end;
    max-width: min(82%, 520px);
    padding: 11px 14px 12px;
    border: 1px solid var(--field-ink);
    border-radius: 12px 12px 3px 12px;
    background: var(--field-ink);
    color: var(--field-paper);
    font-family: var(--field-display);
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
}

.chat-message.assistant,
.ag-turn-guide {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--field-ink);
}

.ag-guide-label {
    color: var(--field-accent);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.ag-guide-answer,
.ag-generating {
    margin-top: 8px;
    padding-left: 15px;
    border-left: 2px solid var(--field-rule);
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.48;
}

.ag-generating {
    border-left-color: var(--field-accent);
}

.ag-guide-answer p {
    margin: 0 0 10px;
}

.ag-guide-answer p:last-child {
    margin-bottom: 0;
}

.ag-guide-answer a {
    color: var(--field-ink);
    text-decoration-color: var(--field-accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.12em;
}

.ag-scanning-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 22px;
}

.ag-radar-sweep {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--field-paper) 0 26%, transparent 28%),
        conic-gradient(from 0deg, rgba(139, 42, 27, 0) 0deg, rgba(139, 42, 27, 0.18) 190deg, var(--field-accent) 360deg);
    animation: ag-sweep 1s linear infinite;
}

.ag-radar-sweep::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(139, 42, 27, 0.35);
    border-radius: inherit;
}

.ag-scanning-label {
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ag-ellipsis::after {
    content: "";
    animation: ag-ellipsis 1.4s steps(1) infinite;
}

.ag-skeleton {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.ag-skeleton span {
    display: block;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(26, 22, 18, 0.16) 0%, rgba(139, 42, 27, 0.20) 50%, rgba(26, 22, 18, 0.16) 100%);
    background-size: 220% 100%;
    animation: ag-shimmer 1.5s ease-in-out infinite;
}

.ag-skeleton span:nth-child(1) {
    width: 96%;
}

.ag-skeleton span:nth-child(2) {
    width: 100%;
    animation-delay: 0.18s;
}

.ag-skeleton span:nth-child(3) {
    width: 72%;
    animation-delay: 0.36s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.qa-suggested {
    gap: 8px;
    margin-top: 12px;
}

.qa-suggested button {
    border: 1px solid var(--field-rule);
    border-radius: 999px;
    background: transparent;
    color: var(--field-ink);
    font-family: var(--field-body);
    font-size: 13px;
    font-weight: 500;
    min-height: 44px;
    padding: 9px 14px;
}

.qa-form {
    margin-top: 14px;
    padding: 4px 4px 4px 14px;
    border: 1px solid var(--field-rule);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.36);
    gap: 6px;
}

.qa-form input {
    padding: 10px 0;
    color: var(--field-ink);
    font-family: var(--field-body);
    font-size: 14px;
}

.qa-form .btn,
.qa-form button {
    width: auto;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--field-ink);
    color: var(--field-paper);
    border: none;
    font-family: var(--field-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.qa-form button:disabled {
    opacity: 0.45;
}

@keyframes ag-rise {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ag-sweep {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ag-shimmer {
    0% {
        background-position: 180% 0;
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        background-position: -180% 0;
        opacity: 0.5;
    }
}

@keyframes ag-ellipsis {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%,
    100% {
        content: "...";
    }
}

.detail-mini-map .maplibregl-canvas-container,
.detail-mini-map .maplibregl-canvas {
    width: 100%;
    height: 100%;
}

.detail-mini-map .maplibregl-canvas,
.detail-full-map-canvas .maplibregl-canvas {
    filter: grayscale(1) contrast(1.05);
}

.detail-mini-map::before,
.detail-mini-map::after,
.detail-full-map-canvas::before,
.detail-full-map-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.detail-mini-map::before,
.detail-full-map-canvas::before {
    background: #c79a52;
    mix-blend-mode: multiply;
    opacity: 0.42;
}

.detail-mini-map::after,
.detail-full-map-canvas::after {
    background: #f6efe1;
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

.detail-mini-map .maplibregl-marker,
.detail-full-map-canvas .maplibregl-marker {
    z-index: 4;
}

.detail-mini-map-expand-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--field-rule);
    border-radius: 0;
    background: rgba(244, 237, 224, 0.94);
    color: var(--field-ink);
    box-shadow: 0 1px 4px rgba(26, 22, 18, 0.16);
    pointer-events: none;
}

.detail-mini-map-expand-hint svg,
.detail-full-map-back svg,
.detail-full-map-control svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-full-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(26, 22, 18, 0.45);
    padding: 10px;
    display: none;
}

.detail-full-map-overlay.is-open {
    display: block;
}

.detail-full-map-shell {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 22, 18, 0.18);
    background: var(--field-paper);
    position: relative;
    box-shadow: 0 20px 40px rgba(17, 23, 38, 0.28);
}

.detail-full-map-header {
    position: absolute;
    top: 56px;
    left: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--field-rule);
    background: rgba(244, 237, 224, 0.94);
    box-shadow: 0 4px 18px rgba(26, 22, 18, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.detail-full-map-heading {
    min-width: 0;
    flex: 1;
}

.detail-full-map-title {
    overflow: hidden;
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-full-map-distance {
    margin-top: 3px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-full-map-walk {
    flex: 0 0 auto;
    padding-right: 4px;
    color: var(--field-accent);
    font-family: var(--field-display);
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
}

.detail-full-map-back,
.detail-full-map-control {
    position: absolute;
    z-index: 6;
    width: 40px;
    height: 40px;
    border: 1px solid var(--field-rule);
    border-radius: 999px;
    background: rgba(244, 237, 224, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--field-ink);
}

.detail-full-map-back {
    position: static;
    flex: 0 0 auto;
    box-shadow: none;
}

.detail-full-map-control {
    right: 12px;
    display: none;
    box-shadow: 0 8px 18px rgba(17, 23, 38, 0.16);
    width: 44px;
    height: 44px;
    color: var(--field-accent);
}

.detail-full-map-reset-north {
    right: 16px;
    top: 126px;
}

.detail-full-map-recenter {
    right: 16px;
    top: auto;
    bottom: 30px;
}

.detail-full-map-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.user-location-marker {
    width: 15px;
    height: 15px;
    background: var(--field-ink);
    border: 3px solid var(--field-paper);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: visible;
}

.user-location-marker::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(122, 138, 102, 0.5);
    transform: translate(-50%, -50%) scale(0.4);
    animation: here-pulse 2.8s ease-out infinite;
}

.user-location-marker.has-direction {
    width: 50px;
    height: 70px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.user-location-marker.has-direction::after {
    display: none;
}

.user-location-marker.has-direction::before {
    display: none;
}

.user-location-marker-label {
    background: rgba(244, 237, 224, 0.94);
    border: 1px solid var(--field-ink);
    color: var(--field-ink);
    font-family: var(--field-mono);
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.18em;
    padding: 4px 7px;
    border-radius: 0;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    pointer-events: none;
    user-select: none;
}

.detail-place-marker {
    width: 34px;
    height: 44px;
    filter: drop-shadow(0 3px 4px rgba(26, 22, 18, 0.32));
}

.detail-place-marker svg {
    display: block;
    width: 34px;
    height: 44px;
}

.detail-place-marker path {
    fill: var(--field-accent);
    stroke: var(--field-paper);
    stroke-width: 2.5;
}

.detail-place-marker circle {
    fill: var(--field-paper);
}

.venue-marker {
    width: 20px;
    height: 20px;
    background: var(--field-accent);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(139, 42, 27, 0.35);
    border: 2px solid var(--field-paper);
}

@keyframes here-pulse {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.4);
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ag-turn,
    .ag-radar-sweep,
    .ag-skeleton span,
    .ag-ellipsis::after,
    .user-location-marker::before {
        animation: none;
    }
}

#auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(26, 22, 18, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#auth-modal-backdrop.is-open {
    display: flex;
}

#auth-modal {
    width: min(94vw, 430px);
    border-radius: 14px;
    border: 1px solid rgba(26, 22, 18, 0.16);
    background: #f4ede0;
    box-shadow: 0 24px 60px rgba(26, 22, 18, 0.35);
    padding: 28px 28px 26px;
    position: relative;
}

#auth-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(26, 22, 18, 0.16);
    background: rgba(255, 255, 255, 0.45);
    color: #1a1612;
    cursor: pointer;
    font-family: var(--field-body);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4px;
}

.auth-modal-kicker {
    font-family: var(--field-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #5b524a;
    font-weight: 500;
    margin: 0 56px 14px 0;
}

#auth-modal-title {
    margin: 0 34px 26px 0;
    color: #1a1612;
    font-family: var(--field-display);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

#auth-modal-title em {
    font-style: italic;
}

.auth-provider-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.auth-provider-btn,
.auth-primary-btn {
    width: 100%;
    border: 1px solid #1a1612;
    border-radius: 8px;
    background: transparent;
    color: #1a1612;
    padding: 13px 14px;
    font-family: var(--field-display);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.15;
    cursor: pointer;
}

.auth-primary-btn {
    background: #1a1612;
    border-color: #1a1612;
    color: #f4ede0;
    margin-top: 2px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #5b524a;
    font-family: var(--field-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1;
    margin: 22px 0 18px;
    text-align: center;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(26, 22, 18, 0.16);
}

.auth-email-form,
.auth-magic-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-field {
    width: 100%;
    border: 1px solid rgba(26, 22, 18, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
    color: #1a1612;
    padding: 14px 16px;
    font-family: var(--field-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    outline: none;
}

.auth-field::placeholder {
    color: rgba(91, 82, 74, 0.72);
}

.auth-field:focus {
    border-color: #1a1612;
}

.auth-inline-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.auth-secondary-link {
    border: none;
    background: transparent;
    color: #1a1612;
    font-family: var(--field-display);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.05;
    cursor: pointer;
    padding: 2px 0 3px;
    text-decoration-line: underline;
    text-decoration-color: #8b2a1b;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

#auth-magic-submit {
    background: transparent;
    border: 1px solid #1a1612;
    color: #1a1612;
}

.auth-status {
    margin-top: 12px;
    min-height: 20px;
    color: #5b524a;
    font-family: var(--field-body);
    font-size: 13px;
}

.auth-status.success {
    color: #0f7a4c;
}

.auth-status.error {
    color: #a32222;
}

.back-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--field-rule);
    border-radius: 999px;
    background: transparent;
    color: var(--field-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.back-icon-btn:hover {
    background: rgba(236, 227, 210, 0.52);
    border-color: rgba(26, 22, 18, 0.26);
    transform: translateX(-1px);
}

.back-icon-btn:focus-visible {
    outline: 2px solid rgba(139, 42, 27, 0.35);
    outline-offset: 2px;
}

.back-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-back-btn.back-icon-btn {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(26, 22, 18, 0.34);
    color: #fff;
}

.detail-back-btn.back-icon-btn:hover {
    background: rgba(26, 22, 18, 0.48);
    border-color: rgba(255, 255, 255, 0.72);
}

.detail-back-btn.back-icon-btn svg {
    width: 24px;
    height: 24px;
}

.empty-state {
    margin: 42px 8px auto;
    border-top: 1px solid var(--field-rule);
    border-bottom: 1px solid var(--field-rule);
    color: var(--field-ink);
    font-family: var(--field-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.16;
    text-align: center;
    padding: 28px 18px 30px;
}

.empty-state::before {
    content: "Index";
    display: block;
    margin-bottom: 10px;
    color: var(--field-ink-soft);
    font-family: var(--field-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.empty-state.is-error {
    border-color: rgba(139, 42, 27, 0.30);
    background: rgba(227, 205, 191, 0.42);
}

.empty-state.is-error::before {
    content: "Could not load";
    color: var(--field-accent);
}

.detail-state-note {
    padding: 18px;
    border: 1px solid rgba(139, 42, 27, 0.30);
    border-radius: var(--radius-md);
    background: rgba(227, 205, 191, 0.42);
    color: var(--field-ink);
    font-family: var(--field-body);
    font-size: 15.5px;
    line-height: 1.5;
}

@media (min-width: 981px) {
    .location-shell {
        width: min(620px, 100%);
    }

    .location-logo {
        font-size: 75px;
    }

    .area-guide-mode .location-logo {
        font-size: 78px;
    }

    .location-kicker {
        font-size: 22.5px;
    }

    .area-guide-mode .location-kicker {
        font-size: 23.5px;
        line-height: 1.18;
    }

    .area-guide-mode .location-kicker-desktop {
        display: inline;
    }

    .area-guide-mode .location-kicker-mobile {
        display: none;
    }

    .location-title {
        font-size: 52.5px;
    }

    .btn-nearby-primary {
        min-height: 105px;
        padding: 22px 28px;
        font-size: inherit;
        font-weight: inherit;
    }

    .location-primary-eyebrow,
    .location-divider,
    .weekly-picks-header span,
    .weekly-picks-list button > span:last-child,
    .nearby-locating-kicker,
    .nearby-locating-message {
        font-size: 12.5px;
    }

    .location-primary-label {
        font-size: 30px;
    }

    .area-guide-mode .location-divider {
        font-size: 16.7px;
    }

    .location-primary-arrow {
        font-size: 32.5px;
    }

    .location-form input {
        font-size: 18.75px;
    }

    #nearby-search-btn {
        font-size: 17.5px;
        padding: 12px 20px;
    }

    .weekly-picks-header h2,
    .nearby-locating-copy {
        font-size: 27.5px;
    }

    .weekly-picks-list strong {
        font-size: 23.75px;
    }

    .weekly-picks-list em {
        font-size: 17.5px;
    }

    .detail-name {
        font-size: 52.5px;
    }

    #detail-card.is-story-detail .detail-name,
    #detail-card.is-plaque-detail .detail-name,
    #detail-card.is-image-detail .detail-name {
        font-size: 42.5px;
    }

    .detail-image-description,
    .detail-nano {
        font-size: 23.75px;
    }

    .detail-short,
    .detail-plaque-writeup,
    .detail-sources {
        font-size: 19.4px;
    }

    .detail-visitor-tags .tag {
        font-size: 15.5px;
    }

    .best-for-inline,
    #detail-get-there-link {
        font-size: 21.25px;
    }

    .detail-stories-header {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .detail-stories-eyebrow {
        font-size: 27.5px;
    }

    .detail-stories-era {
        font-size: 12.5px;
    }

    .story-mosaic-feature.is-typographic {
        min-height: 250px;
        padding: 22px;
    }

    .story-mosaic-feature.has-image {
        min-height: 300px;
    }

    .story-mosaic-card {
        min-height: 180px;
        padding: 18px;
    }

    .story-mosaic-card.has-image {
        min-height: 208px;
    }

    .story-mosaic-title,
    .story-mosaic-card .story-mosaic-title,
    .story-mosaic-card.has-image .story-mosaic-title {
        font-size: 21.25px;
    }

    .story-mosaic-feature .story-mosaic-title {
        font-size: 30px;
    }

    .story-mosaic-teaser {
        font-size: 16.9px;
    }

    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .nearby-app {
        height: calc(100vh - 44px);
        display: flex;
        flex-direction: column;
    }

    .location-shell {
        width: min(var(--nearby-readable-shell-width), 100%);
    }

    .location-screen {
        height: calc(100vh - 44px);
        min-height: 0;
    }

    .content-grid {
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .card-pane {
        padding: 18px 18px 18px 12px;
    }

    .card-pane .panel-card {
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0 0 8px;
    }
}

@media (max-width: 980px) {
    body {
        padding: 0;
    }

    .location-shell,
    .nearby-app {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        font-size: 18px;
    }

    .pane-title {
        font-size: 28px;
        line-height: 0.98;
    }

    .chat-message {
        font-size: clamp(19px, 2.5vw, 21px);
        line-height: 1.65;
    }

    .place-name {
        font-size: 24px;
    }

    .place-summary {
        font-size: 18px;
        line-height: 1.45;
    }

    .place-distance {
        font-size: 10px;
    }

    .place-best-for {
        font-size: 18px;
    }

    .tag {
        font-size: 9px;
    }

    .tag-row--compact .tag {
        font-size: 9px;
    }

    .nearby-app {
        border-radius: 0;
        height: 100vh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: none;
    }

    .location-screen {
        min-height: 100vh;
        align-items: flex-start;
        padding: 52px 0 36px;
    }

    .location-card {
        border-radius: 0;
        padding: 0;
    }

    .location-notice {
        margin: 18px 0 0;
        padding: 16px 16px 16px 18px;
        gap: 12px;
        border-radius: var(--radius-md);
    }

    .location-notice-text {
        font-size: 22px;
    }

    .location-search-row {
        padding: 4px 6px 4px 14px;
        margin: 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .list-pane {
        border-right: none;
        padding: 18px 0 0 14px;
    }

    .pane-head {
        margin-right: 14px;
    }

    .nearby-list {
        padding-right: 14px;
    }

    .nearby-list.is-loading {
        padding: 0;
    }

    .nearby-list.is-loading #list-loading-interstitial {
        min-height: calc(100svh - 116px);
    }

    .card-pane {
        padding: 12px 14px 14px;
        border-top: 1px solid var(--line);
    }

    .mobile-list-only .card-pane {
        display: none;
    }

    .mobile-detail-only .list-pane {
        display: none;
    }

    .mobile-detail-only .content-grid {
        min-height: 100vh;
        height: 100vh;
    }

    .mobile-detail-only .card-pane {
        position: fixed;
        inset: 0;
        z-index: 40;
        padding: 0;
        border-top: none;
        background: var(--bg-0);
    }

    .mobile-detail-only .card-pane .panel-card {
        height: auto;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: var(--bg-0);
        padding: 16px 16px 14px;
    }

    .mobile-detail-only #detail-card {
        padding: 0 0 max(76px, calc(62px + env(safe-area-inset-bottom)));
        min-height: calc(100vh - max(14px, env(safe-area-inset-bottom)));
    }

    .mobile-detail-only .panel-placeholder {
        align-items: stretch;
        justify-content: flex-start;
    }

    .mobile-detail-only .detail-placeholder-mobile-head {
        display: flex;
    }

    .mobile-detail-only .detail-placeholder-copy {
        margin: auto 0;
        max-width: none;
    }

    @media (min-width: 700px) {
        .location-shell,
        .nearby-app {
            width: calc(100% - 100px);
        }

        .mobile-detail-only .card-pane {
            left: 50px;
            right: 50px;
        }
    }

    .location-search-row {
        grid-template-columns: 1fr;
    }

    .location-logo {
        font-size: 72px;
    }

    .area-guide-mode .location-logo {
        font-size: 64px;
    }

    .location-kicker {
        font-size: 21.6px;
    }

    .location-title {
        font-size: 50.4px;
    }

    .location-notice-text,
    .location-search-label,
    .search-row input,
    .location-form input,
    .list-search-input {
        font-size: 18px;
    }

    .location-notice-close {
        font-size: 26.4px;
    }

    .location-notice-text {
        font-size: 22px;
    }

    .location-primary-eyebrow,
    .location-divider,
    .status-row,
    .pane-meta,
    .list-index-meta,
    .detail-meta-line,
    .meta-label,
    .detail-stories-era,
    .ag-guide-label,
    .ag-scanning-label,
    .empty-state::before {
        font-size: 12px;
    }

    .location-primary-label {
        font-size: 28.8px;
    }

    .location-primary-arrow {
        font-size: 31.2px;
    }

    #nearby-search-btn,
    .btn {
        font-size: 21.6px;
    }

    .weekly-picks-list strong {
        font-size: 22.8px;
    }

    .weekly-picks-list em {
        font-size: 16.8px;
    }

    .list-loading-message {
        font-size: 28.8px;
    }

    .list-index-label {
        font-size: 34.8px;
    }

    .pane-title {
        font-size: 33.6px;
    }

    .place-name {
        font-size: 28.8px;
    }

    .place-summary,
    .place-nano-summary,
    .place-best-for,
    .stories-count-pill {
        font-size: 21.6px;
    }

    .place-distance,
    .stories-count-pill-number,
    .price-pill,
    .detail-price-pill,
    .best-for-number,
    #detail-get-there-distance {
        font-size: 12px;
    }

    .tag,
    .tag-row--compact .tag {
        font-size: 10.8px;
    }

    .detail-name {
        font-size: 50.4px;
    }

    #detail-card.is-story-detail .detail-name,
    #detail-card.is-plaque-detail .detail-name,
    #detail-card.is-image-detail .detail-name {
        font-size: 40.8px;
    }

    .detail-image-description,
    .detail-nano {
        font-size: 22.8px;
    }

    .detail-short,
    .detail-plaque-writeup,
    .detail-sources,
    .detail-state-note {
        font-size: 18.6px;
    }

    .detail-visitor-tags .tag {
        font-size: 14.9px;
    }

    .best-for-inline,
    #detail-get-there-link {
        font-size: 20.4px;
    }

    #detail-wikimedia-link,
    .story-mosaic-title,
    .story-mosaic-card .story-mosaic-title,
    .story-mosaic-card.has-image .story-mosaic-title {
        font-size: 20.4px;
    }

    .detail-stories-eyebrow {
        font-size: 26.4px;
    }

    .story-mosaic-feature .story-mosaic-title {
        font-size: 28.8px;
    }

    .story-mosaic-teaser,
    .qa-suggested button,
    .report-image-btn,
    .auth-status {
        font-size: 16.2px;
    }

    .qa-title {
        font-size: 26.4px;
    }

    .chat-message.user,
    .ag-turn-user {
        font-size: 19.8px;
    }

    .ag-guide-answer,
    .ag-generating {
        font-size: 21px;
    }

    .qa-form input {
        font-size: 16.8px;
    }

    .qa-form .btn,
    .qa-form button {
        font-size: 18px;
    }

    #auth-modal-close {
        font-size: 40.8px;
    }

    .auth-modal-kicker {
        font-size: 14.4px;
    }

    #auth-modal-title {
        font-size: 32.4px;
    }

    .auth-provider-btn,
    .auth-primary-btn {
        font-size: 25.2px;
    }

    .auth-divider {
        font-size: 13.2px;
    }

    .auth-field,
    .auth-secondary-link {
        font-size: 21.6px;
    }

    .empty-state {
        font-size: 28.8px;
    }
}


/* Area-guide permission prompt and outside-area banner */
.area-guide-permission-prompt {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 10000;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100% - 32px));
}

@media (max-width: 600px) {
    .area-guide-permission-prompt {
        right: 50%;
        transform: translateX(50%);
        top: 12px;
    }
}

.area-guide-permission-prompt.is-hidden {
    display: none;
}

.area-guide-permission-prompt-text {
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink-1, #111);
}

.area-guide-permission-prompt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.area-guide-permission-btn {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.area-guide-permission-allow {
    background: var(--ink-1, #111);
    color: #fff;
    border-color: var(--ink-1, #111);
}

.area-guide-outside-banner {
    position: fixed;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    z-index: 1000;
    background: #fff8e1;
    border: 1px solid #f0d873;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink-1, #111);
    max-width: min(480px, calc(100% - 32px));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.area-guide-outside-banner.is-hidden {
    display: none;
}
