.weather-page {
  --weather-panel: rgba(27, 36, 47, 0.9);
  --weather-map-height: clamp(560px, calc(100vh - 230px), 760px);
}

.leaflet-container {
  outline-offset: 1px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  left: 0;
  position: absolute;
  top: 0;
}

.leaflet-container img.leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
  max-height: none !important;
  max-width: none !important;
}

.leaflet-tile {
  border: 0;
  filter: inherit;
  user-select: none;
}

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  pointer-events: none;
  position: absolute;
  z-index: 1000;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  clear: both;
  float: left;
  pointer-events: auto;
  position: relative;
  z-index: 800;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  display: block;
  height: 30px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  width: 30px;
}

.weather-page .station-bar {
  position: sticky;
}

.weather-page .studio-nav-button {
  text-decoration: none;
}

.weather-page .studio-nav-button.is-current {
  background: rgba(255, 255, 255, 0.19);
  border-color: rgba(255, 255, 255, 0.34);
}

.weather-shell {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1380px;
  min-width: 0;
  padding: 26px 18px 36px;
  width: 100%;
}

.weather-hero,
.weather-map-stage,
.weather-map-card,
.weather-control-panel,
.weather-station-card {
  border-radius: var(--radius);
  min-width: 0;
}

.weather-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 52%),
    linear-gradient(90deg, rgba(19, 27, 37, 0.94), rgba(29, 39, 52, 0.84)),
    var(--panel-float);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  position: relative;
}

