@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Exo+2:wght@300;400;500;600&display=swap');

:root {
  /* LIGHT MODE (default) */
  --bg: #f4f7f5;
  --bg2: #ffffff;
  --bg3: #e9eee9;
  --border: #d0dcd3;
  --border2: #a8c2ae;
  --green: #1d9e75;
  --green-dark: #0f6e56;
  --green-muted: #5a9070;
  --green-faint: #8aaf96;
  --text: #0a0a0a;
  --text-dim: #222222;
  --text-muted: #555555;
  --amber: #c48010;
  --amber-bg: #fef4e0;
  --amber-border: #f0c970;
  --red: #c8323a;
  --red-bg: #fde8ea;
  --red-border: #f0a0a5;
  --blue: #2478d4;
  --blue-bg: #e0edf8;
  --shadow: 0 2px 8px rgba(20, 40, 30, 0.08);
  --shadow-lg: 0 8px 32px rgba(20, 40, 30, 0.15);
  --font-mono: 'Share Tech Mono', monospace;
  --font: 'Exo 2', sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

body.dark {
  /* ── Dark cockpit palette — neutral grey, not green-tinted ── */
  --bg:           #0d0e11;
  --bg2:          #141518;
  --bg3:          #1c1e22;
  --border:       rgba(255,255,255,0.10);
  --border2:      rgba(255,255,255,0.18);
  /* greens kept only for FLY status & flight trail accents */
  --green:        #1dff88;
  --green-dark:   #00c96a;
  --green-muted:  #5a6068;
  --green-faint:  rgba(255,255,255,0.05);
  --text:         #dde1e7;
  --text-dim:     #8a9099;
  --text-muted:   #52585f;
  --amber:        #f0b840;
  --amber-bg:     #1c1500;
  --amber-border: rgba(240,184,64,0.28);
  --red:          #f04050;
  --red-bg:       #1a0a0c;
  --red-border:   rgba(240,64,80,0.28);
  --blue:         #4aabff;
  --blue-bg:      #080f1a;
  --shadow:       0 2px 8px rgba(0,0,0,0.45);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.65);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ─────────────────────────── TOP BAR (floating) ─────────────────────────── */
.topbar {
  position: absolute;
  top: var(--safe-area-top);
  left: 0; right: 0;
  z-index: 500;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.brand-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 12px 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.brand-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.search-pill {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 100%;
}

.search-pill input::placeholder { color: var(--text-muted); }

.theme-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-dim);
}

.theme-btn:active { transform: scale(0.95); }

.landing-btn {
  text-decoration: none;
  color: var(--text-dim);
  width: auto;
  min-width: 82px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: #ffcf23;
  border-color: #111111;
  color: #111111;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.landing-btn span {
  line-height: 1;
}

.landing-btn:active {
  transform: scale(0.95);
}

/* ─────────────────────────── SEARCH DROPDOWN ─────────────────────────── */
.search-dd {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 600;
}

.dd-region {
  padding: 8px 14px 4px;
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  background: var(--bg3);
}
.dd-region:first-child { border-top: none; margin-top: 0; }

.dd-item {
  padding: 12px 14px;
  font-size: 14px;
  color: #111111;
  cursor: pointer;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dd-item:last-child { border-bottom: none; }
.dd-item:active { background: var(--bg3); }

.dd-empty {
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.dd-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}
.dd-tag.fpso { background: var(--blue-bg); color: var(--blue); }
.dd-tag.rig  { background: var(--amber-bg); color: var(--amber); }
.dd-flight .dd-tag { background: rgba(58,122,212,0.14); color: #2f64b3; }

/* ─────────────────────────── MAP ─────────────────────────── */
#map {
  flex: 1;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 1;
}

/* Custom Leaflet overrides for our theme */
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  padding: 2px 6px !important;
}

body.dark .leaflet-control-attribution {
  background: rgba(10, 15, 10, 0.7) !important;
  color: var(--text-muted) !important;
}

body.dark .leaflet-control-attribution a { color: var(--green) !important; }

.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}

/* Push zoom controls below topbar — topbar is ~80px on mobile */
.leaflet-top.leaflet-right {
  margin-top: 130px !important;
}

.leaflet-control-zoom a {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font) !important;
  font-weight: 400 !important;
}

.leaflet-control-zoom a:hover { background: var(--bg3) !important; }

/* ── PLATFORM MARKERS ───────────────────────────────────────────────────── */
/* Green dot  = production platform                                           */
/* Brown dot  = drilling rig                                                  */
/* Blue sq    = heliport / airport                                            */
/* Yellow +   = helicopter in flight (rotating cross)                         */

.marker-platform {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d9e75;
  border: none;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.15s;
}
.marker-platform:hover { transform: scale(1.5); }
.marker-platform.highlighted {
  width: 16px !important;
  height: 16px !important;
  background: #1dff88 !important;
  box-shadow: none;
  animation: pulse-marker 1.2s ease-in-out infinite;
  z-index: 9999 !important;
}

body.dark .marker-platform { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.3); }

/* Drilling rig — brown/amber dot */
.marker-rig {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c47a20;
  border: none;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.15s;
}
.marker-rig:hover { transform: scale(1.4); }
.marker-rig.highlighted {
  width: 16px; height: 16px;
  border-color: white;
  animation: pulse-marker-amber 1.5s infinite;
}

body.dark .marker-rig { border-color: rgba(0,0,0,0.6); }

/* Heliport / airport — blue square */
.marker-airport {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* Helicopter — yellow rotating cross */
.marker-chopper {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45));
  transition: transform 0.15s;
}
.marker-chopper:hover { transform: scale(1.25); }

@keyframes pulse-marker {
  0%   { box-shadow: 0 0 0 0   rgba(29,222,122,0.9),  0 0 0 0   rgba(29,222,122,0.5); }
  50%  { box-shadow: 0 0 0 10px rgba(29,222,122,0.0), 0 0 0 18px rgba(29,222,122,0.0); }
  100% { box-shadow: 0 0 0 0   rgba(29,222,122,0.9),  0 0 0 0   rgba(29,222,122,0.5); }
}
@keyframes pulse-marker-amber {
  0%   { box-shadow: 0 0 0 0   rgba(255,160,0,0.9),   0 0 0 0   rgba(255,160,0,0.5); }
  50%  { box-shadow: 0 0 0 10px rgba(255,160,0,0.0),  0 0 0 18px rgba(255,160,0,0.0); }
  100% { box-shadow: 0 0 0 0   rgba(255,160,0,0.9),   0 0 0 0   rgba(255,160,0,0.5); }
}

/* Platform labels — no white halo on satellite */
.platform-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
  pointer-events: none;
  white-space: nowrap;
}

body.dark .platform-label {
  color: #ffffff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
}

