#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

body {
    overflow: hidden;
}

#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    background-color: rgba(8, 10, 18, 0.94);
    z-index: 3;
    color: white;
    padding-bottom: 25px;
    transform: translateX(calc(-100% - 18px));
    transition: transform 0.24s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 18px 0 36px rgba(0, 0, 0, 0.24);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

body.sidebar-open #sidebar {
    transform: translateX(0);
}

#sidebar-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 2;
}

#places-pane {
    display: none;
}

body.sidebar-open #sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu-toggle {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(8, 10, 18, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
}

#mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

#mobile-sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
}

.hide-desktop {
    display: block;
}

.hide-mobile {
    display: block;
}

.cell {
    float: none;
    width: 100%;
    margin-bottom: 10px;
}

.cell .caption {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-variant: small-caps;
}

.cell .number {
    font-size: 1.3rem;
}

.cell--michelin .caption {
    color: rgba(255,255,255,0.7);
}

.cell--michelin .number {
    color: #ffbec8;
}

.cell--mountains .caption {
    color: rgba(255,255,255,0.78);
}

.cell--mountains .number {
    color: rgba(255,255,255,0.96);
}

.map-timeline[hidden] {
    display: none;
}

.map-timeline {
    --timeline-progress: 100%;
    --timeline-window-start: 98%;
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    backdrop-filter: blur(20px) saturate(1.25);
    background:
        linear-gradient(180deg, rgba(22, 25, 35, 0.93), rgba(5, 7, 12, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    bottom: 0;
    box-sizing: border-box;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.36);
    color: white;
    left: 0;
    min-height: 122px;
    padding: 13px 24px 10px;
    position: fixed;
    right: 0;
    z-index: 6;
}

.map-timeline::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(143, 174, 255, 0.56),
        transparent);
    content: '';
    height: 1px;
    left: 12%;
    opacity: 0.55;
    position: absolute;
    right: 12%;
    top: -1px;
}

.map-timeline__chrome {
    align-items: center;
    display: flex;
    gap: 12px;
}

.map-timeline__title {
    align-items: baseline;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.map-timeline__eyebrow {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.7rem;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#timeline-date {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.map-timeline__play:focus-visible {
    outline: 2px solid rgba(174, 195, 255, 0.8);
    outline-offset: 3px;
}

.map-timeline__play {
    align-items: center;
    appearance: none;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.19),
        rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    color: white;
    cursor: pointer;
    display: flex;
    flex: 0 0 32px;
    font-size: 0.72rem;
    height: 32px;
    justify-content: center;
    padding: 0 0 0 2px;
    width: 32px;
}

.map-timeline__play.is-playing {
    font-size: 0.7rem;
    padding-left: 0;
}

.map-timeline__window {
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    font-size: 0.72rem;
    gap: 7px;
    margin-left: auto;
    white-space: nowrap;
}

.map-timeline__window select {
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    margin: 0;
    padding: 4px 22px 4px 7px;
    width: auto;
}

.map-timeline__track {
    cursor: ew-resize;
    height: 58px;
    margin-top: 5px;
    position: relative;
    touch-action: pan-y;
}

#timeline-scrubber {
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    height: 24px;
    left: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 2;
}

#timeline-scrubber::-webkit-slider-runnable-track {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.12) 0,
        rgba(255, 255, 255, 0.12) var(--timeline-window-start),
        rgba(163, 187, 255, 0.96) var(--timeline-window-start),
        rgba(163, 187, 255, 0.96) var(--timeline-progress),
        rgba(255, 255, 255, 0.16) var(--timeline-progress),
        rgba(255, 255, 255, 0.16) 100%);
    border-radius: 999px;
    height: 4px;
}

#timeline-scrubber::-webkit-slider-thumb {
    appearance: none;
    background: white;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(163, 187, 255, 0.16),
        0 2px 9px rgba(0, 0, 0, 0.45);
    height: 14px;
    margin-top: -5px;
    width: 14px;
}

#timeline-scrubber::-moz-range-track {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.12) 0,
        rgba(255, 255, 255, 0.12) var(--timeline-window-start),
        rgba(163, 187, 255, 0.96) var(--timeline-window-start),
        rgba(163, 187, 255, 0.96) var(--timeline-progress),
        rgba(255, 255, 255, 0.16) var(--timeline-progress),
        rgba(255, 255, 255, 0.16) 100%);
    border: 0;
    border-radius: 999px;
    height: 4px;
}

