/* Main map only: discovery panel, clustered map and accessible controls. */
.map-hero { padding: 34px 0; background: #eaf0e9; border-bottom: 1px solid #d9e3d7; }
.map-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.map-eyebrow { color: #476650; font-size: .72em; font-weight: 800; letter-spacing: .17em; }
.map-hero h1 { color: #234d40; margin: 7px 0 9px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }
.map-hero p { color: #526457; margin: 0; max-width: 710px; }
.map-hero .map-3d-link { flex-shrink: 0; border-color: #476650; color: #234d40; background: transparent; font-size: .88em; }
.map-hero .map-3d-link:hover { background: #234d40; color: #fff; }
.map-explorer { padding: 24px 0 42px; }
.map-explorer .container { max-width: 1440px; }
.map-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.map-preset { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 18px; border: 1px solid #d7dfd5; border-radius: 24px; background: #fff; color: #46594b; font: inherit; font-size: .88em; font-weight: 700; cursor: pointer; }
.map-preset[aria-pressed="true"] { background: #234d40; color: #fff; border-color: #234d40; }
.map-preset:hover { border-color: #234d40; }
.map-explorer .map-wrap { grid-template-columns: 340px minmax(0, 1fr); height: min(820px, 85vh); min-height: 650px; gap: 18px; }
.map-explorer .map-filters { padding: 0; border: 1px solid #dce4d9; border-radius: 16px; max-height: none; scrollbar-width: thin; }
.map-search-panel { padding: 20px 20px 8px; }
.map-explorer h2 { font-size: 1em; margin: 0 0 14px; color: #234d40; }
.map-search-panel > label:not(.map-saved-filter) { display: block; font-size: .78em; font-weight: 800; margin: 12px 0 6px; color: #516153; }
.map-search-field { position: relative; }
.map-search-field > i { position: absolute; left: 13px; top: 16px; color: #667a69; pointer-events: none; }
.map-search-panel input[type="search"], .map-search-panel select { width: 100%; min-height: 46px; font: inherit; font-size: .88em; border: 1px solid #c9d5c7; background: #fbfcfa; border-radius: 9px; color: #263d30; padding: 10px 12px; }
.map-search-panel input[type="search"] { padding-left: 38px; }
.map-saved-filter { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 9px 0 0; font-size: .82em; cursor: pointer; }
.map-saved-filter input { width: 18px; height: 18px; accent-color: #234d40; }
.map-layer-panel { margin: 0 20px 8px; border-top: 1px solid #e0e6dc; border-bottom: 1px solid #e0e6dc; padding: 4px 0; }
.map-layer-panel summary { padding: 12px 2px; cursor: pointer; font-weight: 800; font-size: .85em; color: #3e5846; }
.map-layer-panel summary i { margin-right: 6px; }
.map-layer-panel h3 { font-size: .88em; margin-bottom: 4px; }
.map-layer-panel .filter-item { padding: 5px 4px; font-size: .82em; min-height: 44px; }
.map-layer-panel .filter-item input, .map-layer-panel .color-dot { flex-shrink: 0; }
.map-layer-panel .btn-mini { min-height: 44px; }
.map-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px; }
.map-results-heading h2 { font-size: .9em; margin: 0; }
.map-text-button { background: none; border: 0; color: #486c51; font: inherit; font-size: .8em; text-decoration: underline; min-height: 44px; cursor: pointer; }
.map-results { padding: 0 10px; }
.map-result { display: flex; align-items: center; border-bottom: 1px solid #e7ece3; padding: 5px 0; }
.map-result-open { display: flex; flex: 1; min-width: 0; gap: 10px; align-items: center; text-align: left; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: #2e4635; font: inherit; cursor: pointer; }
.map-result-open:hover, .map-result-open[aria-pressed="true"] { background: #eef3e9; }
.map-result-open > span:nth-child(2) { flex: 1; min-width: 0; }
.map-result-open strong { display: block; font-size: .85em; line-height: 1.4; overflow-wrap: anywhere; }
.map-result-open small { display: block; color: #647062; font-size: .72em; line-height: 1.5; margin-top: 3px; }
.map-result-open > i { font-size: .65em; color: #81917f; }
.map-result-icon { display: grid; place-items: center; width: 34px; height: 38px; border-radius: 9px; background: #eaf0e4; color: #52734f; flex-shrink: 0; }
.map-save { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 9px; background: transparent; color: #687565; cursor: pointer; font-size: 1em; }
.map-save[aria-pressed="true"] { color: #a23d4c; background: #fff0f0; }
.map-save:hover { background: #f2eee4; }
.map-more { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #c9d5c7; border-radius: 8px; background: #f6f8f2; color: #234d40; font: inherit; font-size: .85em; cursor: pointer; }
.map-local-note { font-size: .72em; color: #687565; padding: 12px 20px; margin: 0; }
.map-empty { text-align: center; padding: 25px 14px; color: #647062; }
.map-empty > i { display: block; font-size: 1.6em; margin-bottom: 12px; }
.map-empty strong { display: block; font-size: .95em; }
.map-empty p { font-size: .85em; margin: 8px 0 0; }
.map-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #dce4d9; border-radius: 16px; overflow: hidden; background: #fff; }
.map-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; }
.map-toolbar > span { margin-right: auto; color: #476650; font-size: .83em; font-weight: 800; }
.map-toolbar button { min-height: 44px; padding: 8px 12px; background: #f5f7f0; border: 1px solid #dce4d9; border-radius: 8px; color: #3b5944; font: inherit; font-size: .8em; font-weight: 700; cursor: pointer; }
.map-toolbar i { margin-right: 5px; }
.map-explorer button:disabled { opacity: .5; cursor: default; }
.map-explorer #ol-map { flex: 1; min-height: 0; height: auto; border-radius: 0; box-shadow: none; }
.map-help { margin: 0; padding: 10px 15px; font-size: .73em; color: #5c6d5f; border-top: 1px solid #dce4d9; }
.map-help i { margin-right: 5px; }
.map-status { margin: 0; padding: 10px 15px; background: #fff4d8; color: #6c4d1c; font-size: .82em; }
.map-status[hidden] { display: none; }
.map-explorer .ol-control button { width: 44px; height: 44px; color: #234d40; background: #fff; font-size: 1.35em; cursor: pointer; }
.map-explorer .ol-attribution { max-width: calc(100% - 90px); font-size: 10px; }
.map-explorer .ol-attribution ul { white-space: normal; }
.map-explorer .ol-popup { width: 280px; min-width: 0; max-width: calc(100vw - 65px); padding: 20px 16px 14px; }
.map-explorer .ol-popup-body { max-height: min(320px, 42vh); overflow-y: auto; overflow-wrap: anywhere; padding-top: 16px; }
.map-explorer .ol-popup h3 { padding-right: 15px; }
.map-explorer .ol-popup-close { display: grid; place-items: center; top: 0; right: 0; height: 44px; width: 44px; z-index: 1; background: #fff; border-radius: 0 12px 0 12px; color: #234d40; }
.map-popup-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; border-top: 1px solid #e2e8de; padding-top: 10px; }
.map-popup-actions a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #234d40; font-weight: 800; }
.map-cluster-list button { display: block; width: 100%; min-height: 44px; padding: 10px; text-align: left; border: 0; border-bottom: 1px solid #dce4d9; background: #f6f8f2; color: #234d40; cursor: pointer; font: inherit; }
.map-explorer :is(button, input, select, summary, a, #ol-map):focus-visible { outline: 3px solid #b87520; outline-offset: 3px; }
body.high-contrast :is(.map-hero, .map-stage, .map-search-panel, .map-layer-panel, .map-result, .map-result-icon, .map-popup-actions, .map-empty, .map-help, .map-status) { background: #000; color: #ff0; border-color: #ff0; }
body.high-contrast :is(.map-hero, .map-explorer) :is(h1, h2, h3, p, small, label, span, summary, a, button, input, select) { color: #ff0 !important; }
body.high-contrast .map-explorer :is(button, input, select, .ol-popup, .map-result-icon) { background: #000 !important; border: 1px solid #ff0; }
body.high-contrast .map-explorer [aria-pressed="true"] { background: #ff0 !important; color: #000 !important; }
body.high-contrast .map-explorer [aria-pressed="true"] :is(span, strong, small, i) { color: #000 !important; }
/* The site's universal contrast background must not cover OpenLayers' transparent overlays. */
body.high-contrast #ol-map :is(.ol-viewport, .ol-layers, .ol-layer, canvas, .ol-overlaycontainer, .ol-overlaycontainer-stopevent, .ol-overlay-container) { background-color: transparent !important; }
body.high-contrast .map-explorer button :is(span, strong, small, i) { background-color: transparent !important; }
@media (max-width: 1100px) {
    .map-explorer .map-wrap { grid-template-columns: 310px minmax(0, 1fr); }
    .map-toolbar > span { display: none; }
}
@media (max-width: 900px) {
    .map-hero { padding: 24px 0; }
    .map-hero .container { align-items: flex-start; flex-direction: column; gap: 15px; }
    .map-explorer .map-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .map-explorer .map-filters { max-height: none; overflow: visible; }
    .map-results { max-height: 260px; overflow-y: auto; }
    .map-layer-panel[open] { max-height: 330px; overflow-y: auto; }
    .map-stage { height: 70vh; min-height: 480px; }
    .map-presets { gap: 7px; }
    .map-preset { font-size: .78em; padding: 8px 12px; }
    .map-explorer .ol-popup-body { max-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
    .map-explorer *, .map-hero * { scroll-behavior: auto !important; transition: none !important; }
}
