/* Skywatch ADS-B: airport panel (ui/airport-panel.js). Same slot and glass as the aircraft panel. */
#airport_panel {
    position: absolute; left: 28px; top: 76px; bottom: 24px; width: 380px; z-index: 23;
    display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
    border-radius: 32px; background: var(--glass); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); color: var(--text);
}
#airport_panel[hidden] { display: none !important; }
body.airportOpen #sidebar_container, body.airportOpen #selected_infoblock { display: none !important; }
body.panelsHidden #airport_panel { display: none !important; }
.apScroll { flex: 1; min-height: 0; overflow: auto; padding: 20px 16px 12px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.apHead { display: flex; gap: 12px; align-items: flex-start; }
.apIcao { font-size: 34px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.apName { color: var(--muted); margin-top: 4px; }
#airport_panel .sk-x { margin-left: auto; }
.apChips { display: flex; flex-wrap: wrap; gap: 6px; }
#airport_panel .ibCard { background: rgba(255,255,255,.06); border-radius: 24px; padding: 14px; }   /* the old airport card surface (desktop elevation.css sets its own fill); keeps the tiles distinct from the card on phones */
#airport_panel .ibCard h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
#airport_panel .ibCard h3 .age { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.apGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#airport_panel .ibTile { padding: 10px 12px; border-radius: 16px; min-height: 0; border: 0; }
#airport_panel .ibTile b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
#airport_panel .ibTile small { color: var(--muted); font-size: 11px; }
.apRaw { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.25); font-size: 11.5px; color: #d4d4d4; word-break: break-word; line-height: 1.5; }
.apTaf { display: flex; gap: 3px; margin-top: 6px; }
.apTafSlot { flex: 1; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; color: #0b0b0d; font-weight: 700; background: #666; }
.apTafSlot.ok { background: var(--ok); } .apTafSlot.mv { background: #7fa8ff; } .apTafSlot.bad { background: var(--bad); } .apTafSlot.lf { background: #d98cff; }
.apTafSlot.na { background: rgba(255,255,255,.12); color: var(--muted); }
.apTafSlot.tmp { outline: 2px dashed rgba(255,255,255,.7); outline-offset: -2px; }
.apAxis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 4px; }
.apNote { color: var(--muted); font-size: 11.5px; margin-top: 8px; line-height: 1.4; }
.apRwRow { display: grid; grid-template-columns: 168px 1fr; gap: 10px; align-items: start; }
.apEnds { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.apEnd { background: var(--tile); border-radius: 14px; padding: 8px 10px; }
.apEnd .top { display: flex; justify-content: space-between; align-items: baseline; }
.apEnd.best { outline: 1.5px solid var(--ok); background: rgba(61,220,151,.08); }
.apEnd small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.apEnd small.txt { color: var(--text); } .apEnd small.warn { color: var(--warn); }
.bestTag { font-size: 10px; color: var(--ok); font-weight: 700; }
.apMeta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.apList { margin-top: 8px; display: flex; flex-direction: column; }
.apRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.apRow:first-child { border-top: 0; } .apRow:hover { background: rgba(255,255,255,.04); }
.mut { color: var(--muted); }
.apSun { display: flex; align-items: center; gap: 10px; } .apSun svg { flex: 1; min-width: 0; }
.apLink { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; }
.apLink:first-of-type { border-top: 0; } .apLink:hover { color: #fff; text-decoration: underline; }
.apFoot { font-size: 11px; color: var(--muted); padding: 2px 6px; }
.apBar { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
@media (max-width: 768px), (pointer: coarse) {
    #airport_panel { left: 8px; right: 8px; top: auto; width: auto; max-height: 62%; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); border-radius: 32px 32px 28px 28px; }
    .apScroll { padding: 14px 14px 10px; }
    .apRwRow { grid-template-columns: 1fr; justify-items: center; }
    .apEnds { width: 100%; }
}

/* hover / long-press weather card on an airport pin */
.apPinCard { position: absolute; z-index: 5; pointer-events: none; min-width: 190px; max-width: 260px; padding: 10px 12px; background: #000000; color: #fff;
    border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font: 500 12px/1.4 Inter, system-ui, sans-serif; }
.apPinTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.apPinTop b { font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.apPinRow { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; } .apPinRow span:first-child { color: #bababa; } .apPinRow span:last-child { text-align: right; font-family: 'JetBrains Mono', monospace; }
.apPinHint { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); color: #bababa; font-size: 11px; }

/* recent movements card */
.apMoves > summary { cursor: pointer; list-style: none; }
.apMoves > summary::-webkit-details-marker { display: none; }
.apMoves > summary h3 { display: inline-block; margin: 0; }
.apMoves > summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.apMoves .apRow:disabled { cursor: default; opacity: .85; }
.apMoves .apRow:disabled:hover { background: none; }
