/* SKY.TUTI.LT — round 12 feature batch (bookmarks, airport history, flight
   archive, fleet view, labels, data export, 3D view, navaids, oceanic).
   Uses only the site tokens from base.css. */

/* ── Bookmarks ──────────────────────────────────────────────────────────── */
.itemlist .bm { display: flex; align-items: center; gap: 7px; }
.itemlist .bm .bm-go { cursor: pointer; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itemlist .bm .bm-go:hover { color: var(--acc); }
.itemlist .bm .dim { color: var(--txt3); font-size: 10.5px; font-family: var(--mono); margin-left: auto; }
.bm-edit {
  width: 100%; background: var(--bg2); color: var(--txt); border: 1px solid var(--acc);
  border-radius: 6px; padding: 2px 6px; font-size: 12.5px; outline: none;
}

/* ── Airport history tabs & movement rows ───────────────────────────────── */
.apt-tabs { display: flex; gap: 4px; margin: 6px 0 8px; flex-wrap: wrap; }
.apt-tabs button {
  border: 1px solid var(--line2); background: var(--bg2); color: var(--txt2);
  border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600;
}
.apt-tabs button.on { color: #fff; border-color: var(--acc); background: rgba(77, 163, 255, .18); }
.mvh { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--txt3); margin: 10px 0 4px; }
.mvh .count { margin-left: 4px; }
.mini-list .mv {
  display: flex; align-items: baseline; gap: 7px; padding: 5px 8px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap;
}
.mini-list .mv b { font-weight: 700; }
.mini-list .mv .mono { color: var(--txt2); font-size: 11px; }
.mini-list .mv .dim { color: var(--txt3); font-size: 11.5px; }
.mini-list .mv-wide { display: flex; }
.mv .rwy {
  font-size: 10px; font-weight: 700; color: #9ff2c4; border: 1px solid #1f5c40;
  border-radius: 999px; padding: 1px 6px; letter-spacing: .4px;
}
.mv .est {
  font-size: 9.5px; font-weight: 700; color: #ffd98a; border: 1px dashed #6b5416;
  border-radius: 999px; padding: 1px 6px;
}
.hist-t { margin: 4px 0 10px; }
.hbar {
  display: inline-flex; height: 9px; width: 90px; border-radius: 5px; overflow: hidden;
  background: var(--line); vertical-align: middle;
}
.hbar .hdep { background: #4da3ff; height: 100%; }
.hbar .harr { background: #34d399; height: 100%; }

/* ── Flight archive results ─────────────────────────────────────────────── */
.fa-row { cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: var(--bg2); }
.fa-row:hover { border-color: var(--acc); }
.fa-row .fa-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.fa-row .fa-head b { font-size: 14px; }
.fa-row .fa-head .dim { color: var(--txt3); font-size: 11.5px; }

/* ── Fleet view ─────────────────────────────────────────────────────────── */
.fv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* ── Aircraft label badge (map) ─────────────────────────────────────────── */
.pl .badge { white-space: nowrap; }
.pl .badge .fl { font-size: 11px; }

/* ── Navaid markers ─────────────────────────────────────────────────────── */
.nvwrap { background: none !important; border: none !important; }
.nv {
  display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9); white-space: nowrap;
}
.nv span { font-weight: 600; font-size: 9.5px; opacity: .9; }
.nv.hi span { font-size: 10.5px; }

/* ── Oceanic track labels ───────────────────────────────────────────────── */
.otkwrap { background: none !important; border: none !important; }
.otk {
  color: #dbe4f3; font-size: 11px; font-weight: 800; text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95); letter-spacing: 1px;
}

/* ── Airport weather chip (on airport markers) ──────────────────────────── */
.ap .apwx {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 999px;
  background: rgba(10, 14, 22, .78); border: 1px solid var(--line2);
  color: #cfe3ff; font-size: 9.5px; font-weight: 700; line-height: 14px; vertical-align: 1px;
}

/* ── 3D view overlay ────────────────────────────────────────────────────── */
#view3d { position: absolute; inset: 0; z-index: 1400; background: #0d1522; }
#view3d canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#view3d canvas:active { cursor: grabbing; }
#v3dHud {
  position: absolute; top: 12px; left: 12px; z-index: 2; pointer-events: none;
  background: rgba(10, 14, 22, .82); border: 1px solid var(--line2); border-radius: 10px;
  padding: 9px 12px; font-size: 12.5px; line-height: 1.55; color: var(--txt);
}
#v3dHud b { color: #fff; }
#v3dTop {
  /* one flex row for the camera modes + the exit button — the old two
     absolute anchors (modes right:64px, exit right:12px) let the ~100px
     wide "✕ Exit 3D" button overlap the "Free"/"Tower" mode buttons */
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
}
#v3dModes { display: flex; gap: 5px; }
#v3dModes button {
  border: 1px solid var(--line2); background: rgba(10, 14, 22, .82); color: var(--txt2);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600;
}
#v3dModes button.on { color: #fff; border-color: var(--acc); background: rgba(77, 163, 255, .25); }
#v3dExit {
  border: 1px solid var(--line2); background: rgba(10, 14, 22, .82); color: var(--txt);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
