/* Layout: airy light page. Headline left, a white "Salidas" board right; drop cards below,
   each topped with a pastel tile per tour type. Bubblegum pink is reserved for actions. */
:root {
  --paper: #fffefd;
  --surface: #ffffff;
  --sunk: #f6f3ef;
  --sand: #fbf8f1;
  --ink: #14110e;
  --muted: #77706a;
  --line: #ece8e3;
  --pink: #ff82d1;
  --pink-hover: #ff6bc7;
  --pink-ink: #14110e;
  --pink-soft: #ffe8f6;
  --pink-deep: #c4177f;
  --go: #138a3d;
  --go-soft: #e2f6e8;
  --urgent: #d13d22;
  --urgent-soft: #fdeae5;
  --soon: #9a5b00;
  --soon-soft: #fff2d6;

  /* offer slider zones: long shot, fair, strong */
  --zone-long: #f6a48c;
  --zone-fair: #f7cc6b;
  --zone-strong: #8fd8a8;

  /* pastel tiles, one per tour type */
  --tile-nightlife: #ece4ff;
  --tile-food: #fff0c4;
  --tile-culture: #ffe2d4;
  --tile-outdoors: #dcf4e3;
  --tile-water: #dbecff;
  --tile-daytrip: #f2eadb;

  --shadow-sm: 0 1px 2px rgb(20 17 14 / 5%);
  --shadow: 0 1px 2px rgb(20 17 14 / 4%), 0 12px 32px -16px rgb(20 17 14 / 18%);

  --font-display: "Gabarito", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 4vw, 2.6rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.6rem);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --ink-hover: #2c2722;
  --logo-accent: #d9259b;
  color-scheme: light;
}

/* Dark: warm charcoal, never blue-black. Chosen from the header menu (or "Auto" follows the device);
   an inline script in each page sets data-theme before first paint so there's no white flash. */
:root[data-theme="dark"] {
  --paper: #131110;
  --surface: #1c1917;
  --sunk: #26221f;
  --sand: #191715;
  --ink: #f4efe9;
  --muted: #a69d93;
  --line: #2f2a26;
  --pink: #ff82d1;
  --pink-hover: #ff9bdb;
  --pink-ink: #14110e;
  --pink-soft: #3b2033;
  --pink-deep: #ff9cdc;
  --go: #5fd497;
  --go-soft: #17301f;
  --urgent: #ff8b6e;
  --urgent-soft: #3b1f17;
  --soon: #f3c062;
  --soon-soft: #352812;
  --zone-long: #c9765f;
  --zone-fair: #c99a3f;
  --zone-strong: #4f9e6d;
  --tile-nightlife: #2a2438;
  --tile-food: #332c18;
  --tile-culture: #34241d;
  --tile-outdoors: #1c2e22;
  --tile-water: #1b2836;
  --tile-daytrip: #2c271f;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 36px -18px rgb(0 0 0 / 70%);
  --ink-hover: #ffffff;
  --logo-accent: #ff82d1;
  color-scheme: dark;
}
:root[data-theme="dark"] img:not(.flag) { filter: brightness(0.92); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.02; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-tag { fill: var(--pink); }
.logo-hole { fill: var(--paper); }
.logo-arrow { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.logo-word b { font-weight: inherit; color: var(--logo-accent); }
.header-right { display: flex; align-items: center; gap: 6px; flex: none; }
.locale { position: relative; }
.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.locale-btn:hover, .locale-btn[aria-expanded="true"] { background: var(--sunk); color: var(--ink); }
.locale-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.locale-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 30;
}
.locale-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.locale-opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 11px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.locale-opt:hover { border-color: var(--ink); }
.locale-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ink-hover); }
.cta-short { display: none; }
/* Small phones: the bar has to fit logo, globe and button on one row. */
@media (max-width: 440px) {
  .site-header .wrap { gap: 8px; }
  .cta-full, #locale-label { display: none; }
  .cta-short { display: inline; }
  .header-right { gap: 2px; }
}

