/* Tripfitly customer site. Light theme only, like most commercial travel sites. */
:root {
  --bg-canvas: #FFFFFF; --bg-surface: #FFFFFF; --bg-subtle: #F4F6F5; --bg-muted: #E9EDEB; --bg-segment: #EEF1F0; --bg-panel: #F2F6F5;
  --text-primary: #16201D; --text-body: #39423F; --text-muted: #5F6965; --text-on-brand: #FFFFFF; --text-link: #0E6B67;
  --brand: #0E6B67; --brand-hover: #0B5753; --brand-soft: #E5F2F0; --border: #E2E7E5; --border-strong: #CBD3D0; --border-brand-soft: #BFDCD8;
  --flight: #2F6FA3; --flight-soft: #EAF2F9; --hotel: #0E6B67; --fun: #E0A93B; --fun-strong: #A9741C; --points: #E2846B; --food: #8A63C7; --food-soft: #F3EEFB;
  --points-text: #B0442D; --points-soft: #FBEDE8; --points-subtle: #FDF6F3;
  --warn-bg: #FDF5E3; --warn-border: #F0DCA8; --warn-text: #6B4E12; --warn-strong: #8A6416;
  --danger-bg: #FBE9E5; --danger-border: #EDB9AC; --danger-text: #7A2C1E;
  --track: #DCE2DF; --off: #C9D1CE;
  --hero-best: linear-gradient(135deg, #DDF0EC 0%, #9FD3C9 55%, #4FA89A 100%);
  --hero-value: linear-gradient(135deg, #E3EEF8 0%, #A9CBE8 55%, #5E97C6 100%);
  --hero-cash: linear-gradient(135deg, #FCEBDD 0%, #F4BFA3 55%, #E2846B 100%);
  --hero-city: linear-gradient(120deg, #FCE6CF 0%, #F2B39A 45%, #8DB7D6 100%);
  --shadow-sm: 0 1px 2px rgba(22, 32, 29, 0.06);
  --shadow: 0 1px 2px rgba(22, 32, 29, 0.05), 0 6px 20px rgba(22, 32, 29, 0.07);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-canvas); color: var(--text-primary);
  font-size: 15px; line-height: 1.4; min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--text-link); text-decoration: none; }
.num, .big, .mid { font-variant-numeric: tabular-nums; }
h1 { font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-weight: 700; font-size: 16px; }
.big { font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.mid { font-weight: 700; font-size: 20px; }
.sm { font-size: 13px; } .xs { font-size: 12px; } .b { font-weight: 700; } .muted { color: var(--text-muted); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- layout ---------- */
.app { max-width: 1280px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 64px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text-primary); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #FFFFFF; }
.topnav { display: none; gap: 24px; font-weight: 600; }
.topnav a { color: var(--text-muted); } .topnav a.on { color: var(--text-primary); }
.main { flex: 1; padding: 0 16px 24px; }
.page { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; background: var(--bg-surface); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text-muted); min-width: 64px; }
.tabbar a.on { color: var(--brand); }

@media (min-width: 960px) {
  .topbar { height: 76px; padding: 0 40px; }
  .topnav { display: flex; }
  .main { padding: 0 40px 24px; }
  .tabbar { display: none; }
  .page.wide { max-width: none; }
}

/* ---------- primitives ---------- */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.btn { height: 48px; border-radius: 12px; background: var(--brand); color: var(--text-on-brand); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; width: 100%; transition: transform .08s, opacity .15s; }
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(0.98); }
.btn.sec { background: var(--bg-surface); color: var(--text-link); border: 1.5px solid var(--border-strong); }
.btn.sec:hover { background: var(--bg-subtle); }
.btn.small { height: 40px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.icon-btn { width: 40px; height: 40px; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; }
.circle { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13px; }
.chip { height: 38px; border-radius: 19px; background: var(--bg-surface); border: 1px solid var(--border-strong); padding: 0 14px;
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--text-primary); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.badge { height: 28px; border-radius: 14px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; background: var(--bg-surface); }
.b-best { color: var(--brand); } .b-value { color: var(--flight); } .b-cash { color: var(--points-text); }
.pill { height: 28px; border-radius: 14px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.pts { background: var(--points-soft); color: var(--points-text); }
.pill.ok { background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: var(--warn-bg); color: var(--warn-strong); }
.note { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.lock { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-surface); display: grid; place-items: center; color: var(--text-muted); flex-shrink: 0; }
.lock.on { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-surface); }

/* budget bar */
.bar { display: flex; height: 20px; border-radius: 10px; overflow: hidden; background: var(--bg-muted); gap: 2px; }
.bar.thin { height: 14px; border-radius: 7px; }
.bar > i { display: block; height: 100%; transition: width .35s ease; }
.f { background: var(--flight); } .h { background: var(--hotel); } .a { background: var(--fun); } .p { background: var(--points); } .fd { background: var(--food); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }

/* ---------- describe ---------- */
.hero { border-radius: 20px; background: var(--hero-city); color: #16201D; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.field { min-height: 56px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; position: relative; }
.field .circle { width: 36px; height: 36px; }
.field select, .field input { border: none; background: transparent; font-size: 16px; font-weight: 600; width: 100%; outline: none; padding: 0; appearance: none; -webkit-appearance: none; }
.field input[type=date] { font-size: 15px; min-width: 0; flex: 1; }
.field .row { min-width: 0; }
.field select { min-width: 0; flex: 0 1 auto; width: auto; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 28px; height: 28px; border-radius: 14px; border: 1px solid var(--border-strong); font-size: 16px; font-weight: 700; line-height: 1; }
.stepper button:hover { border-color: var(--text-primary); }
input[type=range] { width: 100%; height: 32px; -webkit-appearance: none; appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--brand) var(--fill, 50%), var(--track) var(--fill, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 12px; background: var(--bg-surface); border: 2px solid var(--brand); box-shadow: var(--shadow-sm); margin-top: -9px; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--track); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 11px; background: var(--bg-surface); border: 2px solid var(--brand); }

.hero-panel { background: var(--bg-panel); border-radius: 20px; padding: 28px 16px 20px; margin: 16px -4px 0; display: flex; flex-direction: column; gap: 18px; }
.hero-panel h1 span { color: var(--brand); }
.lead { font-size: 16px; color: var(--text-muted); max-width: 560px; }
.search { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.seg { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 60px; border-bottom: 1px solid var(--border); min-width: 0; }
.seg:focus-within { background: var(--bg-subtle); }
.seg .ic { color: var(--text-muted); flex-shrink: 0; display: grid; }
.seg .label { font-size: 11px; }
.seg select, .seg input { border: none; background: transparent; font-size: 15px; font-weight: 600; outline: none; padding: 0; appearance: none; -webkit-appearance: none; min-width: 0; width: 100%; color: var(--text-primary); }
button.seg { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border-left: 0; border-top: 0; border-right: 0; cursor: pointer; }
button.seg:hover { background: var(--bg-subtle); }
.date-val { font-size: 15px; font-weight: 600; white-space: nowrap; }
.seg .money { display: flex; align-items: center; font-weight: 600; font-size: 15px; }
.seg .money input { width: 90px; }
.search .find { margin: 10px; width: auto; }
.refine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.refine .label { margin-right: 4px; }
.pts-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--points-soft); color: var(--points-text); font-weight: 700; font-size: 14px; }
.section { padding: 40px 0 0; display: flex; flex-direction: column; gap: 18px; }
.section > h2 { font-size: 22px; }
.trust { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trust .card { flex-direction: row; gap: 14px; align-items: flex-start; }
.trust .circle { width: 44px; height: 44px; border-radius: 12px; }
.steps-how { display: grid; grid-template-columns: 1fr; gap: 12px; }
.steps-how .card { gap: 8px; }
.steps-how .n { width: 28px; height: 28px; border-radius: 14px; background: var(--brand); color: #FFFFFF; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 16px 120px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: var(--text-muted); }
.footer .row a { color: var(--text-body); font-weight: 600; }
.footer p { max-width: 760px; }

/* Search bar: stacked on phones, two columns on tablets and small laptops, one row only when
   there's room for the place names and dates to show in full. */
@media (min-width: 640px) and (max-width: 1199px) {
  .search { display: grid; grid-template-columns: 1fr 1fr; }
  .seg:nth-child(odd) { border-right: 1px solid var(--border); }
  .seg:nth-child(5) { border-bottom: none; }
}
@media (min-width: 1200px) {
  .search { flex-direction: row; align-items: stretch; }
  .seg { border-bottom: none; border-right: 1px solid var(--border); flex: 1; }
  .seg.route { flex: 1.3; } .seg.dates { flex: 0 0 200px; } .seg.small { flex: 0 0 auto; }
  .search .find { margin: 8px; padding: 0 28px; height: auto; }
}

@media (min-width: 960px) {
  .describe .page { max-width: none; }
  .hero-panel { margin: 24px 0 0; padding: 48px 48px 32px; gap: 22px; }
  .hero-panel h1 { font-size: 46px; max-width: 760px; }
  .lead { font-size: 18px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .steps-how { grid-template-columns: repeat(3, 1fr); }
  .footer { padding: 32px 40px 40px; }
}

/* ---------- plans ---------- */
.results-head { display: flex; align-items: center; gap: 10px; padding-top: 16px; }
.summary { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); color: var(--text-primary); }
.summary > svg { color: var(--brand); flex-shrink: 0; }
.summary b, .summary .xs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary .edit { font-weight: 700; font-size: 14px; color: var(--text-link); }
.results-head .adjust { width: auto; height: 48px; border-radius: 24px; padding: 0 16px; }
.results-title { font-size: 24px; }
@media (max-width: 959px) { .results-head .adjust span, .summary .edit { display: none; } .results-head .adjust { width: 48px; padding: 0; } }
@media (min-width: 960px) { .results-head { max-width: 760px; } .results-title { font-size: 32px; } }
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trip-head .title { text-align: center; }
.compare { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.cmp { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.cmp .name { width: 78px; font-size: 13px; font-weight: 700; }
.cmp .amt { width: 62px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp .bar { flex: 1; }
.plans { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.plans::-webkit-scrollbar { display: none; }
.plan { flex: 0 0 100%; scroll-snap-align: center; padding: 0; gap: 0; overflow: hidden; }
.plan.top { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .hero { height: 128px; border-radius: 0; color: #16201D; }
.plan .hero .badge { position: absolute; top: 14px; left: 14px; }
/* Badges on photos keep light colours in both themes */
.hero .badge { background: #FFFFFF; }
.hero .b-best { color: #0F5C5A; } .hero .b-value { color: #2E6F95; } .hero .b-cash { color: #A8432F; }
.plan .hero .lock { position: absolute; top: 12px; right: 12px; border: none; background: rgba(255, 255, 255, 0.92); color: #16201D; }
.plan .hero .lock.on { background: #1F2421; color: #FFFFFF; }
.plan .body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tiles { display: flex; gap: 8px; }
.tile { flex: 1; background: var(--bg-subtle); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tile .v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: var(--off); padding: 0; transition: width .2s; }
.dots button.on { width: 24px; background: var(--brand); }
.same { border-style: dashed; justify-content: center; }
.alts .alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bg-muted); font-size: 14px; }
.alts .alt:last-child { border-bottom: none; }
.updating { opacity: 0.55; transition: opacity .15s; }

@media (min-width: 960px) {
  .plans { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .plans-dots { display: none; }
  .plans-page .compare { display: none; }
}

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 24, 22, 0.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg-canvas); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 20px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); align-self: center; }
.budget-dial { align-items: center; gap: 6px; padding: 20px 16px; }
.budget-dial .row { gap: 18px; }
.budget-dial .big { font-size: 46px; }
.choice { display: flex; gap: 8px; }
.choice button { flex: 1; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.choice button.on { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }
@media (min-width: 960px) { .scrim { align-items: center; } .sheet { border-radius: 28px; } }

/* ---------- solving ---------- */
.solving { min-height: 70vh; align-items: center; justify-content: center; gap: 28px; }
.spin { width: 110px; height: 110px; border-radius: 55px; border: 10px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prog { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; opacity: 0.4; transition: opacity .25s; }
.prog.done { opacity: 1; }
.check { width: 30px; height: 30px; border-radius: 15px; border: 2px solid var(--off); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.prog.done .check, .check.on { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

/* ---------- detail ---------- */
.detail-hero { height: 230px; margin: 0 -16px; border-radius: 0; padding: 18px 16px; }
.detail-hero .top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.detail-hero .icon-btn { background: rgba(255, 255, 255, 0.92); border: none; color: #16201D; }
.detail-hero { color: #16201D; }
.detail-hero h1 { color: #16201D; }
.pair-cards { display: flex; gap: 10px; }
.pair-cards .card { flex: 1; gap: 6px; padding: 14px; }
.steps { background: var(--points-subtle); border-color: var(--points-soft); flex-direction: row; justify-content: space-between; align-items: center; padding: 14px; }
.steps .step { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 64px; }
.steps .arrow { color: var(--points-text); }
.daytabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.daytab { min-width: 48px; height: 58px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.daytab.on { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.daytab.on .muted { color: inherit; opacity: 0.7; }
.timeline { display: flex; flex-direction: column; }
.stop { display: flex; gap: 12px; align-items: flex-start; }
.stop .rail { width: 44px; display: flex; flex-direction: column; align-items: center; }
.stop .line { width: 2px; height: 18px; background: var(--border); }
.go { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; padding: 2px 0 10px 56px; }
.detail-grid { display: flex; flex-direction: column; gap: 16px; }
.days-grid { display: none; }

@media (min-width: 960px) {
  .detail-hero { margin: 0; border-radius: 28px; height: 260px; padding: 32px; }
  .detail-hero h1 { font-size: 52px; }
  .detail-grid { flex-direction: row; align-items: flex-start; gap: 24px; }
  .detail-grid > .left { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
  .detail-grid > .right { flex: 1; min-width: 0; }
  .days-phone { display: none; }
  .days-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ---------- book / saved / points ---------- */
.task { display: flex; align-items: center; gap: 12px; }
.task .check { cursor: pointer; }
.progress { height: 8px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }
.thumb { width: 64px; height: 64px; border-radius: 16px; background: var(--hero-city); flex-shrink: 0; }
.prow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bg-muted); }
.prow:last-child { border-bottom: none; }
.prow input { width: 110px; text-align: right; font-weight: 700; font-size: 17px; background: var(--bg-subtle); border: 1px solid transparent; border-radius: 10px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.prow input:focus { outline: none; border-color: var(--brand); }
.worth { background: var(--brand); border-color: var(--brand); color: #FFFFFF; box-shadow: var(--shadow); }
.empty { align-items: center; text-align: center; padding: 32px 16px; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--text-primary); color: var(--bg-surface); padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 60; }
@media (min-width: 960px) { .toast { bottom: 32px; } }

/* ---------- brand and photos ---------- */
.brand img { display: block; }
.brand-accent { color: var(--brand); }
.hero-top { display: flex; gap: 32px; align-items: center; }
.hero-top > .col { flex: 1; }
.collage { display: none; }
.dest-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dest { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; padding: 0; text-align: left; }
.dest:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dest-photo { display: block; height: 170px; background: var(--bg-muted) center/cover no-repeat; }
.plan .hero { color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); height: 150px; }
.plan .hero .badge, .plan .hero .lock { text-shadow: none; }
.detail-hero, .detail-hero h1 { color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.detail-hero .badge, .detail-hero .icon-btn { text-shadow: none; }
.solve-photo { width: 100%; max-width: 420px; height: 150px; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 14px 16px; color: #FFFFFF; font-weight: 700; font-size: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
@media (min-width: 640px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .dest-grid { grid-template-columns: repeat(4, 1fr); }
  .collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 120px 120px; gap: 10px; width: 330px; flex-shrink: 0; }
  .collage span { border-radius: 16px; background: var(--bg-muted) center/cover no-repeat; box-shadow: var(--shadow); }
  .collage span:first-child { grid-row: span 2; }
}

/* booking links */
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.soldout { align-self: flex-start; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.soldout:hover { color: var(--brand); }
.soldout:disabled { opacity: 0.5; cursor: progress; }
.links .btn { width: auto; flex: 1 1 auto; padding: 0 14px; }
.places { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.places a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--bg-muted); font-size: 14px; font-weight: 600; color: var(--text-link); }
.places a:last-child { border-bottom: none; }

/* ---------- date picker ---------- */
.sheet.cal { max-width: 720px; gap: 16px; }
.cal-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-pick > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 12px; min-width: 120px; }
.cal-pick > div.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cal-pick > div.wait b { color: var(--text-muted); font-weight: 600; }
.cal-nav { display: flex; align-items: flex-start; gap: 8px; }
.cal-nav .icon-btn:disabled { opacity: 0.3; cursor: default; }
.months { flex: 1; display: grid; grid-template-columns: 1fr; gap: 24px; min-width: 0; }
.months .month:nth-child(2) { display: none; }
.month-name { display: block; text-align: center; margin: 6px 0 10px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.days .wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-muted); padding-bottom: 4px; }
.day { height: 42px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text-primary); cursor: pointer; border-radius: 21px; position: relative; }
.day:hover:not(:disabled) { background: var(--bg-subtle); }
.day:disabled { color: var(--text-muted); opacity: 0.35; cursor: default; text-decoration: line-through; }
.day.today { box-shadow: inset 0 0 0 1px var(--border-strong); }
.day.in { background: var(--brand-soft); border-radius: 0; color: var(--brand); }
.day.start, .day.end { background: var(--brand); color: #FFFFFF; }
.day.start:hover, .day.end:hover { background: var(--brand); }
@media (min-width: 640px) {
  .months { grid-template-columns: 1fr 1fr; }
  .months .month:nth-child(2) { display: block; }
}

/* ---------- email gate ---------- */
.sheet.gate { max-width: 460px; gap: 14px; }
.gate-trip { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-surface); }
.gate-trip .thumb { width: 52px; height: 52px; border-radius: 12px; }
.input { height: 52px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--bg-surface); color: var(--text-primary); width: 100%; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.bad { border-color: var(--warn-strong); }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#gate-err:empty { display: none; }

/* ---------- privacy ---------- */
.prose { max-width: 680px; gap: 12px; }
.prose h2 { font-size: 19px; margin-top: 12px; }
.prose p { color: var(--text-body); line-height: 1.6; }

/* ---------- food ---------- */
.food-card { gap: 12px; }
.meals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.meals > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg-subtle); min-width: 0; }
.meals .xs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkish { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--text-link); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .meals { grid-template-columns: repeat(2, 1fr); } }
.dish { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--fun-strong); font-size: 13px; font-weight: 600; line-height: 1.35; }
.dish svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.dish .xs { color: var(--fun-strong); opacity: 0.8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-right: 2px; }
.plans-page .note { display: flex; align-items: flex-start; gap: 10px; }
.plans-page .note svg { flex-shrink: 0; margin-top: 1px; }
.plans-page .note .linkish { display: inline; font-size: inherit; color: inherit; }
.note.ok-note { background: var(--points-soft); border-color: transparent; color: var(--points-text); }