#timeline-scrubber::-moz-range-progress {
    background: transparent;
    border-radius: 999px;
    height: 4px;
}

#timeline-scrubber::-moz-range-thumb {
    background: white;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(163, 187, 255, 0.16),
        0 2px 9px rgba(0, 0, 0, 0.45);
    height: 14px;
    width: 14px;
}

.map-timeline__years {
    bottom: 0;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 25px;
}

.map-timeline__year {
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
}

.map-timeline__year::before {
    background: rgba(255, 255, 255, 0.2);
    content: '';
    height: 7px;
    left: 50%;
    position: absolute;
    top: -10px;
    width: 1px;
}

.map-timeline__year:first-child {
    transform: none;
}

.map-timeline__year:first-child::before {
    left: 0;
}

body.timeline-enabled #sidebar {
    bottom: 122px;
}

body.timeline-enabled .mapboxgl-ctrl-bottom-left,
body.timeline-enabled .mapboxgl-ctrl-bottom-right {
    bottom: 122px;
}

@media only screen and (max-width: 767px) {
    .map-timeline {
        min-height: 142px;
        padding: 12px 16px 9px;
    }

    .map-timeline__chrome {
        align-items: center;
        display: grid;
        grid-template-columns: auto 1fr;
        row-gap: 7px;
    }

    .map-timeline__window {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-left: 0;
    }

    .map-timeline__year:not(.is-mobile-label) {
        display: none;
    }

    body.timeline-enabled #sidebar {
        bottom: 142px;
    }

    body.timeline-enabled .mapboxgl-ctrl-bottom-left,
    body.timeline-enabled .mapboxgl-ctrl-bottom-right {
        bottom: 142px;
    }
}

.line-filters {
    display: block;
    margin-top: 4px;
    margin-bottom: 18px;
}

.line-filters__title {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-variant: small-caps;
    margin-bottom: 10px;
}

.line-filter {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    user-select: none;
    position: relative;
}

.line-filter input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.line-filter__label {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.line-filter__switch {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease,
        opacity 0.2s ease;
    opacity: 0.75;
    position: relative;
}

.line-filter__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#airport-lines-toggle:checked + .line-filter__switch {
    background-color: rgba(41, 182, 246, 0.2);
    border-color: rgba(41, 182, 246, 0.65);
    opacity: 1;
}

#rail-lines-toggle:checked + .line-filter__switch {
    background-color: rgba(88, 211, 167, 0.2);
    border-color: rgba(88, 211, 167, 0.65);
    opacity: 1;
}

#rail-lines-toggle:checked + .line-filter__switch::after {
    transform: translateX(18px);
    background-color: rgba(88, 211, 167, 0.98);
}

#airport-lines-toggle:checked + .line-filter__switch::after {
    transform: translateX(18px);
    background-color: rgba(41, 182, 246, 0.98);
}

#tesla-lines-toggle:checked + .line-filter__switch {
    background-color: rgba(255, 82, 82, 0.2);
    border-color: rgba(255, 82, 82, 0.65);
    opacity: 1;
}

#tesla-lines-toggle:checked + .line-filter__switch::after {
    transform: translateX(18px);
    background-color: rgba(255, 82, 82, 0.98);
}

.line-filter input:not(:checked) + .line-filter__switch + .line-filter__label {
    color: rgba(255,255,255,0.45);
}

