/* NxtOps Mobile & Tablet Flight Deck Companion - Plane Finder Dark Aeronautical Style */

:root {
  --bg-core: #090d12;
  --bg-card: rgba(22, 26, 34, 0.95);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --accent-coral: #ff5a43;
  --accent-coral-glow: rgba(255, 90, 67, 0.4);
  --accent-blue: #2563eb;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', Consolas, Menlo, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-main);
  user-select: none;
  -webkit-user-select: none;
}

/* Top Navigation Bar */
.companion-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: transparent;
  pointer-events: none;
}

.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.top-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 24, 32, 0.85);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.top-btn-round svg {
  width: 18px;
  height: 18px;
}

.top-btn-round:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
}

.top-btn-round.is-active {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.top-flight-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 24, 32, 0.85);
  border: 1px solid var(--bg-card-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.top-flight-airline-mark {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.telemetry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(18, 24, 32, 0.85);
  border: 1px solid var(--bg-card-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  user-select: none;
}

.telemetry-status-pill:hover,
.telemetry-status-pill:active {
  transform: scale(1.04);
  background: rgba(26, 34, 46, 0.95);
}

.telemetry-status-pill.is-live {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.telemetry-status-pill.is-sim-active {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.telemetry-status-pill.is-standby {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Map Container */
.companion-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.companion-map {
  width: 100%;
  height: 100%;
  background: #0a1e34;
}

/* Plane Finder Floating Rounded Card (Island design) */
.companion-sheet.is-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}

.sheet-dismiss-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 5;
}

.sheet-dismiss-btn:hover,
.sheet-dismiss-btn:active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: scale(1.08);
}
.companion-sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 14px);
  z-index: 50;
  background: rgba(26, 32, 44, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 16px 16px;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  height: auto;
  overflow: visible;
}

.companion-sheet.is-collapsed .sheet-expanded-content {
  display: none !important;
}

.companion-sheet.is-expanded {
  top: calc(var(--safe-top) + 60px);
  bottom: calc(var(--safe-bottom) + 14px);
  height: auto;
  max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 74px);
  border-radius: 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-handle-row {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
  cursor: grab;
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transition: background 0.2s ease, width 0.2s ease;
}

.companion-sheet:hover .sheet-drag-handle {
  background: rgba(255, 255, 255, 0.5);
  width: 44px;
}

/* Header Card inside Sheet */
.sheet-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 8px;
}

.airline-pure-symbol {
  width: auto;
  height: 28px;
  max-width: 64px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
  transition: opacity 0.2s ease;
}

.airline-pure-symbol-small {
  width: auto;
  height: 22px;
  max-width: 44px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.sheet-title-col {
  flex: 1 1 auto;
  min-width: 0;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.sheet-flight-ident {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.sheet-pill-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sheet-subtitle-row {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 3px;
}

.sheet-type-caption {
  font-size: 12px;
  color: var(--text-muted);
}

.sheet-thumb-col {
  flex-shrink: 0;
}

.sheet-aircraft-thumb {
  width: 105px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Route Progress Row (Origin ➔ Dest with Green Line matching Plane Finder) */
.sheet-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0 10px;
}

.route-origin-block, .route-dest-block {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.route-dest-block {
  text-align: right;
  align-items: flex-end;
}

.route-city {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.route-iata {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin: 2px 0 3px;
}

.route-elapsed, .route-remaining {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.route-progress-wrap {
  flex: 1 1 auto;
  padding: 0 6px;
}

.route-progress-track {
  position: relative;
  height: 5.5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.route-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: width 0.4s ease;
}

.route-plane-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  pointer-events: none;
  transition: left 0.4s ease;
}

/* Primary Telemetry HUD Strip (Transparent row directly inside floating card) */
.sheet-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 10px 4px;
  background: transparent;
  border: none;
  margin-top: 4px;
  margin-bottom: 0;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.hud-value {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hud-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.14);
}

/* Expanded Content */
.sheet-expanded-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}

/* Expanded Top Nav (Close & Share circle buttons) */
.sheet-expanded-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 2px;
}

.sheet-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sheet-circle-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.18);
}

