/* Fix altezza e visibilità mappa */
#map { height: 100%; width: 100%; min-height: 600px; }
.leaflet-container { font-family: 'Inter', sans-serif; z-index: 10; }

/* ── Custom marker dot ── */
.station-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.8);
}
.station-dot.online {
  background: #006a46;
  box-shadow: 0 0 0 0 rgba(0,106,70,0.4);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.station-dot.offline {
  background: #ba1a1a;
}
.webcam-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  box-shadow: 0 0 3px rgba(0,0,0,.4);   /* 👈 era 5px, ridotto */
  background: #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
}
.webcam-dot.online,
.webcam-dot.offline { background: #3498db; }

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,106,70,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,106,70,0); }
}

/* ── Popup Styling ── */
.leaflet-popup-content-wrapper {
  padding: 0; overflow: hidden; border-radius: 12px;
}
.station-popup { padding: 16px; min-width: 200px; }
.station-popup .popup-id { font-size: 10px; font-weight: 800; color: #006a46; text-transform: uppercase; }
.station-popup .popup-name { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: #191c1c; }
.station-popup .popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.popup-metric label { display: block; font-size: 9px; text-transform: uppercase; color: #3e4942; }
.popup-metric value { display: block; font-size: 14px; font-weight: 700; }
.popup-link {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #f2f4f3; padding: 8px; border-radius: 8px;
  text-decoration: none; font-size: 11px; font-weight: 700; color: #006a46;
}
