/* Date-scoped map controls. The existing map and archived IDs stay in place. */
.map-date-strip{margin:0 0 10px;min-width:0}
.map-date-hint{margin:0 0 6px;color:#59606b;font-size:.76rem}
.map-date-row{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8d98b4 #eef1f6;padding:2px 1px 8px;cursor:grab;touch-action:pan-x pan-y;user-select:none;position:relative}
.map-date-row.is-dragging{cursor:grabbing}
.map-date-button{flex:0 0 auto;display:grid;gap:3px;min-width:82px;min-height:61px;padding:7px 12px;border:1px solid #aeb5c3;background:#fff;color:#101116;text-align:left;font:inherit;cursor:inherit}
.map-date-button span{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:#59606b}
.map-date-button strong{font-size:.94rem;white-space:nowrap}
.map-date-button:hover{border-color:#244cf4;background:#f0f3ff}
.map-date-button.is-active{background:#244cf4;color:#fff;border-color:#244cf4}
.map-date-button.is-active span{color:#fff}
.map-date-button:focus-visible,.map-layer-controls input:focus-visible{outline:3px solid #101116;outline-offset:3px}
.map-selection-status{margin:0 0 10px;font-size:.82rem;font-weight:750;line-height:1.5}
.map-layer-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;border:0;padding:0;margin:0 0 12px;font-size:.76rem}
.map-layer-controls legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.map-layer-controls label{display:inline-flex;align-items:center;gap:5px;min-height:28px;cursor:pointer}
.map-layer-controls input{accent-color:#244cf4;width:16px;height:16px;margin:0 3px 0 0}
.map-line-key{display:inline-block;width:20px;height:0;border-top:3px solid #244cf4}
.map-line-key.key-closure{border-top:3px dashed #b5293e}
.map-line-key.key-area{height:12px;border:1px dashed #a56800;background:#a568002e}
.map-date-legend{margin:12px 0 4px;font-size:.72rem}
.map-today-tools-note,.map-geometry-note{font-size:.76rem;color:#59606b;line-height:1.45}
.map-today-tools-note:empty,.map-mark-feedback:empty{display:none}
.map-mark-toggle:disabled,.map-query-toggle:disabled{display:none}
.map-feature-details{margin:26px 0 32px;padding-top:20px;border-top:1px solid #101116}
.map-feature-details>h2{font-size:1.25rem;margin:0 0 12px}
.map-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.map-feature-card{padding:16px 0;border-top:1px solid #ccd0d8}
.map-feature-card h3{margin:6px 0 8px;font-size:1.05rem}
.map-feature-card p{line-height:1.5}
.map-feature-meta{font-size:.76rem;font-weight:700;color:#59606b;margin:0}
.map-feature-card .map-card-links{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.78rem}
.map-feature-card:target{outline:3px solid #244cf4;outline-offset:5px}
.map-popup-event{margin-top:10px;padding-top:8px;border-top:1px solid #ccd0d8;font-size:.78rem}
.map-popup-event p{margin:6px 0}
.map-popup-event>b{font-size:.85rem}
.leaflet-popup-content{max-height:min(360px,52vh);overflow:auto}
.event-map-marker.status-mixed{--marker-color:#8d98b4}
.event-map-marker.status-mixed span{background:linear-gradient(135deg,#fff 50%,#8d98b4 50%)}
.map-page [hidden]{display:none!important}
.map-canvas-panel>.map-frame:not(:fullscreen):not(.is-map-expanded){position:relative;top:auto}
.map-place-list{max-height:450px;overflow-y:auto;scrollbar-width:thin}
.map-frame:fullscreen .map-fullscreen-legend,.map-frame.is-map-expanded .map-fullscreen-legend{max-width:calc(100% - 120px)}
@media(max-width:900px){.map-place-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;max-height:260px}.map-location-panel{padding:16px 20px}.map-journey{display:none}}
@media(max-width:600px){.map-date-button{min-width:76px;padding:7px 10px}.map-date-hint{font-size:.72rem}.map-layer-controls{gap:3px 10px;font-size:.72rem}.map-selection-status{font-size:.76rem}.map-feature-grid{grid-template-columns:1fr}.map-place-list{grid-template-columns:1fr;max-height:220px}.map-feature-details{margin-top:22px}.map-date-legend{gap:6px 10px}.map-date-strip{margin-inline:-2px}.map-popup-event{font-size:.74rem}}
@media(prefers-reduced-motion:reduce){.map-date-row{scroll-behavior:auto}}

.map-layer-controls .is-unavailable{color:#687080;cursor:default;opacity:.65}

.map-feature-focus{min-height:44px;padding:5px 0;border:0;background:transparent;color:#244cf4;font:inherit;font-size:.82rem;font-weight:750;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.map-feature-focus:focus-visible{outline:3px solid #244cf4;outline-offset:3px}.map-legacy-anchor{display:block;scroll-margin-top:120px}

/* Keep the interactive map in the initial viewport; supporting context follows it. */
.map-context{padding:9px 0 0}.map-context .map-updated{margin:0;color:#60666d;font-size:.78rem}.map-context .map-summary-link{margin:6px 0 0;font-size:.86rem}.map-frame + .map-selection-status{margin:9px 0 3px}.map-frame ~ .map-layer-controls{margin:0 0 4px}.map-page .map-intro{padding-bottom:6px;margin-bottom:8px}.map-page .map-intro .map-lead{margin:8px 0 0;line-height:1.4}.map-page .map-canvas-panel{padding-top:12px}.map-page .map-date-strip{margin-bottom:5px}.map-page .map-date-row{padding-bottom:4px}.map-page .map-date-button{min-height:54px}.map-page .map-section-heading{margin-bottom:5px}
@media(max-width:600px){.map-page .map-intro h1{font-size:1.4rem;line-height:1.06}.map-page .map-intro .map-lead{font-size:.83rem;line-height:1.35}.map-page .map-date-button{min-height:50px}.map-page .map-canvas-panel{padding-top:9px}}
@media(min-width:901px){.map-page .real-map{height:clamp(360px,calc(100dvh - 400px),520px)}}

.map-date-hint{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px}.map-geometry-jump{min-height:28px;padding:3px 7px;border:1px solid #244cf4;background:#fff;color:#244cf4;font:inherit;font-size:.76rem;font-weight:750;cursor:pointer}.map-geometry-jump.jump-closure{border-color:#b5293e;color:#8f1830}.map-geometry-jump:hover{background:#f4f640;color:#101116}.map-geometry-jump:focus-visible{outline:3px solid #101116;outline-offset:2px}.map-route-note{margin:3px 0 0;color:#59606b;font-size:.72rem;line-height:1.35}
@media(max-width:600px){.map-date-hint{gap:4px 6px}.map-date-hint>span{width:100%}.map-geometry-jump{font-size:.72rem;min-height:26px}}
@media(max-width:600px){.map-page .real-map{height:400px}}
