/* Thân cafe & stay — site styles. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text-brand); text-underline-offset: 3px; }
a:hover { color: var(--action-primary-hover); }
::selection { background: var(--peach-200); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[hidden] { display: none !important; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(16px, var(--gutter));
  padding-right: max(16px, var(--gutter));
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-brand);
}
.display, .h1, .h2, .h4 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
.display { font-size: clamp(52px, 7vw, 84px); line-height: 1.02; margin: 18px 0 20px; }
.h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.08; margin: 10px 0 16px; }
.h2 { font-size: clamp(36px, 4.4vw, 46px); line-height: 1.1; margin: 10px 0 0; }
.h4 { font-size: 25px; line-height: 1.15; margin: 0; }
.lead { font-size: 19px; font-weight: 300; line-height: 1.55; color: var(--text-secondary); max-width: 440px; margin: 0; }
.muted { color: var(--text-muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font: 600 13px var(--font-text); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--action-primary); color: var(--text-on-brand); border: none; }
.btn-primary:hover { background: var(--action-primary-hover); color: var(--text-on-brand); }
.btn-primary:active { background: var(--action-primary-press); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-subtle); color: var(--text-primary); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 14px; }
.btn-sm { height: 40px; padding: 0 18px; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg-header);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark b { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: 0.04em; color: var(--text-brand); }
.wordmark span { font-size: 12px; font-weight: 300; color: var(--text-muted); margin-top: 2px; }
.main-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; flex: 1; }
.main-nav a { color: var(--text-primary); text-decoration: none; }
.main-nav a:hover { color: var(--text-brand); }
.lang-switch { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); }
.lang-switch button {
  height: 26px; padding: 0 10px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  font: 600 12px var(--font-text); letter-spacing: 0.06em; background: transparent; color: var(--text-secondary);
}
.lang-switch button[aria-pressed="true"] { background: var(--chip-selected-bg); color: var(--chip-selected-fg); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: var(--bg-raised); color: var(--text-primary); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; gap: 12px 16px; }
  .wordmark { margin-right: auto; }
  .menu-toggle { display: inline-flex; }
  .main-nav { order: 5; flex-basis: 100%; flex-direction: column; gap: 4px; display: none; padding: 8px 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .header-cta { display: none; }
}

/* ---------- Placeholder photo ---------- */
.photo {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--bg-subtle) 0 10px, var(--border-subtle) 10px 11px);
  display: flex; align-items: flex-end; padding: 14px;
  font: 12px var(--font-mono); color: var(--text-muted);
  border-radius: var(--radius-md);
}

/* ---------- Home: hero ---------- */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 88px; }
.hero-photo { height: 460px; border-radius: var(--radius-arch); justify-content: center; padding: 20px; }
.searchbar {
  position: relative; margin-top: -44px;
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; padding: 10px;
  background: var(--bg-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-3);
}
.searchbar .field { flex: 1; min-width: 160px; display: flex; gap: 12px; align-items: center; padding: 0 20px; }
.searchbar .sep { width: 1px; align-self: stretch; background: var(--border-subtle); }
.searchbar label, .field-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.searchbar select, .searchbar input {
  font: 500 15px var(--font-text); color: var(--text-primary); background: transparent;
  border: none; padding: 2px 0; width: 100%; min-width: 0;
}
.searchbar select:focus-visible, .searchbar input:focus-visible { outline: 2px solid var(--focus-ring); }
.icon { width: 18px; height: 18px; flex: none; color: var(--text-brand); }

@media (max-width: 760px) {
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { height: 300px; }
  .searchbar { margin-top: 24px; }
  .searchbar .sep { display: none; }
  .searchbar .field { flex-basis: 100%; padding: 8px 10px; }
  .searchbar .btn { width: 100%; }
}

/* ---------- Home: values ---------- */
.values { padding-top: 64px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value { padding: 8px 24px; text-align: center; border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.value:first-child { border-left: none; }
.value .icon { width: 26px; height: 26px; }
.value h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.value p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); max-width: 220px; }
@media (max-width: 560px) { .value { border-left: none; border-top: 1px solid var(--border-subtle); padding: 20px 8px; } .value:first-child { border-top: none; } }

/* ---------- Tours list ---------- */
.tours { padding-top: 56px; padding-bottom: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: var(--radius-pill); cursor: pointer;
  font: 500 13px var(--font-text); background: var(--bg-raised); color: var(--text-primary);
  border: 1px solid var(--border-default); transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--chip-selected-bg); color: var(--chip-selected-fg); border-color: var(--chip-selected-bg); }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.tour-card {
  display: flex; flex-direction: column; background: var(--bg-raised); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tour-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); color: inherit; }