.sheet-circle-btn svg {
  width: 17px;
  height: 17px;
}

/* Segmented Top Navigation Pills */
.sheet-segmented-nav {
  display: flex;
  align-items: center;
  background: #0d1117;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.nav-pill {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill.is-active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.sheet-tab-panel {
  display: none;
}

.sheet-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section Headings */
.sheet-section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-section-heading {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  padding: 0 4px;
}

/* Plane Finder Modern Card Shape & Background */
.companion-card {
  background: #161a22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Schedule Departure / Arrival Times */
.schedule-times-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-block {
  display: flex;
  flex-direction: column;
}

.schedule-block.text-right {
  text-align: right;
  align-items: flex-end;
}

.sched-port-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.schedule-block.text-right .sched-port-line {
  justify-content: flex-end;
}

.sched-station {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sched-time {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sched-status-sub {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 3px;
}

.sched-status-sub.is-early {
  color: #10b981;
}

.sched-status-sub.is-late {
  color: #ef4444;
}

.schedule-plane-symbol {
  font-size: 18px;
  color: #64748b;
  margin: 0 8px;
}

/* Inner Card Pills (Status / Overview) */
.card-inner-pills {
  display: flex;
  align-items: center;
  background: #232731;
  border-radius: 999px;
  padding: 3px;
  width: 100%;
  gap: 0;
}

.inner-pill {
  flex: 1 1 0;
  padding: 7px 0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  text-align: center;
  transition: all 0.2s ease;
}

.inner-pill.is-active {
  background: #464f5e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Landing Progress Capsule Banner matching Plane Finder */
.landing-progress-container {
  position: relative;
  width: 100%;
  height: 48px;
  background: #14221a;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.landing-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.landing-progress-fill {
  height: 100%;
  background: #0e4429;
  border-radius: 999px 0 0 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-progress-container.is-late,
.landing-progress-container.is-arrived {
  background: #261517;
  border-color: rgba(239, 68, 68, 0.35);
}

.landing-progress-container.is-late .landing-progress-fill,
.landing-progress-container.is-arrived .landing-progress-fill {
  background: #4a191e;
}

.landing-progress-container.is-arrived .landing-progress-fill {
  width: 100% !important;
}

.landing-progress-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-progress-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-progress-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #10b981;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.landing-progress-container.is-late .landing-progress-text,
.landing-progress-container.is-arrived .landing-progress-text {
  color: #f87171;
}

.landing-terminal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #10b981;
  color: #064e3b;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  gap: 3px;
}

.landing-progress-container.is-late .landing-terminal-badge,
.landing-progress-container.is-arrived .landing-terminal-badge {
  background: #ef4444;
  color: #ffffff;
}

.badge-arrow {
  font-size: 12px;
  font-weight: 900;
}

/* Vertical Route Timeline matching Plane Finder - Continuous Connected Rail */
.vertical-route-timeline {
  display: flex;
  align-items: stretch;
  gap: 14px;
  position: relative;
  padding: 6px 4px 6px 2px;
}

.timeline-rail {
  width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #161a22;
  box-sizing: border-box;
  z-index: 2;
  transition: border-color 0.3s ease;
}

.timeline-dot.dot-origin {
  border: 3px solid #10b981;
}

.timeline-dot.dot-dest {
  border: 3px solid #64748b;
}

.timeline-line {
  flex: 1 1 auto;
  width: 3.5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: -2px 0;
  z-index: 1;
}

.timeline-line .connector-fill {
  width: 100%;
  height: 0%;
  background: #10b981;
  border-radius: 999px;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

/* Landed / Arrived State: 100% full height and RED color */
.vertical-route-timeline.is-arrived .timeline-line .connector-fill {
  height: 100% !important;
  background: #ef4444 !important;
}

.vertical-route-timeline.is-arrived .timeline-dot.dot-origin,
.vertical-route-timeline.is-arrived .timeline-dot.dot-dest {
  border-color: #ef4444 !important;
}

.timeline-stations {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.timeline-station {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timeline-apt-name {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.timeline-date-right {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.timeline-row-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timeline-sub {
  font-size: 12.5px;
  color: #94a3b8;
}

.timeline-tz-right {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
}

.timeline-gate-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Flight Operations Notice Box */
.flight-ops-note-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 12px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.note-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #f59e0b;
}

/* Aircraft Hero & Specs */
.aircraft-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.aircraft-reg-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.aircraft-model-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.aircraft-carrier-seal {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.aircraft-full-photo-box {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.aircraft-full-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay-badge {
  position: absolute;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
}

.photo-overlay-badge.left-bottom {
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  padding: 0;
}

.photo-overlay-badge.right-bottom {
  right: 8px;
  bottom: 8px;
}

.aircraft-specs-grid, .telemetry-tele-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-cell, .tele-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.spec-label, .tele-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-value, .tele-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 3px;
}

.tele-val.text-green, .spec-value.text-green {
  color: #10b981;
}

/* Section 3: Tracking Data & Real-Time Profile Chart */
.tracking-hero-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tracking-live-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tracking-coverage-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.altitude-chart-container {
  width: 100%;
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.altitude-chart-svg {
  width: 100%;
  height: 120px;
}

.altitude-chart-x-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.telemetry-hero-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tele-hero-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tele-hero-pill.is-active {
  background: #1d4ed8;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
}

.tele-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
}

.tele-hero-pill.is-active .tele-hero-label {
  color: #bfdbfe;
}

.tele-hero-value {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* iOS Install Banner */
.ios-install-banner {
  position: absolute;
  top: calc(var(--safe-top) + 60px);
  left: 14px;
  right: 14px;
  z-index: 120;
  background: rgba(18, 24, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  padding: 12px 14px;
  animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ios-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ios-install-icon img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.ios-install-text {
  flex: 1 1 auto;
  font-size: 12.5px;
  line-height: 1.35;
}

.ios-install-text strong {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

.ios-install-text p {
  color: var(--text-secondary);
}

.btn-dismiss-ios {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
  cursor: pointer;
}

/* Tablet & Landscape Layout */
@media (min-width: 820px) {
  .companion-map-container {
    right: 420px;
    width: auto;
  }

  .companion-sheet {
    left: auto;
    width: 420px;
    height: 100%;
    max-height: 100vh !important;
    border-radius: 24px 0 0 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    padding-top: calc(var(--safe-top) + 16px);
    overflow-y: auto;
  }

  .sheet-handle-row {
    display: none;
  }

  .map-controls-left, .map-controls-right {
    bottom: 24px;
  }
}

/* Custom MapLibre Aircraft & Airport Markers */
.map-user-plane {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto !important;
  user-select: none;
  will-change: transform;
}

.map-user-plane:hover .map-user-plane-icon {
  transform: scale(1.15);
}

.map-user-plane.is-selected {
  z-index: 30;
}

.map-user-plane-icon {
  width: 32px;
  height: 32px;
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  transition: transform 0.3s ease, color 0.2s ease, width 0.2s ease, height 0.2s ease;
  transform-origin: center center;
}

.map-user-plane.is-selected .map-user-plane-icon {
  width: 38px;
  height: 38px;
  color: #ff5a43;
  filter: drop-shadow(0 0 16px rgba(255, 90, 67, 0.9)) drop-shadow(0 2px 6px rgba(0,0,0,0.9));
}

.map-user-plane.is-selected .map-traffic-badge {
  background: #ff5a43;
  color: #ffffff;
  border-color: #ff5a43;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 90, 67, 0.8);
}

.map-user-plane-pulse {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 90, 67, 0.25);
  border: 1px solid rgba(255, 90, 67, 0.7);
  animation: plane-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes plane-ping {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.map-traffic-plane {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.map-traffic-plane-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.map-traffic-badge {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
  text-transform: uppercase;
}

.map-airport-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.map-airport-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ff5a43;
  box-shadow: 0 0 8px rgba(255, 90, 67, 0.8);
}

.map-airport-code {
  margin-top: 3px;
  background: rgba(9, 13, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.map-traffic-popup {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