.demo-banner { background: var(--soon-soft); color: var(--soon); font-size: var(--step--1); font-weight: 600; }
.demo-banner .wrap { padding-block: 8px; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: var(--pink-ink); }
.btn-primary:hover { background: var(--pink-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: var(--sunk); color: var(--ink); }
.btn-quiet:hover { background: var(--line); }
.btn-link {
  min-height: 52px;
  padding: 0 4px;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.btn-link:hover { text-decoration-color: var(--pink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; padding-block: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--pink-soft); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-error {
  background: var(--urgent-soft);
  color: var(--urgent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip .num { color: var(--muted); margin-left: 2px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .num { color: color-mix(in srgb, var(--paper) 65%, transparent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--sunk);
  color: var(--ink);
}
.pill .num { font-family: var(--font-mono); font-weight: 500; }
.photo-tags .pill:not(.pill-urgent):not(.pill-soon):not(.pill-go) { background: var(--surface); }
.pill-urgent { background: var(--urgent-soft); color: var(--urgent); }
.pill-soon { background: var(--soon-soft); color: var(--soon); }
.pill-go { background: var(--go-soft); color: var(--go); }
.pill-rosa { background: var(--pink-soft); color: var(--pink-deep); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-urgent .dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- hero + departures board ---------- */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 0.94; letter-spacing: -0.035em; }
.hero h1 .strike { position: relative; display: inline-block; color: var(--muted); }
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 54%;
  height: 0.12em;
  border-radius: 99px;
  background: var(--pink);
  transform: rotate(-3deg);
}
.hero-copy { display: grid; gap: 24px; }
.hero-copy .lede { font-size: 1.25rem; color: var(--muted); max-width: 32ch; line-height: 1.45; }
.hero-actions { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }

.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.board-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.board-title span { color: var(--muted); font-weight: 600; }
.board-clock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.board-clock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px var(--go-soft); }
.board-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.board-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table td:last-child, .board-table th:last-child { text-align: right; }
.board-table tbody tr { cursor: pointer; }
.board-table tbody tr:hover td { background: var(--sand); }
.board-table .c-time { width: 4.8rem; font-weight: 600; }
.board-table .c-city { width: 4.6rem; color: var(--muted); }
.board-table .c-spots { width: 3.4rem; text-align: center; }
.board-table .c-price { width: 5.6rem; }
.board-table .c-tour { font-family: var(--font-body); font-weight: 600; font-size: 0.94rem; }
.flap {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 3px 8px;
  font-weight: 600;
}
.flap.flipping { animation: flip 0.7s ease; }
@keyframes flip {
  0% { transform: rotateX(0); }
  40% { transform: rotateX(90deg); background: var(--pink); }
  100% { transform: rotateX(0); }
}
.board-empty { padding: 28px 6px; color: var(--muted); font-size: 0.95rem; }
.board-foot { margin-top: 10px; font-size: 0.75rem; color: var(--muted); }

/* ---------- filters ---------- */
.filters { display: grid; gap: 14px; padding-block: 4px 8px; }
.filters-row { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.filters-row .label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 3.6rem;
}
.filters-row select.input { width: auto; min-height: 40px; padding: 6px 12px; }

.section { padding-block: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: var(--step-3); letter-spacing: -0.025em; }

/* ---------- drop cards ---------- */
.drop-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); padding-top: 28px; }
.drop-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.drop-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
/* Photos sit on their tour type's pastel, which shows while loading or if the image fails. */
.card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunk); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.drop-card:hover .card-photo img { transform: scale(1.04); }
.photo-tags { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.photo-tags .pill { box-shadow: 0 1px 3px rgb(20 17 14 / 18%); }
.thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sunk); }
.thumb-lg { width: 56px; height: 56px; border-radius: 10px; }
.tour-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tour-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drop-photo { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.ticket-photo { position: relative; aspect-ratio: 16 / 7; background: var(--sunk); }
.drop-photo img, .ticket-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-field { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); }
.photo-field.dragging { border-color: var(--pink-deep); background: var(--pink-soft); }
.photo-field img { width: 132px; height: 92px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sunk); }
.photo-actions { display: grid; gap: 6px; flex: 1; min-width: min(100%, 200px); }
details.photo-link > summary { cursor: pointer; font-size: var(--step--1); color: var(--muted); margin-top: 4px; }
details.photo-link .input { margin-top: 8px; }
.cat-nightlife { background: var(--tile-nightlife); }
.cat-food { background: var(--tile-food); }
.cat-culture { background: var(--tile-culture); }
.cat-outdoors { background: var(--tile-outdoors); }
.cat-water { background: var(--tile-water); }
.cat-daytrip { background: var(--tile-daytrip); }
.drop-card-body { display: grid; gap: 12px; padding: 18px 18px 18px; align-content: start; }
.drop-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.meta { color: var(--muted); font-size: 0.92rem; }
.meta-line { font-size: 0.92rem; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 0.95; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; border-radius: 6px; }
.price-now small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); margin-left: 5px; }
.price-was { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--pink-deep); text-decoration-thickness: 1.5px; font-weight: 600; }
.price-save { display: inline-block; background: var(--pink-soft); color: var(--pink-deep); font-weight: 700; font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; }
.price-usd { color: var(--muted); font-size: 0.85rem; }
.price-flash { animation: priceflash 1.2s ease; }
@keyframes priceflash {
  0% { background: var(--pink); }
  100% { background: transparent; }
}
.next-drop {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soon);
  background: var(--soon-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.next-drop::before { content: "↓"; font-weight: 800; }
.next-drop.at-floor { color: var(--muted); background: var(--sunk); }
.next-drop.at-floor::before { content: "✓"; }
.spots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.spots b { color: var(--ink); }
.spot-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.spot-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.spot-dots i.taken { background: var(--ink); }
.drop-card .btn { margin-top: 4px; }

.empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 36px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 28px;
}
.empty h3 { font-size: var(--step-2); }
.empty p { max-width: 52ch; color: var(--muted); }

