/* Website maps (ported from app) */
.maps-section .card {
  padding: 14px;
}
.maps-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-toolbar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.map-toolbar::-webkit-scrollbar { display: none; }
.layer-btn {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(12, 18, 28, 0.55);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.layer-btn:hover { filter: brightness(1.08); }
.layer-btn.active {
  background: rgba(61, 139, 253, 0.9);
  border-color: transparent;
  color: #fff;
}
.map-tool-btn {
  flex: 0 0 44px !important;
  min-width: 44px !important;
  max-width: 48px;
  font-size: 1.1rem;
  padding: 8px 0 !important;
}
#map.map-container,
.map-container {
  width: 100%;
  height: min(62vh, 520px);
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(12, 18, 28, 0.55);
  z-index: 1;
}
.map-pin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-pin-hint {
  flex: 1;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 0;
}
.radar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.radar-controls.hidden { display: none; }
.radar-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(20, 28, 42, 0.9);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
}
.radar-btn.play {
  background: rgba(61, 139, 253, 0.95);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.radar-btn.playing {
  background: rgba(20, 28, 42, 0.9);
  border-color: rgba(61, 139, 253, 0.7);
  color: #7ec0f0;
}
.radar-slider {
  flex: 1;
  min-width: 0;
  accent-color: #3d8bfd;
  height: 28px;
}
.radar-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 5.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.map-info {
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.map-info.hidden { display: none; }
.map-info-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.map-info-value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 4px;
}
.map-legend {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 0;
}
.map-legend .muted, .map-info .muted, .muted.small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Wind / storm markers */
.wind-arrow-icon { background: transparent !important; border: none !important; }
.wind-arrow {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.wind-arrow svg { width: 22px; height: 22px; display: block; }
.wind-legend-scale {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin-top: 2px; font-size: 0.65rem; color: var(--muted);
}
.wind-legend-swatch { display: inline-flex; align-items: center; gap: 3px; }
.wind-legend-swatch i {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
}
.storm-marker-icon { background: transparent !important; border: none !important; }
.storm-marker {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  background: rgba(12, 18, 28, 0.82);
  border: 2px solid #5b9fd4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(250, 204, 21, 0.35);
  animation: storm-bolt-pulse 1.8s ease-in-out infinite;
}
.storm-marker.cat-ts { border-color: #f0c14a; }
.storm-marker.cat-hu {
  border-color: #e85d4c;
  background: rgba(80, 20, 20, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 14px rgba(232, 93, 76, 0.45);
}
.storm-marker.cat-mh { border-color: #c44dff; background: rgba(50, 10, 60, 0.85); }
@keyframes storm-bolt-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.92; }
}
/* Map popups: high contrast (light-on-light is unreadable) */
.leaflet-popup-content-wrapper {
  background: #141c2e !important;
  color: #f0f4fa !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.leaflet-popup-tip {
  background: #141c2e !important;
  border: none !important;
  box-shadow: none !important;
}
.leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #f0f4fa !important;
  min-width: 12rem;
  max-width: 16rem;
}
.leaflet-popup-close-button {
  color: #e8eef8 !important;
  font-size: 1.25rem !important;
  padding: 6px 8px 0 0 !important;
  opacity: 0.9;
}
.leaflet-popup-close-button:hover {
  color: #fff !important;
  opacity: 1;
}
.storm-popup-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #ffffff !important;
  line-height: 1.3;
}
.storm-popup-meta {
  color: #c5d0e0 !important;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 3px;
}
.storm-popup a, .leaflet-popup-content a { color: #5eead4 !important; }
.eclipse-picks {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.eclipse-pick {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20, 28, 42, 0.9);
  color: #e8eef8;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.eclipse-pick:hover { filter: brightness(1.1); }
.eclipse-pick.active {
  background: rgba(124, 58, 237, 0.85);
  border-color: transparent;
  color: #fff;
}
.leaflet-container {
  background: #0b0f14;
  font: inherit;
  width: 100%;
  height: 100%;
}
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(11, 15, 20, 0.75) !important;
  color: rgba(200, 214, 230, 0.78) !important;
}
.leaflet-control-attribution a { color: #5eead4 !important; }
.leaflet-control-zoom a {
  background: #141c2e !important;
  color: #e8eef8 !important;
  border-color: rgba(255,255,255,0.12) !important;
}

.river-marker-icon { background: transparent !important; border: none !important; }
.river-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.94);
  border: 2px solid #5b9fd4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.river-stage {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f0f4fa;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
  line-height: 1;
}

.rain-outlook {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(14, 22, 34, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.rain-outlook.hidden { display: none; }
.rain-outlook-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
.rain-outlook-title { font-size: 0.78rem; font-weight: 600; }
.rain-outlook-bars {
  display: flex; gap: 3px; align-items: flex-end; height: 52px; overflow-x: auto;
}
.rain-hour {
  flex: 1 0 0; min-width: 1.35rem; max-width: 2.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%;
}
.rain-hour-bar {
  width: 100%; border-radius: 3px 3px 1px 1px; background: rgba(94, 164, 240, 0.85); min-height: 2px;
}
.rain-hour-bar.is-wet { background: rgba(61, 139, 253, 0.95); }
.rain-hour-bar.is-heavy { background: rgba(232, 93, 76, 0.9); }
.rain-hour-label { font-size: 0.55rem; color: rgba(200,214,230,0.78); line-height: 1; }
