:root {
    --ink: #17352c;
    --ink-deep: #102820;
    --forest: #23483c;
    --forest-light: #2d5a4b;
    --cream: #f5f0e4;
    --paper: #fbf8f0;
    --white: #fffdf8;
    --gold: #d6a647;
    --gold-light: #f0d698;
    --terracotta: #bf684d;
    --sage: #a9b9a4;
    --line: #d8d2c4;
    --muted: #64756e;
    --shadow: 0 22px 60px rgba(17, 46, 37, 0.12);
    --serif: "Newsreader", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--white);
    background: var(--ink-deep);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    width: min(1240px, calc(100% - 3rem));
    min-height: 82px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.wordmark em {
    display: block;
    color: var(--terracotta);
    font-family: var(--sans);
    font-size: 0.61rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 0.28rem;
    text-transform: uppercase;
}

.wordmark-mark {
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 50% 50% 44% 56%;
    place-items: center;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transform: rotate(-4deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.site-nav a {
    position: relative;
    color: #40584f;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.35rem;
    left: 0;
    height: 1px;
    background: var(--terracotta);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero {
    position: relative;
    display: grid;
    min-height: 610px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 25%, rgba(221, 180, 91, 0.12), transparent 24%),
        linear-gradient(120deg, var(--ink-deep), #1d4237 62%, #275245);
    grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
}

.hero::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.7px, transparent 0.7px);
    background-size: 28px 28px;
    content: "";
    opacity: 0.12;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 680px;
    padding: 6.8rem 3rem 8rem max(3rem, calc((100vw - 1240px) / 2));
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.eyebrow {
    display: flex;
    margin: 0 0 1rem;
    align-items: center;
    gap: 0.55rem;
    color: var(--terracotta);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow > span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
}

.hero .eyebrow,
.inverse .eyebrow {
    color: var(--gold-light);
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.1rem, 5.7vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.9;
}

.hero h1 em {
    color: var(--gold-light);
    font-style: italic;
    font-weight: 500;
}

.hero-intro {
    max-width: 53ch;
    margin: 1.7rem 0 2rem;
    color: rgba(255, 253, 248, 0.78);
    font-size: 1.02rem;
    line-height: 1.65;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: var(--ink-deep);
    background: var(--gold-light);
}

.button-primary:hover {
    background: #f7dfaa;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-visual::before {
    position: absolute;
    top: 16%;
    right: 7%;
    width: 72%;
    height: 72%;
    border: 1px solid rgba(238, 211, 151, 0.2);
    border-radius: 48% 52% 55% 45%;
    content: "";
    transform: rotate(-9deg);
}

.moon {
    position: absolute;
    top: 13%;
    right: 13%;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 70px rgba(239, 211, 150, 0.2);
}

.moon::after {
    position: absolute;
    top: -12px;
    left: -16px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #214b3e;
    content: "";
}

.route-line {
    position: absolute;
    border: 1px dashed rgba(239, 211, 150, 0.48);
    border-right: 0;
    border-bottom: 0;
    border-radius: 50% 0 0;
    transform-origin: left center;
}

.route-line-one {
    top: 30%;
    left: 9%;
    width: 66%;
    height: 35%;
    transform: rotate(16deg);
}

.route-line-two {
    top: 43%;
    left: 19%;
    width: 50%;
    height: 25%;
    border-color: rgba(191, 104, 77, 0.58);
    transform: rotate(-8deg);
}

.route-line-three {
    top: 62%;
    left: 34%;
    width: 41%;
    height: 16%;
    transform: rotate(31deg);
}

.hero-city {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 253, 248, 0.82);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.hero-city span {
    width: 8px;
    height: 8px;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    background: var(--forest);
    box-shadow: 0 0 0 5px rgba(239, 211, 150, 0.1);
}

.city-london { top: 35%; left: 10%; }
.city-paris { top: 52%; left: 25%; }
.city-berlin { top: 32%; left: 56%; }
.city-vienna { top: 57%; left: 66%; }
.city-rome { top: 77%; left: 73%; }

.hero-caption {
    position: absolute;
    right: 12%;
    bottom: 7.5rem;
    margin: 0;
    color: rgba(255, 253, 248, 0.54);
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    text-align: right;
}

.hero-stats {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: max(3rem, calc((100vw - 1240px) / 2));
    display: flex;
    min-width: 450px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-stats > div {
    display: flex;
    min-width: 145px;
    padding: 1.25rem 1.8rem 1.35rem 0;
    flex-direction: column;
}

.hero-stats > div + div {
    padding-left: 1.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-stats strong {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.hero-stats span {
    margin-top: 0.35rem;
    color: rgba(255, 253, 248, 0.58);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.explorer-section,
.travel-notes {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 6rem 0;
}

.section-heading {
    display: grid;
    margin-bottom: 2.25rem;
    align-items: end;
    gap: 2rem;
    grid-template-columns: 1fr minmax(260px, 410px);
}

.section-heading h2,
.travel-notes h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.section-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

.filter-bar {
    display: grid;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(25, 53, 44, 0.06);
    gap: 0;
    grid-template-columns: 1.45fr repeat(3, minmax(150px, 0.75fr)) auto;
}

.search-field,
.select-field {
    position: relative;
    min-width: 0;
    padding: 0 1rem;
    border-right: 1px solid var(--line);
}

.search-field label,
.select-field label {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-field input,
.select-field select,
.results-toolbar select {
    width: 100%;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.83rem;
    font-weight: 600;
}

.search-field input {
    padding-left: 1.6rem;
}

.search-field input::placeholder {
    color: #8b9893;
    opacity: 1;
}

.search-icon {
    position: absolute;
    bottom: 0.7rem;
    left: 1rem;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
}

.search-icon::after {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 5px;
    height: 1.5px;
    background: var(--ink);
    content: "";
    transform: rotate(45deg);
}

.clear-button {
    padding: 0 1rem;
    border: 0;
    color: var(--terracotta);
    background: transparent;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.clear-button:disabled {
    color: #a7afa9;
    cursor: default;
}

.view-switcher {
    display: flex;
    margin: 1rem 0;
    justify-content: flex-end;
    gap: 0.35rem;
}

.noscript-message {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--terracotta);
    color: var(--muted);
    background: var(--cream);
    font-size: 0.82rem;
}

.view-button {
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
}

.view-button.is-active {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}

.explorer-grid {
    display: grid;
    min-height: 680px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
}

.explorer-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

.explorer-grid[data-view="list"] .map-panel {
    display: none;
}

.explorer-grid[data-view="list"] .route-list {
    display: grid;
    padding: 1rem;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explorer-grid[data-view="map"] {
    grid-template-columns: 1fr;
}

.explorer-grid[data-view="map"] .route-panel {
    display: none;
}

.route-panel {
    min-width: 0;
    border-right: 1px solid var(--line);
    background: var(--white);
}

.results-toolbar {
    display: flex;
    min-height: 54px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
}

.results-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.results-toolbar label {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.7rem;
}

.results-toolbar select {
    width: auto;
    margin-left: 0.35rem;
    font-size: 0.72rem;
}

.route-list {
    max-height: 626px;
    overflow-y: auto;
    scrollbar-color: var(--sage) transparent;
    scrollbar-width: thin;
}

.route-card {
    position: relative;
    padding: 1.3rem 1.2rem 1.25rem 1.45rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.route-card::before {
    position: absolute;
    top: 1.45rem;
    bottom: 1.45rem;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--route-color);
    content: "";
}

.route-card:hover,
.route-card.is-active {
    background: #f8f5eb;
    box-shadow: inset 3px 0 var(--route-color);
}

.route-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.route-provider {
    margin: 0 0 0.45rem;
    color: var(--terracotta);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.route-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.route-frequency {
    flex: 0 0 auto;
    padding: 0.3rem 0.52rem;
    border: 1px solid #d6d6c8;
    border-radius: 999px;
    color: #576a63;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
}

.route-stops {
    display: flex;
    margin: 0.85rem 0 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.73rem;
}

.route-stops span:not(:last-child)::after {
    margin-left: 0.35rem;
    color: var(--gold);
    content: "→";
}

.route-countries {
    margin: 0.55rem 0 0;
    color: #75827d;
    font-size: 0.68rem;
}

.route-actions {
    display: flex;
    margin-top: 1rem;
    align-items: center;
    gap: 0.8rem;
}

.route-link,
.map-focus,
.text-button {
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.route-link {
    display: inline-flex;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border-radius: 3px;
    align-items: center;
    color: var(--white);
    background: var(--ink);
}

.route-link:hover {
    background: var(--forest-light);
}

.map-focus,
.text-button {
    padding: 0.35rem 0;
    border-bottom: 1px solid currentColor;
}

.empty-state {
    padding: 5rem 2rem;
    text-align: center;
}

.empty-state h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.7rem;
}

.empty-state p {
    color: var(--muted);
}

.map-panel {
    position: relative;
    min-width: 0;
    min-height: 680px;
    background: #dce2d8;
}

#map {
    position: absolute;
    inset: 0;
}

.leaflet-container {
    font-family: var(--sans);
    background: #dce2d8;
}

.leaflet-popup-content-wrapper {
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(18, 47, 37, 0.22);
}

.leaflet-popup-content {
    min-width: 200px;
    margin: 1rem;
}

.map-popup-provider {
    margin: 0 0 0.25rem;
    color: var(--terracotta);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-popup-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
}

.map-popup-detail {
    margin: 0.45rem 0 0.8rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.map-popup-link {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
}

.map-key,
.map-reset {
    position: absolute;
    z-index: 500;
    bottom: 1rem;
    min-height: 36px;
    border: 1px solid rgba(23, 53, 44, 0.13);
    border-radius: 3px;
    box-shadow: 0 5px 18px rgba(23, 53, 44, 0.12);
    font-size: 0.67rem;
    font-weight: 700;
}

.map-key {
    left: 1rem;
    display: flex;
    padding: 0.5rem 0.7rem;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 253, 248, 0.92);
    pointer-events: none;
}

.map-key span {
    width: 18px;
    height: 3px;
    border-radius: 4px;
    background: var(--terracotta);
}

.map-reset {
    right: 1rem;
    padding: 0.5rem 0.75rem;
    color: var(--white);
    background: var(--ink);
    cursor: pointer;
}

.how-section {
    padding: 6rem max(3rem, calc((100vw - 1240px) / 2));
    color: var(--white);
    background: var(--ink-deep);
}

.section-heading.inverse > p {
    color: rgba(255, 253, 248, 0.62);
}

.steps {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    list-style: none;
    grid-template-columns: repeat(3, 1fr);
}

.steps li {
    position: relative;
    min-height: 245px;
    padding: 2rem 2.5rem 1rem 0;
}

.steps li + li {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.steps span {
    color: var(--gold-light);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.steps h3 {
    margin: 4rem 0 0.5rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
}

.steps p {
    max-width: 32ch;
    margin: 0;
    color: rgba(255, 253, 248, 0.6);
    font-size: 0.85rem;
    line-height: 1.65;
}

.travel-notes {
    display: grid;
    gap: 5rem;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.notes-grid {
    display: grid;
    gap: 0;
}

.notes-grid article {
    display: grid;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    gap: 1rem;
    grid-template-columns: 40px 1fr;
}

.notes-grid article:last-child {
    border-bottom: 1px solid var(--line);
}

.notes-grid article > span {
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    place-items: center;
    color: var(--terracotta);
}

.notes-grid h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
}

.notes-grid p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.65;
}

.site-footer {
    display: grid;
    padding: 4rem max(3rem, calc((100vw - 1240px) / 2)) 2rem;
    color: rgba(255, 253, 248, 0.72);
    background: #0b211a;
    gap: 2rem 4rem;
    grid-template-columns: 1fr auto;
}

.wordmark-light {
    color: var(--white);
}

.footer-brand p {
    max-width: 42ch;
    margin: 1rem 0 0;
    color: rgba(255, 253, 248, 0.48);
    font-size: 0.78rem;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 253, 248, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-small,
.footer-copy {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 253, 248, 0.4);
    font-size: 0.67rem;
}

.footer-copy {
    text-align: right;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1040px) {
    .hero {
        grid-template-columns: 1fr 0.8fr;
    }

    .hero-copy {
        padding-left: 3rem;
    }

    .hero-stats {
        left: 3rem;
    }

    .filter-bar {
        gap: 0.75rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .search-field,
    .select-field {
        padding: 0.35rem 0.6rem 0.5rem;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .search-icon {
        bottom: 1.15rem;
        left: 0.65rem;
    }

    .clear-button {
        min-height: 42px;
        border: 1px solid var(--line);
        border-radius: 4px;
        grid-column: span 2;
    }

    .explorer-grid {
        grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
    }
}

@media (max-width: 780px) {
    .site-header {
        width: min(100% - 2rem, 1240px);
        min-height: 70px;
    }

    .site-nav {
        display: none;
    }

    .hero {
        display: block;
        min-height: 720px;
    }

    .hero-copy {
        padding: 4rem 1.5rem 2rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.8rem);
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-visual::before {
        top: 2%;
        right: 7%;
        height: 95%;
    }

    .moon {
        top: 5%;
        right: 14%;
    }

    .city-london { top: 32%; left: 9%; }
    .city-paris { top: 53%; left: 20%; }
    .city-berlin { top: 28%; left: 55%; }
    .city-vienna { top: 52%; left: 61%; }
    .city-rome { top: 76%; left: 70%; }

    .hero-caption {
        display: none;
    }

    .hero-stats {
        right: 1.5rem;
        bottom: 0;
        left: 1.5rem;
        min-width: 0;
    }

    .hero-stats > div {
        min-width: 0;
        padding: 1rem 0.75rem 1rem 0;
        flex: 1;
    }

    .hero-stats > div + div {
        padding-left: 0.75rem;
    }

    .hero-stats strong {
        font-size: 1.6rem;
    }

    .explorer-section,
    .travel-notes {
        width: min(100% - 2rem, 1240px);
        padding: 4.5rem 0;
    }

    .section-heading,
    .travel-notes {
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .clear-button {
        grid-column: auto;
    }

    .view-switcher {
        justify-content: stretch;
    }

    .view-button {
        flex: 1;
    }

    .view-button[data-view="split"] {
        display: none;
    }

    .explorer-grid,
    .explorer-grid[data-view="split"] {
        grid-template-columns: 1fr;
    }

    .explorer-grid[data-view="split"] .map-panel,
    .explorer-grid[data-view="list"] .map-panel {
        display: none;
    }

    .explorer-grid[data-view="split"] .route-panel {
        display: block;
    }

    .explorer-grid[data-view="list"] .route-list {
        display: block;
        padding: 0;
    }

    .route-panel {
        border-right: 0;
    }

    .route-list {
        max-height: none;
    }

    .map-panel,
    .explorer-grid {
        min-height: 620px;
    }

    .how-section {
        padding: 4.5rem 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .steps li,
    .steps li + li {
        min-height: 0;
        padding: 1.5rem 0 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 0;
    }

    .steps h3 {
        margin-top: 1.5rem;
    }

    .site-footer {
        padding: 3.5rem 1rem 1.5rem;
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-copy {
        padding-top: 0;
        border-top: 0;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.error-page {
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 2rem;
    place-items: center;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 20%, rgba(214, 166, 71, 0.14), transparent 24%),
        var(--ink-deep);
}

.error-card {
    width: min(620px, 100%);
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 500;
    line-height: 0.8;
}

.error-card h1 {
    margin: 1.5rem 0 0.8rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 500;
}

.error-card > p:not(.error-code) {
    max-width: 46ch;
    margin: 0 auto 2rem;
    color: rgba(255, 253, 248, 0.64);
}