.my-bookings {
  display: flex;
  gap: 8px 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--pink-soft);
}
.my-bookings a { font-weight: 700; }

/* ---------- how it works ---------- */
.how { background: var(--sand); border-block: 1px solid var(--line); }
.how-steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: step; }
.how-step { display: grid; gap: 10px; align-content: start; }
.how-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.how-step h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.how-step p { color: var(--muted); max-width: 40ch; }
.example-ladder { margin-top: 36px; background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- operators band ---------- */
.ops-band { background: var(--pink-soft); }
.ops-band .wrap { display: grid; gap: 36px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding-block: 72px; }
.ops-band h2 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.035em; }
.ops-band p { color: color-mix(in srgb, var(--ink) 70%, transparent); max-width: 44ch; font-size: 1.1rem; }
.ops-band .btn-primary { background: var(--ink); color: var(--paper); }
.ops-band .btn-primary:hover { background: var(--ink-hover); }
.ops-receipt {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.ops-receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.ops-receipt .row:first-child { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; padding-bottom: 6px; }
.ops-receipt .total { border-top: 1.5px dashed var(--line); padding-top: 12px; font-weight: 600; font-size: 1rem; }
.ops-receipt .total span:last-child { color: var(--go); }

.site-footer { padding-block: 32px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- drop page ---------- */
.crumbs { padding-block: 24px 0; font-size: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.drop-layout { display: grid; gap: 36px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; padding-block: 20px 64px; }
.drop-main { display: grid; gap: 24px; min-width: 0; }
.drop-title { display: grid; gap: 10px; }
.drop-title h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 0.96; letter-spacing: -0.03em; }
.drop-title .muted { font-size: 1.05rem; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.fact b { font-size: 1.05rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.panel h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.ladder-wrap { margin-top: 12px; width: 100%; overflow: hidden; }
.ladder-wrap svg { display: block; width: 100%; height: auto; }
.ladder-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ladder-list span { font-family: var(--font-mono); font-size: 0.74rem; padding: 4px 9px; border-radius: 8px; background: var(--sunk); }
.ladder-list span.past { opacity: 0.45; text-decoration: line-through; }
.ladder-list span.now { background: var(--pink); color: var(--pink-ink); font-weight: 600; }

.lad-area { fill: var(--pink); opacity: 0.16; }
.lad-line { fill: none; stroke: var(--pink-deep); stroke-width: 3; stroke-linejoin: round; }
.lad-future { stroke: var(--muted); stroke-dasharray: 5 5; opacity: 0.6; }
.lad-ref { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 4; }
.lad-base { stroke: var(--line); stroke-width: 1.5; }
.lad-now { stroke: var(--ink); stroke-width: 1.5; }
.lad-dot { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
.lad-axis { fill: var(--muted); font: 600 11.5px var(--font-body); }
.lad-now-label { fill: var(--ink); }
.lad-label { fill: var(--ink); font: 600 11px var(--font-mono); }
.lad-label.is-now { fill: var(--pink-deep); }

.book-panel { position: sticky; top: 92px; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.book-panel .price-now { font-size: 3.4rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--sunk); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--line); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 52px; text-align: center; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.book-note { font-size: var(--step--1); color: var(--muted); }
.closed-note { padding: 14px; border-radius: var(--radius-sm); background: var(--sunk); font-weight: 600; }

/* ---------- ticket ---------- */
.ticket-page { padding-block: 48px 72px; display: grid; justify-items: center; gap: 20px; }
.ticket {
  width: min(100%, 560px);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ticket-head { background: var(--pink); color: var(--pink-ink); padding: 24px 26px; display: grid; gap: 8px; }
.ticket-head .eyebrow { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.ticket-head h1 { font-size: 2.4rem; line-height: 0.98; letter-spacing: -0.03em; }
.ticket-body { padding: 22px 26px 26px; display: grid; gap: 20px; }
.ticket-tear {
  height: 24px;
  background:
    radial-gradient(circle at 0 50%, var(--paper) 11px, transparent 12px) left / 24px 24px no-repeat,
    radial-gradient(circle at 100% 50%, var(--paper) 11px, transparent 12px) right / 24px 24px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px) center / calc(100% - 48px) 2px no-repeat;
}
.ticket-code { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.5rem, 6vw, 2.1rem); letter-spacing: 0.06em; }
.ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ticket-grid div { display: grid; gap: 4px; min-width: 0; }
.ticket-grid b { overflow-wrap: anywhere; }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket.cancelled .ticket-head { background: var(--sunk); }

/* ---------- operators ---------- */
.ops-auth { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); padding-block: 64px; align-items: start; }
.ops-auth h1 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.035em; }
.ops-points { display: grid; gap: 18px; margin-top: 28px; max-width: 48ch; }
.ops-points div { display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--pink); }
.ops-points b { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.ops-points p { color: var(--muted); }
.ops-auth .panel { box-shadow: var(--shadow); border-radius: 20px; padding: 26px; }
.tabs { display: flex; gap: 4px; background: var(--sunk); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-sm); }

.dash { display: grid; gap: 28px; padding-block: 40px 72px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-size: var(--step-3); letter-spacing: -0.025em; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.quick-times { display: flex; flex-wrap: wrap; gap: 6px; }
.preview { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.op-drops { display: grid; gap: 14px; }
.op-drop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; min-width: 0; }
.op-drop-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.op-drop-head h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.op-drop-nums { display: flex; gap: 28px; flex-wrap: wrap; }
.op-drop-nums div { display: grid; gap: 2px; }
.op-drop-nums b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.op-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.op-actions .inline { display: flex; gap: 6px; align-items: center; }
.op-actions .input { width: 110px; min-height: 38px; padding: 6px 10px; }
.meter { height: 8px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--pink); border-radius: 99px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr.cancelled td { color: var(--muted); text-decoration: line-through; }
.tour-list { display: grid; gap: 10px; }
.tour-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); flex-wrap: wrap; }
details.panel > summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; float: right; font-size: 1.4rem; line-height: 1; }
details.panel[open] > summary::after { content: "−"; }


