/* Meteolab 2027 home Leaflet module */
.ml-leaflet-viewer {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #eef5fb;
}
.ml-leaflet-map {
  width: 100%;
  height: 640px;
  min-height: 480px;
  background: #dfeaf3;
}
.ml-map-layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px 0;
}
.ml-map-layer-tabs button {
  border: 1px solid rgba(21,130,199,.22);
  background: #eaf5fc;
  color: #0d5f9c;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ml-map-layer-tabs button.active,
.ml-map-layer-tabs button:hover {
  background: #002050;
  border-color: #002050;
  color: #fff;
}
.ml-map-focus-active .ml-map-card {
  position: fixed;
  inset: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 22px;
}
.ml-map-focus-active .ml-map-card .ml-map-wrap {
  flex: 1 1 auto;
}
.ml-map-focus-active .ml-leaflet-map {
  height: 100% !important;
  min-height: 0;
}
.ml-map-focus-active .ml-map-card .ml-map-head { display: none; }
.ml-map-focus-active .ml-map-card .ml-map-layer-tabs {
  margin-bottom: 10px;
  padding-right: 120px;
}
.ml-map-focus-active .ml-map-collapse-inside {
  display: inline-flex;
}
@media (max-width: 767.98px) {
  .ml-leaflet-map {
    height: 72vh;
    min-height: 520px;
  }
  .ml-map-layer-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
  }
  .ml-map-layer-tabs button {
    flex: 0 0 auto;
    font-size: .78rem;
    padding: 7px 10px;
  }
  .ml-map-foot .ml-focus-btn,
  .ml-map-collapse-inside { display: none !important; }
}
.ml-leaflet-title-box {
  background: rgba(255,255,255,.96);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
  min-width: 250px;
  max-width: 390px;
}
.ml-leaflet-title-main {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.ml-leaflet-title-time {
  margin-top: 3px;
  font-size: .76rem;
  color: #64748b;
  font-weight: 600;
}
.ml-anim-control {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.ml-anim-btn,
.ml-locate-btn {
  border: 0;
  border-radius: 999px;
  background: #002050;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(21,130,199,.28);
}
.ml-anim-btn {
  width: 30px;
  height: 26px;
  line-height: 26px;
}
.ml-anim-btn:disabled { opacity: .55; cursor: progress; }
.ml-anim-slider {
  flex: 1;
  min-width: 150px;
  height: 4px;
  accent-color: #002050;
}
.ml-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: .82rem;
  white-space: nowrap;
}
.ml-legend-box {
  background: rgba(255,255,255,.96);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 13px;
  padding: 9px 10px;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
  font-size: .72rem;
}
.ml-legend-title { font-weight: 800; margin-bottom: 6px; }
.ml-legend-row { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.ml-legend-color { width: 20px; height: 9px; border-radius: 3px; border: 1px solid rgba(0,0,0,.22); }
.station-label {
  background: #fff;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #0f172a;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.station-label.stale { color: #777 !important; border-color: #777 !important; }
.extreme-max { border: 2px solid #d00000 !important; }
.extreme-min { border: 2px solid #005eff !important; }
.wind-marker {
  background: #fff;
  border: 1px solid #0f172a;
  border-radius: 9px;
  padding: 4px 7px 5px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.wind-marker.stale { border-color: #777 !important; }
.wind-arrow { width: 30px; height: 30px; margin: 0 auto 2px; transform-origin: center center; }
.wind-arrow svg { width: 30px; height: 30px; display: block; }
.wind-values { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; font-weight: 900; line-height: 1.05; }
.wind-ff { color: #0050c8 !important; }
.wind-gust { color: #c00000 !important; }
.wind-marker.stale .wind-ff, .wind-marker.stale .wind-gust { color: #777 !important; }
.synop { width: 58px; height: 44px; color: #000; font-size: 10px; font-weight: 900; position: relative; pointer-events: none; background: transparent !important; border: none !important; box-shadow: none !important; }
.synop .center { position: absolute; left: 28px; top: 21px; width: 3px; height: 3px; background: #000; border-radius: 50%; }
.synop .barb { position: absolute; left: 29px; top: 12px; width: 1.3px; height: 17px; background: #000; transform-origin: bottom center; }
.synop .t { position: absolute; left: 0; top: 0; color: #9b0000; }
.synop .td { position: absolute; left: 0; bottom: 0; color: #007060; }
.synop .p { position: absolute; right: 0; top: 0; color: #000; }
.synop .rr { position: absolute; right: 0; bottom: 0; color: #0050b8; }
.popup { width: 360px; max-width: 88vw; }
.popup h3 { margin: 0 0 4px; font-size: 15px; }
.popup-meta { font-size: 12px; color: #334155; margin-bottom: 5px; }
.popup-main { font-size: 13px; margin-bottom: 5px; }
.chart-wrap { height: 220px; }
.chart-wrap canvas { width: 100% !important; height: 220px !important; }
@media (max-width: 700px) {
  .ml-leaflet-title-box { min-width: 210px; max-width: 78vw; padding: 8px 10px; }
  .ml-leaflet-title-main { font-size: .8rem; }
  .ml-leaflet-title-time { font-size: .68rem; }
  .ml-anim-slider { min-width: 115px; }
  .ml-locate-btn { padding: 7px 10px; font-size: .74rem; }
  .station-label { font-size: 12px; padding: 2px 5px; }
  .popup { width: 92vw; }
  .chart-wrap, .chart-wrap canvas { height: 240px !important; }
}

/* Leaflet UI refinements 2027-02 */
.ml-leaflet-title-main {
  font-size: 1.02rem;
  font-weight: 850;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.ml-leaflet-title-time {
  font-size: .78rem;
  line-height: 1.25;
}
.ml-leaflet-title-box:not(.is-raster) .ml-anim-control {
  display: none !important;
}
.ml-leaflet-title-box.is-raster .ml-anim-control {
  display: flex;
}
.ml-anim-control {
  margin-top: 7px;
  gap: 7px;
}
.ml-anim-slider {
  height: 3px;
  min-width: 165px;
}
.ml-anim-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
}
.ml-anim-slider::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
}
.ml-anim-slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
}
.ml-anim-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
}
.ml-location-control.leaflet-control {
  margin-left: 46px;
  margin-top: -64px;
}
.ml-locate-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
}
@media (max-width: 700px) {
  .ml-leaflet-title-main { font-size: .92rem; }
  .ml-leaflet-title-time { font-size: .72rem; }
  .ml-location-control.leaflet-control {
    margin-left: 43px;
    margin-top: -62px;
  }
  .ml-locate-btn span { display: none; }
  .ml-locate-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
}


/* Patch: keep Meteolab Leaflet title/timeline panel visible above all map layers */
.ml-leaflet-viewer .leaflet-top.leaflet-right,
.ml-leaflet-viewer .leaflet-top.leaflet-right .leaflet-control,
.ml-leaflet-viewer .ml-leaflet-title-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000 !important;
}
.ml-leaflet-title-box.is-raster .ml-anim-control {
  display: flex !important;
}
.ml-leaflet-title-box:not(.is-raster) .ml-anim-control {
  display: none !important;
}

/* Leaflet patch 2027-04: unified title/timeline panel */
.ml-leaflet-title-box {
  min-width: 310px;
  max-width: min(430px, 82vw);
}
.ml-leaflet-title-main {
  display: block;
  font-size: 1.06rem !important;
  line-height: 1.15;
  font-weight: 850 !important;
  letter-spacing: -0.015em;
  color: #0f172a;
  white-space: normal;
}
.ml-leaflet-title-time {
  display: block;
  margin-top: 4px;
  font-size: .78rem !important;
  line-height: 1.25;
  font-weight: 650;
  color: #526176;
  white-space: normal;
}
.ml-leaflet-title-box.is-data-layer .ml-anim-control,
.ml-leaflet-title-box:not(.is-raster) .ml-anim-control,
.ml-anim-control[hidden] {
  display: none !important;
}
.ml-leaflet-title-box.is-raster .ml-anim-control:not([hidden]) {
  display: flex !important;
  align-items: center;
}
.ml-anim-control {
  width: 100%;
  margin-top: 9px;
  gap: 8px;
}
.ml-anim-slider {
  display: block !important;
  flex: 1 1 auto;
  width: 100%;
  min-width: 170px;
  height: 18px;
  padding: 0;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  accent-color: #002050;
}
.ml-anim-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: #d9e8f3;
  border-radius: 999px;
}
.ml-anim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #002050;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(15,23,42,.32);
}
.ml-anim-slider::-moz-range-track {
  height: 4px;
  background: #d9e8f3;
  border-radius: 999px;
}
.ml-anim-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #002050;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(15,23,42,.32);
}
.ml-anim-slider:disabled {
  opacity: .55;
}
@media (max-width: 700px) {
  .ml-leaflet-title-box {
    min-width: 230px;
    max-width: 78vw;
  }
  .ml-leaflet-title-main {
    font-size: .94rem !important;
  }
  .ml-leaflet-title-time {
    font-size: .7rem !important;
  }
  .ml-anim-slider {
    min-width: 125px;
  }
}


/* Leaflet patch 2027-05: single title/timeline panel, no duplicate timeline on data layers */
.ml-leaflet-viewer .layer-title-box,
.ml-leaflet-viewer #layerTitleBox ~ #layerTitleBox {
  display: none !important;
}
.ml-leaflet-title-box {
  box-sizing: border-box;
  min-width: 320px;
  max-width: min(430px, 86vw);
  padding: 10px 12px;
}
.ml-leaflet-title-main {
  display: block !important;
  margin: 0 !important;
  font-size: 1.06rem !important;
  line-height: 1.16 !important;
  font-weight: 850 !important;
  letter-spacing: -0.015em;
  color: #0f172a !important;
}
.ml-leaflet-title-time {
  display: block !important;
  margin-top: 4px !important;
  font-size: .78rem !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  color: #526176 !important;
}
.ml-leaflet-title-box.is-data-layer .ml-anim-control,
.ml-leaflet-title-box.is-data-layer #animControl,
#animControl[hidden] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.ml-leaflet-title-box.is-raster .ml-anim-control:not([hidden]),
.ml-leaflet-title-box.is-raster #animControl:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  margin-top: 9px !important;
  padding: 0 !important;
  overflow: visible !important;
  align-items: center;
  gap: 8px;
}
.ml-anim-slider {
  flex: 1 1 auto;
  min-width: 170px;
  accent-color: #002050;
}
@media (max-width: 700px) {
  .ml-leaflet-title-box { min-width: 230px; max-width: 82vw; }
  .ml-leaflet-title-main { font-size: .92rem !important; }
  .ml-leaflet-title-time { font-size: .72rem !important; }
}


/* Leaflet patch 2027-06: interactive title panel and loading state */
.ml-leaflet-viewer .leaflet-top.leaflet-right,
.ml-leaflet-viewer .leaflet-top.leaflet-right .leaflet-control,
.ml-leaflet-title-box,
.ml-leaflet-title-box * {
  pointer-events: auto !important;
}

.ml-leaflet-title-box {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.ml-anim-control {
  min-height: 28px;
}

.ml-anim-btn {
  flex: 0 0 32px;
  position: relative;
  z-index: 10000;
}

.ml-anim-loading {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 150px;
  min-height: 24px;
  padding: 0 2px;
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 700;
  color: #526176;
  white-space: nowrap;
}

.ml-anim-loading[hidden] {
  display: none !important;
}

.ml-leaflet-title-box.is-raster .ml-anim-slider:not([hidden]) {
  display: block !important;
}

.ml-leaflet-title-box.is-raster .ml-anim-loading:not([hidden]) + .ml-anim-slider {
  display: none !important;
}

@media (max-width: 700px) {
  .ml-anim-loading {
    min-width: 115px;
    font-size: .7rem;
  }
}

/* FINAL slider state fix: raster timeline always visible after JSON load */
.ml-leaflet-title-box.is-raster #animControl,
.ml-leaflet-title-box.is-raster .ml-anim-control {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 28px !important;
  margin-top: 9px !important;
  overflow: visible !important;
  align-items: center !important;
  gap: 8px !important;
}
.ml-leaflet-title-box.is-raster #animSlider,
.ml-leaflet-title-box.is-raster .ml-anim-slider {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 1 auto !important;
  min-width: 170px !important;
  height: 18px !important;
}
.ml-leaflet-title-box.is-raster #animLoading,
.ml-leaflet-title-box.is-raster .ml-anim-loading {
  display: none !important;
  visibility: hidden !important;
}
.ml-leaflet-title-box.is-data-layer #animControl,
.ml-leaflet-title-box.is-data-layer .ml-anim-control {
  display: none !important;
  visibility: hidden !important;
}


/* Meteolab Leaflet final integration: location, lightning, wind and timeline */
.ml-location-control.leaflet-control {
  margin-left: 0 !important;
  margin-top: 10px !important;
}
.ml-locate-btn {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  color: #333 !important;
  border: 2px solid rgba(0,0,0,.2) !important;
  box-shadow: none !important;
}
.ml-locate-btn:hover { background: #f4f4f4 !important; }
.ml-locate-btn svg { width: 18px; height: 18px; display: block; }

.ml-lightning-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(15,23,42,.1);
  font-size: .76rem;
  font-weight: 750;
  color: #334155;
  cursor: pointer;
}
.ml-lightning-toggle[hidden] { display: none !important; }
.ml-lightning-toggle input { margin: 0; accent-color: #002050; }
.ml-lightning-toggle strong {
  margin-left: auto;
  min-width: 25px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef5fb;
  color: #0d5f9c;
  text-align: center;
  font-size: .72rem;
}
.ml-lightning-symbol { color: #e0a800; font-size: 1rem; line-height: 1; }
.ml-lightning-div-icon { background: transparent !important; border: 0 !important; }
.ml-lightning-marker {
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #ffd400;
  font-size: 19px;
  line-height: 1;
  text-shadow: -1px -1px 0 #202020, 1px -1px 0 #202020, -1px 1px 0 #202020, 1px 1px 0 #202020;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}

.wind-marker {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 2px !important;
  box-shadow: none !important;
}
.wind-marker.stale { border-color: transparent !important; }
.ml-leaflet-title-box.is-raster #animSlider,
.ml-leaflet-title-box.is-raster .ml-anim-slider {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  flex: 1 1 170px !important;
  min-width: 0 !important;
  position: static !important;
}
.ml-leaflet-title-box.is-raster #animControl {
  display: flex !important;
  width: 100% !important;
}

@media (max-width: 700px) {
  .ml-location-control.leaflet-control {
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
  .ml-leaflet-title-box { max-width: 84vw !important; }
  .ml-lightning-toggle { font-size: .7rem; }
}


/* Meteolab Leaflet refinements 2027-07 */
.ml-location-control.leaflet-control {
  margin-left: 10px !important;
  margin-top: 10px !important;
}
.ml-radar-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(15,23,42,.09);
  font-size: .66rem;
  line-height: 1.25;
  color: #475569;
}
.ml-radar-status[hidden] { display: none !important; }
.ml-radar-status-count { font-weight: 800; color: #0f172a; white-space: nowrap; }
.ml-radar-status-count i {
  display: inline-block; width: 7px; height: 7px; margin-right: 4px;
  border-radius: 50%; background: #20a44b;
}
.ml-radar-active { color: #21743a; }
.ml-radar-inactive { color: #bd1e1e; font-weight: 700; }
@media (max-width: 700px) {
  .ml-leaflet-title-box {
    min-width: 0 !important;
    width: min(245px, 68vw) !important;
    max-width: 68vw !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
  }
  .ml-leaflet-title-main { font-size: .82rem !important; line-height: 1.08 !important; }
  .ml-leaflet-title-time { font-size: .65rem !important; margin-top: 2px !important; }
  .ml-anim-control { margin-top: 6px !important; gap: 5px !important; min-height: 24px !important; }
  .ml-anim-btn { flex-basis: 28px !important; width: 28px !important; height: 24px !important; line-height: 24px !important; }
  .ml-anim-slider { height: 14px !important; }
  .ml-lightning-toggle { margin-top: 5px; padding-top: 5px; font-size: .64rem; gap: 4px; }
  .ml-lightning-toggle strong { min-width: 20px; padding: 1px 4px; font-size: .62rem; }
  .ml-radar-status { margin-top: 4px; padding-top: 4px; font-size: .59rem; gap: 2px 5px; }
  .ml-radar-active, .ml-radar-inactive { display: none; }
  .ml-legend-box { transform: scale(.86); transform-origin: bottom right; }
  .ml-location-control.leaflet-control { margin-left: 10px !important; margin-top: 8px !important; }
}


/* Meteolab Leaflet refinements 2027-08 */
.ml-leaflet-title-box {
  min-width: 270px !important;
  max-width: min(365px, 78vw) !important;
  padding: 8px 10px !important;
}
.ml-leaflet-title-main { font-size: .91rem !important; line-height: 1.12 !important; }
.ml-leaflet-title-time { font-size: .69rem !important; margin-top: 3px !important; }
.ml-anim-control { margin-top: 7px !important; min-height: 25px !important; }
.ml-lightning-toggle { margin-top: 5px !important; padding-top: 5px !important; font-size: .68rem !important; }
.ml-radar-status-card {
  display: block;
  box-sizing: border-box;
  max-width: 250px;
  margin-left: 10px !important;
  margin-bottom: 10px !important;
  padding: 7px 9px;
  background: rgba(255,255,255,.96);
  color: #334155;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(15,23,42,.14);
  font-size: .64rem;
  line-height: 1.28;
}
.ml-radar-status-card[hidden] { display: none !important; }
.ml-radar-status-head { margin-bottom: 2px; }
.ml-radar-status-card .ml-radar-active,
.ml-radar-status-card .ml-radar-inactive { white-space: normal; }
.ml-radar-status-card .ml-radar-active { color: #21743a; }
.ml-radar-status-card .ml-radar-inactive { color: #bd1e1e; font-weight: 700; }
.ml-mobile-layer-info { display: none; }

@media (max-width: 700px) {
  .ml-leaflet-viewer .leaflet-top.leaflet-right { display: none !important; }
  .ml-mobile-layer-info {
    display: block;
    margin-top: 10px;
  }
  .ml-mobile-layer-info .ml-leaflet-title-box {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 11px !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: #fff !important;
  }
  .ml-mobile-layer-info .ml-leaflet-title-main { font-size: .86rem !important; }
  .ml-mobile-layer-info .ml-leaflet-title-time { font-size: .68rem !important; }
  .ml-mobile-layer-info .ml-anim-control { min-height: 28px !important; margin-top: 7px !important; }
  .ml-mobile-layer-info .ml-lightning-toggle { font-size: .7rem !important; }
  .ml-radar-status-card {
    max-width: 210px;
    padding: 6px 8px;
    font-size: .6rem;
  }
  .ml-radar-status-card .ml-radar-active,
  .ml-radar-status-card .ml-radar-inactive { display: block !important; }
  .ml-leaflet-map { height: 62vh !important; min-height: 420px !important; }
}

/* ==========================================================
   METEOLAB 2027 — FINAL LEAFLET RESPONSIVE OVERRIDES
   This block is authoritative and must remain at file end.
   ========================================================== */

.ml-leaflet-viewer {
  height: auto !important;
  min-height: 0 !important;
}

.ml-leaflet-map {
  display: block;
  width: 100%;
}

/* Compact desktop information panel */
.ml-leaflet-title-box {
  min-width: 260px !important;
  max-width: min(350px, 76vw) !important;
  padding: 8px 10px !important;
}

.ml-leaflet-title-main {
  font-size: .90rem !important;
  line-height: 1.12 !important;
}

.ml-leaflet-title-time {
  font-size: .68rem !important;
  line-height: 1.22 !important;
}

/* Radar status uses the same white visual language as other controls. */
.ml-radar-status-card {
  background: #fff !important;
  color: #334155 !important;
  opacity: 1 !important;
}

/* Tablet */
@media (max-width: 900px) {
  .ml-leaflet-title-box {
    min-width: 245px !important;
    max-width: min(330px, 72vw) !important;
  }
}

/* Phone:
   the information panel is outside the Leaflet viewport and the map
   height is controlled by width, not changing viewport height. */
@media (max-width: 700px) {
  .ml-leaflet-viewer {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .ml-leaflet-map {
    width: 100% !important;
    height: clamp(440px, 100vw, 600px) !important;
    min-height: 0 !important;
    max-height: 600px !important;
  }

  .ml-mobile-layer-info {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
  }

  .ml-mobile-layer-info:empty {
    display: none !important;
    margin: 0 !important;
  }

  .ml-mobile-layer-info .ml-leaflet-title-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 11px !important;
  }

  .ml-radar-status-card {
    max-width: 205px !important;
    margin-left: 10px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 430px) {
  .ml-leaflet-map {
    height: 440px !important;
    max-height: 440px !important;
  }
}

/* ==========================================================
   METEOLAB 2027 — WIND MARKER ONLY
   ========================================================== */

.wind-marker {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 58px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.wind-arrow {
  flex: 0 0 30px !important;
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 auto !important;
  transform-origin: 50% 50% !important;
}

.wind-arrow svg {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
}

.wind-values {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 58px !important;
  height: 16px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.wind-values > span {
  display: inline-block !important;
  min-width: 22px !important;
  text-align: center !important;
}

.wind-marker.stale {
  border-color: transparent !important;
}



/* Lightning timeline markers: compact plus sign with a thin dark outline. */
.ml-lightning-symbol {
  color: #e0a800;
  font-size: 1rem;
  line-height: 1;
  font-weight: 900;
}

.ml-lightning-marker {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #ffd400;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 18px;
  font-weight: 900;
  text-shadow:
    -0.55px -0.55px 0 #202020,
     0.55px -0.55px 0 #202020,
    -0.55px  0.55px 0 #202020,
     0.55px  0.55px 0 #202020;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.28));
}


/* Final lightning symbol refinement: thinner and less dominant. */
.ml-lightning-symbol {
  font-size: .95rem !important;
  font-weight: 700 !important;
}

.ml-lightning-marker {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  text-shadow:
    -0.32px -0.32px 0 #202020,
     0.32px -0.32px 0 #202020,
    -0.32px  0.32px 0 #202020,
     0.32px  0.32px 0 #202020 !important;
  filter: drop-shadow(0 0.6px 0.7px rgba(0,0,0,.22)) !important;
}


/* ==========================================================
   METEOLAB 2027 — RADAR LEGEND
   Continuous 3 dBZ colour scale with labels every 12 dBZ.
   ========================================================== */

.ml-radar-legend-box {
  box-sizing: border-box;
  width: min(340px, calc(100vw - 48px));
  padding: 8px 10px 7px !important;
}

.ml-radar-legend-title {
  margin: 0 0 5px;
  color: #334155;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.ml-radar-legend-scale {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,23,42,.34);
  border-radius: 2px;
}

.ml-radar-legend-segment {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.ml-radar-legend-labels {
  position: relative;
  width: 100%;
  height: 13px;
  margin-top: 3px;
  color: #334155;
  font-size: .61rem;
  font-weight: 750;
  line-height: 1;
}

.ml-radar-legend-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ml-radar-legend-label::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 1px;
  height: 3px;
  background: rgba(15,23,42,.55);
  transform: translateX(-50%);
}

.ml-radar-legend-label.is-first {
  transform: none;
}

.ml-radar-legend-label.is-first::before {
  left: 0;
  transform: none;
}

.ml-radar-legend-label.is-last {
  transform: translateX(-100%);
}

.ml-radar-legend-label.is-last::before {
  left: 100%;
  transform: translateX(-100%);
}

@media (max-width: 700px) {
  .ml-radar-legend-box {
    width: min(300px, calc(100vw - 36px));
    transform: none !important;
  }

  .ml-radar-legend-scale {
    height: 12px;
  }

  .ml-radar-legend-labels {
    font-size: .57rem;
  }
}
