/* A flat, north-up map with the same blue visual language as the dashboard. */
#terrain-underlay,#map-surface-3d { display:none; }
.main-stage.story-stage { background:#081c30; }
.story-stage .story-canvas-wrap { inset:0; }
.story-stage .story-copy { inset:54px 0 55px; }
.story-stage .journey-steps { display:none; }
.story-stage.is-geographic .journey-copy { left:3%; top:3%; width:min(30%,220px); }
.story-stage.is-geographic .journey-copy h3 { margin-top:4px; font-size:clamp(15px,2.2cqw,22px); }
.story-stage.is-geographic .journey-subtitle { color:#a0c8d3; }
.story-stage .story-bottom { z-index:6; gap:5px; }
.map-zoom-controls { position:absolute; z-index:7; top:108px; right:10px; display:flex; flex-direction:column; gap:3px; }
.map-zoom-controls button { display:grid; place-items:center; width:30px; height:30px; padding:0; border:1px solid #367f96; border-radius:3px; background:#062b40e8; color:#c6eff5; font:600 19px/1 sans-serif; cursor:pointer; }
.map-zoom-controls button:hover,.map-zoom-controls button:focus-visible { border-color:#83e4ef; color:#fff; background:#0d5267; }
.map-zoom-controls button:focus-visible { outline:2px solid #a7f4ff; outline-offset:2px; }
.story-stage:not(.is-geographic) .map-zoom-controls,.story-stage.is-street .map-zoom-controls { display:none; }
.story-stage.is-geographic #journey-canvas { cursor:grab; touch-action:none; }
.story-stage.is-geographic #journey-canvas.is-dragging { cursor:grabbing; }
.map-regions-button,.map-street-button,.map-names-toggle {
 flex:none; padding:5px 7px; border:1px solid #276a7e; border-radius:3px;
 background:#062b40e8; color:#b5e3eb; font:inherit; font-size:10px; white-space:nowrap; cursor:pointer;
}
.map-regions-button:hover,.map-street-button:hover,.map-names-toggle:hover,.map-regions-button[aria-expanded="true"],.map-street-button[aria-pressed="true"],.map-names-toggle[aria-pressed="true"] { border-color:#74ddeb; color:#edfbff; background:#0d5267; }
.map-regions-button:focus-visible,.map-street-button:focus-visible,.map-names-toggle:focus-visible,.map-region-panel button:focus-visible,.osm-open-link:focus-visible { outline:2px solid #a7f4ff; outline-offset:2px; }
.map-regions-button:disabled,.map-names-toggle:disabled { opacity:.45; cursor:default; }
.map-region-panel {
 position:absolute; z-index:8; right:12px; bottom:50px; width:min(76%,510px); max-height:min(60%,330px);
 overflow:auto; overscroll-behavior:contain; border:1px solid #388ba3a8; border-radius:4px;
 background:linear-gradient(140deg,rgba(7,44,63,.97),rgba(3,24,39,.98)); box-shadow:0 12px 30px #0008,inset 0 1px #91e8f424;
 scrollbar-width:thin; scrollbar-color:#428ba0 #072637;
}
.map-region-panel[hidden],.osm-street-panel[hidden] { display:none; }
.map-region-panel header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-bottom:1px solid #2a6479; background:#0b3449; color:#d7f5fb; font-size:12px; }
.map-region-panel header button { width:25px; height:25px; border:1px solid #3b8093; border-radius:3px; background:#0a364a; color:#d5f5fa; font:inherit; font-size:18px; cursor:pointer; }
.map-region-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:10px; }
.map-region-item { min-width:0; padding:6px; border:1px solid #28627680; border-radius:3px; background:#0b3549a8; color:#bfe5ed; font:inherit; font-size:11px; text-align:left; cursor:pointer; }
.map-region-item:hover { border-color:#70d8e8; color:#f0fdff; background:#10546a; }
.map-attribution { position:absolute; z-index:7; left:10px; bottom:39px; padding:2px 4px; border-radius:2px; background:#031b2bdc; color:#a8c7d0; font-size:9px; line-height:1.3; }
.map-attribution a,.osm-open-link { color:#bde7ef; text-decoration:none; }
.map-attribution a:hover,.osm-open-link:hover { color:#fff; text-decoration:underline; }
.osm-street-panel { position:absolute; z-index:4; inset:0; overflow:hidden; background:#061d30; }
.osm-street-panel iframe { width:100%; height:100%; border:0; filter:grayscale(1) invert(.9) sepia(.4) saturate(2.2) hue-rotate(150deg) brightness(.88) contrast(1.08); }
.osm-open-link { position:absolute; z-index:5; top:8px; right:8px; padding:5px 7px; border:1px solid #4994a8; border-radius:3px; background:#06293de8; font-size:10px; }
.story-stage.is-street .story-copy { display:none; }
@container (max-width:750px) {
 .story-stage .story-bottom { flex-wrap:wrap; gap:3px; }
 .story-stage .story-copy { bottom:76px; }
 .story-stage .map-attribution { bottom:62px; }
 .map-region-panel { bottom:73px; width:min(90%,510px); }
 .map-preview { gap:1px; padding:2px; }
 .map-preview button { padding:3px 4px; }
 .map-regions-button,.map-street-button,.map-names-toggle { padding:4px 5px; }
}
@media(max-width:450px) { .map-region-items { grid-template-columns:repeat(2,minmax(0,1fr)); } .map-attribution { font-size:8px; } }
