/* Ayia Napa Private Taxi — DARK GOLD edition. Shared app styles.
   Same structure as the light site; colours/fonts follow the dark gold reference (reference/user-refs/u02.jpeg, u03.jpeg).
   Every page is authored in "design px" on a 480 px wide app column (the reference phone screen).
   app.js sets --z so the column fills a phone (390 px wide phone → zoom .8125) and stays 480 px on desktop.
   Use only these tokens and components so every page looks like the Home screen. */
:root {
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Libre Caslon Display", Georgia, serif;   /* display serif: titles, brand */
  --gold: #D8A151;        /* main gold (buttons, icons, labels) */
  --gold-2: #E6BE6E;      /* light gold highlight */
  --gold-3: #B1792C;      /* deep gold (gradient start) */
  --gold-grad: linear-gradient(100deg, #B37A2D 0%, #D39F4B 45%, #E2B460 70%, #CF9A47 100%);
  --gold-line: rgba(216,161,81,.38);   /* hairline borders */
  --gold-soft: rgba(216,161,81,.12);   /* tinted backgrounds */
  /* legacy names used by page css — mapped to the gold palette */
  --teal: #D8A151;
  --teal-btn: #D39F4B;
  --teal-logo: #D8A151;
  --teal-ink: #D8A151;
  --teal-dot: #D8A151;
  --teal-soft: rgba(216,161,81,.12);
  --ink: #F4F1EA;         /* primary text on dark */
  --ink-2: #FFFFFF;
  --text: #ECE8E0;
  --muted: #A9A49A;
  --muted-2: #8C877D;
  --line: rgba(255,255,255,.08);
  --bg: #070708;          /* app background */
  --surface: #121212;     /* cards */
  --surface-2: #1A1917;   /* raised / inputs */
  --cream: #15130F;       /* "cream" cards become warm dark */
  --sand: #17140F;
  --orange: #E0913A;
  --red: #E0645A;
  --radius-card: 14px;
  --radius-sm: 12px;
  --shadow-card: inset 0 0 0 1px rgba(216,161,81,.30);
  --shadow-float: inset 0 0 0 1.5px rgba(216,161,81,.75);
  --shadow-cream: inset 0 0 0 1px rgba(216,161,81,.30);
  --gutter: 24px;
  --z: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #000; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: geometricPrecision; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App shell: one 480 design-px column ---------- */
.app { position: relative; width: 480px; margin: 0 auto; zoom: var(--z); background: var(--bg); min-height: calc(100vh / var(--z)); min-height: calc(100dvh / var(--z)); display: flex; flex-direction: column; }
.view { flex: 1 0 auto; position: relative; padding-bottom: 28px; }
@media (min-width: 700px) {
  body { padding: 0; }
  .app { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 10px 40px rgba(40,30,10,.08); }
}

/* ---------- Top bar of inner pages ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: calc(24px + env(safe-area-inset-top)) var(--gutter) 0; min-height: 76px; }
.topbar-title { flex: 1; font-size: 19.5px; font-weight: 600; color: var(--text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }
.round-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; background: transparent; box-shadow: var(--shadow-float); display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--gold); }
.round-btn svg { width: 26px; height: 26px; }
.round-btn.ghost { box-shadow: none; background: transparent; }
.round-btn .badge-dot { position: absolute; left: 33px; top: 4px; width: 15.5px; height: 15.5px; border-radius: 50%; background: var(--gold); }
.topbar-spacer { width: 52px; flex: none; }

/* Page heading block (below the top bar) */
.page-head { padding: 22px var(--gutter) 0; }
.kicker { font-size: 12.6px; letter-spacing: .27em; font-weight: 500; color: #5E5E5E; text-transform: uppercase; }
.page-title { font-size: 34px; line-height: 41px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.1px; }
.page-title .accent { color: var(--teal); }
.page-lead { margin-top: 10px; font-size: 17.2px; line-height: 25.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 28px var(--gutter) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-h { font-size: 19.5px; line-height: 1.2; font-weight: 500; color: var(--text); }
.link-more { font-size: 16.8px; font-weight: 500; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.link-more svg { width: 9px; height: 15px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card-pad { padding: 18px; }
.card-cream { background: var(--cream); border-radius: var(--radius-card); box-shadow: var(--shadow-cream); }
.card-sand { background: var(--sand); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card-teal { background: var(--gold-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card + .card { margin-top: 14px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.card-text { font-size: 14.5px; line-height: 21px; color: var(--muted); }

/* Icon circle (like the promo lightning) */
.icon-circle { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-grad); color: #111; display: inline-flex; align-items: center; justify-content: center; }
.icon-circle svg { width: 28px; height: 28px; }
.icon-circle.sm { width: 44px; height: 44px; }
.icon-circle.sm svg { width: 22px; height: 22px; }
.icon-circle.soft { background: var(--teal-soft); color: var(--teal-logo); }

/* List rows inside a card */
.rows > li, .row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; min-height: 64px; }
.rows > li + li { border-top: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -0.3px; }
.row-sub { margin-top: 3px; font-size: 13.5px; color: var(--muted-2); }
.row-end { flex: none; font-size: 16px; font-weight: 600; color: var(--ink); }
.chev { width: 9px; height: 15px; flex: none; color: #B4B0A8; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 26px; border-radius: 12px; font-size: 17px; font-weight: 500; letter-spacing: -0.4px; white-space: nowrap; transition: filter .15s, transform .1s; }
.btn:active { transform: scale(.985); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-primary { background: var(--gold-grad); color: #121212; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 24px rgba(216,161,81,.18); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.btn-quiet { background: var(--gold-soft); color: var(--gold); }
.btn-danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px rgba(224,100,90,.45); }
.btn-whatsapp { background: #25D366; color: #FFF; }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Chips / filters */
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; height: 40px; padding: 0 17px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 15px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chip-btn[aria-pressed="true"], .chip-btn.active { background: linear-gradient(180deg, rgba(216,161,81,.28), rgba(216,161,81,.12)); color: var(--gold-2); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 14px rgba(216,161,81,.25); }
.chip-btn svg { width: 18px; height: 18px; }

/* Small pills / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.pill.orange { background: rgba(224,145,58,.14); color: #F0A85A; }
.pill.grey { background: rgba(255,255,255,.07); color: #B5B0A6; }
.pill.green { background: rgba(80,190,120,.14); color: #7FD39C; }
.pill.red { background: rgba(224,100,90,.14); color: #F08A80; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-dot); flex: none; display: inline-block; }
.eta-line { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #525252; letter-spacing: -0.3px; }

/* Segmented control */
.segmented { display: flex; padding: 4px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.segmented button { flex: 1; height: 44px; border-radius: 14px; font-size: 15.5px; font-weight: 500; color: var(--muted); }
.segmented button[aria-selected="true"] { background: var(--gold-soft); color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold); }

/* ---------- Forms ---------- */
.field { display: block; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); padding: 11px 16px 12px; position: relative; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 12px; }
.field-label { display: block; font-size: 12px; letter-spacing: .14em; font-weight: 600; color: var(--gold); text-transform: uppercase; }
.field input, .field select, .field textarea { display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 4px 0 0; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field textarea { resize: none; min-height: 64px; line-height: 23px; }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold); }
.field.with-icon { padding-left: 54px; }
.field.with-icon > svg { position: absolute; left: 16px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); color: var(--teal-logo); }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; margin-top: 0; }
.field-hint { margin-top: 8px; font-size: 13px; color: var(--muted-2); }
.field.invalid { box-shadow: inset 0 0 0 1.5px #E0645A; }

/* Stepper (passengers / bags) */
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 22px; text-align: center; font-size: 18px; font-weight: 600; }

/* Switch */
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: #2E2C29; transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Photo tiles */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: #1A1917; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Heart (same as Home cards) */
.heart { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.heart svg { width: 28px; height: 28px; fill: rgba(128,138,154,.72); stroke: #FFF; stroke-width: 2.3; filter: drop-shadow(0 .5px 1px rgba(0,0,0,.18)); transition: fill .15s; }
.heart[aria-pressed="true"] svg { fill: #FF5A6E; }

/* Empty state */
.empty { text-align: center; padding: 34px 28px; }
.empty img, .empty svg.empty-art { width: 120px; height: auto; margin: 0 auto 14px; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.empty-text { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--muted); }

/* Sticky action bar above the tab bar (booking pages) */
.action-bar { position: sticky; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 15; background: linear-gradient(rgba(7,7,8,0), #070708 18px); padding: 22px var(--gutter) 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(110px * var(--z)); transform: translate(-50%, 20px); opacity: 0; background: #1E1C18; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-line); padding: 12px 18px; border-radius: 14px; font-size: 15px; transition: opacity .2s, transform .2s; z-index: 100; pointer-events: none; white-space: nowrap; zoom: var(--z); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Placeholder text that the owner still has to fill in (phone, licence, prices) */
.todo { color: inherit; }

/* ---------- Tab bar (shared) ---------- */
.tabbar { position: sticky; bottom: 0; z-index: 20; flex: none; height: calc(78px + env(safe-area-inset-bottom)); background: #0C0C0D; border-top: 1px solid rgba(255,255,255,.06); }
.tab { position: absolute; left: calc(var(--cx) - 50px); top: 0; width: 100px; height: 75px; color: #8E8B86; }
.tab svg { position: absolute; left: 32px; top: 12px; width: 36px; height: 36px; }
.tab span { position: absolute; left: 0; width: 100px; top: 46px; text-align: center; font-size: 15px; letter-spacing: -1px; line-height: 1; white-space: nowrap; }
.tab .t-fill { display: none; }
.tab.active { color: var(--gold); }
.tab.active .t-line { display: none; }
.tab.active .t-fill { display: inline; }
.tab .tab-badge { position: absolute; left: 58px; top: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #FFF; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; letter-spacing: 0; }
.tab .tab-badge:empty { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Dark-gold extras ---------- */
body { background: #000; color: var(--ink); }
.page-title { font-family: var(--serif); font-weight: 500; color: var(--gold); letter-spacing: .01em; }
.kicker { color: var(--gold); }
.topbar-title { color: var(--ink); }
.sec-h { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 15px; font-weight: 500; }
.link-more { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.card-title { color: var(--ink); }
.row-title { color: var(--ink); }
.row-end { color: var(--gold); }
.chev { color: var(--gold); }
.icon-circle { background: var(--gold-grad); color: #121212; }
.icon-circle.soft { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.empty-title { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #77736B; }
.field input, .field select, .field textarea { color: var(--ink); color-scheme: dark; }
.field.with-icon > svg { color: var(--gold); }
.heart svg { fill: rgba(0,0,0,.45); stroke: #FFF; }
.heart[aria-pressed="true"] svg { fill: var(--gold); stroke: var(--gold-2); }
.gold-text { background: linear-gradient(180deg, #F1CF86 0%, #D8A151 55%, #B88233 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 700px) { .app { box-shadow: 0 0 0 1px rgba(216,161,81,.12), 0 10px 60px rgba(0,0,0,.6); } }

/* Side menu */
.side-menu { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.side-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.side-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 330px; background: #0E0D0C; box-shadow: inset -1px 0 0 var(--gold-line); padding: calc(24px + env(safe-area-inset-top)) 18px 24px; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow-y: auto; }
.side-menu.open { pointer-events: auto; }
.side-menu.open .side-scrim { opacity: 1; }
.side-menu.open .side-panel { transform: none; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 18px; }
.side-brand { display: flex; align-items: center; gap: 10px; font-family: "Libre Caslon Display", var(--serif); font-size: 19px; letter-spacing: .25em; color: var(--gold); }
.side-crown { width: 24px; height: 16px; }
.side-panel ul { flex: 1; }
.side-panel a { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 10px; border-radius: 12px; color: var(--text); font-size: 17px; }
.side-panel a svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.side-panel a .side-chev { width: 14px; height: 14px; margin-left: auto; opacity: .5; }
.side-panel a[aria-current="page"] { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--gold-2); }
.side-foot { padding: 18px 10px 0; font-size: 13px; color: var(--muted-2); }

/* Tab bar fine-tuning to reference u02 */
.tab svg { top: 10px; width: 34px; height: 34px; left: 33px; }
.tab span { top: 49px; font-size: 14.2px; letter-spacing: 0; font-weight: 400; }
.tab { color: #9C9A96; }
.tab.active { color: #E0B566; }
