/* Server-rendered map fallback, styled like the discovery results panel. Hidden while scripts run; App.svelte removes it once the map is ready. */
.map-fallback {
    position: fixed;
    z-index: 2100;
    top: 22px;
    left: 22px;
    display: flex;
    flex-direction: column;
    width: 440px;
    max-width: calc(100vw - 44px);
    max-height: calc(100dvh - 44px);
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 16px;
    box-shadow: 0 12px 35px #18325826;
    color: #1e293b;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
.has-js .map-fallback { display: none; }
html:not(.has-js) #map:not(.leaflet-container) { background: #eef1f5; }

.map-fallback__header { flex: none; padding: 16px 18px 14px; border-bottom: 1px solid #edf0f5; }
.map-fallback h1 { margin: 0; font-size: 1.0625rem; line-height: 1.35; font-weight: 650; }
.map-fallback__header p { margin: 4px 0 0; color: #64748b; font-size: .875rem; line-height: 1.5; }
.map-fallback__empty { margin: 0; padding: 16px 18px; color: #64748b; font-size: .9375rem; }

.map-fallback__list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.map-fallback__list li + li { border-top: 1px solid #f0f3f7; }
.map-fallback__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 14px 12px 18px;
    box-sizing: border-box;
    color: inherit;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
}
.map-fallback__list a:hover { background: #f3f6fc; }
.map-fallback__list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.map-fallback__list small { color: #64748b; font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.map-fallback__chevron { flex: none; width: 18px; height: 18px; fill: none; stroke: #8492a8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.map-fallback__more {
    flex: none;
    padding: 13px 18px;
    border-top: 1px solid #edf0f5;
    color: #274ca1;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}
.map-fallback__more:hover { text-decoration: underline; }
.map-fallback a:focus-visible,
.related-places a:focus-visible { outline: 3px solid #d0ac00; outline-offset: -3px; }

@media (max-width: 600px) {
    .map-fallback {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        max-height: 62dvh;
        border-bottom: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -5px 24px #18325826;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .map-fallback__header { padding: 18px 18px 12px; }
}

/* Related places at the end of a detail sidebar; heading follows .more-info-text. */
#sidebar .related-places { padding: 16px var(--sidebar-padding-x) 8px; }
#sidebar .related-places .heading { margin: 0 0 4px; font-size: 1.1em; font-weight: 500; line-height: 1.3; }
.related-places ul { margin: 0; padding: 0; list-style: none; }
.related-places li + li { border-top: 1px solid #f0f3f7; }
.related-places li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px 10px 0;
    color: #1e293b;
    font-size: .9375rem;
    text-decoration: none;
}
.related-places li a::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-top: 1.8px solid #8492a8;
    border-right: 1.8px solid #8492a8;
    transform: rotate(45deg);
}
.related-places li a:hover { color: #274ca1; }
.related-places__all {
    display: inline-block;
    margin: 6px 0 8px;
    color: #274ca1;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}
.related-places__all:hover { text-decoration: underline; }
