/* Weather mapping: the timeline control, alert styling, and the column.
   Kept out of orbital.css because none of it belongs to the globe. */

#wxPanel {
  position: absolute; left: 12px; bottom: 12px; z-index: 620; width: 320px;
  background: rgba(13, 22, 34, .92); border: 1px solid rgba(120, 155, 190, .35);
  border-radius: 10px; padding: 9px 11px; color: #eaf1f8; font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45); backdrop-filter: blur(3px);
}
#wxPanel.hidden { display: none; }
#wxPanel .wx-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#wxPanel .wx-head b { font-size: 12.5px; }
#wxPanel .wx-close { background: none; border: 0; color: #8fa3bd; font-size: 17px;
  cursor: pointer; line-height: 1; padding: 0 2px; }
#wxPanel .wx-layers { display: flex; gap: 10px; flex-wrap: wrap; margin: 7px 0 5px; }
#wxPanel .wx-layers label { display: flex; align-items: center; gap: 4px; cursor: pointer;
  font-size: 11.5px; color: #cbd8e6; }

/* The timeline. The scrubber is the point of the whole panel: a still frame
   cannot say whether weather is arriving or leaving. */
#wxPanel .wx-time { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
#wxPanel .wx-play { background: rgba(159, 212, 255, .14); border: 1px solid rgba(159, 212, 255, .4);
  color: #cfe6ff; border-radius: 5px; width: 26px; height: 22px; cursor: pointer;
  font-size: 11px; line-height: 1; }
#wxPanel .wx-play:hover { background: rgba(159, 212, 255, .26); }
#wxPanel input[type=range] { flex: 1; accent-color: #9fd4ff; height: 16px; }
#wxPanel .wx-when { font-variant-numeric: tabular-nums; min-width: 92px; text-align: right;
  font-size: 11.5px; }
/* Forecast frames are not the same kind of claim as observed ones, and are
   labelled as such rather than blended into the loop. */
#wxPanel .wx-when.fc { color: #ffd479; }
#wxPanel .wx-note { color: #8fa3bd; font-size: 10.5px; line-height: 1.35; margin-top: 5px; }
#wxPanel .wx-scale { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin: 5px 0 2px; }
#wxPanel .wx-scale i { display: block; height: 100%; }

/* Alerts list inside the panel */
#wxAlerts { max-height: 132px; overflow: auto; margin-top: 6px; }
#wxAlerts .a { display: flex; gap: 7px; align-items: baseline; padding: 3px 0;
  border-bottom: 1px solid rgba(120, 155, 190, .18); cursor: pointer; }
#wxAlerts .a:hover { background: rgba(159, 212, 255, .07); }
#wxAlerts .sv { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
#wxAlerts .ev { flex: 1; font-size: 11.5px; }
#wxAlerts .km { color: #8fa3bd; font-size: 10.5px; font-variant-numeric: tabular-nums; }

.wx-alert-popup h4 { margin: 0 0 4px; font-size: 13px; }
.wx-alert-popup .meta { color: #555; font-size: 11px; margin-bottom: 4px; }
.wx-alert-popup .hl { font-size: 11.5px; line-height: 1.4; }

/* The atmosphere column, in the awareness panel. */
#wxColumn { margin-top: 10px; }
#wxColumn.hidden { display: none; }
#wxColumn .col-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 4px; }
#wxColumn .col-head h3 { margin: 0; font-size: 13px; }
#wxColumn .col-head span { font-size: 11px; }
#wxColumn svg { width: 100%; height: auto; display: block; }
#wxColumn .col-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; font-size: 11.5px; }
#wxColumn .col-facts b { font-variant-numeric: tabular-nums; }

/* Hover readout. Pointer-events none so it can never eat a click meant for
   the map underneath it. */
#wxHover {
  position: absolute; z-index: 700; pointer-events: none; display: none;
  transform: translate(14px, -50%); max-width: 290px;
  background: rgba(13, 22, 34, .95); border: 1px solid rgba(120, 155, 190, .4);
  border-left: 3px solid #9fd4ff; border-radius: 7px; padding: 6px 9px;
  color: #eaf1f8; font-size: 11.5px; line-height: 1.4;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums;
}
#wxHover .ll { color: #8fa3bd; font-size: 10.5px; }
#wxHover .ev { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
#wxHover .ev i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
#wxHover .clear { color: #7fd1a6; }
#wxHover .hint { color: #8fa3bd; font-size: 10px; margin-top: 3px; }

/* The scan bar: what is in force in the CURRENT VIEW, without selecting. */
#wxScan {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 620; display: none; gap: 8px; align-items: center;
  background: rgba(13, 22, 34, .92); border: 1px solid rgba(120, 155, 190, .35);
  border-radius: 999px; padding: 5px 13px; color: #eaf1f8; font-size: 12px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .45); cursor: pointer;
}
#wxScan.on { display: flex; }
#wxScan .dot { width: 9px; height: 9px; border-radius: 50%; }
#wxScan b { font-variant-numeric: tabular-nums; }
#wxScan .sub { color: #8fa3bd; font-size: 11px; }

#wxPanel #wxNow { width: auto; padding: 0 6px; font-size: 10.5px; }
#wxPanel #wxSpeed { background: rgba(159,212,255,.10); border: 1px solid rgba(159,212,255,.35);
  color: #cfe6ff; border-radius: 5px; font-size: 10.5px; padding: 2px 3px; }
/* The newest frame is the one that matters; mark where it sits on the bar. */
#wxPanel .wx-scale i.nowmark { box-shadow: inset 0 0 0 1px #eaf1f8; }

#wxPanel .wx-find {
  width: 100%; margin: 6px 0 2px; padding: 5px; cursor: pointer;
  background: rgba(255,138,92,.14); border: 1px solid rgba(255,138,92,.45);
  color: #ffc7ad; border-radius: 6px; font-size: 11.5px;
}
#wxPanel .wx-find:hover { background: rgba(255,138,92,.26); }
#wxPanel .wx-find:disabled { opacity: .55; cursor: default; }
#wxFound { font-size: 11px; color: #cbd8e6; margin-top: 4px; line-height: 1.4; }
#wxFound .k { color: #ff8a5c; font-weight: 700; }
#wxFound .ok { color: #7fd1a6; }
#wxFound .muted2 { color: #8fa3bd; }
/* The marker dropped on the heaviest cell. Pointer-events off so it never
   blocks a click on the map beneath it. */
.wx-peak { pointer-events: none; }
.wx-peak span {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #ff8a5c; box-shadow: 0 0 0 4px rgba(255,138,92,.22);
  animation: wxpulse 1.6s ease-out infinite;
}
@keyframes wxpulse {
  0%   { transform: scale(.65); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
