/* ==================================================================
   Nick & Ellie — Thailand + Vietnam 2026
   ================================================================== */

:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f3f5f9;
  --muted: #98a1b3;
  --dim: #6b7386;

  --ellie: #ff5c8a;
  --ellie-dim: rgba(255, 92, 138, 0.14);
  --ours: #2fd4c4;
  --ours-dim: rgba(47, 212, 196, 0.13);
  --gold: #ffc061;
  --warn: #ffb020;

  --grad: linear-gradient(115deg, #ff8a3d 0%, #ff4d6d 45%, #a855f7 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 138, 61, .16), rgba(255, 77, 109, .16) 45%, rgba(168, 85, 247, .16));

  --r: 18px;
  --r-sm: 11px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, .75);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -0.025em; font-weight: 700; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px 90px; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 28px 20px 34px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2s ease; transform: scale(1.06); }
.hero-img.on { opacity: 1; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1.5%); } }

.hero-scrim { position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(7,8,12,.96) 12%, rgba(7,8,12,.55) 55%, rgba(7,8,12,.35) 100%),
    linear-gradient(180deg, rgba(7,8,12,.65) 0%, rgba(7,8,12,0) 34%); }

.hero-body { position: relative; z-index: 2; max-width: 1160px; width: 100%; margin: 0 auto; }

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

.hero h1 { font-size: clamp(2.6rem, 10.5vw, 6.2rem); font-weight: 800; letter-spacing: -0.045em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 14ch; }