/* ---------- book now / make an offer ---------- */
.seg { display: flex; gap: 4px; background: var(--sunk); padding: 4px; border-radius: 999px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-sm); }
.offer-box { display: grid; gap: 12px; }
.offer-amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zone { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; }
.zone-long { background: var(--urgent-soft); color: var(--urgent); }
.zone-fair { background: var(--soon-soft); color: var(--soon); }
.zone-strong { background: var(--go-soft); color: var(--go); }
.offer-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  margin: 10px 0 4px;
  border-radius: 99px;
  background: var(--track, var(--sunk));
  cursor: pointer;
}
.offer-range:focus-visible { outline-offset: 8px; }
.offer-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: 0 2px 6px rgb(20 17 14 / 25%);
  cursor: grab;
}
.offer-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); cursor: grab; }
.offer-scale { position: relative; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); min-height: 1.2em; }
.offer-floor-tick { position: absolute; top: -26px; width: 2px; height: 18px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); pointer-events: none; }
.offer-sum { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.offer-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer-sum .save { color: var(--go); font-weight: 800; font-size: 1.1rem; }
.offer-sum .total { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }

/* offer status page: the head colour carries the state */
.ticket-head.st-pending { background: var(--soon-soft); }
.ticket-head.st-countered { background: var(--pink); }
.ticket-head.st-accepted { background: var(--go-soft); }
.ticket-head.st-declined, .ticket-head.st-withdrawn, .ticket-head.st-expired { background: var(--sunk); }
.offer-counter { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--pink-soft); }
.offer-counter b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }

