.weather-maps-page { min-height: 100vh; color: var(--text, #e8eef3); background: transparent; }
.weather-maps-app { position: relative; min-height: min(76rem, 100vh); height: 100vh; overflow: hidden; isolation: isolate; }
#wm-map { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#wm-map.wm-drag { cursor: grabbing; }
.wm-panel { position: absolute; z-index: 2; border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: 1rem; padding: .75rem; background: rgba(15, 24, 42, .5); color: inherit; }
.wm-top { top: .75rem; left: .75rem; right: .75rem; display: flex; flex-wrap: wrap; align-items: end; gap: .55rem .8rem; }
.wm-top h1 { flex: 1 0 100%; margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.wm-top label { display: grid; gap: .2rem; font-size: .8rem; }
.wm-top select, .wm-top button, .wm-bottom button { min-height: 2.5rem; padding: .45rem .7rem; border: 1px solid var(--line, rgba(255,255,255,.24)); border-radius: .65rem; background: rgba(255,255,255,.1); color: inherit; font: inherit; }
.wm-top select option { color: #14202b; }
.wm-top button, .wm-bottom button { cursor: pointer; }
.wm-top button:focus-visible, .wm-top select:focus-visible, .wm-bottom button:focus-visible, .wm-bottom input:focus-visible { outline: 3px solid #83c7ff; outline-offset: 2px; }
#wm-overlays { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; min-width: 0; margin: 0; padding: .25rem .55rem .5rem; border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: .65rem; }
#wm-overlays legend { padding: 0 .25rem; font-size: .8rem; }
#wm-overlays label, .wm-check { display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
.wm-readout, .wm-credit, .wm-message { position: absolute; z-index: 1; margin: 0; padding: .55rem .75rem; border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: .7rem; background: rgba(15, 24, 42, .5); }
.wm-readout { top: 7.6rem; left: .75rem; max-width: calc(100vw - 1.5rem); pointer-events: none; }
.wm-credit { top: 7.6rem; right: .75rem; max-width: min(32rem, 42vw); text-align: right; font-size: .75rem; }
.wm-message { display: none; inset: 45% 1rem auto; text-align: center; }
.wm-bottom { right: .75rem; bottom: .75rem; left: .75rem; display: grid; grid-template-columns: 2.75rem 1fr; gap: .5rem .8rem; align-items: center; }
.wm-bottom button { font-size: 1.25rem; }
#wm-time { width: 100%; accent-color: #79bdff; }
.wm-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; font-size: .82rem; }
.wm-legend { display: inline-flex; align-items: center; gap: .45rem; }
#wm-legend { width: min(12.5rem, 35vw); height: .65rem; border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: 1rem; }
.weather-maps-attribution { margin: 1.5rem auto; max-width: 76rem; }
@media (max-width: 720px) {
  .weather-maps-app { height: max(100svh, 44rem); min-height: 44rem; }
  .wm-top { gap: .45rem; padding: .6rem; }
  .wm-top label { font-size: .72rem; }
  #wm-overlays { flex: 1 1 100%; }
  .wm-readout { top: 12rem; font-size: .82rem; }
  .wm-credit { display: none; }
  .wm-meta { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-maps-app *, .weather-maps-app *::before, .weather-maps-app *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
