/* dashboard/rain-map.css — mapa de lluvias, leyenda y ayuda */

.gw-rain-map-panel { margin-bottom: 10px; }
.gw-rain-map-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin: -8px 0 12px;
}
.gw-rain-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.gw-rain-summary-item {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.gw-rain-summary-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.gw-rain-summary-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--tab-accent, #fbbc04);
}
@media (max-width: 520px) {
  .gw-rain-summary { grid-template-columns: repeat(2, 1fr); }
}
.gw-radar-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  cursor: pointer;
  user-select: none;
}
.gw-radar-toggle input { cursor: pointer; }
.gw-sat-hora { opacity: 0.85; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gw-radar-toggle select {
  background: rgba(0,0,0,0.2);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}

.gw-rain-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gw-rain-map {
  width: 100%;
  height: 480px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 0;
  position: relative;
  overflow: hidden;
}
.gw-rain-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-primary);
}
.gw-rain-legend strong { flex: 0 0 100%; font-size: 12px; margin-bottom: 2px; }
.gw-rain-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.gw-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.3);
}
.gw-dot-sin_lluvia { background: #bdbdbd; }
.gw-dot-bajo       { background: #4fc3f7; }
.gw-dot-moderado   { background: #66bb6a; }
.gw-dot-alto       { background: #ffa726; }
.gw-dot-muy_alto   { background: #e53935; }

@media (max-width: 520px) {
  .gw-rain-map { height: 340px; }
}

.gw-rain-help {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.gw-rain-help p { margin: 0 0 8px; }
.gw-rain-help p:last-child { margin-bottom: 0; }
.gw-rain-help-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.gw-tri-demo {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid #888888;
}
.gw-tri-parpadeo {
  border-bottom-color: #4fc3f7;
  animation: gw-parpadeo 1.1s ease-in-out infinite;
}
@keyframes gw-parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.gw-marker-parpadeo { animation: gw-parpadeo 1.1s ease-in-out infinite; }
