body { display: flex; flex-direction: column; min-height: 100vh; }
.map-wrap { position: relative; flex: 1; min-height: 420px; }
#map { position: absolute; inset: 0; background: #0b1512; }

.map-panel {
  position: absolute; top: 14px; right: 14px; z-index: 500; width: 260px;
  background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.mp-row { margin-bottom: 12px; }
.mp-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.baseseg { display: flex; gap: 4px; }
.baseseg button { flex: 1; padding: 7px 4px; border: 1px solid var(--line); background: var(--panel2); border-radius: 7px; font-size: 11.5px; font-weight: 700; cursor: pointer; color: var(--ink); }
.baseseg button.on { background: var(--water, #0d4b57); border-color: var(--water, #0d4b57); color: #fff; }

.mp-layers { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.mp-layers label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.mp-layers input { accent-color: var(--green); width: 16px; height: 16px; }
.mp-layers .sw { width: 11px; height: 11px; border-radius: 3px; }
.mp-layers b { color: var(--muted); font-weight: 600; font-size: 12px; }

.btn3d { display: block; text-align: center; margin: 12px 0 8px; padding: 9px; border-radius: 8px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 800; font-size: 13px; }
.btn3d:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.mp-note { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 0; }

.zone-icon { color: #17a67e; font-size: 20px; text-align: center; line-height: 22px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; cursor: pointer; }
.gauge-icon { color: #2a7ba8; font-size: 17px; text-align: center; line-height: 18px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.leaflet-popup-content { font-size: 13px; line-height: 1.5; }
.leaflet-popup-content .pm { color: #66736e; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.leaflet-popup-content .pk { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.leaflet-popup-content a { color: #2d6a4f; font-weight: 700; }

@media (max-width: 820px) {
  .map-panel { width: auto; left: 10px; right: 10px; top: 10px; }
  .mp-layers { grid-template-columns: 1fr 1fr; }
}