.tour-card .photo { aspect-ratio: 4 / 3; border-radius: 0; font-size: 11px; padding: 10px 12px; }
.badge-hl {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--cream-50); font: 600 11px var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta-700);
}
.tour-card .body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.tour-card .cat { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-brand); }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle); display: flex; align-items: baseline; justify-content: space-between; }
.price { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.per { font-size: 12px; color: var(--text-muted); }
.arrow { color: var(--text-brand); font-size: 18px; }
.empty { padding: 40px; text-align: center; color: var(--text-muted); background: var(--bg-subtle); border-radius: var(--radius-md); }

/* ---------- How it works (brand band) ---------- */
.band { background: var(--bg-brand); color: var(--text-on-brand); }
.band .container { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.band .eyebrow { color: var(--peach-100); }
.band .h2 { color: var(--cream-50); }
.step { border-top: 1px solid rgba(245, 183, 134, 0.45); padding-top: 18px; }
.step .n { font-family: var(--font-display); font-size: 40px; color: var(--peach-300); line-height: 1; }
.step h3 { font-size: 18px; font-weight: 600; margin: 10px 0 6px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--peach-100); margin: 0; }

/* ---------- Policies ---------- */
.policies { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.policy-list { display: flex; flex-direction: column; gap: 14px; }
.note-box { padding: 18px 20px; background: var(--bg-subtle); border-radius: var(--radius-md); font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.note-box strong { color: var(--text-primary); }

/* ---------- Tour detail ---------- */
.detail { padding-top: 32px; padding-bottom: 80px; }
.crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-bottom: 36px; }
.gallery .main { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; }
  .gallery .main { grid-column: span 2; grid-row: auto; }
  .gallery .wide { display: none; }
}
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.pill { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: var(--bg-subtle); font-size: 13px; }
.pill.ok { background: var(--success-50); color: var(--success-600); font-weight: 500; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 22px; }
.tabs button {
  padding: 12px 0; margin-bottom: -1px; background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font: 500 14px var(--font-text); color: var(--text-muted);
}
.tabs button[aria-selected="true"] { border-bottom-color: var(--text-brand); color: var(--text-primary); }
.tab-panel { max-width: 640px; }
.tab-panel p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.tab-panel p.big { font-size: 18px; font-weight: 300; line-height: 1.65; margin-bottom: 20px; }
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; font-size: 15px; list-style: none; padding: 0; margin: 0; }
.included li { display: flex; gap: 10px; }
.included li::before { content: "✓"; color: var(--text-brand); }

.summary {
  position: sticky; top: 96px; background: var(--bg-raised); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.summary .big { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box { padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); min-width: 0; }
.box input[type="date"] { font: 500 15px var(--font-text); color: var(--text-primary); background: transparent; border: none; padding: 0; width: 100%; }
.stepper { display: flex; align-items: center; justify-content: space-between; }
.stepper button { width: 32px; height: 32px; border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-brand); border-radius: var(--radius-sm); }
.stepper button:hover { background: var(--bg-subtle); }
.total { display: flex; justify-content: space-between; font-size: 15px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.total strong { font-variant-numeric: tabular-nums; }
.small-note { font-size: 13px; color: var(--text-muted); text-align: center; margin: 0; }

/* ---------- Booking form ---------- */
.book { padding-top: 40px; padding-bottom: 80px; }
.form-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f .lbl, .legend { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.f input, .f textarea {
  height: 46px; padding: 0 14px; font: 15px var(--font-text); color: var(--text-primary);
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-sm); outline: none; width: 100%;
}
.f textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: var(--text-muted); }
.f input:focus, .f textarea:focus { border-color: var(--terracotta-600); box-shadow: 0 0 0 3px var(--peach-200); }
.f.invalid input { border-color: var(--danger-600); }
.err { font-size: 13px; color: var(--danger-600); }
fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pay {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid var(--border-default); background: var(--bg-raised);
}
.pay input { position: absolute; opacity: 0; }
.pay .dot { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 10px; border: 1.5px solid var(--border-default); display: inline-flex; align-items: center; justify-content: center; }
.pay .dot::after { content: ""; width: 10px; height: 10px; border-radius: 5px; }
.pay .t { display: flex; flex-direction: column; gap: 2px; }
.pay .l { font-size: 15px; font-weight: 500; }
.pay .d { font-size: 13px; color: var(--text-muted); }
.pay:has(input:checked) { border-color: var(--terracotta-600); background: var(--terracotta-50); }
.pay:has(input:checked) .dot { border-color: var(--terracotta-600); }
.pay:has(input:checked) .dot::after { background: var(--terracotta-600); }
.pay:has(input:checked) .l { color: var(--ink-900); }
.pay:has(input:checked) .d { color: var(--ink-700); }
.pay:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 18px 20px;
  background: var(--bg-subtle); border-radius: var(--radius-md); font-size: 14px; line-height: 1.55; color: var(--text-secondary);
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--terracotta-600); }
.consent strong { color: var(--text-primary); }
.mini { padding: 0; overflow: hidden; gap: 0; }
.mini .photo { height: 140px; border-radius: 0; font-size: 11px; }
.mini .in { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Confirmation ---------- */
.done { max-width: 640px; margin: 0 auto; padding: 88px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.done .tick { width: 64px; height: 64px; border-radius: 32px; background: var(--peach-100); color: var(--terracotta-600); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.done p { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.status { display: inline-flex; gap: 8px; padding: 6px 14px; background: var(--warning-50); color: var(--warning-600); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-brand-deep); color: var(--peach-100); }
.site-footer .container.cols { padding-top: 64px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.site-footer .wm { font-family: var(--font-display); font-size: 40px; letter-spacing: 0.04em; color: var(--peach-300); line-height: 1; }
.site-footer .sub { font-size: 15px; font-weight: 300; color: var(--peach-200); }
.site-footer p { font-size: 14px; line-height: 1.6; margin: 18px 0 0; max-width: 260px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .h { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--peach-300); }
.site-footer a { color: var(--cream-50); text-decoration: none; }
.site-footer a:hover { color: var(--peach-300); }
.site-footer .legal { border-top: 1px solid rgba(245, 183, 134, 0.25); padding-top: 18px; padding-bottom: 28px; font-size: 12px; color: var(--peach-200); }

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