/* Flight Path · a Maya Labs map. A Trippr Travel experiment by Maya Labs, in Trippr Travel Radio's skin: warm near-black,
   fire orange, gold, Bebas Neue for display and Inter for everything else. Colour on the map means height: warm near the ground, cool at cruise. */
:root {
  --ink: #0c0a09;
  --glass: rgba(28, 25, 23, 0.8);
  --glass-solid: #1c1917;
  --line: rgba(214, 200, 190, 0.14);
  --text: #f4f2f1;
  --muted: #a8a29e;
  --gold: #f59f0a;          /* Trippr gold */
  --signal: #e8640c;        /* Trippr fire: the thing to press */
  --gold-soft: rgba(245, 159, 10, 0.16);
  --sky: #86b6ff;
  --good: #84cc16;
  --font-display: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
  --glass: rgba(20, 2, 2, 0.8); --glass-solid: #140303; --line: rgba(255, 60, 40, 0.2);
  --text: #ff4a38; --muted: #b3261a; --gold: #ff5a44; --gold-soft: rgba(255, 70, 50, 0.16); --sky: #ff4a38; --good: #ff4a38;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.45;
  overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg { width: 20px; height: 20px; display: block; flex: none; }
[hidden] { display: none !important; }


/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at 50% 42%, #231c17 0%, var(--ink) 62%); transition: opacity .9s ease;
}
.splash.is-gone { opacity: 0; pointer-events: none; }
.splash-mark { width: 84px; height: 84px; border-radius: 26px; background: var(--glass-solid); border: 1px solid var(--line); display: grid; place-items: center; }
.splash-mark span { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(160, 200, 255, .55), 0 0 60px 18px rgba(120, 160, 255, .25); animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(.72); opacity: .7; } 60% { transform: scale(1.12); } }
.splash-brand { font-family: var(--font-display); font-size: 20px; letter-spacing: .5em; margin: 6px 0 -10px .5em; color: var(--muted); }
.splash-name { font-family: var(--font-display); font-size: 44px; letter-spacing: .12em; line-height: 1; }
.splash-name b { font-weight: 400; color: var(--gold); }
.splash-sub { color: var(--muted); }
.splash-bar { width: 150px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 6%; background: var(--signal); transition: width .35s ease; }