.weather-hero::before {
  background: linear-gradient(90deg, var(--blue), var(--red), transparent 78%);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.weather-copy {
  max-width: 760px;
  min-width: 0;
}

.weather-copy h1 {
  font-size: clamp(2.45rem, 6vw, 5.3rem);
}

.weather-copy p:not(.eyebrow) {
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.5;
  margin: 18px 0 0;
}

.weather-live-card {
  align-items: center;
  background: rgba(9, 14, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--muted-strong);
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  justify-self: end;
  padding: 10px 14px;
  white-space: nowrap;
}

.weather-live-dot {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(32, 212, 102, 0.85);
  height: 10px;
  width: 10px;
}

.weather-radio-strip {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 62%),
    rgba(22, 30, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 12px 14px;
}

.weather-radio-strip.is-live {
  border-left-color: var(--green);
}

.weather-radio-strip.is-speaking {
  border-left-color: var(--amber);
}

.weather-radio-cover {
  aspect-ratio: 1;
  background: #101820;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 58px;
}

.weather-radio-cover img,
.weather-radio-cover span {
  grid-area: 1 / 1;
  height: 100%;
  width: 100%;
}

.weather-radio-cover img {
  display: block;
  object-fit: cover;
}

.weather-radio-cover span {
  align-items: center;
  color: var(--amber);
  display: flex;
  font-weight: 950;
  justify-content: center;
}

.weather-radio-copy {
  min-width: 0;
}

.weather-radio-copy h2 {
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.08;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-radio-copy p:not(.label) {
  color: var(--muted);
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-radio-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  width: min(420px, 100%);
}

.weather-radio-progress span {
  background: linear-gradient(90deg, var(--red), var(--amber));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 0%;
}

.weather-radio-side {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.weather-radio-side > span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.weather-radio-live-link {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
}

.weather-radio-live-link:hover {
  background: rgba(240, 6, 52, 0.24);
  border-color: rgba(240, 6, 52, 0.44);
}

.weather-map-stage {
  display: grid;
  gap: 18px;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: var(--weather-map-height);
}

.weather-control-panel {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 58%),
    var(--weather-panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.weather-control-panel h2 {
  font-size: 1.42rem;
  line-height: 1.08;
  margin: 0;
}

.weather-layer-list {
  display: grid;
  gap: 10px;
}

.weather-layer-button {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.weather-layer-button:hover,
.weather-layer-button.is-active {
  background:
    linear-gradient(90deg, rgba(240, 6, 52, 0.22), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.26);
}

.weather-layer-button span {
  font-weight: 950;
}

.weather-layer-button small {
  color: var(--muted);
  font-weight: 760;
}

.weather-map-card {
  background: #111820;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-float);
  height: var(--weather-map-height);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.weather-map {
  background: #101820;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.weather-map .leaflet-control-attribution {
  background: rgba(10, 15, 21, 0.72);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.7rem;
}

.weather-map .leaflet-control-attribution a {
  color: white;
}

.weather-map .leaflet-control-zoom a {
  background: rgba(16, 24, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: white;
}

.weather-map .leaflet-control-zoom a:hover {
  background: rgba(240, 6, 52, 0.88);
}

.weather-station-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 60%),
    rgba(18, 26, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.4);
  color: var(--text);
  max-width: 330px;
  max-height: calc(100% - 36px);
  overflow: auto;
  padding: 18px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(330px, calc(100% - 36px));
  z-index: 450;
}

.weather-station-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.weather-station-head .label {
  margin: 0;
}

.weather-clear-selection {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 9px;
}

.weather-clear-selection:hover {
  background: rgba(240, 6, 52, 0.24);
  border-color: rgba(240, 6, 52, 0.44);
}

.weather-station-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 4px 0 8px;
}

.weather-station-card p:not(.label) {
  color: var(--muted-strong);
  line-height: 1.4;
  margin: 0 0 14px;
  text-transform: capitalize;
}

.weather-station-card .weather-coordinates {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  margin: -6px 0 14px;
  text-transform: none;
}

.weather-forecast-box {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.weather-forecast-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.weather-forecast-head span {
  color: #ff6b80;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.weather-forecast-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.weather-forecast-strip {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weather-forecast-chip {
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 54px;
  min-width: 0;
  padding: 8px 9px;
  text-align: left;
}

.weather-forecast-chip:hover,
.weather-forecast-chip.is-active {
  background: rgba(240, 6, 52, 0.2);
  border-color: rgba(240, 6, 52, 0.42);
}

.weather-forecast-chip span,
.weather-forecast-chip strong,
.weather-forecast-chip small {
  display: block;
  line-height: 1;
}

.weather-forecast-chip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.weather-forecast-chip strong {
  font-size: 1rem;
  font-weight: 950;
}

.weather-forecast-chip small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.weather-station-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.weather-station-card dl div {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  padding-top: 9px;
}

.weather-station-card dt {
  color: var(--muted);
}

.weather-station-card dd {
  font-weight: 900;
  margin: 0;
}

.weather-legend {
  background: rgba(13, 18, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  bottom: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  color: var(--muted-strong);
  display: grid;
  gap: 7px;
  left: 18px;
  min-width: 240px;
  padding: 12px;
  position: absolute;
  z-index: 450;
}

.weather-legend span {
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.weather-legend-bar {
  border-radius: 999px;
  height: 9px;
}

.weather-legend-ticks {
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  font-size: 0.72rem;
  font-weight: 850;
  justify-content: space-between;
  line-height: 1;
}

.weather-legend small {
  color: var(--muted);
}

.weather-legend-temp .weather-legend-bar {
  background: linear-gradient(90deg, #4a4bff, #2dd5ff, #f4e95d, #ff7a2e, #c8132d);
}

.weather-legend-precipitation .weather-legend-bar {
  background: linear-gradient(90deg, rgba(74, 145, 255, 0.1), #55d5ff, #2488ff, #8c3dff);
}

.weather-legend-clouds .weather-legend-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), #d9e1ea, #5d6b7c);
}

.weather-legend-wind .weather-legend-bar {
  background: linear-gradient(90deg, #d7f9ff, #6fd8ff, #2578ff, #5b2cff);
}

.weather-legend-pressure .weather-legend-bar {
  background: linear-gradient(90deg, #2346ff, #63d6ff, #f4e95d, #ff4a4a);
}

.weather-picked-marker {
  background: transparent;
  border: 0;
}

.weather-picked-marker span {
  background: var(--red);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: block;
  height: 22px;
  transform: rotate(-45deg);
  width: 22px;
}

.weather-picked-marker span::after {
  background: white;
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
}

.weather-error {
  background: rgba(240, 6, 52, 0.22);
  border-color: rgba(240, 6, 52, 0.5);
}

@media (max-width: 980px) {
  .weather-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .weather-live-card {
    justify-self: start;
  }

  .weather-map-stage {
    grid-template-columns: 1fr;
  }

  .weather-radio-strip {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .weather-radio-cover {
    width: 54px;
  }

  .weather-radio-side {
    align-items: center;
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
  }

  .weather-control-panel {
    grid-template-columns: 1fr;
  }

  .weather-layer-list {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .weather-layer-button {
    min-width: 120px;
  }
}

@media (max-width: 640px) {
  .weather-page {
    --weather-map-height: 66vh;
  }

  .weather-shell {
    gap: 14px;
    padding: 12px 10px 24px;
  }

  .weather-hero {
    padding: 24px 20px;
  }

  .weather-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.1rem);
  }

  .weather-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .weather-map-stage {
    gap: 14px;
  }

  .weather-radio-strip {
    gap: 10px;
    padding: 10px;
  }

  .weather-radio-copy h2 {
    white-space: normal;
  }

  .weather-radio-side {
    gap: 8px;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .weather-radio-side > span,
  .weather-radio-live-link {
    text-align: center;
  }

  .weather-control-panel {
    padding: 16px;
  }

  .weather-layer-list {
    margin: 0 -16px;
    padding: 0 16px 2px;
  }

  .weather-station-card {
    bottom: 86px;
    left: 12px;
    max-width: none;
    max-height: 43vh;
    padding: 14px;
    right: 12px;
    top: auto;
    width: auto;
  }

  .weather-forecast-head {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .weather-forecast-head small {
    text-align: left;
  }

  .weather-forecast-strip {
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .weather-forecast-chip {
    min-width: 78px;
  }

  .weather-station-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-station-card dl div {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .weather-station-head {
    align-items: start;
  }

  .weather-legend {
    bottom: 12px;
    left: 12px;
    min-width: 0;
    right: 12px;
  }
}