.hero-sub { font-size: clamp(1rem, 3.4vw, 1.35rem); color: #d5dae6; margin: 14px 0 0; max-width: 34ch; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stat { background: rgba(0,0,0,.45); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--muted); }
.stat-n { color: var(--text); font-weight: 700; }
.stat-n strong { color: var(--gold); }

/* Boarding pass */
.hero-flight { position: relative; z-index: 2; max-width: 1160px; width: 100%; margin: 26px auto 0; }
.boarding { background: rgba(10,12,18,.78); backdrop-filter: blur(22px); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; max-width: 640px; box-shadow: var(--shadow); }
.boarding-top { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.airline { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.pnr { font-size: 10.5px; letter-spacing: .16em; font-weight: 700; color: #0a0c12;
  background: var(--ours); padding: 4px 10px; border-radius: 999px; }

.seg { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 14px 0; }
.seg-end { display: flex; flex-direction: column; min-width: 0; }
.seg-end.right { align-items: flex-end; text-align: right; }
.code { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.time { font-size: 15px; font-weight: 600; margin-top: 3px; }
.time sup { color: var(--gold); font-size: 10px; }
.city { font-size: 11px; color: var(--dim); margin-top: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seg-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
.seg-no { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.seg-line { width: 54px; height: 1px; background: var(--line-2); position: relative; }
.seg-line::after { content: '✈'; position: absolute; right: -4px; top: -9px; font-size: 11px; color: var(--muted); }
.seg-craft { font-size: 9.5px; color: var(--dim); }
.seg-gap { font-size: 10.5px; color: var(--dim); text-align: center; padding: 4px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.boarding-bottom { font-size: 11px; color: var(--dim); padding-top: 11px; border-top: 1px dashed var(--line-2); }

/* ------------------------------------------------------------------ */
/* Toolbar                                                             */
/* ------------------------------------------------------------------ */

.toolbar { position: sticky; top: 0; z-index: 60; background: rgba(7,8,12,.9);
  backdrop-filter: blur(22px); border-bottom: 1px solid var(--line); }

.jump { display: flex; gap: 7px; overflow-x: auto; padding: 11px 16px 9px;
  scrollbar-width: none; -ms-overflow-style: none; }
.jump::-webkit-scrollbar { display: none; }
.jump-chip { flex: 0 0 auto; text-decoration: none; font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap; transition: .15s; }
.jump-chip:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.jump-chip em { font-style: normal; color: var(--dim); margin-left: 5px; font-size: 11px; }
.jump-chip.day em { color: var(--ours); }

.tools { display: flex; gap: 9px; align-items: center; padding: 0 16px 11px; flex-wrap: wrap; }

.filter { display: flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; }
.filter button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px;
  font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: .15s; }
.filter button.on { background: var(--text); color: var(--bg); }

.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px;
  font-weight: 650; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none;
  transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,.32); }
.btn-ghost { background: transparent; }
.btn-live { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }
.btn-live:hover { filter: brightness(1.12); }
.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-add { margin-top: 14px; }

.menu { position: relative; margin-left: auto; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #12141d;
  border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; min-width: 250px;
  box-shadow: var(--shadow); z-index: 70; }
.menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0;
  color: var(--text); font: inherit; font-size: 13px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop .danger { color: #ff6b6b; }
.menu-note { font-size: 11px; color: var(--dim); padding: 8px 12px 4px; margin: 4px 0 0;
  border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ */
/* Cards & sections                                                    */
/* ------------------------------------------------------------------ */

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 22px; margin: 44px 0; }

.sec-head { margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
.sec-head p { color: var(--muted); margin: 10px 0 0; max-width: 62ch; font-size: 15px; }

.block { margin-top: 34px; }
.block h3 { font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding-bottom: 11px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.h3-note { font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }

/* ------------------------------------------------------------------ */
/* Budget                                                              */
/* ------------------------------------------------------------------ */

.budget { background: var(--bg-2); position: relative; overflow: hidden; }
.budget::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft);
  opacity: .5; pointer-events: none; }
.budget > * { position: relative; }

.budget-grid { display: grid; gap: 22px; }
.bline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); }
.bl-label { display: block; font-weight: 650; font-size: 14.5px; }
.bl-detail { display: block; font-size: 12px; color: var(--dim); margin-top: 3px; max-width: 52ch; }
.bl-total { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-total em { font-size: 11px; color: var(--dim); font-style: normal; font-weight: 500; }
.bline-spend { border-bottom: 0; }

.budget-total { background: rgba(0,0,0,.4); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; align-self: start; }
.bt-label { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.bt-big { font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.05; margin: 6px 0 2px; }
.bt-sub { font-size: 16px; color: var(--text); font-weight: 600; }
.bt-split { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bt-paid, .bt-left { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.bt-paid { background: var(--ours-dim); color: var(--ours); border: 1px solid rgba(47,212,196,.35); }
.bt-left { background: rgba(255,192,97,.1); color: var(--gold); border: 1px solid rgba(255,192,97,.35); }
.bt-note { font-size: 11.5px; color: var(--dim); margin-top: 14px; }

/* ------------------------------------------------------------------ */
/* Legs                                                                */
/* ------------------------------------------------------------------ */

.leg { margin: 64px 0; }
.leg-hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; }
.leg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leg-hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,12,.15) 0%, rgba(7,8,12,.72) 58%, rgba(7,8,12,.95) 100%); }
.leg-hero-text { position: relative; padding: 26px 22px; width: 100%; }
.leg-n { font-size: 10.5px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.leg-hero-text h2 { font-size: clamp(2rem, 8vw, 3.6rem); font-weight: 800; margin: 8px 0 0; letter-spacing: -.04em; }
.leg-tag { color: #d3d9e6; font-size: clamp(.95rem, 3.4vw, 1.15rem); margin: 8px 0 0; max-width: 40ch; }
.leg-dates { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.pill { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: rgba(0,0,0,.5); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.pill-ellie { background: var(--ellie-dim); border-color: rgba(255,92,138,.4); color: var(--ellie); }

.leg-day .leg-hero { min-height: 260px; }
.leg-day .leg-hero-scrim { background: linear-gradient(180deg, rgba(47,212,196,.14) 0%, rgba(7,8,12,.78) 60%, rgba(7,8,12,.96) 100%); }

.leg-body { padding: 0 2px; }
.leg-intro { font-size: clamp(1rem, 3.2vw, 1.12rem); color: #c8cfdd; margin: 26px 0 0; max-width: 68ch; }

.gallery { display: flex; gap: 10px; overflow-x: auto; margin-top: 22px; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 76%; height: 210px; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }

/* Moves ------------------------------------------------------------ */
.move { display: grid; grid-template-columns: auto 1fr; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.move-locked { border-color: rgba(47,212,196,.34); background: var(--ours-dim); }
.move-icon { font-size: 20px; width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(0,0,0,.35); border-radius: 11px; }
.move-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.move-head strong { font-size: 15px; }
.move-when { font-size: 12px; color: var(--gold); font-weight: 600; }
.move-detail { margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }
.move-note { margin: 9px 0 0; font-size: 12.5px; color: var(--dim); padding-left: 11px;
  border-left: 2px solid var(--line-2); }
.move-right { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 13px; margin-top: 3px; border-top: 1px solid var(--line); }
.move-price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.move-pp { font-size: 11px; color: var(--dim); margin-left: -6px; }

/* Stays ------------------------------------------------------------ */
.stays { display: grid; gap: 14px; }
.stay { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; transition: .2s; }
.stay.picked { border-color: var(--gold); background: rgba(255,192,97,.07);
  box-shadow: 0 0 0 1px rgba(255,192,97,.35); }
.stay-band { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700;
  color: var(--dim); margin-bottom: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.band-t1 .stay-band { color: #7ee787; }
.band-t2 .stay-band { color: var(--ours); }
.band-t3 .stay-band { color: var(--gold); }
.band-t4 .stay-band { color: var(--ellie); }

.stay-score { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; flex-wrap: wrap; }
.score-pill { background: #003580; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px;
  border-radius: 6px 6px 6px 0; font-variant-numeric: tabular-nums; }
.score-word { font-size: 12px; font-weight: 700; color: var(--text); }
.score-n { font-size: 11px; color: var(--dim); }

.deal { font-size: 12.5px !important; color: #7ee787 !important; background: rgba(126,231,135,.09);
  border: 1px solid rgba(126,231,135,.25); border-radius: 9px; padding: 9px 12px; margin-top: 11px !important; }

.btn-off { background: transparent; border-style: dashed; color: var(--dim); cursor: default;
  border-color: var(--line); }
.btn-off:hover { background: transparent; border-color: var(--line); }

.move-times { margin: 7px 0 0; font-size: 13px; color: var(--gold); font-weight: 600; }
.move-bags { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.tier-ok, .tier-over { font-size: 9px; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .75; }
.tier-over { color: var(--warn); }
.stay-booked { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #05201d; background: var(--ours); padding: 4px 10px;
  border-radius: 999px; margin-bottom: 10px; }
.stay.booked { border-color: rgba(47,212,196,.5); background: var(--ours-dim); }
.stay-ref { font-size: 10.5px; color: var(--dim); margin: 9px 0 0; font-variant-numeric: tabular-nums;
  word-break: break-all; }
.stay h4 { font-size: 1.06rem; }
.stay-area { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.stay-room { font-size: 11.5px; color: var(--ours); margin: 9px 0 0; font-weight: 600; }
.stay-why { font-size: 13.5px; color: var(--muted); margin: 11px 0 0; flex: 1; }
.stay-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-big { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.sp-unit { font-size: 11.5px; color: var(--dim); margin-left: 6px; }
.sp-total { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.stay-actions { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.stay-pick { margin-top: 13px; width: 100%; background: none; border: 1px dashed var(--line-2);
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px;
  border-radius: 999px; cursor: pointer; transition: .15s; }
.stay-pick:hover { border-color: var(--gold); color: var(--gold); }
.stay.picked .stay-pick { border-style: solid; border-color: var(--gold); color: var(--gold);
  background: rgba(255,192,97,.1); }

/* Activities ------------------------------------------------------- */
.acts { display: grid; gap: 13px; }
.act { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px; transition: .18s; }
.act.ellie { border-left: 3px solid var(--ellie); }
.act.planner { border-left: 3px solid var(--ours); }
.act.done { background: rgba(47,212,196,.07); border-color: rgba(47,212,196,.3); }
.act h4 { font-size: 1.05rem; margin: 10px 0 0; }
.act p { font-size: 13.8px; color: var(--muted); margin: 9px 0 0; }
.act-top { display: flex; flex-wrap: wrap; gap: 6px; }

.badge { font-size: 10.5px; font-weight: 700; padding: 3.5px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.badge-ellie { background: var(--ellie-dim); border-color: rgba(255,92,138,.4); color: var(--ellie); }
.badge-planner { background: var(--ours-dim); border-color: rgba(47,212,196,.4); color: var(--ours); }
.badge-list { background: rgba(255,92,138,.07); border-color: rgba(255,92,138,.22); color: #d98ba7; }
.badge-cost { color: var(--gold); border-color: rgba(255,192,97,.3); }

.ellie-note { margin: 11px 0 0; padding: 11px 14px; background: var(--ellie-dim);
  border-left: 2px solid var(--ellie); border-radius: 0 10px 10px 0; font-size: 13.5px;
  color: #ffd3e0; font-style: italic; }
.ellie-note cite { display: block; font-size: 10.5px; font-style: normal; color: var(--ellie);
  margin-top: 5px; letter-spacing: .04em; }

.heads { font-size: 12.5px !important; color: var(--warn) !important; background: rgba(255,176,32,.08);
  border-radius: 9px; padding: 9px 12px; margin-top: 11px !important; }

.act-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); }
.lnk { font-size: 12.5px; color: var(--muted); text-decoration: none; font-weight: 600; }
.lnk:hover { color: var(--text); }

.tick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted);
  cursor: pointer; user-select: none; }
.tick input { width: 16px; height: 16px; accent-color: var(--ours); cursor: pointer; }

.del { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 15px;
  cursor: pointer; padding: 2px 6px; border-radius: 6px; opacity: 0; transition: .15s; }
.act:hover .del, body.editing .del { opacity: 1; }
.del:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }

/* Notes ------------------------------------------------------------ */
.notes { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); font: inherit; font-size: 14px; padding: 13px; resize: vertical; }
.notes:focus { outline: none; border-color: var(--ours); }
.notes[readonly] { color: var(--muted); cursor: default; }
.notes::placeholder { color: var(--dim); }

/* Return flights --------------------------------------------------- */
.rets { display: grid; gap: 14px; }
.ret { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; }
.ret.chosen { border-color: var(--gold); background: rgba(255,192,97,.07);
  box-shadow: 0 0 0 1px rgba(255,192,97,.32); }
.ret-rec { position: absolute; top: -1px; right: 16px; background: var(--grad); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 0 0 9px 9px; }
.ret h4 { font-size: 1.05rem; padding-right: 90px; }
.ret-route { font-size: 13px; color: var(--text); margin: 8px 0 0; font-weight: 600; }
.ret-meta { font-size: 12px; color: var(--dim); margin: 4px 0 0; }
.ret-pro, .ret-con { font-size: 13px; color: var(--muted); margin: 11px 0 0; }
.ret-pro strong { color: var(--ours); } .ret-con strong { color: var(--warn); }
.ret-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ret-price { font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.ret-price em { font-size: 11px; color: var(--dim); font-style: normal; font-weight: 500; margin-left: 6px; }
.fineprint { font-size: 12px; color: var(--dim); margin-top: 20px; max-width: 74ch; }

/* Practical -------------------------------------------------------- */
.pracs { display: grid; gap: 9px; }
.prac { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 4px 16px; }
.prac summary { cursor: pointer; font-weight: 650; font-size: 14.5px; padding: 12px 0; list-style: none; }
.prac summary::-webkit-details-marker { display: none; }
.prac summary::before { content: '+'; display: inline-block; width: 18px; color: var(--gold); font-weight: 700; }
.prac[open] summary::before { content: '−'; }
.prac p { font-size: 13.8px; color: var(--muted); margin: 0 0 14px; padding-left: 18px; max-width: 76ch; }

/* Footer ----------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0 0; }
.foot p { font-size: 13px; color: var(--muted); max-width: 78ch; }
.foot-src { font-size: 11.5px; color: var(--dim); }
.foot .badge { font-size: 9.5px; }

/* ------------------------------------------------------------------ */
/* Edit mode                                                           */
/* ------------------------------------------------------------------ */

.ed { outline: none; }
body.editing .ed { border-bottom: 1px dotted rgba(47,212,196,.55); cursor: text;
  padding: 0 1px; border-radius: 2px; transition: background .15s; }
body.editing .ed:hover { background: rgba(47,212,196,.09); }
body.editing .ed:focus { background: rgba(47,212,196,.16); border-bottom-color: var(--ours);
  box-shadow: 0 0 0 3px rgba(47,212,196,.13); }
body.editing .notes { border-color: rgba(47,212,196,.4); }
body.editing::before { content: 'Editing — changes save automatically'; position: fixed; bottom: 0;
  left: 0; right: 0; z-index: 80; background: var(--ours); color: #05201d; text-align: center;
  font-size: 11.5px; font-weight: 700; padding: 6px; letter-spacing: .04em; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 22px); z-index: 90;
  background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 700; padding: 9px 20px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #ff6b6b; color: #fff; }

/* ------------------------------------------------------------------ */
/* Larger screens                                                      */
/* ------------------------------------------------------------------ */

@media (min-width: 700px) {
  .wrap { padding: 0 26px 110px; }
  .card { padding: 36px 34px; }
  .leg-hero { min-height: 460px; }
  .leg-hero-text { padding: 38px 34px; }
  .gallery img { flex: 0 0 42%; height: 250px; }
  .move { grid-template-columns: auto 1fr auto; }
  .move-right { grid-column: auto; border-top: 0; padding-top: 0; margin-top: 0;
    flex-direction: column; align-items: flex-end; gap: 7px; min-width: 130px; }
  .stays { grid-template-columns: repeat(3, 1fr); }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .rets { grid-template-columns: repeat(2, 1fr); }
  .budget-grid { grid-template-columns: 1.5fr 1fr; }
  .tools { padding-bottom: 13px; }
}

@media (min-width: 1040px) {
  .acts { grid-template-columns: repeat(3, 1fr); }
  .rets { grid-template-columns: repeat(4, 1fr); }
  .gallery img { flex: 0 0 31%; height: 270px; }
  .hero-flight { display: flex; justify-content: flex-end; }
}

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

/* ------------------------------------------------------------------ */
/* Print / PDF                                                         */
/* ------------------------------------------------------------------ */

@media print {
  :root { --text: #111; --muted: #444; --dim: #666; }
  body { background: #fff; color: #111; }
  .toolbar, .stay-pick, .del, .btn, .tick input, #toast, body.editing::before { display: none !important; }
  .hero { min-height: auto; page-break-after: always; }
  .hero-img { opacity: 1 !important; }
  .card, .move, .stay, .act, .ret, .prac { border-color: #ccc; background: #fff; break-inside: avoid; }
  .leg { page-break-before: always; }
  .acts, .stays, .rets { grid-template-columns: repeat(2, 1fr); }
  .hero h1, .bt-big { -webkit-text-fill-color: #111; color: #111; }
}

/* ------------------------------------------------------------------ */
/* Search, undo and save state                                         */
/* ------------------------------------------------------------------ */

.search { display: flex; align-items: center; gap: 7px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; min-width: 190px; flex: 1 1 190px; }
.search span { color: var(--dim); font-size: 15px; }
.search input { background: none; border: 0; color: var(--text); font: inherit; font-size: 13px;
  padding: 8px 0; width: 100%; outline: none; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }

.savestate { font-size: 11.5px; color: var(--dim); white-space: nowrap; display: inline-flex;
  align-items: center; gap: 5px; }
.savestate::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.savestate.saving { color: var(--gold); }
.savestate.saved { color: var(--ours); }
.savestate.failed { color: #ff6b6b; }

.searchnote { margin: 0; padding: 0 16px 10px; font-size: 12px; color: var(--gold); }

.btn[disabled] { opacity: .35; pointer-events: none; }

.kind { font-size: 9px; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px;
  border: 1px solid currentColor; }
.k-hotel { color: #7ee787; }
.k-resort { color: var(--muted); }
.k-cruise { color: var(--ellie); }
.k-other { color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Profile gate                                                        */
/* ------------------------------------------------------------------ */

.gate { position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 40px 20px; overflow: hidden; }
.gate-bg { position: absolute; inset: 0; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; }
.gate-scrim { position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 45%, rgba(7,8,12,.82) 0%, rgba(7,8,12,.95) 70%); }
.gate-body { position: relative; z-index: 2; max-width: 760px; width: 100%; text-align: center; }
.gate-body h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px; }
.gate-sub { color: #c8cfdd; font-size: clamp(.95rem, 3vw, 1.08rem); margin: 0 auto;
  max-width: 52ch; }

.gate-cards { display: grid; gap: 12px; margin: 30px 0 24px; }
.gate-card { display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: rgba(10,12,18,.72); backdrop-filter: blur(18px); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 24px 18px; cursor: pointer; font: inherit; color: var(--text);
  transition: .18s; }
.gate-card:hover { border-color: var(--text); transform: translateY(-3px); background: rgba(20,24,34,.85); }
.gate-card:focus-visible { outline: 2px solid var(--ours); outline-offset: 3px; }
.gate-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; font-weight: 800; color: #08090d; background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.gate-avatar.sm { width: 24px; height: 24px; font-size: 11px; box-shadow: none; }
.gate-name { font-size: 1.1rem; font-weight: 700; }
.gate-blurb { font-size: 12.5px; color: var(--muted); max-width: 26ch; }
.gate-note { font-size: 12px; color: var(--dim); max-width: 62ch; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: 18px; }
.gate-note strong { color: var(--warn); }

.whoami { display: inline-flex; align-items: center; gap: 7px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 13px 4px 5px;
  font: inherit; font-size: 12.5px; font-weight: 650; color: var(--text); cursor: pointer; }
.whoami:hover { background: var(--surface-2); }

/* ------------------------------------------------------------------ */
/* Add a hotel                                                         */
/* ------------------------------------------------------------------ */

.addform { display: grid; gap: 12px; align-items: end; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--muted); }
.fld select, .fld input { background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: 14px;
  padding: 11px 12px; width: 100%; }
.fld select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.fld select option { background: #12141d; color: var(--text); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--ours); }
.fld input::placeholder { color: var(--dim); }

.addhint { font-size: 12.5px; color: var(--dim); margin: 14px 0 0; }
.addhint.good { color: var(--ours); }
.addhint.bad { color: #ff6b6b; }

/* ------------------------------------------------------------------ */
/* Compare hotels table                                                */
/* ------------------------------------------------------------------ */

.compare-head { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 18px; }
.compare-head .fld { flex: 1 1 240px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.ctable { border-collapse: collapse; width: 100%; min-width: 780px; font-size: 13.5px; }
.ctable th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--dim); font-weight: 700; padding: 13px 14px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.28); white-space: nowrap; position: sticky; top: 0; }
.ctable td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable tbody tr:hover { background: var(--surface); }
.ctable tr.is-picked { background: rgba(255,192,97,.08); }
.ctable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctable .strong { font-weight: 700; font-size: 15px; }
.ct-name { display: block; font-weight: 650; }
.ct-area { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.ct-added { display: inline-block; font-size: 10px; color: var(--ours); margin-top: 4px;
  border: 1px solid rgba(47,212,196,.35); border-radius: 999px; padding: 1px 8px; }
.ct-tier { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ct-links { white-space: nowrap; }
.ct-links a { font-size: 12px; color: var(--ours); text-decoration: none; margin-right: 10px;
  font-weight: 650; }
.ct-links a:hover { text-decoration: underline; }
.ct-pick { background: none; border: 0; color: var(--dim); font-size: 19px; cursor: pointer;
  padding: 2px 6px; border-radius: 7px; line-height: 1; }
.ct-pick:hover { color: var(--gold); background: rgba(255,192,97,.1); }
.ct-pick.on { color: var(--gold); }

@media (min-width: 700px) {
  .gate-cards { grid-template-columns: repeat(3, 1fr); }
  .addform { grid-template-columns: 1fr 1.6fr .8fr auto; }
}

/* ------------------------------------------------------------------ */
/* Booked: the alternatives fold away                                  */
/* ------------------------------------------------------------------ */

.stay-buttons { display: flex; gap: 8px; margin-top: 13px; }
.stay-buttons .stay-pick { margin-top: 0; flex: 1 1 auto; }
.stay-book { flex: 0 0 auto; background: none; border: 1px dashed var(--line-2);
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 14px;
  border-radius: 999px; cursor: pointer; transition: .15s; white-space: nowrap; }
.stay-book:hover { border-color: var(--ours); color: var(--ours); }
.stay-book.on { border-style: solid; border-color: var(--ours); color: #05201d;
  background: var(--ours); }

/* A settled stop reads as done rather than as a shortlist. */
.block.is-settled .stays { grid-template-columns: 1fr; }
.block.is-settled .stay { border-color: rgba(47,212,196,.45); }

.ctable tr.is-booked { background: var(--ours-dim); }
.ct-booked { display: inline-block; font-size: 10px; font-weight: 700; color: #05201d;
  background: var(--ours); border-radius: 999px; padding: 1px 8px; margin-top: 4px; }

@media (min-width: 700px) {
  .block.is-settled .stays { grid-template-columns: minmax(0, 520px); }
}

/* Sign-in form ------------------------------------------------------ */
.gate-form { display: flex; gap: 10px; align-items: flex-end; justify-content: center;
  flex-wrap: wrap; margin: 28px 0 8px; }
.gate-form .fld { flex: 0 1 260px; text-align: left; }
.gate-form .fld > span { color: var(--muted); }
.gate-form input { background: rgba(10,12,18,.8); border-color: var(--line-2); }
.gate-form input:focus { border-color: var(--ours); box-shadow: 0 0 0 3px rgba(47,212,196,.16); }
.gate-form .btn { padding: 12px 24px; }
.gate-err { color: #ff6b6b; font-size: 13px; margin: 4px 0 18px; font-weight: 600; }
.gate-note code { background: var(--surface-2); border-radius: 5px; padding: 1px 6px;
  font-size: 11px; color: var(--gold); }
.whoami em { font-style: normal; color: var(--dim); font-size: 11px; }

/* ------------------------------------------------------------------ */
/* Sync status + conflict                                              */
/* ------------------------------------------------------------------ */

.syncchip { font-size: 11.5px; font-weight: 650; color: var(--dim); white-space: nowrap;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); }
.syncchip.s-synced { color: var(--ours); border-color: rgba(47,212,196,.35); }
.syncchip.s-syncing { color: var(--gold); border-color: rgba(255,192,97,.35); }
.syncchip.s-offline { color: var(--warn); border-color: rgba(255,176,32,.4); }
.syncchip.s-conflict { color: #ff6b6b; border-color: rgba(255,107,107,.45); }
.syncchip.s-readonly { color: var(--gold); border-color: rgba(255,192,97,.3); }

.conflict { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  max-width: 560px; margin: 0 auto; background: #17111a; border: 1px solid rgba(255,107,107,.5);
  border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.conflict p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.conflict strong { color: var(--text); }
.conflict-actions { display: flex; gap: 9px; flex-wrap: wrap; }
