.reservoir-map-page { padding-bottom: clamp(48px, 7vw, 96px); }
.map-heading { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: 14px 32px; padding: 14px 0 27px; }
.map-heading .eyebrow { margin: 0 0 12px; color: var(--blue); }
.map-heading h1 { margin: 0; font: 400 clamp(45px, 6.5vw, 88px)/.96 var(--serif); letter-spacing: -.062em; }
.map-heading > p { margin: 0; max-width: 36ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); }
.map-filter-deck { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink); }
.map-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.map-filters button, .map-region select, .map-view-actions button, .map-inspect, .map-copy, .map-clear, .map-detail-close { border: 1px solid var(--line); color: var(--ink); background: var(--paper); font: 600 14px/1.2 Arial,sans-serif; min-height: 44px; cursor: pointer; padding: 8px 12px; }
.map-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.map-filters button svg { width: 17px; height: 17px; }
.map-filters button:hover, .map-copy:hover, .map-clear:hover, .map-detail-close:hover { border-color: var(--blue); background: var(--sky); }
.map-filters button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map-region { display: flex; align-items: center; gap: 8px; font: 600 15px Arial,sans-serif; }
.map-region select { max-width: 100%; color: var(--ink); font-size: 16px; font-weight: 400; border-radius: 0; }
.map-shell { --map-height: clamp(540px, 67vh, 810px); display: grid; grid-template-columns: minmax(0,1fr) minmax(272px,320px); border: 1px solid #232f4d; background: #141c31; }
.map-display { position: relative; background: #152538; min-width: 0; }
#map-canvas { width: 100%; height: var(--map-height); background: #192b44; }
#map-canvas.plain-map { background: #142a45; }
.map-relief { mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.map-view-actions { display: flex; gap: 6px; position: absolute; left: 11px; top: 11px; z-index: 700; }
.map-view-actions button, .map-inspect { border-color: #657289; background: #142339; color: #fff; box-shadow: 0 3px 14px #0b172e48; }
.map-view-actions button:hover, .map-inspect:hover { background: #27415a; }
.map-view-actions button[aria-pressed=true] { background: #e2f397; color: #152138; border-color: #e2f397; }
.map-inspect { position: absolute; left: 11px; top: 62px; z-index: 700; }
.map-north { position: absolute; right: 14px; top: 11px; z-index: 700; display: grid; justify-items: center; gap: 2px; color: white; font: 700 13px 'Courier New',monospace; text-shadow: 0 1px 4px #081325; pointer-events: none; }
.map-north span { font-size: 18px; }
.map-side { height: var(--map-height); min-width: 0; display: flex; flex-direction: column; color: var(--ink); background: #f6f7fb; border-left: 1px solid #71799a; }
.map-search { padding: 15px 15px 10px; border-bottom: 1px solid var(--line); }
.map-search label { display: block; font-weight: 700; font-size: 15px; }
.map-search input { width: 100%; height: 44px; margin-top: 6px; padding: 8px 10px; border: 1px solid #77809b; color: var(--ink); font: 16px Arial,sans-serif; border-radius: 0; background: white; }
.map-search p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.map-quicklist { list-style: none; margin: 0; padding: 0 0 5px; min-height: 50px; overflow-y: auto; overscroll-behavior: contain; }
.map-quicklist li { border-bottom: 1px solid #d8dbe7; }
.map-quick-button { appearance: none; width: 100%; min-height: 46px; display: flex; align-items: center; text-align: left; gap: 10px; padding: 7px 14px; background: transparent; color: var(--ink); border: 0; font: 600 14px/1.3 Arial,sans-serif; cursor: pointer; }
.map-quick-button:hover, .map-quick-button[aria-current] { background: #e8edff; }
.map-quick-button:focus-visible { outline-offset: -4px; }
.map-list-icon { display: grid; place-items: center; flex: 0 0 27px; height: 27px; background: var(--pin, #dfeafa); color: #152138; border-radius: 50%; }
.map-list-icon svg { width: 15px; height: 15px; }
.map-detail { overflow-y: auto; max-height: 56%; flex: none; padding: 14px; border-bottom: 1px solid #8290be; background: #e8edff; }
.map-detail h2 { margin: 5px 0 10px; font: 400 27px/1.06 var(--serif); letter-spacing: -.028em; }
.map-detail > p:not(.map-place-type) { font-size: 15px; line-height: 1.48; margin: 7px 0 10px; }
.map-detail-close { float: right; min-height: 40px; margin: 0 0 5px 7px; padding: 6px 8px; }
.map-point-links { display: flex; flex-wrap: wrap; gap: 7px 14px; font-size: 14px; }
.map-coordinates { font-family: 'Courier New',monospace; color: var(--muted); }
.map-copy { min-height: 40px; }
.map-empty { margin: 8px 13px; font-size: 15px; color: var(--muted); }
.map-clear { margin: 10px 12px 12px; align-self: start; }
.map-usage { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.map-status { font-size: 15px; }

.map-marker { display: grid; place-items: center; background: var(--pin, #dfeafa); color: #122139; border: 2px solid #18253c; border-radius: 50%; box-shadow: 0 0 0 1px #dce7ff99, 0 2px 7px #122139b3; cursor: pointer; }
.map-marker-dam, .map-list-icon.dam { --pin: #f9c87e; }
.map-marker-launch, .map-list-icon.launch { --pin: #85e7fb; }
.map-marker-camp, .map-list-icon.camp { --pin: #d6f391; }
.map-marker-poi, .map-list-icon.poi { --pin: #e7dcfe; }
.map-marker:hover, .map-marker:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.map-marker.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #57cdf1b0, 0 3px 16px #172139; }
.map-cluster { background: #162638; border-color: #add5f0; color: #f7fcff; font: 700 14px/1 Arial,sans-serif; }
.leaflet-tooltip.map-active-tooltip { background: #132339; border-color: #8caec5; color: white; font-weight: 700; padding: 6px 9px; max-width: 190px; white-space: normal; text-align: center; }
.leaflet-tooltip-top.map-active-tooltip::before { border-top-color: #8caec5; }
.map-label { text-wrap: nowrap; color: #f0f5fc; font: 600 14px/1.1 Arial,sans-serif; text-shadow: 0 1px 4px #111c30, 1px 1px 3px #111c30, -1px -1px 3px #111c30; }
.map-label span { position: absolute; transform: translate(-50%,-50%); }
.map-label-region { color: #f4e5b9; font: 700 10px/1.1 'Courier New',monospace; letter-spacing: .08em; text-transform: uppercase; }
.map-label-lake { color: #a8f4ff; font: italic 20px/1 Georgia,serif; }
.reservoir-map-page .leaflet-container .leaflet-control-attribution { background: #122139e8; color: white; padding: 2px 6px; font-size: 11px; }
.reservoir-map-page .leaflet-control-attribution a { color: #dbf3ff; }
.reservoir-map-page .leaflet-control-scale-line { border-color: #e8f6ff; color: white; background: #142339e8; text-shadow: none; }
.reservoir-map-page .leaflet-control-zoom { border: 1px solid #8291a8; }
.reservoir-map-page .leaflet-control-zoom a { width: 44px; height: 44px; background: #142339; color: #fff; border-color: #8291a8; line-height: 44px; }
.reservoir-map-page .leaflet-control-zoom a:hover { background: #293e58; }
.reservoir-map-page .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-right: 11px; margin-bottom: 14px; }
.reservoir-map-page .leaflet-bottom.leaflet-left .leaflet-control-scale { margin-bottom: 23px; }

.map-fallback { margin: 0 0 25px; }
.map-fallback img { display: block; width: min(100%,690px); height: auto; }
.map-place-index, .map-credits { scroll-margin-top: 12px; border-top: 1px solid var(--ink); padding-top: 24px; margin-top: 43px; }
.map-places-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.map-places-title h2, .map-credits h2 { margin: 0; font: 400 clamp(30px, 4vw, 50px)/1.02 Georgia,serif; letter-spacing: -.045em; }
.map-place-index ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 24px; }
.map-place-index li { min-width: 0; border-top: 1px solid var(--line); padding: 12px 0 5px; }
.map-place-type { display: flex; align-items: center; gap: 6px; margin: 0; color: #37460e; font: 700 12px/1.4 Arial,sans-serif; }
.map-place-type.launch { color: #174969; }
.map-place-type.dam { color: #70420a; }
.map-place-type.poi { color: #563d75; }
.map-place-type svg { width: 16px; height: 16px; }
.map-place-index h3 { margin: 5px 0 10px; font: 400 25px/1.1 var(--serif); }
.map-place-index p:not(.map-place-type) { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.map-credits dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 26px; margin: 22px 0 0; }
.map-credits dt { font-weight: 700; margin-bottom: 5px; }
.map-credits dd { margin: 0; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .map-heading { grid-template-columns: 1fr; }
  .map-shell { --map-height: clamp(400px, 59svh, 630px); grid-template-columns: 1fr; }
  .map-side { height: auto; border: 0; border-top: 1px solid #71799a; }
  .map-quicklist { max-height: 232px; }
  .map-detail { max-height: none; }
  .map-place-index ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .map-heading { padding-top: 5px; }
  .map-heading h1 { font-size: clamp(41px, 12vw, 56px); }
  .map-filter-deck { gap: 8px; }
  .map-filters { gap: 5px; }
  .map-filters button { padding-inline: 7px; }
  .map-region, .map-region select { flex: 1; }
  .map-place-index ul, .map-credits dl { grid-template-columns: 1fr; }
  .map-usage { font-size: 13px; }
  .map-label-lake { font-size: 15px; }
  .map-label-town { font-size: 12px; }
}
@media print {
  .map-interactive { display: none !important; }
  .map-fallback { display: block !important; }
  .map-fallback img { max-height: 560px; width: auto; }
}
