/* Water alerts remain point-specific; the basemap carries geographic context. */
:root body.observatory-interface .water-alert-map .river-header h3 { font-size: 25px; }
:root body.observatory-interface .water-alert-map .river-instruction { font-size: 10px; letter-spacing: 1.8px; color: #688477; }
.map-situation { display: flex; align-items: center; gap: 13px; padding: 16px 18px; margin-bottom: 17px; background: #173e39; border-radius: 11px; color: #eaf4eb; }
.map-situation-symbol { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: #fff6e2; color: var(--point-color); border-radius: 12px; }
.map-situation-symbol svg { width: 23px; height: 23px; }
.map-situation strong { font-size: 16px; font-weight: 600; }
.map-situation p { margin: 5px 0 0; font-size: 11px; color: #b9d3c8; }
.map-mode { margin-left: auto; font: 10px/1.6 'JetBrains Mono',monospace; padding: 6px 10px; border: 1px solid #cae4d131; background: #ffffff09; border-radius: 6px; color: #cedbc1; text-align: center; }
.map-command-grid { display: grid; grid-template-columns: minmax(0,1fr) 244px; gap: 16px; }
:root body.observatory-interface .water-alert-map #geographic-map { height: 480px !important; background: #e8efec; }
:root body.observatory-interface .water-alert-map.expanded #geographic-map { height: max(480px,calc(100dvh - 480px)) !important; }
:root body.observatory-interface .water-alert-map .river-canvas { border-radius: 12px; border: 1px solid #d6e3dd; }
.water-alert-map .leaflet-tile-pane { filter: saturate(.38) contrast(.93) brightness(1.055); }
.water-alert-map .leaflet-container { font-family: Manrope,'Segoe UI',sans-serif; }
:root body.observatory-interface .water-alert-map .map-compass { background: #ffffffec; border: 1px solid #d7e4df; box-shadow: 0 3px 10px #193d3510; }
:root body.observatory-interface .water-alert-map .map-floating-tools button { background: #ffffffed; border-color: #d5e2dc; font-size: 11px; padding: 9px 12px; box-shadow: 0 3px 12px #1c453718; }
.map-alert-rail { display: flex; flex-direction: column; border: 1px solid #dde6df; border-radius: 12px; background: #f6f9f3; padding: 17px 12px 12px; min-width: 0; }
.map-rail-heading { padding: 0 5px 13px; border-bottom: 1px solid #dbe5da; }
.map-rail-heading > span { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1px; color: #74907c; }
.map-rail-heading > strong { display: block; font: 600 32px/1.5 Manrope,sans-serif; color: #2c5343; letter-spacing: -1px; }
.map-rail-heading > strong small { font: 11px Manrope,sans-serif; letter-spacing: 0; color: #82917d; }
.map-rail-heading p { font-size: 10px; margin: 0; color: #778d79; }
:root body.observatory-interface .water-alert-map .river-stations { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
:root body.observatory-interface .water-alert-map .river-station { display: flex; align-items: center; flex: initial; gap: 9px; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; text-align: left; min-width: 0; }
:root body.observatory-interface .water-alert-map .river-station:hover { background: white; border-color: #d9e3d9; }
:root body.observatory-interface .water-alert-map .river-station.active { background: #fff; border-color: var(--point-color); box-shadow: 0 3px 10px #27402c0b; }
.map-rail-icon { color: var(--point-color); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb,var(--point-color) 30%,white); background: color-mix(in srgb,var(--point-color) 7%,white); border-radius: 9px; flex-shrink: 0; }
.map-rail-icon svg { width: 17px; height: 17px; }
.map-rail-text { flex: 1; min-width: 0; }
:root body.observatory-interface .water-alert-map .river-station strong { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #305141; }
.map-rail-text em { color: var(--point-color); font: 600 9px 'JetBrains Mono',monospace; padding: 2px 4px; background: color-mix(in srgb,var(--point-color) 9%,white); border-radius: 3px; }
:root body.observatory-interface .water-alert-map .river-station small { font-size: 11px; color: var(--point-color); margin: 3px 0; }
.map-rail-text > span { display: block; font-size: 8px; color: #76867a; line-height: 1.6; }
:root body.observatory-interface .water-alert-map .river-station > b { font-size: 15px; color: #8f9e90; margin-left: 0; }
.map-alert-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 9px 5px 0; border-top: 1px solid #dde5d9; font-size: 10px; font-weight: 600; color: #36654f; }
.map-focus-strip { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 7px 24px; padding: 15px 18px; margin-top: 16px; border: 1px solid color-mix(in srgb,var(--point-color) 24%,white); border-left: 3px solid var(--point-color); border-radius: 9px; background: color-mix(in srgb,var(--point-color) 4%,white); }
.map-focus-strip > div { grid-row: span 2; }
.map-focus-strip > div > span:first-child { display: block; color: #728275; font-size: 9px; letter-spacing: .5px; margin-bottom: 6px; }
.map-status-badge { display: inline-flex; gap: 7px; align-items: center; color: var(--point-color); font-size: 13px; font-weight: 650; }
.map-status-badge svg { width: 18px; height: 18px; }
.map-focus-strip p { margin: 0; font-size: 12px; color: #3a5345; }
.map-focus-strip > small { font-size: 10px; color: #748779; }
.map-level-legend { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 16px 0 13px; border-bottom: 1px solid #e3e9e1; }
.map-level-legend > span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--point-color); }
.map-level-legend svg { width: 14px; height: 14px; }
.map-level-legend b { font: 600 9px 'JetBrains Mono',monospace; }
:root body.observatory-interface .water-alert-map .geographic-legend { gap: 14px; font-size: 10px; }
.geographic-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.map-source-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #627e6f; border: 2px solid #627e6f; }
.map-source-dot.estimated { background: white; border-style: dashed; }
.map-river-key { width: 18px; height: 3px; background: #408c99; border-radius: 2px; }
:root body.observatory-interface .water-alert-map .signal-help { font-size: 10px; line-height: 1.8; margin-top: 9px; }
:root body.observatory-interface .water-alert-map .alert-map-pin { width: 38px; height: 38px; border: 3px solid white; border-radius: 50%; color: white; background: var(--point-color); box-shadow: 0 0 0 8px color-mix(in srgb,var(--point-color) 13%,transparent),0 3px 10px #19382b30; outline: none; }
:root body.observatory-interface .water-alert-map .alert-map-pin > span { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--point-color); border: 0; border-radius: 50%; }
:root body.observatory-interface .water-alert-map .alert-map-pin > span svg { width: 20px; height: 20px; }
:root body.observatory-interface .water-alert-map .alert-map-pin.estimated > span { background: #fff; color: var(--point-color); border: 2px dashed var(--point-color); }
:root body.observatory-interface .water-alert-map .alert-map-pin.selected { box-shadow: 0 0 0 8px color-mix(in srgb,var(--point-color) 18%,transparent),0 0 0 11px #fff9,0 4px 12px #17342840; }
.alert-map-pin .map-pin-label { position: absolute; bottom: 51px; left: 50%; transform: translateX(-50%); width: 116px; padding: 9px 10px; background: #fffffffa; border: 1px solid color-mix(in srgb,var(--point-color) 45%,white); border-top: 3px solid var(--point-color); border-radius: 9px; color: #314e42; box-shadow: 0 5px 16px #294b3b20; font-family: Manrope,sans-serif; line-height: 1.5; }
.map-pin-label:after { content: ''; position: absolute; top: 100%; left: 50%; height: 18px; width: 1px; background: var(--point-color); }
.alert-map-pin.label-below .map-pin-label { top: 51px; bottom: auto; }
.label-below .map-pin-label:after { top: auto; bottom: 100%; }
.map-pin-label > strong { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.map-pin-label em { font: 600 9px 'JetBrains Mono',monospace; color: var(--point-color); background: color-mix(in srgb,var(--point-color) 10%,white); padding: 2px 4px; border-radius: 3px; }
.map-pin-label > small { display: block; font-size: 11px; font-weight: 600; color: var(--point-color); margin: 3px 0; }
.map-pin-label > span { display: block; font-size: 8px; color: #7c8c81; }
.water-alert-map .leaflet-marker-icon:focus-visible .map-pin-label { outline: 3px solid #245845; outline-offset: 3px; }
.water-alert-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 10px 35px #19392d26; }
.water-alert-popup { font-family: Manrope,'Segoe UI',sans-serif; min-width: 0; }
.water-alert-popup > strong { line-height: 1.5; margin: 5px 0 10px; color: #26493a; }
.water-alert-popup .eyebrow { color: #6c8677; letter-spacing: .5px; }
.water-alert-popup .map-popup-reason { padding: 10px; border-radius: 6px; background: color-mix(in srgb,var(--point-color) 6%,white); color: #435b4b; font-size: 12px; }
.map-popup-readings { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 10px 0; border-top: 1px solid #e6ebe4; border-bottom: 1px solid #e6ebe4; }
.map-popup-readings small,.map-popup-readings span,.map-popup-readings em { display: block; font-size: 9px; color: #738879; }
.map-popup-readings strong { display: block; font-size: 19px; color: #264c39; font-weight: 600; }
.map-popup-readings em { font-size: 8px; }
.water-alert-popup .geographic-coordinates { font-size: 10px; color: #7c8b80; }
.water-alert-popup .btn { width: 100%; margin-top: 7px; }
@media (max-width: 1100px) {
    .map-command-grid { grid-template-columns: minmax(0,1fr); }
    .map-alert-rail { padding: 14px; }
    .map-rail-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 10px; }
    .map-rail-heading > strong { font-size: 20px; margin-left: auto; }
    .map-rail-heading p { width: 100%; }
    :root body.observatory-interface .water-alert-map .river-stations { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); }
}
@media (max-width: 600px) {
    :root body.observatory-interface .water-alert-map .river-header h3 { font-size: 22px; }
    :root body.observatory-interface .water-alert-map #geographic-map { height: 430px !important; }
    .map-situation { flex-wrap: wrap; padding: 13px; gap: 10px; }
    .map-situation > div { flex: 1 1 calc(100% - 50px); min-width: 0; }
    .map-situation strong { font-size: 14px; }
    .map-situation p { font-size: 10px; line-height: 1.7; }
    .map-mode { flex: 0 0 calc(100% - 50px); margin-left: 50px; font-size: 9px; padding: 4px 7px; text-align: left; }
    .map-focus-strip { grid-template-columns: 1fr; gap: 9px; padding: 13px; }
    .map-focus-strip > div { grid-row: auto; }
    .map-level-legend { gap: 11px 14px; }
    :root body.observatory-interface .water-alert-map .river-stations { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    :root body.observatory-interface .water-alert-map .river-station { padding: 8px 5px; gap: 6px; }
    .map-rail-text > span { font-size: 8px; }
    .alert-map-pin .map-pin-label { width: 96px; padding: 7px; }
    .map-pin-label > small { font-size: 10px; }
    .map-pin-label > span { display: none; }
    .alert-map-pin.label-below .map-pin-label { left: calc(50% - 30px); }
    .label-below .map-pin-label:after { left: calc(50% + 30px); }
}
@media (prefers-reduced-motion: reduce) {
    .water-alert-map .signal-ring { animation: none !important; }
}
@media (max-width: 400px) {
    .alert-map-pin .map-pin-label { width: 80px; padding: 5px; line-height: 1.4; }
    .map-pin-label > strong { font-size: 11px; }
    .map-pin-label > small { font-size: 9px; margin: 2px 0; }
}
