.weather-filter-group {
  margin: 1rem 0 0;
  padding: .8rem .85rem .7rem;
  border: 1px solid var(--border, rgba(148, 163, 184, .28));
  border-radius: .75rem;
}
.weather-filter-group legend { padding: 0 .35rem; font-weight: 700; }
.weather-framework-status { margin: 0 0 .65rem; font-size: .78rem; line-height: 1.35; color: var(--muted, #64748b); }
.weather-framework-status.error { color: #b91c1c; }
.weather-filter-row { min-height: 2rem; }
.weather-filter-row.is-unavailable { opacity: .58; }
.weather-filter-row input:disabled { cursor: not-allowed; }
.weather-filter-symbol { display: inline-grid; place-items: center; width: 1.25rem; margin-right: .35rem; font-style: normal; font-weight: 700; color: #0ea5e9; }
.weather-opacity-field { margin-top: .65rem; }
.weather-opacity-field.is-disabled { opacity: .58; }
.weather-opacity-field input:disabled { cursor: not-allowed; }

.weather-map-status {
  position: absolute;
  z-index: 720;
  right: 12px;
  top: 12px;
  max-width: min(340px, calc(100% - 24px));
  padding: 7px 10px;
  border: 1px solid rgba(14, 165, 233, .35);
  border-radius: 8px;
  background: rgba(15, 23, 42, .86);
  color: #e0f2fe;
  font-size: 12px;
  backdrop-filter: blur(7px);
  pointer-events: none;
}
.weather-map-status.error { border-color: rgba(248, 113, 113, .45); color: #fecaca; }

.weather-radar-legend {
  position: absolute;
  z-index: 720;
  right: 12px;
  top: 52px;
  width: 180px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: rgba(15, 23, 42, .84);
  color: #e2e8f0;
  font-size: 11px;
  backdrop-filter: blur(7px);
  pointer-events: none;
}
.weather-radar-legend strong { display: block; margin-bottom: 5px; }
.weather-radar-gradient {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #66b7ff 0%, #2985ff 18%, #2bd36f 40%, #ffe74a 62%, #ff8a24 78%, #ec3046 91%, #b71cff 100%);
}
.weather-radar-scale { display: flex; justify-content: space-between; margin-top: 3px; color: #cbd5e1; }

@media (max-width: 760px) {
  .weather-filter-group { margin-top: .8rem; }
  .weather-map-status { top: 8px; right: 8px; }
  .weather-radar-legend { top: 46px; right: 8px; width: 150px; }
}

/* AirRadar 2.3.3 airport METAR */
.airport-popup { min-width: 250px; }
.airport-popup > dl, .airport-metar dl { display: grid; gap: .28rem; margin: .55rem 0; }
.airport-popup dl > div, .airport-metar dl > div { display: grid; grid-template-columns: minmax(92px, 1fr) minmax(90px, 1.35fr); gap: .65rem; }
.airport-popup dt, .airport-metar dt { opacity: .7; }
.airport-popup dd, .airport-metar dd { margin: 0; text-align: right; font-weight: 600; }
.airport-metar { border-top: 1px solid rgba(120,130,145,.28); margin-top: .65rem; padding-top: .65rem; }
.airport-metar-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.airport-metar-state { border-top: 1px solid rgba(120,130,145,.28); margin-top: .65rem; padding: .65rem 0; opacity: .75; }
.airport-metar-state.is-error { color: #b42318; }
.flight-category { border-radius: 999px; font-size: .72rem; font-weight: 800; padding: .15rem .48rem; background: #64748b; color: #fff; }
.fc-vfr { background: #15803d; } .fc-mvfr { background: #2563eb; } .fc-ifr { background: #dc2626; } .fc-lifr { background: #9333ea; }
.metar-raw { display: block; white-space: normal; overflow-wrap: anywhere; border-radius: .4rem; padding: .5rem; margin: .55rem 0; background: rgba(100,116,139,.12); font-size: .75rem; line-height: 1.35; }
@media (max-width: 640px) { .airport-popup { min-width: 220px; } .airport-popup dl > div, .airport-metar dl > div { grid-template-columns: 1fr 1fr; } }


/* AirRadar 2.3.4 model layers and TAF */
.weather-model-icon { background: transparent; border: 0; }
.weather-value-marker {
  display: grid; place-items: center; min-width: 42px; height: 28px; padding: 0 6px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  background: color-mix(in srgb, var(--weather-color) 80%, rgba(15,23,42,.85));
  color: #fff; box-shadow: 0 2px 9px rgba(15,23,42,.38); font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55); white-space: nowrap;
}
.weather-wind-marker {
  display: grid; grid-template-columns: 20px auto; grid-template-rows: 18px 12px;
  align-items: center; justify-items: center; width: 44px; height: 42px;
  border: 1px solid rgba(14,165,233,.5); border-radius: 50%;
  background: rgba(15,23,42,.82); color: #e0f2fe; box-shadow: 0 2px 8px rgba(15,23,42,.35);
}
.weather-wind-marker span { grid-row: 1 / span 2; font-size: 22px; transform-origin: center; }
.weather-wind-marker b { font-size: 11px; line-height: 1; }
.weather-wind-marker small { font-size: 8px; line-height: 1; opacity: .8; }
.airport-taf { border-top: 1px solid rgba(120,130,145,.28); margin-top: .65rem; padding-top: .65rem; }
.airport-taf details summary { cursor: pointer; font-size: .78rem; font-weight: 700; }
@media (max-width: 640px) {
  .weather-value-marker { min-width: 38px; height: 26px; font-size: 11px; }
  .weather-wind-marker { transform: scale(.9); }
}