/* ─────────────────────────── BOTTOM SHEET ─────────────────────────── */
.sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  z-index: 400;
  transform: translateY(calc(100% - 72px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: var(--safe-area-bottom);
  max-height: 85vh;
}

.sheet.expanded {
  transform: translateY(0);
}

.sheet.full {
  transform: translateY(0);
  height: 85vh;
}

.sheet-handle {
  width: 100%;
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.sheet-handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
}

.sheet-head {
  padding: 4px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.sheet-head-text { flex: 1; min-width: 0; }

.sheet-title {
  font-size: 16px;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-sub {
  font-size: 11px;
  color: #555555;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-top: 2px;
}

.sheet-quick {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.quick-badge {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  background: var(--bg3);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.quick-badge.go { background: #e0f3e8; color: var(--green-dark); border-color: #a8d8b8; }
.quick-badge.warn { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.quick-badge.nogo { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }

body.dark .quick-badge.go { background: rgba(0,201,106,0.12); border-color: rgba(0,201,106,0.35); color: var(--green); }

/* ─────────────────────────── CONDITIONS GRID ─────────────────────────── */
.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(85vh - 72px);
  padding-bottom: 20px;
}

.conditions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cond-cell {
  background: var(--bg2);
  padding: 12px 6px;
  text-align: center;
}

.cond-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}

.cond-sub {
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.cond-lbl {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.go { color: var(--green-dark); }
.warn { color: var(--amber); }
.nogo { color: var(--red); }

body.dark .go { color: var(--green); }

/* Section header */
.sec-hdr {
  padding: 14px 16px 8px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-badge {
  background: #e0f3e8;
  border: 1px solid #a8d8b8;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 9px;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 1px;
}

body.dark .live-badge {
  background: rgba(0,201,106,0.12);
  border-color: rgba(0,201,106,0.35);
  color: var(--green);
}

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ─────────────────────────── FLIGHT CARDS ─────────────────────────── */
.flight-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flight-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.flight-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.flight-card.airborne::before { background: var(--green); }
.flight-card.airborne { border-color: #a8d8b8; background: #f4fbf6; }
.flight-card.delayed::before { background: var(--amber); }
.flight-card.delayed { border-color: var(--amber-border); background: var(--amber-bg); }
.flight-card.scheduled::before { background: var(--green-muted); }
.flight-card.cancelled::before { background: var(--red); }
.flight-card.cancelled { opacity: 0.92; }

body.dark .flight-card.airborne { background: #0d1f10; border-color: #2a5e35; }

.flight-aircraft-strip {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: -2px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(0,0,0,0.08);
}

.flight-aircraft-img-wrap {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(6,16,14,0.08);
}

.flight-aircraft-img {
  width: 100%;
  height: 100%;
  display: block;
}

.flight-aircraft-svg {
  object-fit: contain;
}

.flight-aircraft-photo {
  object-fit: cover;
  object-position: center;
}

.flight-aircraft-meta {
  min-width: 0;
}

.flight-aircraft-type {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
}

.flight-aircraft-operator {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

body.dark .flight-aircraft-strip {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}

.flight-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.flight-id {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 500;
}

body.dark .flight-id { color: var(--green); }

.flight-op {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.pill-airborne   { background: #e0f3e8; color: var(--green-dark); border: 1px solid #a8d8b8; }
.pill-delayed    { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.pill-scheduled  { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.pill-plan,
.pill-estimated  { background: rgba(100,160,255,0.12); color: #2a6fcc; border: 1px solid rgba(100,160,255,0.32); }
.pill-cancelled  { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.pill-coastguard {
  background: #fff0f0;
  color: #c00016;
  border: 1px solid #f5b0b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: cg-pill-flash 0.75s ease-in-out infinite alternate;
}
@keyframes cg-pill-flash {
  from { background: #fff0f0; color: #c00016; border-color: #f5b0b8; }
  to   { background: #c00016; color: #ffffff; border-color: #c00016; }
}

body.dark .pill-airborne   { background: #0f3a1a; border-color: var(--green-dark); color: var(--green); }
body.dark .pill-plan,
body.dark .pill-estimated  { background: rgba(100,160,255,0.12); color: #7ab0ff; border-color: rgba(100,160,255,0.26); }
body.dark .pill-coastguard {
  animation: cg-pill-flash-dark 0.75s ease-in-out infinite alternate;
}
@keyframes cg-pill-flash-dark {
  from { background: rgba(200,0,22,0.15); color: #ff4455; border-color: rgba(200,0,22,0.4); }
  to   { background: #c00016; color: #ffffff; border-color: #c00016; }
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.route-pt {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.route-line {
  flex: 1;
  height: 1px;
  background: var(--border2);
}

.flight-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.flight-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.flight-times {
  display: grid;
  gap: 3px;
  min-width: 112px;
}

.flight-time-row {
  display: grid;
  grid-template-columns: 56px auto;
  align-items: baseline;
  column-gap: 8px;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.flight-time-row span {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.flight-time-row strong {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}

.flight-eta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.notify-btn {
  background: var(--bg2);
  border: 1px solid var(--green-muted);
  border-radius: 6px;
  color: var(--green-dark);
  font-size: 11px;
  padding: 6px 12px;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.notify-btn.on {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

body.dark .notify-btn.on { background: var(--green); color: var(--bg); }

.progress-bar {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  margin: 4px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

/* ─────────────────────────── LOCATE ME BUTTON ─────────────────────────── */
.locate-btn {
  position: absolute;
  left: 12px;
  bottom: calc(80px + var(--safe-area-bottom));
  width: 44px;
  height: 44px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 350;
  color: var(--text-dim);
  transition: bottom 0.3s;
}

.locate-btn:active { transform: scale(0.95); }

/* ─────────────────────────── FAB (Settings) ─────────────────────────── */
.fab {
  position: absolute;
  left: 12px;
  bottom: calc(140px + var(--safe-area-bottom));
  width: 44px;
  height: 44px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 350;
  color: var(--text-dim);
}

.fab:active { transform: scale(0.95); }

/* Legend (on map) */
.legend {
  position: absolute;
  left: 12px;
  bottom: calc(44px + var(--safe-area-bottom));
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  font-size: 10px;
  font-family: var(--font-mono);
  z-index: 350;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.platform { background: #1d9e75; }
.legend-dot.fpso { background: var(--blue); }
.legend-dot.rig {
  background: #8B4513;
  border-radius: 50%;
}
.legend-dot.airport {
  background: var(--blue);
  border-radius: 2px;
}

/* ─────────────────────────── SETTINGS MODAL ─────────────────────────── */
.modal {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 700;
  align-items: flex-end;
}

.modal.open { display: flex; }

.modal-panel {
  width: 100%;
  max-height: 90vh;
  background: rgba(255,255,255,0.90);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  overflow-y: auto;
  padding-bottom: var(--safe-area-bottom);
}

.modal-head {
  padding: 14px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}

.setting-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setting-info { flex: 1; min-width: 0; }
.setting-title { font-size: 14px; color: var(--text); }
.setting-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.settings-select {
  max-width: 152px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  outline: none;
}

.marine-terms {
  margin: 10px 16px 2px;
  border: 1px solid rgba(17,17,17,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.24);
  overflow: hidden;
}

.marine-terms summary {
  padding: 11px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 10px 11px;
}

.terms-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(17,17,17,0.06);
}

.terms-grid strong,
.terms-grid span {
  display: block;
}

.terms-grid strong {
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.terms-grid span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.28;
}

@media (max-width: 430px) {
  .terms-grid {
    grid-template-columns: 1fr;
  }
}

.toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: var(--bg3);
  border-radius: 26px;
  cursor: pointer;
  border: 1px solid var(--border2);
  transition: background 0.2s;
}
.slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 2px; top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
input:checked + .slider { background: var(--green-dark); border-color: var(--green-dark); }
input:checked + .slider::before { transform: translateX(18px); background: white; }

/* ─────────────────────────── TOAST ─────────────────────────── */
.toast {
  position: fixed;
  top: calc(60px + var(--safe-area-top));
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-mono);
  z-index: 800;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  letter-spacing: 0.5px;
}

.toast.show { opacity: 1; }

/* ─────────────────────────── ONBOARDING HINT ─────────────────────────── */
.hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 300;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.hint.show { opacity: 1; }

.hint-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.hint-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .progress-fill, .sheet, .marker-platform.highlighted { animation: none; transition: none; }
}

/* ─────────────────────── AIRPORT JOURNEY PLANNER ─────────────────────── */
.journey-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.journey-tab {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.journey-tab:hover { background: var(--bg3); }
.journey-tab.active {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

body.dark .journey-tab.active { background: var(--green); color: var(--bg); }

.journey-content { padding: 0 16px 16px; }

.parking-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}

.parking-card.warning {
  border-color: var(--amber-border);
  background: var(--amber-bg);
}

.parking-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.parking-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.parking-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 500;
  background: #e0f3e8;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

body.dark .parking-price { background: #0f3a1a; color: var(--green); }

.parking-card.warning .parking-price {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.parking-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0;
  line-height: 1.5;
}

.parking-rating {
  font-size: 11px;
  color: var(--amber);
  margin: 4px 0 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.parking-serves {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin: 4px 0 6px;
}

.parking-tips {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg3);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.parking-tips-title {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.parking-tip { display: block; padding: 2px 0; }
.parking-tip::before { content: '• '; color: var(--green-dark); }

.parking-book-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
}

body.dark .parking-book-btn { background: var(--green); color: var(--bg); }

.warning-box {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--amber);
  margin-top: 8px;
  line-height: 1.4;
}

.operator-terminal {
  background: var(--bg3);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.operator-terminal strong {
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.5px;
}

body.dark .operator-terminal strong { color: var(--green); }

.operator-terminal-side {
  font-size: 11px;
  color: var(--text-muted);
}

.quick-fact {
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 0;
  line-height: 1.4;
}

.quick-fact::before {
  content: '→ ';
  color: var(--green-dark);
  font-family: var(--font-mono);
}

/* ─────────────────────── FLIGHT POPUP (FlightRadar style) ─────────────────────── */
.flight-popup {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  min-width: 200px;
  z-index: 500;
  pointer-events: auto;
}

.flight-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.flight-popup-id {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
}

body.dark .flight-popup-id { color: var(--green); }

.flight-popup-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

.flight-popup-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12px;
  color: var(--text-dim);
}

.flight-popup-row strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ─────────────────────── MOVING CHOPPER MARKERS ─────────────────────── */
.marker-chopper {
  width: 18px;
  height: 18px;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
  transition: transform 0.1s;
}

.marker-chopper:hover { transform: scale(1.3); }

.marker-chopper svg {
  width: 100%;
  height: 100%;
  fill: var(--green-dark);
}

body.dark .marker-chopper svg { fill: var(--green); }

.chopper-trail {
  stroke: var(--green-dark);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 3 3;
  opacity: 0.5;
}

body.dark .chopper-trail { stroke: var(--green); }

/* ─────────────────────── WELCOME HINT REFRESH ─────────────────────── */
.welcome-banner {
  position: absolute;
  top: calc(70px + var(--safe-area-top));
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 1px;
  z-index: 300;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-banner.show { opacity: 1; }

.welcome-banner .pulse {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ─────────────────────── REGION SEARCH HINT ─────────────────────── */
.search-mode-toggle {
  padding: 8px 16px 4px;
  display: flex;
  gap: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 1px;
}

.search-mode-toggle span {
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.search-mode-toggle span.active {
  background: var(--green-dark);
  color: white;
}

body.dark .search-mode-toggle span.active { background: var(--green); color: var(--bg); }

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.5.0 additions — helicopter markers, flight popups, airport sheet    */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Moving helicopter marker */
.marker-chopper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}
.marker-chopper:hover { transform: scale(1.25); }

.marker-chopper svg {
  width: 24px;
  height: 24px;
  animation: rotor-buzz 0.1s linear infinite alternate;
}

@keyframes rotor-buzz {
  0%   { transform: scale(1,1); }
  100% { transform: scale(1.04, 0.96); }
}

.marker-chopper.bristow  svg { color: #1d9e75; }
.marker-chopper.nhv      svg { color: #d4773a; }
.marker-chopper.ohs      svg { color: #3a7ad4; }
.marker-chopper.chc      svg { color: #9b3ad4; }
.marker-chopper.default  svg { color: #5d5d5d; }

body.dark .marker-chopper.bristow  svg { color: #5dde7a; }
body.dark .marker-chopper.nhv      svg { color: #e8a76a; }
body.dark .marker-chopper.ohs      svg { color: #6aa8e8; }
body.dark .marker-chopper.chc      svg { color: #c47aea; }

/* Flight info popup (appears when tapping chopper) */
.flight-popup {
  font-family: var(--font);
  min-width: 250px;
}

.flight-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.flight-popup-id {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 500;
  letter-spacing: 1px;
}

body.dark .flight-popup-id { color: var(--green); }

.flight-popup-op {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.flight-popup-route {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.route-end {
  text-align: center;
  flex-shrink: 0;
}

.route-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.route-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.route-arrow {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}

.route-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--green);
  border-radius: 2px;
  transition: width 1s linear;
}

.route-arrow-head {
  position: absolute;
  right: -3px;
  top: -10px;
  font-size: 14px;
  color: var(--green-dark);
}

body.dark .route-arrow-head { color: var(--green); }

.flight-popup-alert {
  padding: 8px 10px;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.flight-popup-note {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

/* (old airport-tabs CSS removed in v0.5.2) */

/* Mode switch — "heading out" vs "heading home" */
.mode-switch {
  display: flex;
  background: var(--bg3);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin: 0 8px;
}

.mode-btn {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 18px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}

.mode-btn.active {
  background: var(--bg2);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.5.2 — airport operator tiles, summary stats, terminals modal        */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Airport live activity summary */
.airport-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.summary-stat {
  text-align: center;
}

.summary-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  line-height: 1;
}

body.dark .summary-num { color: var(--green); }

.summary-stat.warn .summary-num { color: var(--amber); }

.summary-lbl {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* Terminals button in header */
.terminals-btn {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.terminals-btn:hover { background: var(--bg3); color: var(--text); }
.terminals-btn:active { transform: scale(0.96); }

/* Operator tiles grid */
.op-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.op-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: all 0.15s;
}

.op-tile:hover {
  background: var(--bg3);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.op-tile:active { transform: translateY(0); }

.op-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 4px;
}

.op-tile-count {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.op-bristow { border-left-color: #1d9e75; }
.op-nhv     { border-left-color: #d4773a; }
.op-ohs     { border-left-color: #3a7ad4; }
.op-chc     { border-left-color: #9b3ad4; }
.op-default { border-left-color: var(--text-muted); }

/* ABZ heliport — fixed 4-column operator row, no wrap at any viewport */
.abz-op-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.abz-op-grid .op-tile {
  padding: 8px 4px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left-width: 3px;
}
.abz-op-grid .op-tile-name {
  font-size: clamp(9px, 2.5vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.abz-op-grid .op-tile-count {
  font-size: clamp(7px, 2vw, 10px);
  margin-top: 2px;
}
@media (min-width: 641px) {
  .abz-op-grid { gap: 10px; }
  .abz-op-grid .op-tile { padding: 12px 10px; border-left-width: 4px; }
  .abz-op-grid .op-tile-name { font-size: 13px; }
  .abz-op-grid .op-tile-count { font-size: 10px; }
}

.op-bristow-text { color: #1d9e75; }
.op-nhv-text     { color: #d4773a; }
.op-ohs-text     { color: #3a7ad4; }
.op-chc-text     { color: #9b3ad4; }

body.dark .op-bristow-text { color: #5dde7a; }
body.dark .op-nhv-text     { color: #e8a76a; }
body.dark .op-ohs-text     { color: #6aa8e8; }
body.dark .op-chc-text     { color: #c47aea; }

/* Back button (when viewing an operator's flights) */
.back-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-btn:hover { background: var(--bg2); color: var(--text); }

.airport-note-strip {
  margin: 10px 16px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.32);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}

.airport-note-strip.compact {
  margin: 0 0 10px;
  font-size: 11px;
}

.parking-stack {
  display: grid;
  gap: 8px;
}

.parking-card.compact {
  margin-bottom: 0;
  background: rgba(255,255,255,0.28);
}

.abz-guide-wrap {
  padding: 0 16px 8px;
}

.abz-airfield-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background:
    linear-gradient(180deg, rgba(166,185,140,0.35), rgba(109,131,91,0.28)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

.abz-airfield {
  position: relative;
  height: 208px;
  background:
    linear-gradient(90deg, rgba(122,144,100,0.42), rgba(94,118,82,0.30)),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.05));
}

.abz-runway {
  position: absolute;
  left: 12%;
  right: 10%;
  top: 50%;
  height: 28px;
  margin-top: -14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(60,65,68,0.92), rgba(84,88,90,0.85));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.abz-runway::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.8) 0 14px, transparent 14px 24px);
}

.abz-spot {
  position: absolute;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.abz-spot-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.88);
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
}

.abz-spot-name {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(14,15,18,0.55);
  backdrop-filter: blur(4px);
}

.abz-spot-bristow { left: 14%; top: 56%; }
.abz-spot-bristow .abz-spot-dot { background: #1d9e75; }
.abz-spot-chc { left: 12%; top: 70%; }
.abz-spot-chc .abz-spot-dot { background: #9b3ad4; }
.abz-spot-nhv { left: 55%; top: 22%; }
.abz-spot-nhv .abz-spot-dot { background: #d4773a; }
.abz-spot-ohs { right: 10%; top: 48%; }
.abz-spot-ohs .abz-spot-dot { background: #3a7ad4; }

.abz-spot.active .abz-spot-name,
.abz-spot:hover .abz-spot-name {
  background: rgba(14,15,18,0.78);
}

.abz-spot.active .abz-spot-dot,
.abz-spot:hover .abz-spot-dot {
  transform: scale(1.12);
}

.abz-terminal-card {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.34);
  padding: 12px;
}

.abz-terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.abz-terminal-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.abz-terminal-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.abz-terminal-visual {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.24);
  border: 1px dashed rgba(0,0,0,0.14);
}

.abz-terminal-visual-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.abz-terminal-visual-copy {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.open-map-btn.small {
  width: auto;
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 12px;
}

.empty-state {
  padding: 16px;
  background: var(--bg3);
  border-radius: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Installation markers — on the main map */
.platform-info-card {
  margin: 0 16px 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.46);
}

.platform-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.platform-info-row:first-child {
  padding-top: 0;
}

.platform-info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.platform-info-row span {
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.platform-info-row strong {
  color: var(--text);
  font-size: 12px;
  text-align: right;
}

.marker-installation {
  cursor: pointer;
  transition: transform 0.15s;
}
.marker-installation:hover { transform: scale(1.2); }

.marker-installation.highlighted {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0%, 100% { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5)) drop-shadow(0 0 0 rgba(93, 222, 122, 0.8)); }
  50%      { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(93, 222, 122, 0.9)); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.5.3 additions                                                        */
/* ═══════════════════════════════════════════════════════════════════════ */

/* FR24-style helicopter marker */
.marker-chopper-fr24 {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: filter 0.15s;
}
.marker-chopper-fr24:hover {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)) brightness(1.15);
}

/* Airport label — inline with marker, properly anchored */
.marker-airport-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}
.marker-airport {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.marker-airport-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: transparent;
  padding: 0 4px;
  border-radius: 0;
  border: none;
  white-space: nowrap;
  box-shadow: none;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
}
body.dark .marker-airport-label {
  color: #ffffff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
}

/* 5-cell conditions grid */
.conditions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Clothing badge in tips header */
.clothing-badge {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  font-weight: 500;
}
.clothing-badge.summer {
  background: #fff8e0;
  color: #8a6200;
  border: 1px solid #f0d070;
}
.clothing-badge.winter {
  background: #e0eaf8;
  color: #1a4080;
  border: 1px solid #a0bcdc;
}
body.dark .clothing-badge.summer {
  background: #2a1e00;
  color: #e8c84a;
  border-color: #5a4a10;
}
body.dark .clothing-badge.winter {
  background: #0a1a30;
  color: #6ab0f8;
  border-color: #1a3a60;
}

/* Flight path label on map */
.path-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 600;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
  white-space: nowrap;
}

/* ─── Rotor spin animation ─────────────────────────────────────────────── */
@keyframes spin-rotor {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* FR24-style chopper marker — fixed 22px, never scales with map zoom */
.marker-chopper-fr24 {
  width: 22px !important;
  height: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Fixed size regardless of zoom — Leaflet markers don't zoom by default,
     this just enforces the container matches the icon */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  transition: filter 0.15s;
}
.marker-chopper-fr24:hover {
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.7)) brightness(1.2);
  transform: scale(1.3);
}

/* Selected chopper — brighter + gold glow to stand out from the flock */
.marker-chopper-selected .marker-chopper-fr24 {
  filter: brightness(2.2) drop-shadow(0 0 7px rgba(255,220,0,1)) drop-shadow(0 0 14px rgba(255,200,0,0.7)) !important;
}

/* Coastguard — red/white alternating flash */
.marker-chopper-coastguard {
  animation: cg-drop-shadow 0.75s ease-in-out infinite alternate;
}
.marker-chopper-coastguard .cg-icon {
  color: #e8001a;
  animation: cg-color-flash 0.75s ease-in-out infinite alternate;
}
@keyframes cg-color-flash {
  from { color: #e8001a; }
  to   { color: #ffffff; }
}
@keyframes cg-drop-shadow {
  from { filter: drop-shadow(0 1px 5px rgba(232,0,26,0.7)); }
  to   { filter: drop-shadow(0 1px 5px rgba(255,255,255,0.6)); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.5.5 / v0.5.6 additions                                              */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ABZ mini-map container */
#abz-mini-map {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Leaflet popup — black text always */
.leaflet-popup-content {
  color: #111111 !important;
  font-family: Arial, sans-serif !important;
}

.wind-tap-popup .leaflet-popup-content-wrapper {
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  padding: 0;
}
.wind-tap-popup .leaflet-popup-content {
  font-family: var(--font-mono, 'Share Tech Mono', monospace) !important;
  font-size: 12px !important;
  margin: 8px 13px !important;
  white-space: nowrap;
  color: #111111 !important;
  line-height: 1.7;
}
.wind-tap-popup .leaflet-popup-content b {
  color: #0f6e56;
  font-size: 13px;
}
body.dark .wind-tap-popup .leaflet-popup-content b {
  color: #1dff88;
}
.wind-tap-popup .leaflet-popup-tip-container { display: none; }

/* Parking map buttons */
.parking-map-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.15s;
  border: 1px solid transparent;
}
.parking-map-btn span {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}
.parking-map-btn:active { opacity: 0.92; }
.bristow-btn {
  background: #e8f5ef;
  color: var(--green-dark);
  border-color: #a8d8b8;
}
.ohs-btn {
  background: #e0eaf8;
  color: #3a7ad4;
  border-color: #a0bcdc;
}
body.dark .bristow-btn { background: #0f2b1a; border-color: var(--green-dark); color: var(--green); }
body.dark .ohs-btn     { background: #0a1a30; border-color: #1a3a60; color: #6ab0f8; }

/* Open on map button */
.open-map-btn {
  width: 100%;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}
.open-map-btn:active { opacity: 0.85; }
body.dark .open-map-btn { background: var(--green); color: var(--bg); }

/* Terminal pins on map — clean coloured pills, no white border halo */
.terminal-pin {
  display: flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 10px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.55);
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  letter-spacing: 0.3px;
}
.terminal-pin:hover { transform: scale(1.08); }

/* Wave overlay FAB active state */
.wave-fab.active {
  background: #1a4080;
  color: white;
  border-color: #1a4080;
}
body.dark .wave-fab.active {
  background: #2060c0;
  border-color: #2060c0;
}

/* Wave overlay legend (appears bottom-left when active) */
.wave-legend {
  position: absolute;
  left: 12px;
  bottom: calc(120px + var(--safe-area-bottom));
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  font-size: 10px;
  font-family: var(--font-mono);
  z-index: 350;
  display: none;
  flex-direction: column;
  gap: 3px;
}
.wave-legend.show { display: flex; }
.wave-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}
.wave-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Satellite label fix moved to base .platform-label style */

/* ── Remove all white boxes from Leaflet labels on satellite map ────────── */
.leaflet-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.leaflet-tooltip::before { display: none !important; }

/* Platform marker dots — slightly larger on satellite for visibility */
.marker-platform {
  width: 10px !important;
  height: 10px !important;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5), 0 0 4px rgba(0,0,0,0.4) !important;
}
.marker-rig {
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5), 0 0 4px rgba(0,0,0,0.4) !important;
}

/* ─── Kill Leaflet tooltip white box on flight path labels ─────────── */
.path-label.leaflet-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000,
               1px -1px 2px #000, -1px  1px 2px #000 !important;
}
.path-label.leaflet-tooltip::before { display: none !important; }

/* ─── Kill any remaining Leaflet tooltip halos on platform labels ──── */
.platform-label.leaflet-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.platform-label.leaflet-tooltip::before { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.5.8 — dual search, pulse ring, unified dots                         */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Dual search stack */
.search-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.search-stack-single {
  gap: 0;
}

.search-pill-top,
.search-pill-bottom {
  background: var(--bg2);
  border: 2px solid #111111;
  border-radius: 20px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.search-pill-top input,
.search-pill-bottom input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #111111;
  outline: none;
  font-weight: 500;
}

.search-pill-top input::placeholder,
.search-pill-bottom input::placeholder {
  color: #333333;
  font-weight: 500;
}

body.dark .search-pill-top,
body.dark .search-pill-bottom {
  border-color: var(--green);
}

body.dark .search-pill-top input,
body.dark .search-pill-bottom input {
  color: var(--text);
}

body.dark .search-pill-top input::placeholder,
body.dark .search-pill-bottom input::placeholder {
  color: var(--text-dim);
}

/* Keep dropdown positioned relative to each pill */
.search-pill-top .search-dd,
.search-pill-bottom .search-dd {
  position: absolute;
  top: calc(100% + 4px);
  left: -2px;
  right: -2px;
}

/* Pulsing ring marker — separate layer on selected platform */
.pulse-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #1dff88;
  animation: pulse-ring-anim 1.2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring-anim {
  0%   { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1);   opacity: 0; }
}

/* Override search-pill for the old single pill (topbar uses .search-pill) */
.topbar .search-pill {
  border: 2px solid #111111;
}

/* Unified dot sizes — 8px for both */
.marker-platform,
.marker-rig {
  width: 8px !important;
  height: 8px !important;
}

/* Make platform highlighted dot same size as ring target */
.marker-platform.highlighted {
  width: 10px !important;
  height: 10px !important;
  background: #1dff88 !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.5.9 — tap area, status colours, clear X, SVG map                   */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Invisible 36px hit area wrapping visible 8px dot */
.marker-hit-area {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
}

/* Platform sheet status colour tints */
.sheet[data-status="go"] .sheet-head {
  background: linear-gradient(180deg, rgba(29,158,117,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(29,158,117,0.2);
}
.sheet[data-status="warn"] .sheet-head {
  background: linear-gradient(180deg, rgba(196,128,16,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(196,128,16,0.2);
}
.sheet[data-status="nogo"] .sheet-head {
  background: linear-gradient(180deg, rgba(200,50,58,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(200,50,58,0.2);
}

/* Conditions cells — subtle status tints */
.sheet[data-status="go"]   .conditions { border-color: rgba(29,158,117,0.3); }
.sheet[data-status="warn"] .conditions { border-color: rgba(196,128,16,0.3); }
.sheet[data-status="nogo"] .conditions { border-color: rgba(200,50,58,0.3); }

/* Search clear X button */
.search-clear {
  background: transparent;
  border: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}
.search-clear:hover {
  background: rgba(0,0,0,0.08);
  color: #111;
}

/* ABZ SVG map container */
.abz-svg-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.abz-svg-map svg rect[onclick],
.abz-svg-map svg [onclick] {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.0 — weather band, time slider, layer selector, detail panel       */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Status badge in search bar */
.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.status-badge.go   { background: #e0f3e8; color: #0f6e56; border: 1px solid #a8d8b8; }
.status-badge.warn { background: #fef4e0; color: #c48010; border: 1px solid #f0c970; }
.status-badge.nogo { background: #fde8ea; color: #c8323a; border: 1px solid #f0a0a5; }

body.dark .status-badge.go   { background: rgba(0,201,106,0.12); color: #1dff88; border-color: rgba(0,201,106,0.35); }
body.dark .status-badge.warn { background: rgba(240,184,64,0.12); color: #f0b840; border-color: rgba(240,184,64,0.35); }
body.dark .status-badge.nogo { background: rgba(240,64,80,0.12);  color: #f04050; border-color: rgba(240,64,80,0.35); }

/* Weather band — bottom of screen */
/* v0.6.5: old solid band removed — replaced by floating transparent controls */

.time-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
body.dark .time-slider::-webkit-slider-thumb { background: var(--green); }

.time-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.time-lbl {
  font-size: 9px;
  color: #888;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: color 0.15s;
}
.time-lbl.active {
  color: var(--green-dark);
  font-weight: 700;
}
body.dark .time-lbl.active { color: var(--green); }

.band-flights-hidden {
  padding: 0 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 100px;
  overflow-y: auto;
}

.band-flight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg3);
  border-radius: 6px;
  cursor: pointer;
  border-left: 3px solid var(--border);
  font-size: 11px;
}
.band-flight.airborne  { border-left-color: #1d9e75; }
.band-flight.delayed   { border-left-color: #c48010; }
.band-flight.scheduled { border-left-color: #888; }

.band-flight-id {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}
body.dark .band-flight-id { color: var(--text); }

.band-flight-route {
  flex: 1;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark .band-flight-route { color: var(--text-dim); }

.band-flight-status {
  flex-shrink: 0;
  font-size: 9px !important;
  padding: 2px 6px !important;
}

/* Detail panel — slides up from bottom */
#detail-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.90);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  z-index: 450;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#detail-panel.open {
  transform: translateY(0);
}

#detail-panel.explore-side {
  top: calc(var(--safe-area-top) + 120px);
  bottom: auto;
  left: 0;
  right: auto;
  width: min(360px, 84vw);
  max-height: calc(100vh - 150px);
  border-top-left-radius: 0;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 0;
  box-shadow: 10px 0 28px rgba(0,0,0,0.18);
  transform: translateX(-108%);
  overflow-y: auto;
}

#detail-panel.explore-side.open {
  transform: translateX(0);
}

.detail-handle {
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.detail-handle-bar {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
body.dark .detail-title { color: var(--text); }

.detail-body {
  padding-bottom: calc(20px + var(--safe-area-bottom));
}

/* Marker hit area */
.marker-hit-area {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent;
}

/* Platform dots — unified 8px */
.marker-platform {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1d9e75;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5);
}
.marker-platform.highlighted {
  width: 12px !important; height: 12px !important;
  background: #1dff88 !important;
  animation: pulse-marker 1.2s ease-in-out infinite;
}

.marker-rig {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c47a20;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5);
}

/* Pulse ring */
.pulse-ring {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid #1dff88;
  animation: pulse-ring-anim 1.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring-anim {
  0%   { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1);   opacity: 0; }
}
@keyframes pulse-marker {
  0%   { box-shadow: 0 0 0 0   rgba(29,255,136,0.9), 0 0 0 0   rgba(29,255,136,0.5); }
  50%  { box-shadow: 0 0 0 10px rgba(29,255,136,0.0),0 0 0 18px rgba(29,255,136,0.0); }
  100% { box-shadow: 0 0 0 0   rgba(29,255,136,0.9), 0 0 0 0   rgba(29,255,136,0.5); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.1 — info row above conditions, yellow choppers                    */
/* ═══════════════════════════════════════════════════════════════════════ */

.wave-fab { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.3 — fullscreen btn, black fonts, zoom position                    */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Stack fullscreen + theme buttons vertically top-right */
.topbar-right-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

/* Fullscreen button — same style as theme btn */
#fullscreen-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: background 0.15s;
}
#fullscreen-btn:active { background: var(--bg3); }

/* Global black text for light mode */
body:not(.dark) {
  color: #0a0a0a;
}
body:not(.dark) .sheet-title,
body:not(.dark) .detail-title,
body:not(.dark) .band-platform-name,
body:not(.dark) .cond-val,
body:not(.dark) .flight-id,
body:not(.dark) .dd-item,
body:not(.dark) .dd-region,
body:not(.dark) .op-tile-name,
body:not(.dark) .summary-num,
body:not(.dark) .summary-lbl,
body:not(.dark) input,
body:not(.dark) input::placeholder {
  color: #0a0a0a !important;
}

/* Zoom controls — pushed below dual search bars */
.leaflet-top.leaflet-right {
  margin-top: 130px !important;
}

/* Fullscreen mode — hide browser UI padding when in fullscreen */
:fullscreen .app,
:-webkit-full-screen .app {
  height: 100vh !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.4 — floating transparent weather controls over the map            */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Override old solid band — now transparent container */
#weather-band {
  position: absolute !important;
  bottom: calc(var(--safe-area-bottom)) !important;
  left: 0 !important;
  right: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 400 !important;
  /* pointer-events on individual rows only — band container itself auto */
  padding: 0 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* All rows allow their own pointer events */
.float-row { pointer-events: auto; }

/* ── Row 1: Layer buttons + info button ── */
.float-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.float-layers {
  display: flex;
  gap: 5px;
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.12);
}

.float-layer-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 12px;
  transition: background 0.15s;
  line-height: 1;
}
.float-layer-btn:active,
.float-layer-btn.active {
  background: rgba(29,255,136,0.25);
  font-weight: 800;
}

.float-info-btn {
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}
.float-info-btn:active { background: rgba(29,158,117,0.5); }

/* ── Row 2: Condition pills ── */
.float-row-cond {
  display: flex;
  gap: 5px;
  justify-content: space-between;
}

.float-cond {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 5px 3px 4px;
  border: 1px solid rgba(255,255,255,0.10);
  min-width: 0;
}

/* Status colour accents on the pill border */
.float-cond.go        { border-color: rgba(29,220,120,0.5); }
.float-cond.warn      { border-color: rgba(240,180,40,0.5); }
.float-cond.nogo      { border-color: rgba(210,50,50,0.5); }
.float-cond.no-status { border-color: transparent; }

.float-cond-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.float-cond.go   .float-cond-val { color: #1dff88; }
.float-cond.warn .float-cond-val { color: #f5c842; }
.float-cond.nogo .float-cond-val { color: #ff5555; }

.float-cond-lbl {
  font-size: 7px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ── Row 3: Time slider strip ── */
.float-row-slider {
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 7px 12px 6px;
  border: 1px solid rgba(255,255,255,0.10);
}

/* Override time slider for dark float */
.float-row-slider .time-slider {
  background: rgba(255,255,255,0.15);
}
.float-row-slider .time-slider::-webkit-slider-thumb {
  background: #1dff88;
  box-shadow: 0 0 6px rgba(29,255,136,0.5);
}

.float-row-slider .time-labels { margin-top: 5px; }
.float-row-slider .time-lbl { color: rgba(255,255,255,0.45); font-size: 9px; }
.float-row-slider .time-lbl.active { color: #1dff88; }

/* Detail panel sits above the floating band */
#detail-panel {
  bottom: 0 !important;
  z-index: 500 !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.6 — clean map, text layer buttons, more transparent controls      */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Hide old sheet entirely */
.sheet { display: none !important; }
.legend { display: none !important; }

/* Layer buttons — text labels, black font, very light transparent */
.float-layer-btn {
  background: rgba(255,255,255,0.22) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #111111 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.5px !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
}
.float-layer-btn.active {
  background: rgba(29,255,136,0.35) !important;
  color: #003a1a !important;
  border-color: rgba(29,255,136,0.7) !important;
  border-width: 1.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
}

/* Float layers container — lighter */
.float-layers {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
}

/* Float info button — lighter */
.float-info-btn {
  background: rgba(255,255,255,0.22) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #111111 !important;
  font-weight: 700 !important;
}

/* Condition pills — lighter */
.float-cond {
  background: rgba(255,255,255,0.20) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.float-cond-val {
  color: #111111 !important;
}
.float-cond.go   .float-cond-val { color: #006633 !important; }
.float-cond.warn .float-cond-val { color: #884400 !important; }
.float-cond.nogo .float-cond-val { color: #880000 !important; }
.float-cond-lbl {
  color: rgba(0,0,0,0.55) !important;
}

/* Condition pill borders stay coloured for status */
.float-cond.go   { border-color: rgba(29,180,90,0.55) !important; }
.float-cond.warn { border-color: rgba(200,140,0,0.55) !important; }
.float-cond.nogo { border-color: rgba(180,30,30,0.55) !important; }

/* Time slider strip — lighter */
.float-row-slider {
  background: rgba(255,255,255,0.22) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
}
.float-row-slider .time-lbl { color: rgba(0,0,0,0.45) !important; }
.float-row-slider .time-lbl.active { color: #005522 !important; }
.float-row-slider .time-slider {
  background: rgba(0,0,0,0.15) !important;
}
.float-row-slider .time-slider::-webkit-slider-thumb {
  background: #1d9e75 !important;
  box-shadow: 0 0 4px rgba(29,158,117,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.7 — glass brand pill, forecast label, photo slot, explore tab     */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Brand pill — frosted glass, same as other controls */
.brand-pill-glass {
  background: rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.30) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}

/* Settings FAB — glass style */
.fab-glass {
  background: rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}

/* FORECAST label above time slider */
.forecast-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.6;
}

/* Time slider labels — black */
.float-row-slider .time-lbl {
  color: rgba(0,0,0,0.72) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
}
.float-row-slider .time-lbl.active {
  color: #00361b !important;
  font-weight: 700 !important;
}

/* Detail panel — light frosted glass */
#detail-panel {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Operator link with arrow */
.operator-link {
  font-size: 11px;
  color: #1d9e75;
  text-decoration: none;
  margin-left: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid rgba(29,158,117,0.3);
  padding-bottom: 1px;
}
.operator-link:hover { border-bottom-color: #1d9e75; }
.op-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #1d9e75;
}
.operator-plain {
  font-size: 12px;
  color: #555;
  margin-left: 6px;
}

/* ── Platform photo slot — three states: live / pending / none ── */
.platform-photo-slot {
  margin: 0;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
}

/* NONE — not contacted yet */
.platform-photo-slot.photo-none {
  background: linear-gradient(135deg, #eaf0ec 0%, #dce8e0 100%);
}

/* PENDING — approval letter sent */
.platform-photo-slot.photo-pending {
  background: linear-gradient(135deg, #faf8f3 0%, #f3ede0 100%);
}

/* LIVE — approved photo */
.platform-photo-slot.photo-live {
  height: 195px;
  background: #111a14;
}
.platform-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.platform-photo-slot.photo-live:hover .platform-photo-img {
  transform: scale(1.03);
}
.platform-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 13px;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.platform-photo-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.platform-photo-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.platform-photo-op {
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  font-family: var(--font);
}
.platform-photo-credit {
  color: rgba(255,255,255,0.42);
  font-size: 8.5px;
  font-style: italic;
  text-align: right;
  max-width: 120px;
  line-height: 1.3;
}

/* Shared inner wrapper (none + pending) */
.platform-photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  color: #888;
}
.platform-photo-label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.platform-photo-sub {
  font-size: 9.5px;
  color: #999;
  font-style: italic;
  text-align: center;
}

/* Pending pulsing rings */
.photo-pend-rings {
  color: var(--amber);
  animation: photo-pulse 2.4s ease-in-out infinite;
  margin-bottom: 2px;
}
@keyframes photo-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Status badge */
.platform-photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-top: 1px;
}
.badge-pending {
  background: rgba(196,128,16,0.10);
  color: var(--amber);
  border: 1px solid rgba(196,128,16,0.28);
}

/* Explore teaser row at bottom of platform panel */
.explore-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 16px 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0f7f3 0%, #e8f2ee 100%);
  border: 1px solid rgba(29,158,117,0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.explore-teaser { display: none !important; }
.explore-teaser:active { background: #e0efea; }
.explore-teaser-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}
.explore-teaser-sub {
  font-size: 11px;
  color: #555;
}
.explore-teaser-arrow {
  font-size: 22px;
  color: #1d9e75;
  font-weight: 300;
}

/* Explore category accordion */
.explore-cat-block {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.explore-cat-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.explore-cat-hdr:active { background: rgba(29,158,117,0.06); }

.explore-cat-icon { font-size: 20px; flex-shrink: 0; }

.explore-cat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.explore-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.explore-cat-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.explore-cat-chevron {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.explore-cat-items {
  display: none;
  flex-direction: column;
  padding: 0 0 8px;
}

.explore-cat-block.explore-cat-open .explore-cat-items {
  display: flex;
}

.explore-cat-block.explore-cat-open .explore-cat-chevron {
  transform: rotate(180deg);
}

body.dark .explore-cat-block { border-bottom-color: rgba(255,255,255,0.07); }
body.dark .explore-cat-title { color: #e8f0ec; }

/* Explore tab content */
.explore-section-hdr {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #444;
  text-transform: uppercase;
  padding: 14px 16px 4px;
}
.explore-note {
  font-size: 10px;
  color: #888;
  padding: 0 16px 8px;
  font-style: italic;
  line-height: 1.4;
}

/* Supplier cards */
.explore-supplier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.explore-supplier-card:active { background: #f5f5f5; }
.explore-supplier-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1d9e75;
  font-family: var(--font-mono);
  margin-bottom: 3px;
}
.explore-supplier-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}
.explore-supplier-desc {
  font-size: 11px;
  color: #666;
}
.explore-supplier-arrow {
  font-size: 18px;
  color: #1d9e75;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 10px;
}

.explore-supplier-card.is-placeholder {
  border-style: dashed;
}

/* Safety bulletin rows */
.explore-bulletin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
}
.explore-bulletin-row:last-of-type { border-bottom: none; }
.explore-bulletin-icon { font-size: 18px; flex-shrink: 0; }
.explore-bulletin-name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #111;
}
.explore-bulletin-arrow {
  font-size: 14px;
  color: #1d9e75;
  font-weight: 700;
  flex-shrink: 0;
}

.explore-bulletin-desc {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  color: #5f6b67;
  line-height: 1.4;
}

.panel-hub-stack {
  padding: 0 16px 16px;
}

.hub-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hub-entry-card {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 12px;
  color: #111;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hub-entry-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #1d9e75;
  font-family: var(--font-mono);
  margin-bottom: 5px;
}

.hub-entry-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hub-entry-copy {
  font-size: 11px;
  line-height: 1.45;
  color: #4f5b57;
}

.abz-overview-intro {
  padding: 2px 16px 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #34423d;
}

.transport-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
}

.transport-card {
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.transport-card-label {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #1d9e75;
  margin-bottom: 5px;
}

.transport-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.transport-card-copy {
  font-size: 11px;
  line-height: 1.45;
  color: #4f5b57;
}

.transport-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.transport-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  color: #0f2c25;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(0,0,0,0.08);
}

.transport-link-chip.muted {
  color: #65716d;
}

.abz-terminal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.open-map-btn.ghost {
  background: rgba(255,255,255,0.28);
  color: #16342d;
}

.news-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 0;
}

.news-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.48);
  font-size: 10px;
  font-weight: 700;
  color: #40504b;
}

.news-filter-chip.active {
  color: #0e2d26;
  background: rgba(29,158,117,0.18);
  border-color: rgba(29,158,117,0.34);
}

.news-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 16px 16px;
}

.news-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29,158,117,0.14);
  color: #1d9e75;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.news-date {
  font-size: 10px;
  color: #60716c;
}

.news-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.news-copy {
  font-size: 11px;
  line-height: 1.5;
  color: #495752;
}

.news-meta {
  margin-top: 8px;
  font-size: 10px;
  color: #6c7b76;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
}

.news-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #16342d;
  text-decoration: none;
}

/* Global Energy Network live feed extras */
.news-source-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 16px 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(14, 24, 44, 0.62), rgba(37, 118, 126, 0.34)),
    rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.news-source-logo {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(29,158,117,0.14);
  color: #1d9e75;
}

.news-source-logo-img {
  display: block;
  width: min(190px, 58%);
  height: auto;
  flex-shrink: 0;
  opacity: 0.92;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,0.18));
}

.news-source-label {
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  line-height: 1.35;
}

.sources-thanks-card {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(29,158,117,0.24);
  background: rgba(29,158,117,0.10);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.news-card-link:active { opacity: 0.92; }

.news-link-inline {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #16342d;
}

.news-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.news-loading-spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(29,158,117,0.3);
  border-top-color: #1d9e75;
  border-radius: 50%;
  animation: rspin 0.7s linear infinite;
  flex-shrink: 0;
}

body.dark .news-title { color: #e8f0ec; }
body.dark .news-copy  { color: #a0b0a8; }
body.dark .news-link-inline { color: #4ee8a8; }

@media (max-width: 720px) {
  .hub-entry-grid,
  .transport-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.8 — vertical brand, transparent panels, parking pins              */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ── Vertical floating brand logo ──────────────────────────────────── */
.brand-vertical {
  position: absolute;
  top: calc(var(--safe-area-top) + 10px);
  left: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  user-select: none;
}

.side-vertical-tab {
  position: absolute;
  top: calc(var(--safe-area-top) + 108px);
  left: -18px;
  z-index: 520;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 8px 10px 20px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.34);
  border-left: none;
  border-radius: 0 16px 16px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  color: #111;
  cursor: pointer;
}

.side-vertical-tab span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.6px;
  display: block;
  width: 100%;
  text-align: center;
}

.brand-vertical-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.brand-vertical-text span {
  font-family: 'Orbitron', var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
  letter-spacing: 0px;
  /* Readable over any map background */
  text-shadow:
    0 0 3px rgba(255,255,255,0.9),
    0 0 6px rgba(255,255,255,0.7),
    1px 1px 0 rgba(255,255,255,0.8),
    -1px -1px 0 rgba(255,255,255,0.8);
}

.brand-vertical-gap {
  display: block;
  height: 5px !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Load Orbitron from Google Fonts for brand */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

/* ── Topbar adjustment — brand pill is gone, search shifts left ─────── */
.topbar {
  padding-left: 52px !important; /* clear the vertical brand */
}

/* Hide old brand pill */
.brand-pill { display: none !important; }

/* ── Force ALL panels to frosted glass ─────────────────────────────── */
#detail-panel,
.modal-panel,
#settings-modal .modal-panel {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Detail panel handle bar */
.detail-handle {
  background: transparent !important;
}

/* Settings modal overlay — semi dark */
#settings-modal {
  background: rgba(0,0,0,0.35) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* Terminals modal */
.modal {
  background: rgba(0,0,0,0.35) !important;
}
.modal-panel {
  background: rgba(255,255,255,0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* All text inside panels — black */
#detail-panel *,
.modal-panel * {
  color: #111111;
}
#detail-panel a,
.modal-panel a {
  color: #1d9e75;
}

/* ── Parking pins on map ─────────────────────────────────────────────── */
.parking-pin {
  width: 28px;
  height: 28px;
  background: #1d9e75;
  border-radius: 8px 8px 8px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  cursor: pointer;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.parking-pin:hover { transform: rotate(-45deg) scale(1.1); }
.parking-pin-warn { background: #e8820a; }

.parking-pin-p {
  font-size: 13px;
  font-weight: 900;
  color: white;
  font-family: Arial, sans-serif;
  transform: rotate(45deg); /* counter-rotate so P stays upright */
  line-height: 1;
}

/* ── FAB glass (settings button) ─────────────────────────────────────── */
#settings-btn.fab-glass,
.fab-glass {
  background: rgba(255,255,255,0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}

/* ─── v0.6.8 patch — fix touch passthrough closing panel ─────────── */
#detail-panel {
  background: rgba(255,255,255,0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  /* Capture ALL touch/pointer events — prevent map underneath from receiving them */
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}
#detail-panel.open {
  pointer-events: auto !important;
}

/* Modal panel same treatment */
.modal-panel {
  background: rgba(255,255,255,0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

/* Settings modal background */
#settings-modal.open {
  background: rgba(0,0,0,0.40) !important;
}

/* Ensure dark mode panels stay readable */
body.dark #detail-panel,
body.dark .modal-panel {
  background: rgba(13,26,15,0.92) !important;
}
body.dark #detail-panel *,
body.dark .modal-panel * {
  color: var(--text) !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.9 — permanent layer column, transparent buttons, black brand      */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ── Permanent layer column — right side, below zoom ────────────────── */
.layer-column {
  position: absolute;
  right: 12px;
  top: 260px; /* below zoom controls */
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.layer-col-btn {
  display: block;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 7px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 48px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.15s;
}
.layer-col-btn:active { transform: scale(0.95); }
.layer-col-btn.active {
  background: rgba(15,110,86,0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 2px solid rgba(15,110,86,0.85) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(15,110,86,0.35) !important;
}

.layer-col-btn-hub {
  width: 62px;
  margin-top: 6px;
  background: rgba(255,255,255,0.34);
}

/* ── Brand vertical — pure black, NO white glow ──────────────────────── */
.brand-vertical-text span {
  color: #000000 !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.6),
    -1px -1px 0 rgba(255,255,255,0.6),
    1px -1px 0 rgba(255,255,255,0.6),
    -1px 1px 0 rgba(255,255,255,0.6) !important;
  /* Thin white outline — not a glow, just legibility */
}

/* ── Settings FAB — fully transparent glass ──────────────────────────── */
#settings-btn,
.fab {
  background: rgba(255,255,255,0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  color: #111111 !important;
}
#settings-btn svg,
.fab svg {
  stroke: #111111 !important;
}

/* ── Zoom controls — transparent glass ───────────────────────────────── */
.leaflet-control-zoom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.leaflet-control-zoom a {
  background: rgba(255,255,255,0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  color: #111111 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  margin-bottom: 3px !important;
  border-radius: 8px !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(255,255,255,0.45) !important;
}

/* ── Fullscreen button — transparent glass ───────────────────────────── */
#fullscreen-btn {
  background: rgba(255,255,255,0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  color: #111111 !important;
}
#fullscreen-btn svg { stroke: #111111 !important; }

/* ── Info button wider now layer buttons are gone from band ──────────── */
.float-info-btn-wide {
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Weather band top row — single info button ───────────────────────── */
.float-row-top {
  justify-content: flex-start !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.10 — time slider visibility, panel transparency, autofill         */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Time slider labels — same bold green style as conditions */
.time-lbl {
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: rgba(0,0,0,0.65) !important;
}
.time-lbl.active {
  color: #004422 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
}

/* Force transparent on detail panel — nuclear override */
#detail-panel {
  background: rgba(240,248,242,0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

/* City item in search dropdown */
.dd-city {
  background: rgba(29,158,117,0.08) !important;
  border-left: 3px solid #1d9e75 !important;
  font-weight: 600 !important;
}

/* Conditions band — more visible numbers */
.float-cond-val {
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Info button — full width, clearly visible */
.float-info-btn {
  text-align: center !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  padding: 8px 16px !important;
}

/* Hide Android autofill suggestions via CSS hint */
input[autocomplete="off"] {
  -webkit-text-fill-color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.11 — real transparency, time slider fix                           */
/* ═══════════════════════════════════════════════════════════════════════ */

/* NUCLEAR: Force ALL panel backgrounds truly transparent */
#detail-panel,
#detail-panel.open {
  background: rgba(220,240,228,0.62) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

.modal-panel {
  background: rgba(220,240,228,0.62) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

/* All white child elements inside panel — make transparent */
#detail-panel .flight-card.airborne { background: rgba(29,158,117,0.15) !important; }
#detail-panel .flight-card.delayed  { background: rgba(196,128,16,0.12) !important; }
#detail-panel .flight-card.scheduled{ background: rgba(255,255,255,0.25) !important; }
#detail-panel .explore-supplier-card{ background: rgba(255,255,255,0.35) !important; }
#detail-panel .platform-photo-slot:not(.photo-live)  { background: rgba(29,158,117,0.12) !important; }
#detail-panel .airport-summary      { background: rgba(255,255,255,0.25) !important; }
#detail-panel .sec-hdr              { background: transparent !important; }
#detail-panel .explore-teaser       { background: rgba(29,158,117,0.15) !important; }

/* Time slider — same size and colour as condition digits */
.time-lbl {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  letter-spacing: 0 !important;
}
.time-lbl.active {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #004d26 !important;
}

/* Conditions digits — match exactly */
.float-cond-val {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #111111 !important;
}
.float-cond.go   .float-cond-val { color: #005522 !important; }
.float-cond.warn .float-cond-val { color: #7a4400 !important; }
.float-cond.nogo .float-cond-val { color: #7a0000 !important; }

/* FORECAST label */
.forecast-label {
  font-size: 9px !important;
  color: #111111 !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  margin-bottom: 3px !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.12 — transparent panels, version fix                              */
/* ═══════════════════════════════════════════════════════════════════════ */

/* FINAL nuclear panel transparency */
#detail-panel,
#detail-panel.open,
.modal-panel {
  background: rgba(210,235,218,0.42) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
}

/* Every white child inside panel — make transparent */
#detail-panel .sec-hdr,
#detail-panel .detail-body,
#detail-panel .detail-handle {
  background: transparent !important;
}

/* Explore drawer uses a true side-sheet layout instead of bottom-sheet cues */
#detail-panel.explore-side {
  top: calc(var(--safe-area-top) + 142px) !important;
  bottom: auto !important;
  left: 0 !important;
  right: auto !important;
  width: min(220px, 56vw) !important;
  max-height: calc(100vh - 172px) !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
  border-bottom-left-radius: 0 !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  border-left: none !important;
  background: rgba(220, 240, 232, 0.48) !important;
  box-shadow: 10px 0 28px rgba(0,0,0,0.14) !important;
  transform: translateX(calc(-100% - 24px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
  backdrop-filter: blur(22px) saturate(1.3) !important;
}

#detail-panel.explore-side.open {
  transform: translateX(0) !important;
}

#detail-panel.explore-side .detail-handle {
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 10px 14px 8px 16px !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

#detail-panel.explore-side .detail-handle-bar {
  display: none !important;
}

#detail-panel.explore-side .detail-title {
  justify-content: flex-start !important;
  text-align: left !important;
  font-size: 14px !important;
}

#detail-panel.explore-side .detail-body {
  padding-bottom: calc(18px + var(--safe-area-bottom)) !important;
}

body.dark #detail-panel.explore-side {
  background: rgba(14, 24, 20, 0.55) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: 12px 0 32px rgba(0,0,0,0.38) !important;
}

body.dark #detail-panel.explore-side .detail-handle {
  border-bottom-color: rgba(255,255,255,0.08) !important;
}

#detail-panel .flight-card {
  background: rgba(255,255,255,0.30) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
#detail-panel .flight-card.airborne {
  background: rgba(29,158,117,0.18) !important;
  border-color: rgba(29,158,117,0.30) !important;
}
#detail-panel .flight-card.delayed {
  background: rgba(196,128,16,0.15) !important;
}
#detail-panel .airport-summary {
  background: rgba(255,255,255,0.18) !important;
}
#detail-panel .explore-teaser {
  background: rgba(29,158,117,0.10) !important;
}
#detail-panel .explore-supplier-card {
  background: rgba(255,255,255,0.20) !important;
}
#detail-panel .platform-photo-slot:not(.photo-live) {
  background: rgba(29,158,117,0.08) !important;
}
#detail-panel .op-tile {
  background: rgba(255,255,255,0.18) !important;
}
#detail-panel .tips-list {
  background: transparent !important;
}
#detail-panel .progress-bar {
  background: rgba(0,0,0,0.10) !important;
}
#detail-panel .notify-btn {
  background: rgba(255,255,255,0.35) !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
}

/* Version badge — more visible */
.version-badge {
  position: absolute;
  bottom: calc(8px + var(--safe-area-bottom));
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  z-index: 300;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.13 — feed badge, disclaimer, panel fixes                          */
/* ═══════════════════════════════════════════════════════════════════════ */

/* feed badge instead of LIVE */
\.feed-badge {
  background: rgba(196,128,16,0.15) !important;
  border: 1px solid rgba(196,128,16,0.4) !important;
  color: #7a4400 !important;
}
.pulse-amber {
  background: #c48010 !important;
  animation: pulse-dot 1.5s ease-in-out infinite !important;
}

/* Weather disclaimer */
.weather-disclaimer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  font-size: 10px;
  color: rgba(0,0,0,0.50);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  text-align: left;
  margin-left: auto;
  line-height: 1.25;
  min-width: 0;
}

.weather-disclaimer-line {
  display: block;
  grid-column: 1;
  white-space: nowrap;
}

.weather-disclaimer-line:first-child {
  color: rgba(0,0,0,0.54);
}

.weather-disclaimer-line:nth-child(2) {
  font-size: 10px;
  color: rgba(0,0,0,0.62);
}

.weather-disclaimer .wx-source {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-left: 0;
}

/* Detail panel — CSS pointer-events ensures no touch passthrough */
#detail-panel {
  pointer-events: auto !important;
  isolation: isolate;
}
#detail-panel * {
  pointer-events: auto;
}

/* Make panel scrollable without triggering map */
#detail-panel {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}


/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.6.13.1 — panel close bug finally fixed properly                     */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Weather band: let empty gaps pass through to map, but controls work */
#weather-band {
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none;
}
#weather-band > * {
  pointer-events: auto !important;
}

/* Detail panel: completely isolated from map */
#detail-panel {
  pointer-events: auto !important;
  z-index: 550 !important;
  isolation: isolate;
}

/* Version badge — always visible, readable */
.version-badge {
  position: absolute !important;
  bottom: calc(16px + var(--safe-area-bottom)) !important;
  left: 16px !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.9) !important;
  z-index: 600 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  background: rgba(0,0,0,0.35);
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  user-select: none;
}

.version-badge:focus-visible {
  outline: 2px solid rgba(29,158,117,0.68);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body.weather-band-visible .version-badge {
    bottom: calc(12px + var(--safe-area-bottom)) !important;
    left: 12px !important;
    opacity: 0.82;
  }

  body.detail-panel-open .version-badge {
    opacity: 0;
    pointer-events: none !important;
  }
}

/* v0.6.15 visual polish */
.brand-vertical {
  top: calc(var(--safe-area-top) + 12px);
  left: 12px;
  align-items: center;
}

.brand-vertical svg {
  display: block !important;
  width: 26px;
  height: 26px;
  margin-bottom: 3px !important;
  filter: none !important;
}

.brand-vertical svg * {
  opacity: 1 !important;
}

.brand-chopper-svg {
  overflow: visible;
  display: block;
}

.brand-chopper-rotor {
  transform-origin: 16px 16px;
  animation: spin-rotor 0.95s linear infinite;
}

.brand-chopper-tail-rotor {
  transform-origin: 16px 3.8px;
  animation: spin-rotor 0.45s linear infinite;
}

.brand-vertical-text {
  align-items: center;
}

.brand-vertical-text span {
  font-family: var(--font), sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #111111 !important;
  text-shadow: none !important;
  letter-spacing: 0.3px !important;
}

.topbar {
  padding-left: 42px !important;
}

.topbar-right-stack {
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center;
}

.theme-btn,
#fullscreen-btn,
#theme-btn,
#settings-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
  color: #111111 !important;
}

#settings-btn {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
}

#settings-btn svg,
#fullscreen-btn svg,
#theme-btn svg {
  stroke: #111111 !important;
}

#detail-panel,
#detail-panel.open,
.modal-panel {
  background: rgba(234,240,236,0.28) !important;
  backdrop-filter: blur(26px) !important;
  -webkit-backdrop-filter: blur(26px) !important;
}

#detail-panel .flight-card {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(0,0,0,0.10) !important;
}

#detail-panel .flight-card.airborne {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(29,158,117,0.20) !important;
}

#detail-panel .flight-card.delayed {
  background: rgba(255,244,224,0.16) !important;
}

#detail-panel .flight-card.scheduled {
  background: rgba(255,255,255,0.12) !important;
}

#detail-panel .platform-photo-slot:not(.photo-live),
#detail-panel .explore-teaser,
#detail-panel .op-tile,
#detail-panel .airport-summary,
#detail-panel .explore-supplier-card,
.airport-note-strip,
.parking-card.compact,
.abz-terminal-card {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

.explore-teaser:active,
.op-tile:hover,
.parking-card.compact:hover {
  background: rgba(255,255,255,0.20) !important;
}

/* Map fallback tone so tile loading does not flash white while panning */
#map,
#map .leaflet-container,
#map .leaflet-pane,
#map .leaflet-tile-pane {
  background: #2b7186 !important;
}

body.dark #map,
body.dark #map .leaflet-container,
body.dark #map .leaflet-pane,
body.dark #map .leaflet-tile-pane {
  background: #0d0e11 !important;
}

/* ── Dark cockpit: charcoal frames, green letters only ── */
body.dark .side-vertical-tab {
  background: rgba(14,15,18,0.85) !important;
  border-color: rgba(255,255,255,0.11) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.50) !important;
}
body.dark .side-vertical-tab span {
  color: var(--green) !important;
}
body.dark .side-vertical-tab:hover {
  background: rgba(20,22,26,0.92) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
body.dark .layer-col-btn,
body.dark .layer-drawer-btn {
  background: rgba(20,22,26,0.88) !important;
  border-color: rgba(255,255,255,0.11) !important;
  color: var(--green) !important;
  font-weight: 600 !important;
}
body.dark .layer-col-btn.active,
body.dark .layer-drawer-btn.active {
  background: rgba(29,255,136,0.18) !important;
  border-color: rgba(29,255,136,0.70) !important;
  color: rgba(29,255,136,0.95) !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0 0 1px rgba(29,255,136,0.35) !important;
}
body.dark .detail-title,
body.dark .side-drawer-note {
  color: var(--text-dim) !important;
}
/* Brand letters — soft green in dark mode */
body.dark .brand-vertical-text span {
  color: rgba(29,255,136,0.52) !important;
  text-shadow: none !important;
}
/* Rotor blades — visible green in dark mode */
body.dark .brand-chopper-rotor rect,
body.dark .brand-chopper-rotor circle {
  fill: rgba(29,255,136,0.55) !important;
}
body.dark .brand-chopper-tail-rotor rect {
  fill: rgba(29,255,136,0.45) !important;
}
/* Topbar icon buttons — grey stroke in dark mode */
body.dark .theme-btn {
  background: rgba(20,22,26,0.80) !important;
  border-color: rgba(255,255,255,0.11) !important;
  color: rgba(255,255,255,0.55) !important;
}
body.dark .theme-btn svg { stroke: rgba(255,255,255,0.55) !important; }

.topbar .topbar-right-stack .landing-btn {
  width: auto !important;
  min-width: 82px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: #ffcf23 !important;
  border-color: #111111 !important;
  color: #111111 !important;
}

.topbar .topbar-right-stack .landing-btn svg {
  stroke: #111111 !important;
  flex: 0 0 auto;
}

.topbar .topbar-right-stack .landing-btn span {
  display: inline-block;
}
/* Float condition labels — soft green in dark */
body.dark .float-cond-lbl { color: rgba(29,255,136,0.55) !important; }
body.dark .float-cond-val { color: var(--text) !important; }
/* All dark-mode tab/button letters — toned-down green, not blinding */
body.dark .side-vertical-tab span,
body.dark .side-vertical-tab-right span,
body.dark .side-vertical-explore span,
body.dark .side-vertical-tab > span {
  color: rgba(29,255,136,0.52) !important;
}
body.dark .layer-col-btn,
body.dark .layer-drawer-btn {
  color: rgba(29,255,136,0.55) !important;
}
body.dark .layer-col-btn.active,
body.dark .layer-drawer-btn.active {
  color: rgba(29,255,136,0.95) !important;
  box-shadow: 0 0 10px rgba(29,255,136,0.25) !important;
}
body.dark .search-pill input {
  color: rgba(29,255,136,0.65) !important;
}
body.dark .search-pill input::placeholder {
  color: rgba(29,255,136,0.28) !important;
}
/* Search bar — grey border in dark mode, not vivid green */
body.dark .search-pill {
  border-color: rgba(255,255,255,0.14) !important;
  background: rgba(14,15,18,0.88) !important;
}
body.dark .search-pill input {
  color: var(--green) !important;
}
body.dark .search-pill input::placeholder {
  color: rgba(29,255,136,0.38) !important;
}

/* Weather readability pass + slightly larger, lower Explore tab */
.side-vertical-tab {
  top: calc(var(--safe-area-top) + 148px) !important;
  left: -16px !important;
  gap: 2px !important;
  padding: 14px 8px 14px 18px !important;
  border-radius: 0 18px 18px 0 !important;
}

.side-vertical-tab span {
  font-size: 10px !important;
  letter-spacing: 0.8px !important;
}

.float-cond {
  position: relative;
  min-height: 72px;
  padding: 12px 8px 10px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.16) !important;
  overflow: hidden;
}

.float-cond::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.16);
}

.float-cond.go::before {
  background: rgba(29,158,117,0.88);
}

.float-cond.warn::before {
  background: rgba(196,128,16,0.9);
}

.float-cond.nogo::before {
  background: rgba(200,50,58,0.9);
}

.float-cond-val {
  color: #111111 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.float-cond.go .float-cond-val,
.float-cond.warn .float-cond-val,
.float-cond.nogo .float-cond-val {
  color: #111111 !important;
}

.float-cond-lbl {
  margin-top: 5px !important;
  color: rgba(0,0,0,0.82) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.95px !important;
  text-shadow: none !important;
}

.forecast-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: rgba(17,17,17,0.92) !important;
  letter-spacing: 1.7px !important;
  opacity: 1 !important;
}

.float-row-slider {
  background: rgba(255,255,255,0.16) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

.float-row-slider .time-lbl {
  color: rgba(17,17,17,0.76) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.float-row-slider .time-lbl.active {
  color: #111111 !important;
}

body.dark .float-cond {
  background: rgba(17,25,21,0.54) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

body.dark .float-cond-val,
body.dark .float-cond.go .float-cond-val,
body.dark .float-cond.warn .float-cond-val,
body.dark .float-cond.nogo .float-cond-val {
  color: #f3f7f4 !important;
}

body.dark .float-cond-lbl {
  color: rgba(243,247,244,0.84) !important;
}

body.dark .forecast-label,
body.dark .float-row-slider .time-lbl,
body.dark .float-row-slider .time-lbl.active {
  color: #f3f7f4 !important;
}

body.dark .float-row-slider {
  background: rgba(17,25,21,0.54) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

.float-info-btn,
.float-cond,
.float-row-slider {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.float-info-btn {
  color: #111111 !important;
}

.float-info-btn:active {
  background: rgba(255,255,255,0.18) !important;
}

.float-cond {
  border-color: rgba(255,255,255,0.20) !important;
}

.float-cond-lbl {
  color: rgba(0,0,0,0.58) !important;
}

.operator-link,
#detail-panel a.operator-link,
.modal-panel a.operator-link {
  color: #111111 !important;
  border-bottom-color: rgba(17,17,17,0.28) !important;
}

.operator-link:hover {
  border-bottom-color: #111111 !important;
}

.version-badge { display: block !important; }

.abz-airfield-card {
  min-height: 304px;
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
}

.abz-airfield {
  position: relative;
  height: min(44vw, 420px) !important;
  min-height: 304px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236,238,233,0.22) !important;
}

.abz-airfield-stage {
  position: relative;
  height: calc(100% - 14px);
  aspect-ratio: 663 / 805;
  max-width: min(100%, 346px);
  max-height: 100%;
  margin: 7px auto;
}

.abz-airfield-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center center;
  border-radius: 10px;
}

.abz-runway {
  display: none !important;
}

.abz-map-base {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 16%, rgba(119, 161, 111, 0.30), transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(118, 155, 102, 0.24), transparent 25%),
    linear-gradient(180deg, #e5ebe2 0%, #dfe7db 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.abz-map-green,
.abz-map-district,
.abz-map-road,
.abz-map-runway,
.abz-map-terminal-label,
.abz-map-reference {
  position: absolute;
}

.abz-map-green {
  background: rgba(123, 159, 109, 0.28);
  border-radius: 999px;
  filter: blur(1px);
}

.abz-map-green-1 {
  width: 36%;
  height: 18%;
  left: -6%;
  top: 4%;
  transform: rotate(-12deg);
}

.abz-map-green-2 {
  width: 28%;
  height: 16%;
  right: -4%;
  top: 8%;
  transform: rotate(16deg);
}

.abz-map-green-3 {
  width: 42%;
  height: 18%;
  left: 22%;
  bottom: -1%;
  transform: rotate(-8deg);
}

.abz-map-district {
  background: rgba(202, 208, 200, 0.92);
  border: 1px solid rgba(169, 177, 167, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.abz-map-district-west {
  left: 6%;
  top: 23%;
  width: 27%;
  height: 34%;
  clip-path: polygon(8% 5%, 80% 0, 100% 18%, 93% 84%, 18% 100%, 0 72%);
}

.abz-map-district-east {
  right: 5%;
  top: 12%;
  width: 31%;
  height: 40%;
  clip-path: polygon(12% 0, 100% 10%, 94% 100%, 0 86%, 6% 30%);
}

.abz-map-district-south {
  left: 34%;
  bottom: 7%;
  width: 33%;
  height: 20%;
  clip-path: polygon(8% 0, 100% 8%, 88% 100%, 0 86%);
}

.abz-map-road {
  height: 8px;
  background: rgba(188, 191, 186, 0.98);
  box-shadow: 0 0 0 2px rgba(245,247,242,0.75);
  border-radius: 999px;
}

.abz-map-road-main {
  width: 88%;
  left: 2%;
  top: 69%;
  transform: rotate(-38deg);
}

.abz-map-road-upper {
  width: 48%;
  left: 41%;
  top: 27%;
  transform: rotate(41deg);
}

.abz-map-road-lower {
  width: 52%;
  left: -6%;
  top: 57%;
  transform: rotate(33deg);
}

.abz-map-runway {
  background: linear-gradient(180deg, #8e948d 0%, #7b817b 100%);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.abz-map-runway-main {
  width: 9%;
  height: 71%;
  left: 46%;
  top: 10%;
  transform: rotate(28deg);
}

.abz-map-runway-cross {
  width: 7%;
  height: 44%;
  left: 39%;
  top: 28%;
  transform: rotate(-31deg);
}

.abz-map-terminal-label {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #24312c;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.abz-map-terminal-label-bristow {
  left: 4%;
  top: 35%;
}

.abz-map-terminal-label-chc {
  left: 4%;
  top: 66%;
}

.abz-map-terminal-label-nhv {
  right: 2%;
  top: 18%;
}

.abz-map-terminal-label-ohs {
  left: 7%;
  top: 52%;
}

.abz-map-reference {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(36,49,44,0.72);
}

.abz-map-reference-airport {
  left: 48%;
  top: 43%;
  transform: translateX(-50%);
}

.abz-map-reference-dyce {
  right: 8%;
  bottom: 12%;
}

.abz-spot {
  position: absolute;
  gap: 6px;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.abz-spot-name {
  display: none !important;
}

.abz-spot-bristow {
  left: 18%;
  top: 39%;
}

.abz-spot-chc {
  left: 16%;
  top: 70%;
}
.abz-spot-chc .abz-spot-dot { background: #9b3ad4; }

.abz-spot-nhv {
  left: 83%;
  top: 23%;
}

.abz-spot-ohs {
  left: 21%;
  top: 56%;
}

.abz-spot-dot {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.abz-spot.active .abz-spot-dot,
.abz-spot:hover .abz-spot-dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.55), 0 3px 12px rgba(0,0,0,0.38);
}

.abz-guide-tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 4px;
}

.abz-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.abz-guide-link-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.75);
}

.abz-guide-link-bristow { color: #1d9e75; }
.abz-guide-link-nhv { color: #d4773a; }
.abz-guide-link-ohs { color: #3a7ad4; }

.abz-guide-link.active,
.abz-guide-link:hover {
  background: rgba(255,255,255,0.28);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* Final UI readability lock-in */
.side-vertical-tab {
  top: calc(var(--safe-area-top) + 134px) !important;
  left: -16px !important;
  gap: 2px !important;
  padding: 14px 8px 14px 18px !important;
  border-radius: 0 18px 18px 0 !important;
}

.side-vertical-tab span {
  font-size: 10px !important;
  letter-spacing: 0.8px !important;
}

.float-cond {
  position: relative !important;
  min-height: 72px !important;
  padding: 12px 8px 10px !important;
  background: rgba(255,255,255,0.16) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  overflow: hidden !important;
}

.float-cond::before { display: none !important; }

.float-cond.go   { background: rgba(29,158,117,0.28) !important; border-color: rgba(29,158,117,0.45) !important; }
.float-cond.warn { background: rgba(196,128,16,0.28) !important; border-color: rgba(196,128,16,0.45) !important; }
.float-cond.nogo { background: rgba(200,50,58,0.28) !important;  border-color: rgba(200,50,58,0.45) !important; }

.float-cond-val,
.float-cond.go .float-cond-val,
.float-cond.warn .float-cond-val,
.float-cond.nogo .float-cond-val {
  color: #111111 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.float-cond-lbl {
  margin-top: 5px !important;
  color: rgba(0,0,0,0.82) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.95px !important;
  text-shadow: none !important;
}

.forecast-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: rgba(17,17,17,0.92) !important;
  letter-spacing: 1.7px !important;
  opacity: 1 !important;
}

.float-row-slider .time-lbl {
  color: rgba(17,17,17,0.76) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.float-row-slider .time-lbl.active {
  color: #111111 !important;
}

body.dark .float-cond {
  background: rgba(17,25,21,0.54) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

body.dark .float-cond          { background: rgba(17,25,21,0.54) !important;   border-color: rgba(255,255,255,0.14) !important; }
body.dark .float-cond.go        { background: rgba(29,158,117,0.30) !important; border-color: rgba(29,158,117,0.50) !important; }
body.dark .float-cond.warn      { background: rgba(196,128,16,0.30) !important; border-color: rgba(196,128,16,0.50) !important; }
body.dark .float-cond.nogo      { background: rgba(200,50,58,0.30) !important;  border-color: rgba(200,50,58,0.50) !important; }

body.dark .float-cond-val,
body.dark .float-cond.go .float-cond-val,
body.dark .float-cond.warn .float-cond-val,
body.dark .float-cond.nogo .float-cond-val,
body.dark .float-cond-lbl,
body.dark .forecast-label,
body.dark .float-row-slider .time-lbl,
body.dark .float-row-slider .time-lbl.active {
  color: #f3f7f4 !important;
}

.side-tab-stack-right {
  position: absolute;
  top: calc(var(--safe-area-top) + 190px);
  right: -16px;
  z-index: 520;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-vertical-tab-right {
  position: relative !important;
  left: auto !important;
  right: 0 !important;
  padding: 10px 20px 10px 8px !important;
  border-left: 1px solid rgba(255,255,255,0.34) !important;
  border-right: none !important;
  border-radius: 18px 0 0 18px !important;
  box-shadow: -10px 10px 24px rgba(0,0,0,0.14) !important;
}

#detail-panel.right-side {
  top: calc(var(--safe-area-top) + 142px) !important;
  bottom: auto !important;
  left: auto !important;
  right: 0 !important;
  width: min(320px, 80vw) !important;
  max-height: calc(100vh - 172px) !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 0 !important;
  border: 1px solid rgba(255,255,255,0.32) !important;
  border-right: none !important;
  background: rgba(239, 247, 250, 0.9) !important;
  box-shadow: -12px 0 32px rgba(0,0,0,0.18) !important;
  transform: translateX(calc(100% + 24px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.05) !important;
  backdrop-filter: blur(14px) saturate(1.05) !important;
}

#detail-panel.right-side.open {
  transform: translateX(0) !important;
}

#detail-panel.right-side .detail-handle {
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 14px 20px 10px 18px !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

#detail-panel.right-side .detail-handle-bar {
  display: none !important;
}

#detail-panel.right-side .detail-title {
  justify-content: flex-start !important;
  text-align: left !important;
  font-size: 16px !important;
}

body.dark #detail-panel.right-side {
  background: rgba(24, 31, 35, 0.9) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: -12px 0 32px rgba(0,0,0,0.38) !important;
}

body.dark #detail-panel.right-side .detail-handle {
  border-bottom-color: rgba(255,255,255,0.08) !important;
}

.side-drawer-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(17,17,17,0.72);
  margin-bottom: 12px;
}

.layer-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.layer-drawer-btn {
  width: 100%;
  min-height: 48px;
  text-align: center;
}

.float-row-slider .time-lbl {
  font-size: 13px !important;
}

.float-row-slider .time-lbl.active {
  font-size: 15px !important;
}

.side-vertical-tab {
  top: calc(var(--safe-area-top) + 148px) !important;
}

.weather-status-legend {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 6px 2px;
}

.weather-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.weather-legend-bar {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  flex-shrink: 0;
}

.weather-legend-go { background: rgba(29,158,117,0.9); }
.weather-legend-warn { background: rgba(196,128,16,0.9); }
.weather-legend-nogo { background: rgba(200,50,58,0.92); }

.weather-legend-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(17,17,17,0.72);
  text-transform: uppercase;
}

.readiness-row {
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.readiness-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 130, 125, 0.25);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.readiness-pill.go {
  border-color: rgba(29,158,117,0.42);
  color: #0f6e56;
}

.readiness-pill.warn {
  border-color: rgba(196,128,16,0.45);
  color: #8a5b08;
}

.readiness-pill.nogo {
  border-color: rgba(200,50,58,0.45);
  color: #9a2228;
}

.readiness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(120, 130, 125, 0.12);
}

.readiness-copy {
  min-width: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.25;
}

.flight-source-note {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.flight-planning-note {
  margin-top: 8px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

body.dark .flight-planning-note {
  color: rgba(255,255,255,0.82);
}

.pill-pos-source {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.4;
}
.pill-pos-live {
  background: rgba(29,200,100,0.15);
  color: #0d9e52;
  border: 1px solid rgba(29,200,100,0.4);
}
.pill-pos-est {
  background: rgba(240,160,48,0.12);
  color: #b87010;
  border: 1px solid rgba(240,160,48,0.35);
}
body.dark .pill-pos-live {
  background: rgba(29,255,136,0.12);
  color: rgba(29,255,136,0.85);
  border-color: rgba(29,255,136,0.3);
}
body.dark .pill-pos-est {
  background: rgba(240,160,48,0.12);
  color: #f0a030;
  border-color: rgba(240,160,48,0.3);
}
.pill-pos-sched {
  background: rgba(100,160,255,0.13);
  color: #2a6fcc;
  border: 1px solid rgba(100,160,255,0.38);
}
body.dark .pill-pos-sched {
  background: rgba(100,160,255,0.12);
  color: #7ab0ff;
  border-color: rgba(100,160,255,0.3);
}

.apron-card-inner {
  margin: 8px 16px 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.apron-card-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.apron-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.apron-card-road {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.apron-card-desc {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.apron-card-btn {
  display: inline-block;
  background: var(--green-dark);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
}

.readiness-panel {
  margin: 0 16px 14px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.readiness-panel.go { border-color: rgba(29,158,117,0.28); }
.readiness-panel.warn { border-color: rgba(196,128,16,0.30); }
.readiness-panel.nogo { border-color: rgba(200,50,58,0.30); }

.readiness-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.readiness-panel-kicker {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.readiness-panel-title {
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.readiness-panel-source {
  flex-shrink: 0;
}

.readiness-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.readiness-metric {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,17,17,0.07);
  text-align: center;
}

/* ─── Tap crosshair marker ─────────────────────────────────────────── */
.tap-crosshair {
  width: 26px;
  height: 26px;
  position: relative;
  animation: tap-appear 0.18s ease-out both;
  pointer-events: none;
}

/* Outer ring */
.tap-crosshair::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #000;
}

/* Centre dot */
.tap-crosshair::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #000;
}

@keyframes tap-appear {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ─── Samsung Galaxy S25 Ultra + Edge viewport tweaks ──────────────── */
/* S25 Ultra: 1440×3088 physical → ~392×841 CSS px at 3.67 dpr, Edge on Android */
@media (min-width: 390px) and (max-width: 430px) and (max-height: 932px) and (min-height: 820px) {
  /* Bottom toolbar in Edge eats ~60px — push safe controls up */
  #bottom-bar {
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
  }

  /* Slightly more room for detail panel on tall narrow screen */
  #detail-panel {
    max-height: 62vh;
  }

  /* Layer toggle buttons — slightly larger tap targets */
  .layer-btn {
    min-height: 42px;
    font-size: 13px;
  }

  /* Search bar — prevent overflow on narrow viewport */
  #search-bar {
    max-width: min(340px, 88vw);
  }

  /* Wind tooltip — ensure it doesn't clip on S25's narrow 393px width */
  .wind-tap-popup .leaflet-popup-content-wrapper {
    max-width: min(300px, 90vw);
  }
}

.readiness-metric span {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.readiness-metric small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.readiness-metric.go span { color: #0f6e56; }
.readiness-metric.warn span { color: #8a5b08; }
.readiness-metric.nogo span { color: #9a2228; }

.readiness-panel-note {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

body.dark .weather-legend-text {
  color: rgba(243,247,244,0.76);
}

body.dark .readiness-pill {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.18);
  color: rgba(243,247,244,0.88);
}

body.dark .readiness-panel,
body.dark .readiness-metric {
  background: rgba(15, 22, 20, 0.5);
  border-color: rgba(255,255,255,0.12);
}

/* v0.9.34 offshore weather watch */
.scrubber-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.scrub-step-btn {
  width: 34px;
  height: 32px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.52);
  color: #111111;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.scrub-step-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.scrubber-now {
  color: rgba(0,0,0,0.64);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.weather-scrubber {
  display: block;
  width: 100%;
}

.weather-watch-panel {
  background: linear-gradient(180deg, rgba(248,252,249,0.78), rgba(232,240,236,0.70));
  border-left: 5px solid rgba(29,158,117,0.74);
}

.weather-watch-panel.warn { border-left-color: rgba(196,128,16,0.86); }
.weather-watch-panel.nogo { border-left-color: rgba(200,50,58,0.88); }

.weather-watch-top .readiness-panel-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.weather-watch-top .readiness-panel-title span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.weather-watch-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.weather-watch-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weather-watch-forecast {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.watch-chip {
  min-width: 0;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 7px;
  padding: 7px 5px;
  background: rgba(255,255,255,0.46);
  color: var(--text);
  text-align: center;
  cursor: pointer;
}

.watch-chip span,
.watch-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-chip span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.watch-chip strong {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.watch-chip.active {
  border-color: rgba(29,158,117,0.62);
  background: rgba(29,158,117,0.18);
  box-shadow: inset 0 0 0 1px rgba(29,158,117,0.20);
}

.watch-chip.warn.active {
  border-color: rgba(196,128,16,0.70);
  background: rgba(196,128,16,0.18);
}

.watch-chip.nogo.active {
  border-color: rgba(200,50,58,0.72);
  background: rgba(200,50,58,0.16);
}

.watch-compare {
  margin-top: 10px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(17,17,17,0.08);
}

.watch-compare-head,
.watch-compare-row {
  display: grid;
  grid-template-columns: minmax(44px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  font-family: var(--font-mono);
}

.watch-compare-head {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.watch-compare-head span:first-child {
  grid-column: 2;
}

.watch-compare-row {
  margin-top: 5px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.watch-compare-row span {
  color: var(--text-muted);
}

.watch-compare-row em {
  font-style: normal;
}

.watch-compare-row.warn strong,
.watch-compare-row.warn em {
  color: #8a5b08;
}

.watch-compare-line {
  margin-top: 10px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.34);
  border: 1px dashed rgba(17,17,17,0.16);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

body.dark .scrub-step-btn {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: rgba(243,247,244,0.92);
}

body.dark .scrubber-now {
  color: rgba(243,247,244,0.70);
}

body.dark .weather-watch-panel {
  background: linear-gradient(180deg, rgba(15,22,20,0.70), rgba(12,18,17,0.62));
}

body.dark .watch-chip,
body.dark .watch-compare,
body.dark .watch-compare-line {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

@media (max-width: 420px) {
  .weather-watch-metrics,
  .weather-watch-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v0.8.2 weather polish */
.float-cond {
  background: rgba(248, 252, 249, 0.70) !important;
  border-color: rgba(20, 34, 30, 0.12) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10) !important;
}

.float-cond-val,
.float-cond.go .float-cond-val,
.float-cond.warn .float-cond-val,
.float-cond.nogo .float-cond-val {
  color: #14221e !important;
}

.float-cond-lbl {
  color: rgba(20, 34, 30, 0.58) !important;
}

.float-cond.go::before { background: rgba(29,158,117,0.82) !important; }
.float-cond.warn::before { background: rgba(196,128,16,0.84) !important; }
.float-cond.nogo::before { background: rgba(200,50,58,0.86) !important; }

body.dark .float-cond {
  background: rgba(12, 18, 16, 0.68) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

body.dark .float-cond-val,
body.dark .float-cond.go .float-cond-val,
body.dark .float-cond.warn .float-cond-val,
body.dark .float-cond.nogo .float-cond-val {
  color: rgba(245, 250, 247, 0.94) !important;
}

body.dark .float-cond-lbl {
  color: rgba(245, 250, 247, 0.62) !important;
}

.wind-speed-canvas,
.wind-flow-canvas {
  position: absolute;
  pointer-events: none;
}

.wind-speed-canvas {
  z-index: 418;
  opacity: 0.78;
  mix-blend-mode: soft-light;
}

.wind-flow-canvas {
  z-index: 420;
  mix-blend-mode: normal;
}

/* ── EUMETSAT WMS cloud tile overlay ──────────────────────────────────────── */
/* mix-blend-mode: screen → dark sea surface disappears, bright cloud tops glow */
.eumet-clouds-tile {
  mix-blend-mode: normal;
  pointer-events: none;
}
/* On dark theme, lighten slightly so clouds still read against dark basemap */
body.dark .eumet-clouds-tile {
  mix-blend-mode: normal;
  opacity: 0.92;
}

/* ── Layer legend — compact left-side floating strip, below EXPLORE tab ── */
.lightning-strike-icon {
  background: transparent !important;
  border: none !important;
}

.lightning-strike-icon span {
  display: grid;
  place-items: center;
  width: var(--ltg-size);
  height: var(--ltg-size);
  color: var(--ltg-color);
  font-size: var(--ltg-size);
  line-height: 1;
  text-shadow:
    0 0 4px rgba(255,255,255,0.95),
    0 0 12px var(--ltg-color),
    0 0 22px rgba(255,193,42,0.75);
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.55));
  animation: lightningPulse 1.1s ease-in-out infinite;
}

@keyframes lightningPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.78; }
  45% { transform: scale(1.15); opacity: 1; }
}

.layer-map-legend {
  position: absolute;
  left: 8px;
  top: calc(var(--safe-area-top) + 400px);
  z-index: 540;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 4px 2px;
  pointer-events: none;
}

.layer-map-title {
  color: rgba(255,255,255,0.70);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  margin-bottom: 2px;
  text-shadow: none;
}

/* .layer-map-sub is shown when it contains the time nav HTML */
.layer-map-sub { display: block; }

/* ── Cloud time navigation bar ── */
.cloud-time-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  pointer-events: all;
}
.ctn-btn {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.70);
  font-size: 8px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ctn-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.ctn-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.ctn-label {
  flex: 1;
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
}

/* Cloud layer LOW/MID/ALL toggle */
.cloud-mode-toggle {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
}
.cloud-mode-toggle button {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  pointer-events: all;
}
.cloud-mode-toggle button.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

.layer-map-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.layer-map-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: row;
}

.layer-map-row span:last-child {
  color: rgba(255,255,255,0.75);
  font-size: 7px;
  font-weight: 700;
  text-shadow: none;
  white-space: nowrap;
}

.layer-map-swatch {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.layer-map-legend.layer-legend-compact {
  gap: 3px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.layer-legend-compact .layer-map-title {
  color: rgba(245,250,247,0.86);
  font-size: 8px;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.66);
}

.layer-legend-compact .layer-map-rows {
  gap: 3px;
}

.layer-legend-compact .layer-map-row {
  gap: 5px;
}

.layer-legend-compact .layer-map-row span:last-child {
  color: rgba(245,250,247,0.86);
  font-size: 8px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.72);
}

.layer-legend-compact .layer-map-swatch {
  width: 22px;
  height: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.52);
}

/* dark mode — same look (already no background) */
body.dark .layer-map-title { color: rgba(255,255,255,0.72); }
body.dark .layer-map-row span:last-child { color: rgba(255,255,255,0.78); }

body.dark .layer-map-sub,
body.dark .layer-map-row {
  color: rgba(245, 250, 247, 0.68);
}

body.dark .side-drawer-note {
  color: rgba(243,247,244,0.76);
}

/* v0.8.3 map-first glass polish */
#detail-panel,
#detail-panel.open,
#detail-panel.right-side,
#detail-panel.explore-side,
.modal-panel,
#settings-modal .modal-panel {
  background: rgba(234, 240, 236, 0.22) !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(18px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.05) !important;
}

#detail-panel.right-side,
#detail-panel.explore-side {
  box-shadow: -10px 0 24px rgba(0,0,0,0.12) !important;
}

body.dark #detail-panel,
body.dark #detail-panel.open,
body.dark #detail-panel.right-side,
body.dark #detail-panel.explore-side,
body.dark .modal-panel,
body.dark #settings-modal .modal-panel {
  background: rgba(18, 28, 25, 0.30) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22) !important;
}

#detail-panel .detail-handle,
#detail-panel .detail-body,
#detail-panel .sec-hdr {
  background: transparent !important;
}

#detail-panel .flight-card,
#detail-panel .platform-photo-slot:not(.photo-live),
#detail-panel .explore-teaser,
#detail-panel .op-tile,
#detail-panel .airport-summary,
#detail-panel .explore-supplier-card,
.airport-note-strip,
.parking-card.compact,
.abz-terminal-card,
.layer-drawer-btn {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

body.dark #detail-panel .platform-photo-slot.photo-none,
body.dark #detail-panel .platform-photo-slot.photo-pending {
  background: rgba(20,24,20,0.55) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body.dark #detail-panel .platform-photo-slot.photo-none .platform-photo-label,
body.dark #detail-panel .platform-photo-slot.photo-pending .platform-photo-label {
  color: rgba(255,255,255,0.55);
}
body.dark #detail-panel .platform-photo-slot.photo-none .platform-photo-sub,
body.dark #detail-panel .platform-photo-slot.photo-pending .platform-photo-sub {
  color: rgba(255,255,255,0.28);
}

body.dark #detail-panel .flight-card,
body.dark #detail-panel .explore-teaser,
body.dark #detail-panel .op-tile,
body.dark #detail-panel .airport-summary,
body.dark #detail-panel .explore-supplier-card,
body.dark .airport-note-strip,
body.dark .parking-card.compact,
body.dark .abz-terminal-card,
body.dark .layer-drawer-btn {
  background: rgba(12,18,16,0.26) !important;
  border-color: rgba(255,255,255,0.10) !important;
}

#detail-panel .op-tile.abz-linked {
  background: rgba(255,255,255,0.26) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

#detail-panel .op-tile.abz-linked[data-terminal="bristow"] {
  background: rgba(29,158,117,0.16) !important;
  border-color: rgba(29,158,117,0.34) !important;
}

#detail-panel .op-tile.abz-linked[data-terminal="nhv"] {
  background: rgba(212,119,58,0.16) !important;
  border-color: rgba(212,119,58,0.34) !important;
}

#detail-panel .op-tile.abz-linked[data-terminal="ohs"] {
  background: rgba(58,122,212,0.16) !important;
  border-color: rgba(58,122,212,0.34) !important;
}

#detail-panel .op-tile.abz-dimmed {
  opacity: 0.46;
}

#detail-panel .tips-list {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

#detail-panel .tips-list li {
  margin-bottom: 6px;
}

.airport-note-strip {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.airport-note-strip.compact {
  font-size: 10px !important;
}

.abz-flight-link-section {
  padding: 0 16px 10px;
}

.abz-flight-link-grid {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.abz-flight-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.28);
}

.abz-flight-link-card-wide {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.abz-flight-link-card span,
.abz-flight-link-card small {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}

.abz-flight-link-card strong {
  display: block;
  margin: 2px 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.abz-flight-actions,
.parking-action-row,
.parking-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.abz-flight-actions {
  justify-content: flex-start;
}

.abz-flight-actions a,
.parking-action-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(29,158,117,0.16);
  border: 1px solid rgba(29,158,117,0.22);
  color: var(--green-dark) !important;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.parking-card.compact {
  padding: 10px 12px !important;
}

.parking-name {
  font-size: 12px !important;
}

.parking-price {
  font-size: 10px !important;
  padding: 2px 7px !important;
}

.parking-meta {
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.parking-chip-row {
  margin-bottom: 6px;
}

.parking-chip-row span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(17,17,17,0.06);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}

.parking-action-row {
  margin-top: 8px;
}

.parking-external-link {
  padding-top: 8px;
  text-align: right;
  font-size: 11px;
}

.abz-main-note {
  margin-top: 0 !important;
}

.taxi-number-list {
  display: grid;
  gap: 7px;
  padding: 0 16px 14px;
}

.taxi-number-card,
.parking-homework-card {
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.28);
  color: var(--text);
  text-decoration: none;
}

.taxi-number-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 11px;
}

.taxi-number-card span {
  font-size: 11px;
  font-weight: 800;
}

.taxi-number-card strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.parking-homework-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.parking-homework-card strong,
.parking-homework-card span {
  display: block;
}

.parking-homework-card strong {
  font-size: 12px;
  font-weight: 900;
}

.parking-homework-card span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.parking-homework-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 7px;
  background: rgba(29,158,117,0.16);
  border: 1px solid rgba(29,158,117,0.22);
  color: var(--green-dark) !important;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 480px) {
  .abz-airfield {
    height: 332px !important;
  }

  .abz-airfield-stage {
    max-width: min(100%, 274px);
  }

  .abz-guide-tip-row {
    gap: 6px;
  }

  .abz-guide-link {
    font-size: 10px;
    padding: 6px 8px;
  }

  .topbar {
    gap: 6px;
    padding-right: 10px;
  }
}

@media (min-width: 900px) {
  .abz-airfield-card {
    min-height: 380px;
  }

  .abz-airfield {
    height: 420px !important;
  }

  .abz-airfield-stage {
    max-width: min(100%, 360px);
  }
}

@media (max-width: 600px) {
  .topbar {
    align-items: flex-start !important;
    padding-right: 8px !important;
  }

  .topbar-right-stack {
    position: absolute !important;
    top: calc(var(--safe-area-top) + 92px) !important;
    right: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 540 !important;
  }

  .topbar-right-stack .theme-btn {
    position: relative !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
  }

  .side-vertical-tab {
    top: calc(var(--safe-area-top) + 208px) !important;
    left: -12px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 8px 14px 8px 9px !important;
    border-radius: 16px 0 0 16px !important;
  }

  .side-vertical-tab span {
    font-size: 8px !important;
    letter-spacing: 0.45px !important;
    line-height: 0.98 !important;
  }

  .side-tab-stack-right {
    top: calc(var(--safe-area-top) + 176px) !important;
    right: -12px !important;
    gap: 6px !important;
  }

  .side-vertical-tab-right {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 8px 14px 8px 9px !important;
    border-radius: 16px 0 0 16px !important;
  }

  .side-vertical-tab-right span {
    font-size: 8px !important;
    line-height: 0.98 !important;
  }

  #detail-panel.explore-side {
    top: calc(var(--safe-area-top) + 156px) !important;
    width: min(238px, 62vw) !important;
    max-height: calc(100vh - 186px) !important;
  }

  #detail-panel.right-side {
    top: calc(var(--safe-area-top) + 156px) !important;
    width: min(286px, 80vw) !important;
    max-height: calc(100vh - 186px) !important;
  }

  .weather-status-legend {
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 2px 2px !important;
    flex-wrap: wrap;
  }

  .weather-legend-text {
    font-size: 8px !important;
  }
}

.side-vertical-explore {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 42px !important;
  left: -6px !important;
  right: auto !important;
  top: calc(var(--safe-area-top) + 282px) !important;
  padding: 8px 14px 8px 10px !important;
  border-radius: 0 16px 16px 0 !important;
  justify-content: center !important;
}

@media (max-width: 600px) {
  .side-vertical-explore {
    width: 42px !important;
    left: -4px !important;
    padding: 8px 14px 8px 10px !important;
  }
  .layer-map-legend {
    top: calc(var(--safe-area-top) + 450px) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  v0.7.6 — dual weather source badge                                     */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Small data-source pill in the disclaimer line */
.wx-source {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(29,158,117,0.18);
  color: #064f3a;
  border: 1px solid rgba(29,158,117,0.30);
  vertical-align: middle;
  cursor: help;
}

body.dark .wx-source {
  background: rgba(29,255,136,0.10);
  color: #5dde7a;
  border-color: rgba(29,255,136,0.25);
}

/* Disagreement warning pip — sits next to the source label */
.wx-warn {
  margin-left: 4px;
  font-size: 11px;
  color: #c48010;
  cursor: help;
}

body.dark .wx-warn { color: #f5c842; }

/* Keep source pill aligned with the two-line weather note */
.weather-disclaimer {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  margin-left: auto;
  text-align: left;
}

@media (max-width: 600px) {
  .topbar .topbar-right-stack {
    position: absolute !important;
    top: calc(var(--safe-area-top) + 92px) !important;
    right: 10px !important;
    width: 40px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    z-index: 540 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .topbar .topbar-right-stack .landing-btn,
  .topbar .topbar-right-stack #fullscreen-btn,
  .topbar .topbar-right-stack #theme-btn,
  .topbar .topbar-right-stack #settings-btn {
    position: static !important;
    inset: auto !important;
    right: auto !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    flex: none !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.28) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .topbar .topbar-right-stack .landing-btn {
    width: 74px !important;
    min-width: 74px !important;
    padding: 0 8px !important;
    gap: 5px !important;
    background: #ffcf23 !important;
    border-color: #111111 !important;
    color: #111111 !important;
  }

  .topbar .topbar-right-stack .landing-btn::before,
  .topbar .topbar-right-stack .landing-btn::after,
  .topbar .topbar-right-stack #fullscreen-btn::before,
  .topbar .topbar-right-stack #fullscreen-btn::after,
  .topbar .topbar-right-stack #theme-btn::before,
  .topbar .topbar-right-stack #theme-btn::after,
  .topbar .topbar-right-stack #settings-btn::before,
  .topbar .topbar-right-stack #settings-btn::after {
    content: none !important;
    display: none !important;
  }

  .leaflet-top.leaflet-right .leaflet-control-zoom {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  MOBILE ACCESSIBILITY — tooltip contrast · collapsible legend · layer dimming  */
/* ═══════════════════════════════════════════════════════════════════════ */

/* 1 ── Tooltip: black values on mobile (desktop keeps green) */
@media (max-width: 768px) {
  .wind-tap-popup .leaflet-popup-content b {
    color: #111111 !important;
    font-size: 14px !important;
  }
  .wind-tap-popup .leaflet-popup-content {
    font-size: 13px !important;
    line-height: 1.9;
  }
}

/* 2 ── Legend: collapsible pill on mobile, desktop unchanged */
@media (max-width: 768px) {
  .layer-map-legend {
    pointer-events: all !important;
    cursor: pointer;
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 10px !important;
    padding: 9px 13px !important;
    border: 1px solid rgba(255,255,255,0.34) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14) !important;
    user-select: none;
  }
  .layer-map-legend .layer-map-title {
    font-size: 10px !important;
    color: rgba(10,20,15,0.92) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0 !important;
  }
  .legend-expand-hint {
    font-size: 11px;
    color: rgba(10,20,15,0.55);
    font-family: var(--font-mono);
    transition: transform 0.2s;
    display: inline-block;
    flex-shrink: 0;
  }
  .layer-map-legend.legend-collapsed .layer-map-rows,
  .layer-map-legend.legend-collapsed .lml-bar-wrap,
  .layer-map-legend.legend-collapsed .cloud-mode-toggle,
  .layer-map-legend.legend-collapsed .lml-unit {
    display: none !important;
  }
  .layer-map-legend.legend-collapsed .legend-expand-hint { transform: rotate(0deg); }
  .layer-map-legend:not(.legend-collapsed) .layer-map-title { margin-bottom: 8px !important; }
  .layer-map-legend:not(.legend-collapsed) .legend-expand-hint { transform: rotate(90deg); }
  .layer-map-legend:not(.legend-collapsed) .layer-map-row span:last-child {
    font-size: 12px !important;
    color: rgba(10,20,15,0.90) !important;
  }
  .layer-map-legend:not(.legend-collapsed) .layer-map-swatch {
    width: 24px !important;
    height: 8px !important;
  }
  .layer-map-legend:not(.legend-collapsed) .layer-map-row {
    gap: 8px !important;
    margin-bottom: 2px;
  }

  .layer-map-legend.layer-legend-compact {
    pointer-events: none !important;
    cursor: default;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    gap: 3px;
  }

  .layer-map-legend.layer-legend-compact .layer-map-title {
    font-size: 9px !important;
    color: rgba(245,250,247,0.9) !important;
    gap: 0;
    margin-bottom: 2px !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.72);
  }

  .layer-map-legend.layer-legend-compact .layer-map-rows {
    display: flex !important;
    gap: 3px;
  }

  .layer-map-legend.layer-legend-compact .layer-map-row {
    gap: 5px !important;
    margin-bottom: 0;
  }

  .layer-map-legend.layer-legend-compact .layer-map-row span:last-child {
    font-size: 9px !important;
    color: rgba(245,250,247,0.9) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.76);
  }

  .layer-map-legend.layer-legend-compact .layer-map-swatch {
    width: 24px !important;
    height: 6px !important;
  }
}

/* 3 ── Platform dimming when a weather layer is active (mobile only) */
@media (max-width: 768px) {
  body.weather-on .marker-platform,
  body.weather-on .marker-rig {
    opacity: 0.32;
    transition: opacity 0.35s ease;
  }
  body.weather-on .leaflet-tooltip.platform-label {
    opacity: 0.18;
    transition: opacity 0.35s ease;
  }
  body.weather-on .marker-platform.highlighted,
  body.weather-on .marker-rig.highlighted {
    opacity: 1 !important;
  }
}

/* ── ABZ terminal photos ───────────────────────────────────────── */
.abz-terminal-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin-bottom: 12px;
  border-radius: 10px;
}
.abz-terminal-photo {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  display: block;
}
.abz-terminal-photos:has(.abz-terminal-photo:nth-child(2)) .abz-terminal-photo {
  width: 90%;
}

@media (max-width: 768px) {
  .abz-terminal-photo {
    height: 220px;
    object-fit: cover;
  }
}

/* ── Explore category tiles ────────────────────────────────────── */
.explore-tile-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 0;
}
.explore-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.explore-tile:active {
  background: rgba(29,158,117,0.16);
  border-color: rgba(29,158,117,0.30);
}
.explore-tile-icon { display: none; }
.explore-tile-title { font-size: 13px; font-weight: 700; color: var(--text); }
.explore-tile-sub   { font-size: 10px; color: var(--text-muted); }
.explore-tile-count { font-size: 9px; font-weight: 600; color: var(--green-dark); margin-top: 2px; }

.explore-back-btn {
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 0 10px 0 0;
  cursor: pointer;
}
.explore-cat-desc {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 16px 12px;
}

body.dark .explore-tile {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
body.dark .explore-tile-title { color: #e8f0ec; }

/* Daily Brief side panel */
#detail-panel[data-side-panel="daily-brief"] {
  display: flex !important;
  flex-direction: column;
  width: min(1040px, 96vw) !important;
  top: calc(var(--safe-area-top) + 110px) !important;
  max-height: calc(100vh - var(--safe-area-top) - var(--safe-area-bottom)) !important;
}

#detail-panel[data-side-panel="daily-brief"] .detail-handle {
  flex: 0 0 auto;
  min-height: 52px !important;
  padding: 8px 14px !important;
}

.daily-brief-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 8px !important;
}

.brief-hero,
.brief-platform-box,
.brief-group {
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.26);
}

.brief-hero {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  margin-bottom: 6px;
}

.brief-kicker,
.brief-group-title,
.brief-platform-box label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brief-title {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.brief-pill {
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(29,158,117,0.16);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.brief-platform-box {
  padding: 7px 9px;
  margin-bottom: 6px;
}

.brief-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  margin-top: 5px;
}

.brief-search-row input {
  min-width: 0;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.54);
  color: var(--text);
  font: 700 13px var(--font);
  padding: 6px 8px;
  outline: none;
}

.brief-search-row button {
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.40);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.brief-current-platform {
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.brief-results {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  max-height: 124px;
  overflow-y: auto;
}

.brief-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 7px;
  background: rgba(255,255,255,0.36);
  color: var(--text);
  padding: 8px 9px;
  text-align: left;
  cursor: pointer;
}

.brief-result span {
  font-size: 12px;
  font-weight: 800;
}

.brief-result small,
.brief-empty {
  color: var(--text-muted);
  font-size: 10px;
}

.brief-empty {
  padding: 8px 2px 2px;
}

.brief-group {
  display: grid;
  gap: 7px;
  padding: 10px;
  margin-bottom: 10px;
}

.brief-preview-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  margin-bottom: 6px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.26);
}

.brief-preview-toggle strong,
.brief-preview-toggle small {
  display: block;
}

.brief-preview-toggle strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.brief-preview-toggle small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.brief-card-stack {
  display: grid;
  gap: 7px;
}

.brief-notification-top {
  display: grid;
  gap: 6px;
  padding: 7px 9px;
  margin-bottom: 6px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.26);
}

.brief-mini-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.brief-mini-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid rgba(17,17,17,0.10);
  border-radius: 7px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}

.brief-mini-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-mini-toggle strong {
  min-width: 0;
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
}

.brief-mini-toggle.on {
  border-color: rgba(29,158,117,0.36);
  background: rgba(29,158,117,0.14);
}

.brief-mini-toggle.on .brief-card-toggle {
  background: var(--green-dark);
}

.brief-mini-toggle.on .brief-card-toggle::after {
  transform: translateX(10px);
}

.marine-preview {
  padding: 5px 0 7px;
  margin: 0 -16px 7px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.marine-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 5px;
}

.marine-planner-strip {
  display: grid;
  gap: 2px;
  margin: 0 16px 6px;
  padding: 6px 8px;
  border-left: 4px solid rgba(29,158,117,0.75);
  background: rgba(29,158,117,0.12);
}

.marine-planner-strip strong,
.marine-planner-strip span {
  display: block;
}

.marine-planner-strip strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.marine-planner-strip span {
  color: rgba(17,17,17,0.72);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.marine-planner-strip.warn {
  border-left-color: rgba(196,128,16,0.86);
  background: rgba(255,207,35,0.20);
}

.marine-planner-strip.nogo {
  border-left-color: rgba(200,50,58,0.90);
  background: rgba(200,50,58,0.14);
}

.marine-preview-head strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.marine-preview-head > span {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(29,158,117,0.14);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.marine-preview-toggle,
.marine-range-toggle {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(10,18,16,0.06);
}

.marine-preview-toggle,
.marine-range-toggle {
  margin-left: 16px;
  margin-right: 16px;
}

.marine-preview-toggle {
  grid-template-columns: 1fr 1fr;
}

.marine-range-toggle {
  grid-template-columns: repeat(3, 1fr);
}

.marine-preview-toggle button,
.marine-range-toggle button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font: 800 11px var(--font-mono);
  cursor: pointer;
}

.marine-preview-toggle button.active,
.marine-range-toggle button.active {
  background: rgba(29,158,117,0.18);
  border-color: rgba(29,158,117,0.32);
  color: var(--green-dark);
}

.marine-strip-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.marine-strip-scroll::-webkit-scrollbar {
  display: none;
}

.marine-strip-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.marine-strip-scroll::-webkit-scrollbar-thumb {
  background: rgba(17,17,17,0.24);
  border-radius: 999px;
}

.marine-grid {
  display: grid;
  gap: 0;
  min-width: max-content;
  padding: 0;
}

.marine-grid-label,
.marine-grid-time,
.marine-grid-cell {
  min-height: 34px;
  border-radius: 0;
  border-right: 1px solid rgba(255,255,255,0.24);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.marine-grid-label {
  justify-content: flex-start;
  padding-left: 8px;
  color: rgba(8,14,13,0.92);
  background:
    linear-gradient(90deg,
      rgba(178,211,208,0.98) 0%,
      rgba(178,211,208,0.98) 82%,
      rgba(178,211,208,0.84) 94%,
      rgba(178,211,208,0.00) 100%);
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 12px 0 18px rgba(178,211,208,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.marine-grid-time {
  color: var(--text);
  background: rgba(255,255,255,0.40);
}

.marine-grid-cell {
  color: var(--text);
  background: rgba(255,255,255,0.46);
}

.marine-grid-cell.go {
  background: rgba(67, 224, 96, 0.30);
  color: #075c30;
}

.marine-grid-cell.warn {
  background:
    linear-gradient(180deg, rgba(255, 183, 54, 0.52), rgba(224, 126, 26, 0.36));
  color: #3d2400;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 128, 0.42);
}

.marine-grid-cell.nogo {
  background:
    linear-gradient(180deg, rgba(255, 77, 88, 0.60), rgba(172, 24, 42, 0.44));
  color: #fff3f3;
  text-shadow: 0 1px 1px rgba(80,0,12,0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 150, 0.42);
}

.marine-grid-time.marine-day-odd,
.marine-grid-cell.marine-day-odd {
  background-color: rgba(255,255,255,0.18);
}

.marine-grid-time.marine-day-even,
.marine-grid-cell.marine-day-even {
  background-color: rgba(120,205,195,0.10);
}

.marine-grid-time.marine-day-start,
.marine-grid-cell.marine-day-start {
  border-left: 3px solid rgba(255,255,255,0.64);
  box-shadow: inset 2px 0 0 rgba(15,92,88,0.16);
}

.marine-grid-cell.marine-day-start.warn {
  box-shadow:
    inset 2px 0 0 rgba(15,92,88,0.16),
    inset 0 0 0 1px rgba(255, 214, 128, 0.42);
}

.marine-grid-cell.marine-day-start.nogo {
  box-shadow:
    inset 2px 0 0 rgba(15,92,88,0.16),
    inset 0 0 0 1px rgba(255, 140, 150, 0.42);
}

.marine-ops-label,
.marine-status-label {
  color: #493300;
  white-space: normal;
  line-height: 1.05;
  align-items: center;
  padding-right: 6px;
}

.marine-ops-label {
  background: rgba(255,207,35,0.22);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.marine-ops-label span {
  display: block;
  white-space: nowrap;
}

.marine-graph,
.marine-graph-stack {
  display: grid;
  gap: 10px;
}

.marine-line-wrap {
  min-width: 760px;
  padding-bottom: 2px;
}

.marine-metric-panel {
  min-width: 760px;
  background: rgba(255,255,255,0.22);
  border-top: 1px solid rgba(17,17,17,0.08);
  border-bottom: 1px solid rgba(17,17,17,0.08);
  padding: 7px 0 4px;
}

.marine-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 4px;
}

.marine-metric-name {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.marine-metric-name strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.marine-metric-name small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}

.marine-metric-max {
  position: sticky;
  right: 0;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 1px;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-left: 1px solid rgba(255,255,255,0.34);
  border-radius: 7px 0 0 7px;
  background:
    linear-gradient(90deg, rgba(178,211,208,0), rgba(178,211,208,0.88) 24%, rgba(178,211,208,0.98));
  box-shadow: -10px 0 16px rgba(178,211,208,0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.marine-metric-max em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.marine-metric-max b {
  color: var(--text);
  font: 900 12px var(--font-mono);
}

.marine-line-chart {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.20));
  border: 0;
}

.marine-grid-lines line {
  stroke: rgba(17,17,17,0.12);
  stroke-width: 1;
}

.marine-chart-day-band.even {
  fill: rgba(120,205,195,0.10);
}

.marine-chart-day-band.odd {
  fill: rgba(255,255,255,0.18);
}

.marine-chart-day-start {
  stroke: rgba(255,255,255,0.68);
  stroke-width: 3;
}

.marine-scale-labels text {
  fill: rgba(17,17,17,0.54);
  font: 800 9px var(--font-mono);
}

.marine-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marine-line.wave { stroke: #177a9c; }
.marine-line.maxhs { stroke: #0d5f84; }
.marine-line.wind { stroke: #0f8f61; }
.marine-line.gust { stroke: #c48010; }
.marine-line.swell { stroke: #5c7bd9; }
.marine-line.temp { stroke: #c8323a; }
.marine-line.visibility { stroke: #6f8a94; }
.marine-line.warn { stroke: #e07e1a; }
.marine-line.nogo { stroke: #c8323a; }

.marine-dot {
  stroke: rgba(255,255,255,0.92);
  stroke-width: 1.3;
}

.marine-dot.wave { fill: #177a9c; }
.marine-dot.maxhs { fill: #0d5f84; }
.marine-dot.wind { fill: #0f8f61; }
.marine-dot.gust { fill: #c48010; }
.marine-dot.swell { fill: #5c7bd9; }
.marine-dot.temp { fill: #c8323a; }
.marine-dot.visibility { fill: #6f8a94; }
.marine-dot.warn { fill: #e07e1a; }
.marine-dot.nogo { fill: #c8323a; }

.marine-axis-label {
  fill: var(--text-muted);
  font: 800 10px var(--font-mono);
}

.brief-metric-picker {
  padding: 6px 8px;
  margin-bottom: 6px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.26);
}

.brief-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.brief-unit-row > span {
  color: var(--text-muted);
  font: 900 9px var(--font-mono);
}

.brief-unit-group {
  display: grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: rgba(10,18,16,0.06);
}

.brief-unit-group button {
  min-width: 34px;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  font: 900 9px var(--font-mono);
  cursor: pointer;
}

.brief-unit-group button.active {
  border-color: rgba(29,158,117,0.34);
  background: rgba(29,158,117,0.18);
  color: var(--green-dark);
}

.brief-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 5px;
}

.brief-metric-row {
  position: relative;
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(17,17,17,0.10);
  border-radius: 6px;
  background: rgba(255,255,255,0.32);
  padding: 4px 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.brief-metric-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-metric-row span,
.brief-metric-row strong,
.brief-metric-row small {
  display: block;
}

.brief-metric-row span {
  min-width: 0;
}

.brief-metric-row strong {
  color: var(--text-muted);
  font: 900 9px var(--font-mono);
  white-space: nowrap;
}

.brief-metric-row small {
  margin-top: 1px;
  color: rgba(17,17,17,0.55);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.05;
  white-space: nowrap;
}

.brief-metric-row i {
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: rgba(17,17,17,0.16);
  border: 1px solid rgba(17,17,17,0.12);
}

.brief-metric-row i::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 1px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.brief-metric-row.on {
  border-color: rgba(29,158,117,0.36);
  background: rgba(29,158,117,0.16);
}

.brief-metric-row.on strong {
  color: var(--green-dark);
}

.brief-metric-row.on i {
  background: var(--green-dark);
}

.brief-metric-row.on i::after {
  transform: translateX(12px);
}

.marine-graph-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.marine-graph-label {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font: 800 10px var(--font-mono);
  text-transform: uppercase;
}

.marine-graph-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 5px;
  min-height: 86px;
  overflow-x: auto;
}

.marine-graph-point {
  min-width: 38px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 3px;
  padding: 5px 3px;
  border-radius: 7px;
  background: rgba(255,255,255,0.30);
}

.marine-graph-bar {
  align-self: end;
  width: 14px;
  min-height: 12px;
  border-radius: 8px 8px 2px 2px;
  background: rgba(120,130,126,0.42);
}

.marine-graph-bar.go { background: rgba(29,158,117,0.78); }
.marine-graph-bar.warn { background: rgba(196,128,16,0.84); }
.marine-graph-bar.nogo { background: rgba(200,50,58,0.86); }

.marine-graph-point strong {
  color: var(--text);
  font: 800 9px var(--font-mono);
  white-space: nowrap;
}

.marine-graph-point small {
  color: var(--text-muted);
  font: 800 8px var(--font-mono);
  white-space: nowrap;
}

.brief-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(17,17,17,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.32);
  cursor: pointer;
}

.brief-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-card-toggle {
  width: 30px;
  height: 20px;
  border-radius: 20px;
  background: rgba(17,17,17,0.16);
  border: 1px solid rgba(17,17,17,0.12);
  margin-top: 1px;
}

.brief-card-toggle::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 1px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.brief-card.on {
  border-color: rgba(29,158,117,0.32);
  background: rgba(29,158,117,0.12);
}

.brief-card.on .brief-card-toggle {
  background: var(--green-dark);
}

.brief-card.on .brief-card-toggle::after {
  transform: translateX(10px);
}

.brief-card-copy {
  min-width: 0;
}

.brief-card-copy strong,
.brief-card-copy small,
.brief-card-copy em {
  display: block;
}

.brief-card-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.brief-card-copy small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
}

.brief-card-copy em {
  margin-top: 7px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(10,18,16,0.06);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  line-height: 1.28;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.brief-card:hover .brief-card-copy em {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0,0,0,0.14);
}

.brief-card-stack.preview-off .brief-card-copy em {
  display: none;
}

.daily-brief-save {
  flex: 0 0 auto;
  padding: 10px 16px calc(10px + var(--safe-area-bottom));
  background: rgba(234, 240, 236, 0.42);
  border-top: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.daily-brief-save button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

body.dark .brief-hero,
body.dark .brief-platform-box,
body.dark .brief-group,
body.dark .marine-preview,
body.dark .brief-preview-toggle,
body.dark .brief-notification-top,
body.dark .brief-mini-toggle,
body.dark .brief-card,
body.dark .brief-result,
body.dark .brief-search-row input,
body.dark .brief-search-row button {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
}

body.dark .brief-card-copy em {
  background: rgba(255,255,255,0.07);
}

body.dark .marine-planner-strip {
  background: rgba(29,158,117,0.16);
}

body.dark .marine-planner-strip span {
  color: rgba(243,247,244,0.70);
}

body.dark .marine-planner-strip.warn {
  background: rgba(255,207,35,0.13);
}

body.dark .marine-planner-strip.nogo {
  background: rgba(200,50,58,0.14);
}

body.dark .marine-preview-toggle,
body.dark .marine-range-toggle,
body.dark .brief-unit-group,
body.dark .marine-graph-point,
body.dark .brief-metric-picker,
body.dark .brief-metric-row {
  background: rgba(255,255,255,0.07);
}

body.dark .brief-metric-row small {
  color: rgba(243,247,244,0.56);
}

body.dark .marine-line-chart {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

body.dark .marine-grid-lines line {
  stroke: rgba(255,255,255,0.14);
}

body.dark .marine-metric-panel {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

body.dark .marine-scale-labels text {
  fill: rgba(243,247,244,0.58);
}

body.dark .marine-grid-label {
  color: rgba(243,247,244,0.90);
  background:
    linear-gradient(90deg,
      rgba(54,82,82,0.98) 0%,
      rgba(54,82,82,0.98) 82%,
      rgba(54,82,82,0.84) 94%,
      rgba(54,82,82,0.00) 100%);
  box-shadow: 12px 0 18px rgba(54,82,82,0.78);
}

@media (max-width: 430px) {
  #detail-panel[data-side-panel="daily-brief"] {
    top: calc(var(--safe-area-top) + 76px) !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 86px - var(--safe-area-bottom)) !important;
    border-radius: 0 !important;
  }
}

/* Final weather watch overrides: keep the new scrubber above old weather styles */
.float-row-slider .scrubber-head {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.float-row-slider .scrub-step-btn {
  width: 34px !important;
  height: 32px !important;
  border-radius: 8px !important;
  padding: 0 !important;
}

.float-row-slider .scrubber-now {
  text-align: center !important;
  white-space: nowrap !important;
}

.weather-watch-panel .readiness-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.weather-watch-panel .readiness-metric small {
  min-height: 18px;
}

@media (max-width: 420px) {
  .weather-watch-panel .readiness-metrics,
  .weather-watch-panel .weather-watch-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