/* ---------- top ---------- */
.top { position: fixed; z-index: 10; top: calc(var(--safe-t) + 12px); left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.top > * { pointer-events: auto; }
.glass, .chip, .brand, .icon, .dock, .sheet, .toast {
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
}
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 11px; border-radius: 20px; font-weight: 500; font-size: 13px; max-width: 62vw; }
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip svg { width: 17px; height: 17px; color: var(--gold); }
.chip.is-travel { border-color: var(--gold); color: var(--gold); }
.top-actions { display: flex; gap: 8px; }
.icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: color .2s, border-color .2s, background .2s; }
.icon[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.icon.solid { background: var(--gold); color: #17110a; border-color: transparent; }

/* ---------- heads-up: what you are facing ---------- */
.hud { position: fixed; z-index: 5; top: calc(var(--safe-t) + 84px); left: 0; right: 0; text-align: center; pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.hud-name { font-family: var(--font-display); font-size: 40px; letter-spacing: .1em; line-height: 1; transition: opacity .5s ease; }
.hud-sub { color: var(--muted); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; transition: opacity .5s ease; }
.hud-dir { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud.is-swap .hud-name, .hud.is-swap .hud-sub { opacity: 0; }

/* ---------- dock ---------- */
.dock {
  position: fixed; z-index: 12; left: 50%; bottom: calc(var(--safe-b) + 14px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 34px; box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
}
.dock-btn { width: 62px; height: 54px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; transition: color .2s, background .2s; }
.dock-btn.is-on, .dock-btn[aria-pressed="true"] { color: var(--gold); background: var(--gold-soft); }
.dock-main {
  width: 68px; height: 68px; margin: -14px 6px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: radial-gradient(circle at 50% 30%, #3a2a1e, #1c1917); border: 1px solid rgba(245, 159, 10, .4); color: var(--text);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; box-shadow: 0 0 0 5px rgba(12, 10, 9, .7), 0 8px 30px rgba(0, 0, 0, .6); transition: all .25s ease;
}
.dock-main svg { width: 26px; height: 26px; }
.dock-main[aria-pressed="true"] { background: radial-gradient(circle at 50% 30%, #ffc247, var(--gold)); color: #17110a; border-color: transparent; box-shadow: 0 0 0 5px rgba(12, 10, 9, .7), 0 0 34px rgba(245, 159, 10, .5); }

/* ---------- sheet ---------- */
.sheet {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; max-height: min(74vh, 640px); display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: var(--safe-b); box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); -webkit-user-select: text; user-select: text;
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-compact { max-height: 46vh; }
.sheet-grab { padding: 8px 0 2px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grab i { width: 38px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 16px 10px 20px; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: .06em; line-height: 1.05; }
.sheet-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.sheet-body { overflow-y: auto; padding: 0 20px 22px; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-body p { margin: 0 0 12px; color: #d6d0cb; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 14px; }
.photo { margin: 0 0 14px; }
.photo a { color: inherit; }
.photo img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.photo figcaption { margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.photo figcaption a { text-decoration: underline; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; background: rgba(255, 255, 255, .03); min-width: 0; }
.fact small { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.fact b { display: block; font-weight: 600; font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.btn { height: 42px; padding: 0 18px; border-radius: 21px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); }
.btn.primary { background: var(--signal); color: #fff; border-color: transparent; }
.btn svg { width: 18px; height: 18px; }

.search { position: relative; margin-bottom: 10px; }
.search input { width: 100%; height: 46px; border-radius: 23px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 16px; padding: 0 16px 0 44px; outline: none; -webkit-user-select: text; user-select: text; }
.search svg { position: absolute; left: 15px; top: 13px; color: var(--muted); }
.group { margin: 16px 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .dot { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 15px; }
.row .dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 10px 2px var(--c, #fff); }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .txt small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .aside { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.row .aside.up { color: var(--good); }
.banner { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 4px 0 6px; background: linear-gradient(135deg, rgba(232, 100, 12, .12), rgba(245, 159, 10, .06)); }
.banner b { display: block; font-size: 15px; }
.banner small { color: var(--muted); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.toggle span b { display: block; font-weight: 600; }
.toggle span small { color: var(--muted); font-size: 12.5px; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-pressed="true"] .switch { background: var(--gold); }
.toggle[aria-pressed="true"] .switch::after { transform: translateX(18px); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; border: 1px solid var(--line); margin: 6px 0 4px; }
.seg button { height: 36px; border-radius: 12px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold); }
.credits { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 16px; }
.credits a { color: var(--muted); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 40; left: 50%; top: calc(var(--safe-t) + 196px); transform: translate(-50%, -12px); max-width: min(86vw, 420px); padding: 11px 16px; border-radius: 18px; font-size: 13.5px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wide screens: the sheet becomes a side panel ---------- */
@media (min-width: 820px) {
  .sheet { left: 16px; right: auto; bottom: 16px; top: auto; width: 400px; max-height: calc(100vh - 110px); border-radius: 24px; border-bottom: 1px solid var(--line); transform: translateX(-112%); }
  .sheet.is-open { transform: translateX(0); }
  .sheet.is-compact { max-height: calc(100vh - 110px); }
  .sheet-grab { display: none; } .sheet-head { padding-top: 18px; }
  .hud-name { font-size: 54px; }
}
@media (max-height: 520px) { .hud { display: none; } }
@media (prefers-reduced-motion: reduce) { .sheet, .toast, .splash { transition: none; } }

/* ---------- Flight Path ---------- */
#map, #ar, #cam { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#map { background: var(--ink); }
#ar { z-index: 3; touch-action: none; cursor: grab; }
#cam { z-index: 2; object-fit: cover; background: #000; }
body:not(.is-ar) .hud, body:not(.is-ar) .ar-only { display: none; }
body.is-ar .map-only { display: none; }
body.is-ar .toast { top: auto; bottom: calc(var(--safe-b) + 112px); }       /* clear of the heads-up text */
.splash-mark svg { width: 44px; height: 44px; color: var(--gold); animation: climb 2.4s ease-in-out infinite; }
@keyframes climb { 0%, 100% { transform: translate(-3px, 3px); } 50% { transform: translate(3px, -3px); } }
.splash-logo { width: 240px; max-width: 70vw; height: auto; margin-bottom: 2px; filter: brightness(0) invert(1); }   /* the same trick tripprtravel.com uses on its header */
.product-word { font-family: var(--font-display); font-weight: 400; letter-spacing: .14em; color: var(--gold); line-height: 1; white-space: nowrap; }
.splash .product-word { font-size: 34px; }
.splash-foot { position: absolute; bottom: calc(22px + var(--safe-b)); left: 0; right: 0; padding: 0 24px; text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.brand { display: flex; flex-direction: column; gap: 3px; padding: 8px 16px 8px 13px; border-radius: 22px; min-width: 0; }
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 19px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand .product-word { font-size: 19px; padding-top: 2px; }
.brand-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brand-sub i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); flex: none; }
.brand.is-off .brand-sub i { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.by { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.by img { width: 92px; height: auto; flex: none; }
.icon.wide { width: auto; padding: 0 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; }
.icon.wide svg { width: 17px; height: 17px; }

.maplibregl-ctrl-top-left { top: calc(var(--safe-t) + 70px); left: calc(4px + env(safe-area-inset-left, 0px)); z-index: 4; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: var(--glass); color: var(--muted); border: 1px solid var(--line); min-height: 24px; }
.maplibregl-ctrl-attrib a { color: var(--muted); }
.maplibregl-ctrl-attrib-button { filter: invert(1); opacity: .6; }
body.is-ar .maplibregl-control-container { display: none; }

.status { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.tag.warn { background: rgba(255, 107, 90, .16); color: #ff8b7d; }
.tag.good { background: rgba(127, 214, 155, .14); color: var(--good); }
.tag.plain { background: rgba(255, 255, 255, .06); color: var(--text); }

.route { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 2px 0 8px; }
.route-end b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: .06em; line-height: 1; }
.route-end small { display: block; color: var(--muted); font-size: 12px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-end.right { text-align: right; }
.route-mid small { display: block; text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 7px; white-space: nowrap; }
.route-bar { position: relative; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); margin-top: 8px; }
.route-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--gold); }
.route-bar svg { position: absolute; top: -9px; width: 20px; height: 20px; margin-left: -10px; color: var(--gold); transform: rotate(90deg); }
.landing { font-size: 15px; font-weight: 600; color: var(--text) !important; margin: 0 0 14px !important; }
.landing small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }

.note { display: flex; gap: 10px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 12px; padding: 9px 12px; margin: 0 0 8px; background: rgba(255, 255, 255, .03); }
.note b { display: block; font-size: 13.5px; }
.note span { color: #d6d0cb; font-size: 13px; }
.note.alert { border-left-color: #ff5a4a; background: rgba(255, 90, 74, .1); }
.note.warn { border-left-color: #ffa23f; }
.note.good { border-left-color: var(--good); }
.note.info { border-left-color: var(--sky); }
.notes { margin: 0 0 14px; }
.raw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted) !important; word-break: break-word; }
.empty { color: var(--muted) !important; padding: 6px 0 2px; }
.row .x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.row .x svg { width: 15px; height: 15px; }
.row .dot svg { width: 18px; height: 18px; color: var(--c, var(--text)); }
.legend { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 12px 0 4px; }
.legend i { flex: 1; }
.legend-text { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }

/* ---------- account ---------- */
.auth .sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin: 0 0 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 600; font-size: 15px; }
.auth .sso svg { width: 19px; height: 19px; flex: none; }
.auth .sso.apple { background: #fff; color: #000; border-color: #fff; }
.auth .sso.primary { background: var(--signal); color: #fff; border-color: transparent; margin: 2px 0 0; }
.auth button:disabled { opacity: .55; }
.auth .or { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth input { display: block; width: 100%; height: 48px; margin: 0 0 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 16px; outline: 0; }
.auth input:focus { border-color: var(--gold); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 4px; }
.auth-links button { color: var(--gold); font-weight: 600; font-size: 13px; padding: 6px 0; }
.auth-links button:only-child, .auth-links button[hidden] + button { margin-left: auto; }
.auth-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #fecaca; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .3); }
.auth-msg.is-ok { color: #d9f99d; background: rgba(132, 204, 22, .1); border-color: rgba(132, 204, 22, .3); }
.auth .credits { margin-top: 16px; }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.auth input { box-sizing: border-box; }
@media (max-width: 400px) { .top-actions { gap: 6px; } .top-actions .icon:not(.wide) { width: 36px; height: 36px; } }
.top { gap: 8px; }
@media (max-width: 400px) { .brand { padding-right: 11px; } .brand-logo { height: 17px; } .brand .product-word { font-size: 17.5px; } }
.hud { padding: 0 18px; }
.hud-route { font-size: 15px; font-weight: 600; margin-top: 6px; transition: opacity .5s ease; }
.hud-route:empty { display: none; }
.hud.is-swap .hud-route { opacity: 0; }
.hud-sub { letter-spacing: .08em; text-wrap: balance; }