#v3dExit:hover { border-color: var(--bad); color: #ffb3b3; }
@media (max-width: 640px) {
  #v3dTop { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
  #v3dTop button { padding: 3px 9px; font-size: 11px; }
  #v3dHud { font-size: 11.5px; }
}

/* ── R18-SB-INTEL: ShadowBroker intel adoption ────────────────────────── */
.volcwrap { background: none; border: 0; }
.volc { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid #ef4444; margin: 0 auto; }
.trainwrap { background: none; border: 0; }
.train { width: 22px; height: 22px; border-radius: 6px; background: #0e7490; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.train.train-us { background: #1d4ed8; }
.measure-ptwrap { background: none; border: 0; }
.measure-pt { width: 20px; height: 20px; border-radius: 50%; background: #22d3ee; color: #04202b; font: bold 11px/20px system-ui, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
#measureBox { position: fixed; right: 14px; bottom: 54px; z-index: 1200; background: var(--panel, #0b1220); border: 1px solid rgba(148,163,184,.35); border-radius: 10px; padding: 10px 12px; min-width: 250px; max-width: 320px; box-shadow: 0 8px 30px rgba(0,0,0,.45); font-size: 12.5px; }
#measureBox.hidden { display: none; }
.mb-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.mb-hint { color: #8fa0bd; font-size: 11px; }
.mb-body { max-height: 190px; overflow: auto; }
.mb-seg { padding: 2px 0; }
.mb-total { margin-top: 6px; border-top: 1px solid rgba(148,163,184,.25); padding-top: 6px; font-weight: 700; color: #22d3ee; }
.mb-foot { display: flex; gap: 8px; margin-top: 8px; }
.aqi-tip { background: rgba(2,8,20,.9); color: #e2e8f0; border: 1px solid rgba(148,163,184,.3); box-shadow: none; }
.dos-snap { width: 100%; border-radius: 8px; border: 1px solid rgba(148,163,184,.25); display: block; }
.dos-flag { font-size: 18px; margin-bottom: 8px; }
.dos-wiki-thumb { float: right; max-width: 42%; border-radius: 8px; margin: 0 0 8px 10px; border: 1px solid rgba(148,163,184,.25); }
.dos-wiki-title { margin-bottom: 4px; }
.dos-wiki-extract { font-size: 12.5px; }
#cctvModal { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; }
#cctvModal.hidden { display: none; }
.cctv-backdrop { position: absolute; inset: 0; background: rgba(2,6,16,.85); }
.cctv-card { position: relative; width: min(720px, 94vw); background: var(--panel, #0b1220); border: 1px solid rgba(148,163,184,.35); border-radius: 12px; padding: 12px; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
.cctv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cctv-body img { width: 100%; border-radius: 8px; background: #04080f; min-height: 220px; object-fit: contain; }
.cctv-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #8fa0bd; }
#aisKeyRow input[type="password"] { width: 100%; margin-top: 4px; }
.sr-place { cursor: pointer; }
