/* Weather map page (templates/map.php). Pills and popups sit on satellite imagery, so they keep light colours in both themes. */
.weather-map { height: min(70vh, 640px); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.weather-map.leaflet-container { background: #0b1a2a; font: inherit; }
.map-credits { color: var(--muted); font-size: .8rem; margin: var(--s2) 0 0; }

/* zero-size anchor at the station point: only the pill itself takes taps */
.pin-wrap { background: none; border: 0; width: 0 !important; height: 0 !important; }
.pin { display: flex; align-items: center; gap: var(--s1); width: max-content; transform: translate(-50%, -50%); background: #fff; color: #14213d;
  border-radius: 22px; padding: 2px 12px 2px 4px; font-weight: 600; font-size: .8rem; line-height: 1.2; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); cursor: pointer; }
.pin img { width: 36px; height: 36px; display: block; }
.pin div:only-child { padding: 6px 0 6px 8px; }
.pin small { display: block; font-weight: 400; font-size: .7rem; color: #2c5f55; }
/* temperature chip, cold to hot; every pair is >= 4.5:1 contrast */
.temp { display: inline-block; border-radius: 8px; padding: 0 5px; margin-right: 5px; color: #14213d; }
.temp.t0 { background: #2b5fb3; color: #fff; }
.temp.t1 { background: #9cc9f0; }
.temp.t2 { background: #7fd1c1; }
.temp.t3 { background: #ffd75e; }
.temp.t4 { background: #ff9a4d; }
.temp.t5 { background: #c8321f; color: #fff; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fff; color: #14213d; }
.leaflet-popup-content { margin: var(--s3) var(--s4); max-width: min(280px, 75vw); }
.map-popup h2 { font-size: 1rem; margin: 0 0 var(--s2); color: #1b2a6b; }
.map-popup h3 { font-size: .85rem; margin: var(--s3) 0 var(--s1); color: #1b2a6b; }
.map-popup p, .map-popup ul { margin: 0 0 var(--s1); padding: 0; list-style: none; font-size: .85rem; }
.map-popup .stale { color: #a2461f; }
.map-popup .map-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.map-popup .map-links a { color: #1a4fa3; }

@media (max-width: 699.98px) {
  .weather-map { height: 60vh; border-radius: 12px; }
  /* smaller pills so more towns fit at country zoom on a phone */
  .pin { font-size: .7rem; padding: 1px 8px 1px 2px; gap: 2px; }
  .pin img { width: 26px; height: 26px; }
  .pin small { font-size: .62rem; }
}
