:root {
    --paper: #F3EDDF;
    --paper-light: #FAF7EF;
    --ink: #26343A;
    --muted: #6F716C;
    --heading-ink: #713e3a;
    --link: #645047;
    --accent: #713E3A;
    --rule: #B9AD98;
    --shadow: rgba(38, 52, 58, 0.14);
    --header-region-module: 160px;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    height: 100%;
}

.site-body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

.site-body.has-page-map {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

.site-body.has-page-map .site-header {
    flex: 0 0 auto;
}

.site-body.has-page-map .site-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-body.has-page-map .site-main > article {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.site-body.has-page-map .map-shell-page {
    flex: 1 1 auto;
    min-height: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
    z-index: 16;
    background: var(--paper-light);
    color: var(--ink);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--rule);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-header,
.site-main,
.site-footer {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.site-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 15;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    min-width: 0;
    height: 73.8px;
    padding: 0 8px 0 20px;
}

.site-brand {
    flex: 0 0 auto;
    width: auto;
    min-width: 195px;
    max-width: calc(100vw - 16px);
    text-align: left;
}

.site-logo {
    margin: 0;
    line-height: 0;
}

.site-logo a {
    display: block;
}

.site-logo img {
    display: block;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.site-logo img.site-logo-desktop {
    width: auto;
    height: 54px;
    aspect-ratio: 195 / 54;
    max-width: none;
    max-height: 54px;
    margin-top: 0;
    transform: translateY(1.2px);
    object-position: left center;
}

.site-logo img.site-logo-mobile {
    display: none;
    width: auto;
    height: 37px;
    aspect-ratio: 126 / 37;
}

@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 640px) {
    .site-header-row {
        height: 45px;
        min-height: 45px;
        max-height: 45px;
    }

    .site-logo img.site-logo-desktop {
        display: none;
    }

    .site-logo img.site-logo-mobile {
        display: block;
        width: auto;
        height: 37px;
        max-width: none;
        max-height: 37px;
        aspect-ratio: 126 / 37;
    }
}

.site-header-rule {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #713e3a;
    flex: 0 0 2px;
}

.home-sheet-tagline {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 20px;
    background: #eee0b8;
    color: #26343a;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    overflow: visible;
    border: 0;
    box-shadow: none;
}

.site-header-tagline {
    margin: 0;
    max-width: 100%;
    font: inherit;
    font-style: normal;
    color: inherit;
    white-space: normal;
}

.header-regions {
    container-type: inline-size;
    container-name: header-regions;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(30px, auto));
    grid-auto-columns: var(--header-region-module);
    gap: 4px 8px;
    justify-content: end;
    align-content: center;
    align-self: stretch;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.header-region-links,
.header-region-cards,
.header-region-texts,
.header-utility-group {
    display: contents;
}

.header-regions .header-region-card,
.header-regions .header-region-item { display: none; }

.header-region-item,
.header-utility-group > div {
    min-width: 0;
    order: var(--header-region-ord, 0);
}

.header-region-card {
    position: relative;
    grid-row: span 2;
    order: var(--header-region-ord, 0);
    width: 100%;
    height: 64px;
    overflow: hidden;
    color: #faf7ef;
    text-decoration: none;
}
.header-region-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.header-region-card .header-region-text-arrow { display: none; }
.header-region-card-name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.85rem 0.45rem 0.35rem;
    background: linear-gradient(transparent, rgba(38, 52, 58, 0.78));
    font: 600 0.78rem/1.2 var(--font-sans);
    color: #faf7ef;
}

.header-region-text {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    height: 100%;
    min-height: 30px;
    padding: 0.15rem 0 0.2rem;
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    border: 0;
    border-bottom: 1px solid #c4b08a;
    border-radius: 0;
    font: 400 0.9rem/1.2 var(--font-sans);
    white-space: normal;
}
.header-region-text-name { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.header-region-text-arrow { flex: 0 0 auto; color: #8a6a4a; font-weight: 400; }
.header-region-text:hover,
.header-region-text:focus-visible { background: rgba(216, 199, 167, 0.28); border-bottom-color: #8a6a4a; color: var(--ink); }
.header-region-text:hover .header-region-text-arrow,
.header-region-text:focus-visible .header-region-text-arrow { color: var(--accent); }
button.place-action:disabled { opacity: 1; }
button.place-action { appearance: none; -webkit-appearance: none; cursor: pointer; }
button.place-action:disabled { color: var(--accent); }
.header-all-areas[aria-current="page"],
.header-new-places[aria-current="page"] { border-bottom-color: var(--accent); }

/* Same flow and link styles; only the number of rows changes in portrait. */
@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 640px) {
    .site-header .site-header-row { height: auto; min-height: 45px; max-height: none; }
    .header-regions {
        grid-template-rows: repeat(2, minmax(18px, auto));
        grid-auto-columns: min(var(--header-region-module), calc((100cqw - 8px) / 2));
        gap: 1px 8px;
        height: auto;
        max-height: none;
        margin-left: clamp(6px, 1.5cqi, 16px);
        padding: 0;
        align-self: stretch;
    }
    .header-region-card {
        grid-row: auto;
        box-sizing: border-box;
        align-items: center;
        justify-content: space-between;
        gap: 3px;
        height: 100%;
        min-height: 18px;
        padding: 0 1px;
        color: var(--ink);
        background: transparent;
        border-bottom: 1px solid #c4b08a;
        font: 400 13px/16px var(--font-sans);
    }
    .header-region-card img { display: none; }
    .header-region-card-name {
        position: static;
        min-width: 0;
        padding: 0;
        background: none;
        font: inherit;
        color: inherit;
        overflow-wrap: anywhere;
    }
    .header-region-card .header-region-text-arrow { display: inline; }
    .header-region-text { min-height: 18px; padding: 0 1px; gap: 3px; font-size: 13px; line-height: 16px; }
    .site-header .locale-switch-toggle { width: 43px; height: 26px; justify-content: space-between; padding: 0 4px; gap: 3px; font-size: 12px; }
    .site-header .locale-switch-globe { display: none; }
}
@media (max-width: 640px) and (orientation: portrait) {
    .site-header .site-header-row { min-height: 74px; padding-top: 8px; padding-bottom: 8px; }
    .header-regions {
        grid-template-rows: repeat(3, minmax(18px, auto));
        grid-auto-columns: min(var(--header-region-module), 100cqw);
        row-gap: 2px;
    }
}

.locale-switch {
    position: relative;
    z-index: 4;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    align-self: center;
    overflow: visible;
}

.locale-switch-panel {
    position: relative;
    margin: 0;
}

.locale-switch-toggle::-webkit-details-marker,
.locale-switch-toggle::marker {
    display: none;
}

.locale-switch-toggle {
    box-sizing: border-box;
    display: inline-flex;
    list-style: none;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    margin: 0;
    padding: 0.28rem 0.5rem;
    color: var(--ink);
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
}

.locale-switch-toggle:hover {
    background: #f3eddf;
    border-color: #a89478;
}

.locale-switch-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.locale-switch-globe {
    display: block;
    flex: 0 0 auto;
    color: var(--muted);
}

.locale-switch-name,
.locale-switch-code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.locale-switch-code {
    display: none;
    letter-spacing: 0.04em;
}

.locale-switch-chevron {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.32rem;
    height: 0.32rem;
    margin: 0 0 0.15rem 0.05rem;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.locale-switch-panel[open] .locale-switch-chevron {
    margin: 0.15rem 0 0 0.05rem;
    transform: rotate(-135deg);
}

.locale-switch-list {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    z-index: 6;
    box-sizing: border-box;
    width: 232px;
    max-width: calc(100vw - 18px);
    max-height: min(70vh, 28rem);
    max-height: min(70dvh, calc(100dvh - 56px));
    margin: 0;
    padding: 0.25rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-radius: 2px;
    box-shadow: 0 8px 18px var(--shadow);
}

.locale-switch-panel:not([open]) .locale-switch-list {
    display: none;
}

.locale-switch-option {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.75rem;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 400;
    text-decoration: none;
}

.locale-switch-option.is-current {
    background: #d8c7a7;
}

.locale-switch-option:hover,
.locale-switch-option:focus-visible {
    background: rgba(216, 199, 167, 0.38);
    color: var(--ink);
    outline: none;
}

.locale-switch-option:focus-visible {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.locale-switch-check {
    display: flex;
    flex: 0 0 0.85rem;
    align-items: center;
    justify-content: center;
    width: 0.85rem;
    color: var(--accent);
}

.locale-switch-option-name {
    min-width: 0;
}

/* MOBILE_LAYOUT — identical to map.css / map.js */
@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 640px) {
    .site-header {
        box-shadow: none;
    }

    .site-header-row {
        box-sizing: border-box;
        flex-wrap: nowrap;
        align-items: center;
        height: 45px;
        min-height: 45px;
        max-height: 45px;
        gap: 0;
        padding: 0 8px 0 7.89px;
        overflow: visible;
    }

    .site-brand {
        flex: 0 0 auto;
        min-width: 126px;
        max-width: none;
    }

    .site-logo img.site-logo-desktop {
        display: none;
    }

    .site-logo img.site-logo-mobile {
        display: block;
        width: auto;
        height: 37px;
        max-width: none;
        max-height: 37px;
        aspect-ratio: 126 / 37;
        margin-top: 0;
        transform: none;
        object-fit: contain;
        object-position: left center;
    }

    .locale-switch {
        margin-left: 8px;
        flex: 0 0 auto;
        z-index: 4;
    }

    .locale-switch-name {
        display: none;
    }

    .locale-switch-code {
        display: inline;
    }

    .home-sheet-tagline {
        padding: 4px 10px;
        font-size: 12px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .prose .markdown-image {
        display: block;
        clear: both;
        float: none;
        max-width: 100%;
        margin: 0 0 10px;
    }
}

.site-main {
    padding-bottom: 2rem;
    background: var(--paper-light);
}

.site-main:has(.geopage) {
    max-width: none;
    margin: 0;
    padding-top: 8px;
}

.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4 {
    color: var(--heading-ink);
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.site-main h1 {
    font-size: 20px;
}

.site-main h2 {
    font-size: 18px;
}

.site-main h3 {
    font-size: 16px;
}

.site-main h4 {
    font-size: 14px;
    font-weight: 500;
}

.site-main a {
    color: var(--link);
}

.site-main a:hover,
.site-main a:focus-visible {
    color: var(--accent);
}

.site-main a:focus-visible,
.site-header a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.prose p {
    margin: 0 0 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-block: 14px 7px;
}

.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    display: flow-root;
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.markdown-image {
    display: block;
    float: left;
    width: auto;
    height: auto;
    max-width: 48%;
    margin: 0 12px 8px 0;
}

.markdown-help {
    clear: both;
    display: flow-root;
    box-sizing: border-box;
    width: 100%;
    margin: 14px 0;
    padding: 12px;
    color: var(--ink);
    background: #e8ebe1;
    border: 0;
    border-radius: 5px;
    box-shadow: none;
}

.markdown-help > :first-child {
    margin-top: 0;
}

.markdown-help > :last-child {
    margin-bottom: 0;
}

.map-sidebar .markdown-image {
    display: block;
    clear: both;
    float: none;
    max-width: 100%;
    margin: 0 0 10px;
}

.place-action {
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    flex: none;
    flex-shrink: 0;
    height: 34px;
    max-height: 34px;
    margin: 0;
    padding: 0 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 32px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 3px;
    vertical-align: baseline;
    overflow: visible;
    cursor: pointer;
}

.place-action-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    vertical-align: -2px;
    pointer-events: none;
}

.place-action-label {
    white-space: nowrap;
}

.place-action:hover,
.place-action:focus-visible,
.site-main a.place-action,
.site-main a.place-action:hover,
.site-main a.place-action:focus-visible {
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
}

.place-action:hover {
    background: #e5dccb;
}

.place-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.geopage {
    display: flow-root;
    container-type: inline-size;
    --geopage-video-top: 126px;
    --geopage-avail-h: calc(var(--geopage-viewport-h, 100vh) - var(--geopage-video-top) - env(safe-area-inset-bottom, 0px) - 8px);
    --geopage-avail-h: calc(var(--geopage-viewport-h, 100svh) - var(--geopage-video-top) - env(safe-area-inset-bottom, 0px) - 8px);
    --geopage-fit-w: max(200px, min(100cqw, max(355.56px, calc(var(--geopage-avail-h) * 16 / 9))));
    --geopage-fit-h: max(200px, min(calc(100cqw * 9 / 16), var(--geopage-avail-h)));
}

.geopage .geopage-essay,
.geopage .geopage-note {
    overflow-wrap: anywhere;
}

.geopage .geopage-essay > :first-child,
.geopage .geopage-note > :first-child {
    margin-top: 0;
}

.geopage .geopage-essay > :last-child,
.geopage .geopage-note > :last-child {
    margin-bottom: 0;
}

.geopage .geopage-note {
    margin: 0 -1rem;
    padding: 24px 1rem;
    background: #f2e7e4;
    color: #1f2325;
}

.geopage:not(:has(.spot-media-block)) .geopage-note {
    display: flow-root;
}

.geopage .geopage-essay + .geopage-note {
    clear: both;
    display: flow-root;
    margin-top: 32px;
}

.geopage .geopage-essay h2,
.geopage .geopage-note h2 {
    margin: 14px 0 7px;
    color: var(--heading-ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.geopage .geopage-note h2,
.geopage .geopage-note h3,
.geopage .geopage-note h4 {
    color: #553737;
}

.geopage .geopage-essay h3,
.geopage .geopage-note h3 {
    margin: 20px 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.geopage .geopage-essay > h2:first-child,
.geopage .geopage-essay > h3:first-child,
.geopage .geopage-essay > h4:first-child,
.geopage .geopage-note > h2:first-child,
.geopage .geopage-note > h3:first-child,
.geopage .geopage-note > h4:first-child {
    margin-top: 0;
}

.geopage .geopage-essay .markdown-help,
.map-viewer .map-viewer-essay .markdown-help {
    background: #eee3ce;
}

.geopage .geopage-note .markdown-help,
.map-viewer .geopage-note .markdown-help {
    background: #faf2ef;
    color: #1f2325;
}

.geopage-random-spot {
    display: flex;
    justify-content: flex-end;
    clear: both;
    margin-top: 12px;
}

.geopage-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 8px;
}

.geopage-heading .map-return {
    display: flex;
    align-items: center;
    flex: none;
    height: 34px;
    max-height: 34px;
    margin: 0;
    line-height: 0;
}

.geopage-heading .map-return[hidden] {
    display: none;
}

.site-main .geopage-heading h1 {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--heading-ink);
    overflow-wrap: anywhere;
}

.map-return a {
    font-weight: 400;
}

.geopage-regions {
    margin: 1.5rem 0 0;
}

.geopage-regions ul {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.geopage-regions li {
    margin: 0 0 0.35rem;
}

.series-block,
.route-nav,
.place-list {
    margin-top: 1.25rem;
}

.series-block h2 {
    margin: 0 0 0.45rem;
    font-size: 18px;
}

.series-block ul {
    margin: 0;
    padding-left: 1.2rem;
}

.route-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 10px;
    background: #eee7d8;
    border-radius: 5px;
}

.route-prev,
.route-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #b9ad98;
    border-radius: 4px;
    background: var(--paper-light);
    text-decoration: none;
    font-size: 13px;
    max-width: 100%;
    overflow-wrap: anywhere;
    grid-row: 1;
}

.route-prev { grid-column: 1; }
.route-next {
    grid-column: 3;
}

.route-title {
    grid-row: 1;
    grid-column: 2;
    text-align: center;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.site-main .route-title a { color: #713e3a; text-decoration: none; }
.route-title a:hover { text-decoration: underline; }
.route-chevron { font-size: 0; flex: none; width: 14px; text-align: center; }
.route-chevron::before { content: ''; display: inline-block; width: 7px; height: 7px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: rotate(45deg); }
.route-prev .route-chevron::before { transform: rotate(-135deg); }

@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 640px) {
  @media (orientation: portrait) {
    .route-nav { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; padding: 8px; }
    .route-prev, .route-next { min-height: 44px; padding: 7px; }
    .route-stop-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  }
}

.youtube-embed {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 200px;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    background: var(--paper);
    overflow: hidden;
}

.spot-media-block {
    float: left;
    width: var(--geopage-fit-w, 100%);
    min-width: 0;
    max-width: 100%;
    margin: 0 16px 12px 0;
}

.spot-media-block > .youtube-embed {
    float: none;
    width: 100%;
    height: var(--geopage-fit-h, auto);
    min-width: 200px;
    min-height: 200px;
    aspect-ratio: auto;
    margin: 0;
    overflow: visible;
}

.spot-media-block > .youtube-embed > .youtube-player,
.spot-media-block > .youtube-embed > .youtube-player > iframe {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
}

.spot-media-block > .youtube-embed > .youtube-player {
    position: relative;
    overflow: visible;
}

.spot-media-block > .youtube-embed > .youtube-player > iframe {
    position: absolute;
    inset: 0;
}

.geopage .route-nav,
.geopage .series-block,
.geopage .geopage-regions {
    clear: both;
}

.youtube-player {
    display: block;
    position: relative;
    width: 100%;
    min-width: 200px;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    border: 0;
    background: var(--paper);
    overflow: hidden;
}

.youtube-preview {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.youtube-preview.is-replaced {
    display: none;
}

.youtube-embed.is-playing .youtube-consent-card,
.youtube-embed.is-playing .youtube-consent-veil {
    display: none;
}

.youtube-embed.is-playing iframe {
    position: relative;
    z-index: 3;
}

.youtube-consent-veil {
    position: absolute;
    inset: 0;
    background: rgba(250, 247, 239, 0.42);
    pointer-events: none;
    z-index: 1;
}

.youtube-consent-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-sizing: border-box;
    width: min(22rem, calc(100% - 1.25rem));
    max-width: calc(100% - 1.25rem);
    padding: 0.75rem 0.85rem;
    color: var(--ink);
    background: var(--paper-light);
    border: 1px solid var(--rule);
    box-shadow: 0 1px 8px var(--shadow);
}

.youtube-consent-card-title,
.youtube-consent-card-body {
    margin: 0 0 0.45rem;
    overflow-wrap: anywhere;
}

.youtube-consent-card-title {
    font-weight: 600;
}

.youtube-consent-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.youtube-consent-card-actions button,
.youtube-consent-watch {
    flex: 1 1 8.5rem;
    box-sizing: border-box;
    font: inherit;
    text-align: center;
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    min-height: 2.6rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
    cursor: pointer;
}

.youtube-consent-card-actions .consent-allow {
    color: var(--paper-light);
    background: var(--accent);
    border-color: var(--accent);
}

.youtube-consent-card-actions button:focus-visible,
.youtube-consent-watch:focus-visible,
.consent-actions button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-footer {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem 0.75rem;
    padding-top: 0.22rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid var(--rule);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    margin: 0;
}

.footer-links a {
    color: var(--muted);
    text-decoration-color: rgba(111, 113, 108, 0.45);
    text-underline-offset: 0.15em;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

.focus-legend {
    margin: 1.25rem 0 0;
    padding: 0;
}

.focus-legend-intro {
    margin: 0 0 1.25rem;
}

.focus-legend-item {
    margin: 0 0 0.95rem;
}

.focus-legend-item::after {
    content: "";
    display: block;
    clear: both;
}

.focus-legend-item .focus-chip {
    position: relative;
    float: left;
    margin: 0.08em 0.7em 0.28em 0;
    max-width: 100%;
    min-height: 2.15rem;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: normal;
}

.focus-chip-sizer {
    display: grid;
    pointer-events: none;
}

.focus-chip-sizer > span {
    grid-area: 1 / 1;
    visibility: hidden;
    white-space: nowrap;
}

.focus-chip-label {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.62rem;
    box-sizing: border-box;
    white-space: nowrap;
}

@media (min-width: 40.01rem) {
    .focus-legend-item .focus-chip {
        min-height: 1.65rem;
        padding: 0.12rem 0.55rem;
    }

    .focus-chip-label {
        padding: 0.12rem 0.55rem;
    }
}

@media (max-width: 40rem) {
    .focus-legend-item .focus-chip {
        min-height: 2.35rem;
        padding: 0.28rem 0.7rem;
    }

    .focus-chip-label {
        padding: 0.28rem 0.7rem;
    }
}

@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 640px) {
    .focus-chip-sizer > span,
    .focus-chip-label {
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .place-action::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 44px;
        margin-top: -22px;
        pointer-events: auto;
    }

    .geopage-heading .map-return {
        position: relative;
        z-index: 1;
        overflow: visible;
    }
}

.focus-chip {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.2;
    color: #1c1a16;
    background: #ddcfd8;
    border: 1px solid #856778;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    cursor: default;
    white-space: normal;
    overflow-wrap: anywhere;
}

button.focus-chip {
    cursor: pointer;
    position: static;
    float: none;
}

.region-routes {
    margin-top: 1.5rem;
}

.region-routes ul {
    margin: 0;
    padding-left: 1.2rem;
}

.site-footer p {
    margin: 0;
}

.consent-dialog {
    box-sizing: border-box;
    width: min(28rem, calc(100% - 2rem));
    max-width: 28rem;
    margin: auto;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--rule);
    background: var(--paper-light);
    color: var(--ink);
    box-shadow: 0 10px 28px var(--shadow);
}

.consent-dialog::backdrop {
    background: rgba(38, 52, 58, 0.45);
}

.consent-dialog h2 {
    margin: 0 0 0.7rem;
    font-size: 1.15rem;
}

.consent-dialog p {
    margin: 0 0 0.75rem;
    overflow-wrap: anywhere;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.consent-actions button {
    flex: 1 1 10rem;
    box-sizing: border-box;
    font: inherit;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}

.consent-allow {
    color: var(--paper-light);
    background: var(--accent);
    border: 1px solid var(--accent);
}

.consent-necessary {
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
}

.privacy {
    max-width: 40rem;
    overflow-x: hidden;
}

.all-areas {
    max-width: 40rem;
}

.all-areas h1 {
    margin: 0 0 1rem;
}

.all-areas-list {
    margin: 0;
    padding-left: 1.2rem;
}

.all-areas-list li + li {
    margin-top: 0.4rem;
}

.new-places {
    max-width: 40rem;
}

.new-places h1 {
    margin: 0 0 1rem;
}

.new-places-empty {
    margin: 0;
    color: var(--muted);
}

.new-places-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.new-places-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
}

.new-places-item:first-child {
    padding-top: 0;
}

.new-places-preview {
    flex: 0 0 160px;
    width: 160px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e0d0;
}

.new-places-preview.is-empty {
    display: block;
}

.new-places-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-places-body {
    flex: 1 1 auto;
    min-width: 0;
}

.new-places-name {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.new-places-name a {
    color: var(--heading-ink);
    text-decoration: none;
}

.new-places-name a:hover,
.new-places-name a:focus-visible {
    text-decoration: underline;
}

.new-places-excerpt {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.new-places-read-more {
    color: var(--link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.new-places-read-more:hover,
.new-places-read-more:focus-visible {
    text-decoration: underline;
}

@media (max-width: 22rem) {
    .new-places-item {
        flex-direction: column;
    }

    .new-places-preview {
        flex-basis: auto;
        width: 100%;
        max-width: 280px;
    }
}

.privacy h1 {
    margin: 0 0 1rem;
}

.privacy h2 {
    margin: 1.5rem 0 0.6rem;
}

.privacy p,
.privacy li {
    overflow-wrap: anywhere;
}

.privacy p {
    margin: 0 0 0.85rem;
}

.privacy ul {
    margin: 0 0 0.85rem;
    padding-left: 1.2rem;
}

.privacy code {
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

@media (max-width: 40rem) {
    .youtube-consent-card-actions,
    .consent-actions {
        flex-direction: column;
    }

    .youtube-consent-card-actions button,
    .youtube-consent-watch,
    .consent-actions button {
        flex: 1 1 auto;
        width: 100%;
        min-height: 2.75rem;
    }

    .consent-dialog {
        width: calc(100% - 1.5rem);
        margin: 0.75rem auto;
        padding: 1.1rem 1rem;
    }
}

@media (max-width: 22.25rem) {
    .youtube-embed,
    .youtube-player {
        aspect-ratio: auto;
        height: 200px;
    }
}

/* Share and subscribe, transferred from docs/share-approved.css. */
.share-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 6px 0 0;
    padding: 0;
    min-width: 0;
}
.share-button,
.subscribe-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 26px;
    margin: 0;
    padding: 4px 7px;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--accent, #713e3a);
    background: #f3eee6;
    border: 1px solid #d9d0c3;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.site-main a.share-button,
.site-main a.subscribe-button {
    font-weight: 400;
    text-decoration: none;
}
.site-main a.share-button { color: var(--accent, #713e3a); }
.subscribe-button,
.site-main a.subscribe-button {
    min-height: 30px;
    padding: 4px 8px;
    background: var(--accent, #713e3a);
    border-color: var(--accent, #713e3a);
    color: #faf8f3;
}
.share-button:hover { background: #e5dccb; }
.subscribe-button:hover { filter: brightness(.96); }
.share-button:focus-visible,
.subscribe-button:focus-visible {
    outline: 2px solid var(--accent, #713e3a);
    outline-offset: 2px;
}
.share-button svg,
.subscribe-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke-width: 1.5;
}
.share-tools[hidden],
.share-button[hidden],
.subscribe-button[hidden],
.share-menu[hidden] { display: none; }
.share-mobile-only { display: none; }
.share-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
    min-width: 0;
}
.share-action-row > .share-tools {
    margin: 0 0 0 auto;
    justify-content: flex-end;
}
.share-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 8px;
    border-radius: 5px;
    background: #eee7d8;
}
.share-status { margin: 4px 0 0; font-size: 12px; line-height: 1.2; }
.share-status:empty { display: none; }
.share-manual-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    font: inherit;
    font-size: 12px;
}
.geopage-heading {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}
.geopage-heading .map-return:not([hidden]) { flex: 0 0 auto; margin: 0; }
.site-main .geopage-heading h1 { flex: 1 1 0; min-width: 0; margin: 0; }
.geopage-heading > .subscribe-button { flex: 0 0 auto; margin-left: auto; }
.spot-media-actions { width: 100%; max-width: 100%; gap: 5px 8px; }
.spot-media-actions > .share-tools { max-width: 100%; justify-content: flex-end; }
.spot-media-actions > .subscribe-button { display: none; }

@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 640px) {
    .geopage {
        --geopage-video-top: 97px;
    }
    .share-desktop-only { display: none; }
    .share-mobile-only { display: inline-flex; }
    .share-tools { gap: 6px; }
    .share-button { min-height: 30px; padding: 4px 9px; }
    .place-action.share-button {
        height: auto;
        max-height: none;
        line-height: 1.2;
        min-height: 30px;
        padding: 4px 9px;
        font-size: 12px;
        border: 1px solid #d9d0c3;
        border-radius: 5px;
        background: #f3eee6;
    }
    @media not (aspect-ratio > 1/1) {
        .geopage-heading > .subscribe-button { display: none; }
        .geopage-heading .map-return:not([hidden]) { flex: 0 0 auto; }
        .site-main .geopage-heading h1 { flex: 1 1 0; }
        .spot-media-block { float: none; width: var(--geopage-fit-w, 100%); margin: 0 0 12px; }
        .spot-media-actions { flex-wrap: wrap; }
        .spot-media-actions > .subscribe-button { display: inline-flex; }
    }
}

.site-main:has(.geopage-random-spot) { padding-bottom: 8px; }
