.header [data-places-trigger] {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--type-family-display), monospace;
    font-size: var(--type-size-nav-ul);
    font-weight: var(--type-weight-regular);
    line-height: 1;
}

.header [data-places-trigger]:hover {
    color: var(--color-text-accent);
}

.places-overlay {
    /* Half-width on desktop, a stable tablet width, and full-width on phones. */
    --places-width: min(100vw, max(600px, 50vw));

    position: fixed;
    inset: 0;
    width: var(--places-width);
    height: 100%;
    height: 100dvh;
    max-width: 100%;
    max-height: none;
    margin: 0 0 0 auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: var(--color-bg-canvas);
    color: var(--color-text-primary);
}

.places-overlay::backdrop {
    background: color-mix(in srgb, var(--color-text-neutral) 25%, transparent);
}

.places-overlay:focus-visible {
    outline: none;
}

.places-overlay__close {
    position: fixed;
    z-index: 1;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 7px;
    border: 0;
    background: var(--color-bg-canvas);
}

.places-overlay__close img {
    width: 30px;
    height: 30px;
}

.places-overlay__content {
    width: 1440px;
    padding: max(var(--space-6xl), calc(60px / var(--places-scale, 1))) 85px var(--space-6xl);
    zoom: var(--places-scale, 1);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.places-primary {
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    background: var(--color-bg-canvas);
}

.places-overlay__heading {
    margin-bottom: var(--space-sm);
    font-size: var(--type-size-section-title);
    line-height: 60px;
    text-transform: uppercase;
    text-wrap: initial;
}

.places-overlay__heading::after {
    width: calc(100% + 85px);
}

.places-overlay__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 390px));
    gap: var(--space-xl);
}

.places-overlay__grid--compact {
    row-gap: var(--space-sm);
}

.destination-stamp {
    position: relative;
    display: block;
    aspect-ratio: 390 / 270;
    container-type: inline-size;
    color: var(--color-text-primary);
    text-decoration: none;
    isolation: isolate;
}

.destination-stamp::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--color-bg-surface), var(--color-bg-surface)) padding-box,
        url("../../assets/components/destinations/stamp-dot-top.svg") left top / 6px 6px repeat-x border-box,
        url("../../assets/components/destinations/stamp-dot-top.svg") left bottom / 6px 6px repeat-x border-box,
        url("../../assets/components/destinations/stamp-dot-top.svg") left top / 6px 6px repeat-y border-box,
        url("../../assets/components/destinations/stamp-dot-top.svg") right top / 6px 6px repeat-y border-box;
    filter: drop-shadow(2px 4px 0 var(--color-text-secondary));
    content: "";
}

a.destination-stamp:hover {
    color: var(--color-text-accent);
}

.destination-stamp__name,
.destination-stamp__caption {
    position: absolute;
    font-family: var(--type-family-display), monospace;
    font-weight: var(--type-weight-regular);
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
}

.destination-stamp__name {
    top: 4.444444%;
    left: 3.076923%;
    font-size: 9.230769cqw;
}

.destination-stamp__art {
    position: absolute;
    top: 20%;
    left: 3.846154%;
    width: 92.307692%;
    height: 66.666667%;
}

.destination-stamp__caption {
    top: 88.148148%;
    left: 0;
    width: 100%;
    color: var(--color-text-secondary);
    font-size: 4.615385cqw;
    text-align: center;
}

@media (max-width: 900px) {
    .header [data-places-trigger] {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        font-size: var(--type-size-body);
    }

}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    padding-right: var(--space-6xl);
    padding-bottom: var(--space-lg);
    padding-left: var(--space-6xl);
    background-color: var(--color-bg-canvas);
}

.logo {
    display: block;
    width: min(29.0748898678%, 528px);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    list-style-type: none;
}

.nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .header {
        --mobile-logo-width: min(62vw, 264px);
        --mobile-menu-size: min(7.0454545vw, 30px);

        position: relative;
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .logo {
        /* Keep the artwork readable independently of the desktop map ratio. */
        flex: none;
        width: var(--mobile-logo-width);
    }

    .nav-toggle {
        position: relative;
        display: grid;
        place-items: center;
        flex: 0 0 max(44px, var(--mobile-menu-size));
        width: max(44px, var(--mobile-menu-size));
        height: max(44px, var(--mobile-menu-size));
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
    }

    .nav-toggle img {
        position: relative;
        width: var(--mobile-menu-size);
        height: var(--mobile-menu-size);
    }

    .nav-toggle:hover img {
        opacity: 0.75;
    }

    .nav-toggle:focus-visible {
        outline-offset: 4px;
    }

    .nav {
        position: absolute;
        z-index: 10;
        inset: 100% var(--space-lg) auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: var(--space-sm) var(--space-lg);
        background-color: var(--color-bg-surface);
        box-shadow: 0 12px 24px rgb(44 47 50 / 12%);
    }

    .nav-toggle[aria-expanded="true"] + .nav {
        display: flex;
    }

    .nav .site-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-size: var(--type-size-body);
    }
}

@media (max-width: 444px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 0 0 auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav .site-nav {
        display: none;
    }

    .nav .site-nav[data-mobile-primary-nav] {
        display: block;
    }
}