/* operator dashboard offers */
.offers-alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: var(--pink-soft); font-weight: 700; }
.offers-alert::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-deep); animation: pulse 1.4s ease-in-out infinite; }
.offer-list { display: grid; gap: 8px; }
.offer-row { display: flex; justify-content: space-between; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sand); border: 1px solid var(--line); }
.offer-row.is-pending { background: var(--pink-soft); border-color: color-mix(in srgb, var(--pink) 45%, transparent); }
.offer-row .who { display: grid; gap: 2px; min-width: 0; }
.offer-row .who span { font-size: 0.86rem; color: var(--muted); }
.offer-row .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.offer-row .input { width: 96px; min-height: 36px; padding: 6px 10px; }

/* ---------- phone field with country picker ---------- */
.phone-field { position: relative; display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.phone-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--pink-soft); }
.phone-country { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; border: 0; border-right: 1.5px solid var(--line); background: transparent; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-variant-numeric: tabular-nums; }
.phone-country:hover { background: var(--sunk); }
.phone-country svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(20 17 14 / 10%); flex: none; background: var(--sunk); }
.phone-field .phone-number { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; }
.phone-field .phone-number:focus { box-shadow: none; }
.phone-menu { position: absolute; left: -1.5px; top: calc(100% + 6px); z-index: 30; width: min(320px, calc(100vw - 32px)); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 6px; }
.phone-search { min-height: 40px; }
.phone-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.phone-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.phone-list li:hover, .phone-list li:focus { background: var(--sunk); outline: none; }
.phone-list li[aria-selected="true"] { background: var(--pink-soft); }
.phone-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-dial { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding-block: 32px 72px; align-items: start; }
.admin-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; color: var(--muted); }
.admin-nav a:hover { background: var(--sunk); color: var(--ink); }
.admin-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.admin-nav .count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--pink); color: var(--ink); font-size: 0.78rem; text-align: center; }
.admin-nav-out { margin-top: 14px; font-size: 0.9rem; }
.admin-main { display: grid; gap: 22px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: var(--step-3); }
.admin-seg { min-width: 220px; }
.admin-table td { vertical-align: top; white-space: normal; }
.admin-table .muted { font-size: 0.85rem; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.inline-actions { justify-content: flex-start; margin-top: 8px; }
.admin-table td.nowrap, .admin-table td:first-child { white-space: nowrap; }
.admin-table td:first-child { white-space: normal; min-width: 200px; }
.edit-row td { background: var(--sand); }
.admin-edit { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.admin-edit label { display: grid; gap: 4px; font-weight: 600; font-size: 0.85rem; }
.admin-edit .input { min-height: 38px; padding: 6px 10px; }
.admin-search { display: flex; gap: 6px; }
.admin-search .input { min-height: 38px; width: min(320px, 70vw); }
.admin-list { display: grid; gap: 8px; margin-top: 8px; }
.admin-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sand); border: 1px solid var(--line); }
.admin-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.admin-row .muted { font-size: 0.88rem; }
.btn-danger { background: var(--urgent); color: #fff; }
.content-section { display: grid; gap: 14px; }
.content-field { display: grid; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.content-top { display: flex; gap: 8px; align-items: center; }
.content-top label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.content-foot { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.content-foot .muted { font-size: 0.82rem; max-width: 60ch; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .admin-nav a { white-space: nowrap; }
  .admin-nav-out { margin-top: 0; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 50;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
}

@media (max-width: 900px) {
  .hero .wrap, .ops-band .wrap, .drop-layout, .ops-auth { grid-template-columns: 1fr; }
  .book-panel { position: static; }
  .hero { padding-block: 36px 32px; }
  .ops-receipt { transform: none; }
}
@media (max-width: 560px) {
  .site-header .wrap { min-height: 60px; }
  .logo-word { font-size: 1.25rem; }
  .header-cta { padding: 0 14px; font-size: 0.88rem; }
  .locale-btn { padding: 0 8px; }
  .board { padding: 14px; }
  .board-table .c-city, .board-table .c-spots { display: none; }
  .board-table .c-time { width: 4.4rem; }
  .ticket-grid { grid-template-columns: 1fr; }
  .drop-photo { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
