/* 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.75);
  border: 2px solid #5b9fd4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.storm-marker.cat-ts { border-color: #f0c14a; }
.storm-marker.cat-hu { border-color: #e85d4c; background: rgba(80, 20, 20, 0.8); }
.storm-marker.cat-mh { border-color: #c44dff; background: rgba(50, 10, 60, 0.85); }
.leaflet-popup-content-wrapper {
  background: #141c2e;
  color: #e8eef8;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
.leaflet-popup-tip { background: #141c2e; }
.leaflet-popup-content {
  margin: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.35;
}
.storm-popup-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.storm-popup-meta { color: rgba(200, 214, 230, 0.78); font-size: 0.78rem; }
.storm-popup a, .leaflet-popup-content a { color: #5eead4; }
.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;
}