.line-filter input:focus-visible + .line-filter__switch {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.map-auth {
    background: rgba(8, 10, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
    font-size: 0.76rem;
    margin: auto 0 0;
    min-height: 46px;
    padding: 10px 30px;
    position: sticky;
    bottom: -25px;
    z-index: 1;
}

.map-auth[hidden] {
    display: none;
}

.map-auth__login,
.map-auth__logout {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 4px 0;
    text-decoration: none;
}

.map-auth__login:hover,
.map-auth__login:focus-visible,
.map-auth__logout:hover,
.map-auth__logout:focus-visible {
    color: rgba(255, 255, 255, 0.8);
    outline: none;
}

.map-auth__login:disabled,
.map-auth__logout:disabled {
    cursor: wait;
    opacity: 0.5;
}

.map-auth__private {
    align-items: center;
    display: flex;
    gap: 6px;
}

.map-auth__private[hidden],
.map-auth__login[hidden] {
    display: none;
}

.map-auth__dot {
    background: #63d69f;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99, 214, 159, 0.42);
    display: inline-block;
    height: 6px;
    width: 6px;
}

.map-auth__logout {
    color: rgba(255, 255, 255, 0.32);
    margin-left: 4px;
}

.map-auth__status {
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.3;
    min-height: 1em;
}

/* 760px centered search + two 300px sidebar widths + 16px clearance per side. */
@media only screen and (min-width: 1392px) {
    body {
        overflow: hidden;
    }

    #mobile-menu-toggle,
    #sidebar-backdrop,
    .hide-desktop {
        display: none;
    }

    .stats-focus-toggle {
        cursor: pointer;
        border-radius: 4px;
        box-sizing: border-box;
        width: 100%;
        padding: 4px 0;
        position: relative;
        transition: opacity 0.2s ease;
    }

    .stats-focus-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -8px;
        right: -8px;
        border-radius: 4px;
        border: 1px solid transparent;
        background-color: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        pointer-events: none;
    }

    .cell--michelin {
        --focus-hover-color: rgba(187, 38, 55, 0.12);
        --focus-active-color: rgba(187, 38, 55, 0.2);
        --focus-border-color: rgba(255, 190, 200, 0.35);
    }

    .cell--mountains {
        --focus-hover-color: rgba(255, 255, 255, 0.1);
        --focus-active-color: rgba(255, 255, 255, 0.14);
        --focus-border-color: rgba(255, 255, 255, 0.32);
    }

    .stats-focus-toggle:hover::before {
        background-color: var(--focus-hover-color);
    }

    .stats-focus-toggle.is-active::before {
        background-color: var(--focus-active-color);
        border-color: var(--focus-border-color);
    }

    .stats-focus-toggle:focus-visible::before {
        border-color: rgba(255, 255, 255, 0.55);
    }

    #sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 0;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        padding: 0;
        background-color: rgba(0, 0, 0, 0.7);
        transform: none;
        transition: none;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 16px 0 36px rgba(0, 0, 0, 0.18);
        padding-top: 0;
    }

    .map-auth {
        background: rgba(0, 0, 0, 0.94);
        bottom: 0;
    }

    #places-pane {
        background-color: rgba(11, 13, 20, 0.92);
        border-right: 1px solid rgba(255, 255, 255, 0.16);
        bottom: 0;
        box-shadow: 16px 0 36px rgba(0, 0, 0, 0.2);
        color: white;
        display: flex;
        flex-direction: column;
        left: 300px;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: 0;
        transform: translateX(-100%);
        transition: opacity 0.2s ease, transform 0.24s ease;
        width: min(340px, calc(100vw - 500px));
        z-index: 2;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    #places-pane.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .places-pane__header {
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        display: flex;
        flex: 0 0 auto;
        justify-content: space-between;
        padding: 34px 22px 18px;
    }

    .places-pane__eyebrow {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.76rem;
        font-variant: small-caps;
        letter-spacing: 0.08em;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    #places-pane-title {
        font-size: 1.45rem;
        font-weight: 500;
        margin: 0 0 4px;
    }

    #places-pane-summary {
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.82rem;
    }

    #places-pane-close {
        align-items: center;
        background: rgba(255, 255, 255, 0.08);
        border: 0;
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        display: flex;
        font-size: 1.4rem;
        height: 32px;
        justify-content: center;
        line-height: 1;
        margin-left: 14px;
        padding: 0 0 2px;
        width: 32px;
    }

    #places-pane-close:hover,
    #places-pane-close:focus-visible {
        background: rgba(255, 255, 255, 0.16);
        color: white;
        outline: none;
    }

    #places-pane-list {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .places-pane__empty {
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 24px 22px;
    }

    .place-list-item {
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        color: white;
        cursor: pointer;
        display: block;
        padding: 14px 22px 15px;
        text-align: left;
        transition: background-color 0.15s ease;
        width: 100%;
    }

    .place-list-item:hover,
    .place-list-item:focus-visible {
        background-color: rgba(255, 255, 255, 0.09);
        outline: none;
    }

    .place-list-item__name {
        font-size: 0.98rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .place-list-item__details {
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .place-list-item--michelin .place-list-item__details {
        color: #ffbec8;
    }

    .hide-mobile {
        display: block;
    }

    .cell {
        float: none;
        width: 100%;
    }

    .about {
        display: block;
        font-size: 0.9rem;
        margin: 25px 30px 30px 30px;
        color: rgba(255,255,255,0.75);
    }
    .about a {
        color: inherit;
        text-decoration: underline;
    }

    select {
        margin-top: 0;
    }
}

h1 {
    font-size: 1.7rem;
    margin-top: 54px;
    margin-right: 72px;
}

h1 a,
h1 a:hover,
h1 a:active {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 200;
}

.stats {
    margin-top: 15px;
    margin-bottom: 15px;
    display: block;
    width: calc(100% - 60px);
    box-sizing: border-box;
}
.pad {
    margin-left: 30px;
    margin-right: 30px;
}

/* The result browser floats above the map, independently of its navigation. */
.place-search {
    position: absolute; z-index: 7; top: 24px;
    left: 50%; transform: translateX(-50%);
    width: min(760px, calc(100vw - 104px)); color: #f5f6fa;
}
.place-search [hidden] { display: none !important; }
.place-search__field { position: relative; }
.place-search__icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    width: 23px; height: 23px; color: #b7c7dd; pointer-events: none; z-index: 1;
}
.place-search__icon svg { display: block; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#place-search-input {
    appearance: none; width: 100%; height: 62px; box-sizing: border-box;
    margin: 0; padding: 0 54px 0 58px; border: 1px solid #ffffff32; border-radius: 18px;
    background: rgba(23, 28, 39, .64); color: #fff; font: inherit; font-size: 17px;
    box-shadow: 0 10px 32px #0006, inset 0 1px #ffffff0a;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
#place-search-input::placeholder { color: #abb3c2; }
#place-search-input:focus { border-color: #a8c7f5; outline: none; box-shadow: 0 0 0 3px #a8c7f51a, 0 12px 36px #0007; }
#place-search-input::-webkit-search-cancel-button { display: none; }
#place-search-clear, #place-search-close {
    display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
    color: #b9c1cf; background: #ffffff09; font-size: 23px; line-height: 1; cursor: pointer;
}
#place-search-clear { position: absolute; top: 15px; right: 14px; }
#place-search-clear:hover, #place-search-close:hover { background: #ffffff16; color: white; }
.place-search__categories { display: flex; justify-content: safe center; gap: 6px; margin-top: 8px; padding: 2px 1px; overflow-x: auto; scrollbar-width: none; }
.place-search__categories::-webkit-scrollbar { display: none; }
.place-search__category {
    display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: 6px; padding: 6px 10px;
    border: 1px solid #ffffff30; border-radius: 999px; background: #191f2df5;
    color: #dde4ef; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    box-shadow: 0 3px 12px #0005;
}
.place-search__category:hover, .place-search__category[aria-pressed="true"] { background: #293b55; border-color: #a8c7f580; }
#place-search-michelin { background: #201b25f5; border-color: #ffb3be40; color: #ffb3be; }
#place-search-michelin:hover, #place-search-michelin[aria-pressed="true"] { background: #532331; border-color: #ffb3be80; }
.place-search__category-emoji { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 19px; font-size: 16px; }
.place-search__category .place-card__michelin-star { width: 17px; height: 19px; }
.place-search__panel {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 100%; box-sizing: border-box;
    border: 1px solid #ffffff26; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, rgba(32, 42, 59, .64), rgba(17, 25, 35, .52)); box-shadow: 0 20px 70px #0007, inset 0 1px #ffffff0b;
    backdrop-filter: blur(24px) saturate(1.35); -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
.place-search__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #ffffff12; }
.place-search__header h2 { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 0 0 3px; color: #f4f6fb; }
#place-search-status { color: #8f9bad; font-size: 12px; }
.place-search__columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); height: clamp(180px, calc(54svh - 225px), 420px); }
.place-search__results { overflow-y: auto; min-height: 0; padding: 8px; overscroll-behavior: contain; scrollbar-width: thin; }
.place-search__result {
    --result-accent: #a7c8ff; width: 100%; display: flex; align-items: center; gap: 11px;
    padding: 13px 10px; margin: 0; border: 1px solid transparent; border-radius: 11px;
    background: transparent; color: #eef1f7; text-align: left; cursor: pointer; font: inherit;
}
.place-search__result--dining { --result-accent: #efb690; }
.place-search__result--outdoors, .place-search__result--mountain { --result-accent: #a7d4b5; }
.place-search__result--culture { --result-accent: #c7afe8; }
.place-search__result[aria-selected="true"] { background: #ffffff0b; border-color: #ffffff15; }
.place-search__emoji { display: grid; place-items: center; font-size: 23px; flex: 0 0 42px; height: 42px; border-radius: 12px; background: #ffffff07; }
.place-search__text { min-width: 0; flex: 1; }
.place-search__name { display: block; font-size: 14px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.place-search__meta { display: block; font-size: 11px; line-height: 1.5; margin-top: 4px; color: #8f9bad; }
.place-search__michelin { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #ffb3be; font-size: 11px; line-height: 1.4; }
.place-search__stars { display: inline-flex; align-items: center; gap: 1px; }
.place-search__stars .place-card__michelin-star { width: 15px; height: 17px; }
.place-search__chevron { font-size: 22px; color: #647186; }
.place-search__result[aria-selected="true"] .place-search__chevron { color: var(--result-accent); }
#place-search-preview { min-width: 0; overflow-y: auto; border-left: 1px solid #ffffff13; background: #10182326; overscroll-behavior: contain; scrollbar-width: thin; }
#place-search-preview .place-card { max-height: none; overflow: visible; }
#place-search-preview .place-card__hero { height: 126px; background: radial-gradient(ellipse at 75% 20%, color-mix(in srgb, var(--hero-color) 55%, transparent), #24293430 95%); }
#place-search-preview .place-card__hero-emoji { font-size: 60px; top: 12px; }
#place-search-preview .place-card__name { font-size: 23px; }
#place-search-empty { padding: 24px 16px; color: #a9b3c3; font-size: 14px; line-height: 1.6; margin: 0; }
.place-search__panel.is-empty .place-search__columns { display: block; height: auto; }
#place-search-more { width: 100%; border: 0; border-radius: 8px; background: #ffffff08; color: #c5d8f6; padding: 13px; font: inherit; font-size: 12px; cursor: pointer; }
.place-search button:focus-visible { outline: 2px solid #b1d0ff; outline-offset: -2px; }
body.timeline-enabled .place-search__columns { height: clamp(140px, calc(54svh - 290px), 360px); }
@media (max-width: 1391px) {
    .place-search { width: min(760px, calc(100vw - 152px)); }
    body.sidebar-open .place-search { visibility: hidden; }
}
@media (max-width: 767px) {
    .place-search { top: 14px; left: 76px; right: 58px; width: auto; transform: none; }
    #place-search-input { height: 52px; padding: 0 42px 0 43px; font-size: 16px; border-radius: 15px; }
    .place-search__icon { width: 19px; height: 19px; left: 15px; }
    #place-search-clear { right: 8px; top: 10px; }
    .place-search__categories { position: fixed; top: 74px; left: 12px; right: 12px; margin-top: 0; justify-content: flex-start; }
    .place-search__panel { position: fixed; top: 120px; left: 12px; right: 12px; width: auto; max-width: none; }
    .place-search__columns { height: clamp(180px, calc(58svh - 192px), 420px); }
}
@media (max-width: 559px) {
    .place-search__columns { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(90px, 30%) minmax(0, 1fr); }
    #place-search-preview { border-left: 0; border-top: 1px solid #ffffff13; }
    #place-search-preview .place-card__hero { height: 88px; }
    #place-search-preview .place-card__hero-emoji { font-size: 54px; top: 10px; }
    .place-search__result { padding: 9px 10px; }
    .place-search__emoji { flex-basis: 34px; height: 34px; font-size: 21px; }
    .place-search__header { padding: 13px 16px; }
}
@media (min-width: 560px) and (max-width: 1391px) and (max-height: 500px) {
    .place-search { top: 12px; }
    #place-search-input { height: 48px; }
    #place-search-clear { top: 8px; }
    .place-search__categories { position: static; margin-top: 6px; }
    .place-search__panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: 100%; }
    .place-search__header { padding: 8px 16px; }
    .place-search__header > div { display: flex; align-items: baseline; gap: 10px; }
    .place-search__header h2 { margin: 0; }
    .place-search__columns { height: clamp(88px, calc(58svh - 156px), 150px); }
    body.timeline-enabled .place-search__columns { height: 88px; }
    #place-search-preview .place-card { position: relative; }
    #place-search-preview .place-card__hero { position: absolute; top: 8px; right: 8px; width: 80px; height: 80px; border-radius: 10px; }
    #place-search-preview .place-card__hero-emoji { font-size: 44px; top: 6px; right: 8px; }
    #place-search-preview .place-card__body { padding: 10px 100px 12px 14px; }
    #place-search-preview .place-card__name { margin: 3px 0; font-size: 18px; }
}

.about {
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 22px 30px 30px 30px;
    color: rgba(255,255,255,0.68);
}

.about a {
    color: inherit;
    text-decoration: underline;
}
select {
    width: 100%;
    padding: 5px;
    font-size: 1.3rem;
    background-color: rgba(255, 255, 255, 0.5);
    color: rgba(255,255,255,0.75);
    margin-top: 10px;
}
select option {
    color: black;
}


/* popup */

/* The animation code */
@keyframes pop-in {
    from {
        opacity: 0;
        top: 5px;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

.mapboxgl-popup {
    max-width: min(332px, calc(100vw - 28px));
    animation-name: pop-in;
    animation-duration: 0.2s;
}

.place-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.place-subtitle {
    font-size: 0.8rem;
}

.place-subtitle--michelin {
    color: #ffbec8;
    font-weight: 600;
}

.place-subtitle--private {
    color: #9de0bd;
    margin-top: 8px;
}

.place-link {
    margin-top: 10px;
    font-size: 0.82rem;
}

.place-link a {
    color: #d8ffd1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.place-link a:hover,
.place-link a:focus,
.place-link a:active,
.place-link a:focus-visible {
    color: #f4fff0;
    border: 0;
    box-shadow: none;
    outline: none;
}

.mapboxgl-popup-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif !important;
}

.mapboxgl-popup-tip {
    display: none;
}

/* A small travel journal, anchored to the place. */
.place-popup { width: min(332px, calc(100vw - 28px)); z-index: 5; translate: 0 var(--place-card-shift, 0px); }
.place-popup .mapboxgl-popup-content {
    padding: 0;
    overflow: hidden;
    background: #171b25;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px !important;
    box-shadow: 0 20px 65px #0008, 0 3px 12px #0005;
    backdrop-filter: blur(20px);
}
.place-popup .mapboxgl-popup-close-button {
    z-index: 4;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111823b8;
    color: #fff;
    font-size: 21px;
    line-height: 24px;
}
.place-card { --card-accent: #c3d7fd; --hero-color: #374e78; max-height: min(600px, calc(100svh - 72px)); overflow: auto; scrollbar-width: thin; color: #f4f5fa; text-align: left; }
.place-card--dining { --card-accent: #f3c399; --hero-color: #73503e; }
.place-card--mountain { --card-accent: #cad9c0; --hero-color: #3d5951; }
.place-card--outdoors { --card-accent: #a8d6bf; --hero-color: #315d56; }
.place-card--culture { --card-accent: #ddc5f4; --hero-color: #60476f; }
.place-card__hero { position: relative; height: 148px; overflow: hidden; background: radial-gradient(ellipse at 75% 20%, var(--hero-color), #242934 95%); }
.place-card__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 48%, #111621a8); pointer-events: none; }
.place-card__contours { position: absolute; width: 350px; height: 350px; right: -90px; top: -90px; transform: rotate(-30deg); border-radius: 44%; background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 19px, #ffffff12 20px 21px, transparent 22px 32px); }
.place-card__hero-emoji { position: absolute; right: 34px; top: 23px; font-size: 68px; line-height: 1.3; filter: drop-shadow(0 10px 12px #0004); transform: rotate(-8deg); }
.place-card__photo { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.place-card__hero.has-image .place-card__hero-emoji { display: none; }
.place-card__eyebrow { position: absolute; z-index: 2; bottom: 16px; left: 20px; font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px #0007; }
.place-card__photo-credit { position: absolute; z-index: 2; bottom: 4px; right: 8px; left: 8px; color: #fff; text-align: right; font-size: 8px; line-height: 10px; text-shadow: 0 1px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-card__body { padding: 18px 20px 16px; }
.place-card__category { color: var(--card-accent); font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.place-card__category > span { margin-right: 4px; font-size: 13px; }
.place-card__name { margin: 7px 0 5px; color: #fff; font-size: 23px; line-height: 1.16; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.place-card__location { margin: 0; color: #a8adba; font-size: 12px; line-height: 1.5; }
.place-card__michelin { display: inline-flex; gap: 7px; align-items: center; margin-top: 12px; padding: 5px 8px; border-radius: 5px; background: #bc344a22; color: #ffb3be; font-size: 10px; font-weight: 600; }
.place-card__michelin > span { display: inline-flex; align-items: center; gap: 2px; }
.place-card__michelin-star { display: block; width: 18px; height: 20px; flex: none; background: currentColor; -webkit-mask: url('/img/michelin-star.svg') center / contain no-repeat; mask: url('/img/michelin-star.svg') center / contain no-repeat; }
.place-card__elevation { display: flex; align-items: center; gap: 12px; padding: 13px 0 0; }
.place-card__elevation strong { font-size: 21px; letter-spacing: -.04em; white-space: nowrap; }
.place-card__elevation small { font-size: 11px; font-weight: 400; letter-spacing: 0; color: #b6bdc5; }
.place-card__elevation > span { max-width: 115px; font-size: 10px; color: #a4adba; line-height: 1.4; }
.place-card__facts { display: flex; gap: 7px; align-items: baseline; margin-top: 12px; }
.place-card__facts:empty { display: none; }
.place-card__rating { font-size: 14px; color: #e9c87e; }
.place-card__rating strong { color: #fff0c9; }
.place-card__rating small { color: #9c9d9e; font-size: 10px; margin-left: 3px; }
.place-card__rating-count { font-size: 10px; color: #a8adba; }
.place-card__price { margin-left: auto; color: #ddd; font-size: 11px; letter-spacing: 1px; }
.place-card__price span { color: #5c6372; }
.place-card__review { margin: 14px 0 10px; padding: 0 0 0 10px; border-left: 2px solid var(--card-accent); }
.place-card__review p { margin: 0 0 6px; color: #d8dbe2; font-size: 12px; line-height: 1.55; }
.place-card__review cite { font-size: 10px; font-style: normal; }
.place-card__review a { color: #a5acba; }
.place-card__description { font-size: 12px; color: #c1c7d0; line-height: 1.5; margin: 12px 0 8px; }
.place-card__address { color: #9ca4b2; font-size: 11px; margin: 10px 0 0; }
.place-card__visits { margin: 12px 0 0; font-size: 10px; color: #a2d9b7; line-height: 1.5; }
.place-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #ffffff12; padding-top: 13px; margin-top: 15px; }
.place-card__actions a { display: inline-flex; align-items: center; gap: 10px; color: #bec5d1; font-size: 11px; font-weight: 500; text-decoration: none; padding: 3px 0; }
.place-card__actions .place-card__primary { color: var(--card-accent); font-weight: 650; }
.place-card a:hover { color: #fff; }
.place-card a:focus-visible, .place-popup button:focus-visible { outline: 2px solid var(--card-accent, #c3d7fd); outline-offset: 3px; border-radius: 2px; }
.place-card__source { display: block; margin: 10px 0 0; color: #8e97a8; font-size: 9px; line-height: 1.4; text-decoration: none; }
.place-card__loading { font-size: 10px; color: #9ea7b8; margin: 12px 0 0; }
.place-card__expand { display: block; margin: 12px 0 0; padding: 7px 10px; border: 1px solid #ffffff26; border-radius: 6px; background: #ffffff08; color: var(--card-accent); font: inherit; font-size: 11px; cursor: pointer; }
.place-card__expand:hover { background: #ffffff12; }
.place-card__terrain { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.place-card__terrain canvas, .place-card__terrain iframe { width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; }
.place-card__terrain.is-ready canvas, .place-card__terrain.is-ready iframe { opacity: 1; }
.place-card__terrain-loading { position: absolute; right: 10px; top: 10px; color: #fff; background: #18222caa; border-radius: 4px; padding: 4px 6px; font-size: 9px; }
.place-card__terrain-loading.is-hidden { display: none; }
@media (max-width: 767px) {
    .place-card__hero { height: 122px; }
    .place-card__body { padding: 15px 18px; }
    .place-card__name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .place-popup { animation: none; }
    .place-card__terrain canvas, .place-card__terrain iframe { transition: none; }
}

#map3d-link {
    display: block;
    margin-bottom: 10px;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
}
@media only screen and (min-width: 1392px) {
    #map3d-link {
        margin-bottom: 25px;
    }
}

#map3d-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#map3d-link:active {
    background-color: rgba(255, 255, 255, 0.4);
}

.new-pill {
    background-color: #1da1f2;
    color: #fff;
    border-radius: 999px;
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-right: 6px;
    position: relative;
    top: -4px;
}
