/* Map-first entity pages: a full-height map with the page's own content in a side panel (desktop) or under a sticky map (phones).
   Markup (server-rendered, in this DOM order so a text-only read starts with the content):
   <main class="mf"> <section class="mf-panel"><div class="nv-wrap">...the page...</div></section> <div class="mf-map-wrap"><div class="mf-map">...</div></div> </main>
   The panel is ordinary document content: nothing is hidden or built by script. */
.mf { position: relative; display: grid; grid-template-columns: clamp(380px, 32vw, 440px) minmax(0, 1fr); height: calc(100dvh - var(--nv-bar-h, 56px)); min-height: 480px; padding: 0; background: var(--nv-bg, #fff); }
.mf-panel { grid-column: 1; grid-row: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--nv-line, #eaeaea); background: var(--nv-bg, #fff); padding-bottom: 48px; scrollbar-width: thin; }
.mf-panel .nv-wrap { max-width: none; padding-inline: 20px; }
.mf-map-wrap #fps-map { height: auto; margin: 0; }
.mf-map-wrap { grid-column: 2; grid-row: 1; position: relative; min-width: 0; background: var(--nv-surface, #f7f6f3); }
.mf-map-wrap .mf-map { position: absolute; inset: 0; z-index: 0; height: auto; margin: 0; border: 0; border-radius: 0; background: var(--nv-surface, #f7f6f3); font-family: var(--nv-font); }
.mf-map .pp-map-fallback { padding: 20px; max-width: 42ch; font-size: .875rem; line-height: 1.5; color: var(--nv-muted, #787774); }
.mf-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.mf-map .leaflet-top.leaflet-right { margin-top: 8px; }

/* The single panel: columns inside it collapse to one, since it is narrower than the full-width layouts they were made for. */
.mf-panel .pp-hero { padding-top: 0; }
.mf-panel .fps-hero { margin-top: 20px; }
.mf-panel .fps-hero-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mf-panel .fps-title h1 { font-size: 1.75rem; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 12px; max-width: none; }
.mf-panel .fps-facts { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.mf-panel .fps-facts > div:first-child { grid-column: 1 / -1; }
.mf-panel .fps-facts > div { padding: 14px; }
.mf-panel .fps-facts dd { font-size: 1.375rem; margin-top: 8px; }
.mf-panel .fps-services, .mf-panel .fps-rail { grid-template-columns: 1fr; gap: 16px; }
.mf-panel .fps-access-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.mf-panel .pp-section { padding: 28px 0; }
.mf-panel .pp-section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.mf-panel .fps-hero .pp-answer { margin-top: 16px; }
.mf-panel .sms-card { box-shadow: none; border: 1px solid var(--nv-line, #eaeaea); }
.mf-panel .pp-table-wrap { overflow-x: auto; }

@media (max-width: 899px) {
    /* Phones: the map is the first screen (about 56% of it) and stays put; the panel is a sheet that scrolls up over it, then the footer follows. */
    .mf { display: flex; flex-direction: column; height: auto; min-height: 0; }
    .mf-map-wrap { order: -1; position: sticky; top: var(--nv-bar-h, 56px); z-index: 0; height: 56dvh; min-height: 300px; flex: none; }
    .mf-panel { position: relative; z-index: 1; overflow: visible; margin-top: -18px; padding-bottom: 32px; border-right: 0; border-top: 1px solid var(--nv-ink, #2f3437); border-radius: 12px 12px 0 0; box-shadow: 0 -12px 28px -16px rgb(18 19 22 / .45); }
    .mf-panel::before { content: ""; display: block; width: 44px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--nv-ink, #2f3437); opacity: .35; }
    .mf-panel .nv-wrap { padding-inline: 16px; }
    .mf-panel .fps-title h1 { font-size: 1.5rem; }
}
