/* One screen of map; the place list starts immediately below it. */
.footprints-page {
    height: calc(100svh - var(--site-header-height, 63px));
    height: calc(100dvh - var(--site-header-height, 63px));
    min-height: 0;
    isolation: isolate;
}
.footprints-page #footprints-map { scroll-margin-top: var(--site-header-height, 63px); }
.footprints-page .map-overlay { padding-top: clamp(20px, 5vh, 48px); }
.footprints-page .map-intro {
    width: 340px;
    max-width: 100%;
    max-height: calc(100% - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 0 20px 16px 10px;
    pointer-events: auto;
}
.footprints-page .map-intro h1 { font-size: clamp(42px, 4.3vw, 61px); }
.footprints-page .map-intro .intro { overflow-wrap: anywhere; }
.footprints-page .map-filters { scrollbar-width: thin; }
.footprints-page .map-filters button { min-height: 40px; }
.footprints-page .map-summary { top: 42px; gap: 28px; padding: 10px 16px; border-radius: 8px; }
.footprints-page .map-note { max-width: 260px; bottom: 40px; right: 20px; }
.map-note-mobile { display: none; }
.map-places { scroll-margin-top: var(--site-header-height, 63px); }
html[data-theme="light"] .footprints-page #footprints-map { background: #edf3ee; }
html[data-theme="light"] .footprints-page::after { background: none; }
html[data-theme="light"] .footprints-page .map-intro {
    background: linear-gradient(90deg, #f8faf78c 82%, #f8faf700)
}
html[data-theme="light"] .footprints-page .map-summary { background: #f8faf7e8; }
html[data-theme="light"] .footprints-page :is(.map-intro .intro, .map-summary span) { color: #344b3e; }
html[data-theme="light"] .footprints-page .map-note { color: #173f35; text-shadow: 0 1px 3px #edf3ee; }
html[data-theme="light"] .footprints-page .map-filters button { color: #263f32; }
html[data-theme="light"] .footprints-page .map-filters button.selected { background: #d3e2d5; color: #173f35; }
html[data-theme="light"] .footprints-page .map-filters button:hover { background: #e1ebe1; }

@media (max-width: 700px) {
    .footprints-page .map-overlay { padding-top: 18px; }
    .footprints-page .map-intro { width: 100%; padding: 10px 10px 10px; max-height: min(52%, 320px); }
    .footprints-page .map-intro h1 { font-size: 37px; }
    .footprints-page .map-intro .malayalam { font-size: 18px; margin-top: 6px; }
    .footprints-page .map-intro .intro { font-size: 12px; line-height: 1.45; margin-top: 8px; max-width: 100%; }
    .footprints-page .favourites-filter { margin-top: 10px; padding: 7px 12px; min-height: 36px; }
    .footprints-page .map-filters,
    .footprints-page .favourites-filter + .map-filters {
        display: flex;
        gap: 7px;
        margin-top: 9px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }
    .footprints-page .map-filters button { flex: 0 0 auto; width: auto; gap: 7px; white-space: nowrap; padding: 7px 10px; min-height: 36px; }
    .footprints-page .map-filters button span { margin-left: 4px; }
    .footprints-page .map-summary { top: auto; right: auto; left: 0; bottom: 28px; gap: 22px; padding: 7px 12px; }
    .footprints-page .map-summary strong { font-size: 23px; line-height: 1.2; }
    .footprints-page .map-summary span { font-size: 11px; }
    .footprints-page .map-note { display: none; }
    .map-note-mobile { display: block; font: italic 23px/1.4 var(--serif); color: var(--gold); white-space: pre-line; padding: 15px 0 22px; }
    html[data-theme="light"] .footprints-page .map-intro { background: linear-gradient(90deg, #f8faf78c 82%, #f8faf700) }
    html[data-theme="dark"] .footprints-page .map-summary { background: #071015d9; }
}

@media (max-height: 520px) and (min-width: 701px) {
    .footprints-page .map-overlay { padding-top: 16px; }
    .footprints-page .map-intro { width: 300px; }
    .footprints-page .map-intro h1 { font-size: 36px; }
    .footprints-page .map-intro .malayalam { font-size: 18px; margin-top: 6px; }
    .footprints-page .map-intro .intro { font-size: 12px; margin-top: 8px; }
    .footprints-page .favourites-filter { margin-top: 12px; }
    .footprints-page .map-summary { top: 12px; }
    .footprints-page .map-note { font-size: 22px; }
}
