/* overlays.css — radar playback bar, NOTAMs panel, map overlays toolbar, airspace labels.
   From concept/live-air-traffic.html (lines 297–347, 782–837). Linked from index.html in a fixed
   order that keeps the cascade identical to the concept. */
/* Weather radar playback bar */
.wx-bar {
  left: 50%; transform: translateX(-50%); bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  width: min(480px, calc(100vw - 24px)); box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px;
}
.wx-bar[hidden] { display: none; }
.wx-play { flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.wx-play svg { width: 16px; height: 16px; fill: currentColor; }
.wx-mid { flex: 1; min-width: 0; }
.wx-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.wx-mid input { width: 100%; margin: 4px 0 0; accent-color: var(--accent); }
.wx-key { flex: none; width: 110px; }
.wx-key-bar { height: 8px; border-radius: 2px; background: linear-gradient(90deg, #04E9E7, #019FF4, #0300F4, #02FD02, #01C501, #008E00, #FDF802, #E5BC00, #FD9500, #FD0000, #D40000, #BC0000, #F800FD, #9854C6); }
.wx-key-lbl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.leaflet-weather-pane .leaflet-layer { transition: opacity 0.35s linear; }
@media (max-width: 900px) { .wx-bar { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } .wx-key { display: none; } }

/* NOTAMs & advisories panel */
.notam-panel {
  position: fixed; z-index: 1050; right: 74px; top: calc(12px + env(safe-area-inset-top, 0px));
  width: 370px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.notam-panel[hidden] { display: none; }
.notam-tools { padding: 0 14px 10px; border-bottom: 1px solid var(--edge); display: flex; flex-direction: column; gap: 8px; }
.notam-tools .toggle { align-self: flex-start; }
#notam-ap-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px; list-style: none; max-height: 220px; overflow-y: auto;
  background: #101C30; border: 1px solid var(--edge); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
#notam-ap-list[hidden] { display: none; }
#notam-ap-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
#notam-ap-list li:hover { background: rgba(124, 199, 255, 0.14); }
#notam-ap-list .codes { min-width: 34px; color: var(--accent); font-weight: 700; }
.notam-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 14px; }
.notam-sec { padding: 12px 0; border-bottom: 1px solid var(--edge); font-size: 13px; }
.notam-sec:last-of-type { border-bottom: 0; }
.notam-sec h3 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.notam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tfr-item { padding: 8px 10px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 4px; }
.tfr-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tfr-links { display: flex; gap: 14px; font-size: 12px; } .tfr-links a { color: var(--accent); }
.notam-meta { margin-top: 8px; font-size: 12px; color: var(--muted); } .notam-meta a, .notam-sec a { color: var(--accent); }
.notam-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.notam-actions button { font-size: 12.5px; padding: 6px 10px; }
.btn-link { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: var(--night) !important; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cat { font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 999px; color: #fff; }
.cat[data-cat="VFR"] { background: #16A34A; } .cat[data-cat="MVFR"] { background: #2563EB; }
.cat[data-cat="IFR"] { background: #DC2626; } .cat[data-cat="LIFR"] { background: #C026D3; }
.metar { margin: 8px 0 0; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); white-space: pre-wrap; font-size: 11.5px; }
.notam-foot { padding-top: 10px; font-size: 11px; color: var(--muted); }
@media (max-width: 760px) { .notam-panel { left: 8px; right: 70px; width: auto; } }

/* Map overlay toolbar (right side, under the zoom buttons) */
.map-toolbar {
  position: absolute; z-index: 1000; right: 10px; top: calc(84px + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.tb-btn {
  width: 52px; height: 50px; padding: 4px 0 3px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--panel); color: var(--text); border: 1px solid var(--edge); font-weight: 400;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.tb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-btn span { font-size: 9.5px; line-height: 1; color: var(--muted); }
.tb-btn:hover { border-color: rgba(124, 199, 255, 0.5); }
.tb-btn[aria-pressed="true"] { background: var(--accent); color: var(--night); border-color: var(--accent); }
.tb-btn[aria-pressed="true"] span { color: var(--night); }
.tb-hint {
  max-width: 150px; padding: 5px 8px; border-radius: 8px; font-size: 11px; text-align: right;
  background: var(--panel); color: var(--warn); border: 1px solid var(--edge);
}
.tb-hint[hidden] { display: none; }
.tb-pop {
  position: absolute; right: calc(100% + 8px); top: 0; width: 250px; padding: 12px 12px 10px;
  max-height: calc(100vh - 200px); overflow-y: auto;
}
.tb-pop[hidden] { display: none; }
.tb-pop-h { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.tb-pop-h + .tb-pop-h, .ov-row + .tb-pop-h, #ov-chart-list + .tb-pop-h { margin-top: 12px; }
#ov-chart-list { display: flex; flex-direction: column; gap: 3px; }
#ov-chart-list button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font-weight: 400; font-size: 13px;
  background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px;
}
#ov-chart-list button::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
#ov-chart-list button[aria-checked="true"] { border-color: var(--edge); background: rgba(124, 199, 255, 0.1); }
#ov-chart-list button[aria-checked="true"]::before { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
#ov-chart-list button small { margin-left: auto; color: var(--muted); font-size: 11px; }
.ov-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ov-row[hidden] { display: none; }
.ov-row input { flex: 1; accent-color: var(--accent); }
.ov-key { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 11.5px; color: var(--muted); }
.ov-key span { display: flex; align-items: center; gap: 7px; }
.ov-key svg { flex: none; width: 26px; height: 14px; }
.ov-note { margin-top: 10px; font-size: 11px; color: var(--muted); }
/* Airspace edge labels, e.g. "B: GND-10000" */
.as-label { background: none; border: 0; }
.as-label span {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 1px 7px; border: 2px solid var(--c); border-radius: 4px;
  background: #0B0F16; color: #fff; font: 700 11.5px/1.35 var(--font); letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.airspace-tip { background: #101C30; color: var(--text); border: 1px solid var(--edge); border-radius: 8px; font: 12px/1.45 var(--font); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.airspace-tip .dim { color: var(--muted); }
.leaflet-tooltip-top.airspace-tip::before { border-top-color: #101C30; }

