/* ==========================================================================
   ทริปสดใส — Design system (Modern OTA)
   1 Fonts · 2 Tokens · 3 Base · 4 Components · 5 Layout · 6 Cards · 7 Pages · 8 Responsive
   สีทั้งหมดอ้างอิง token ใน :root — หลีกเลี่ยงการใส่ค่าสีตรง ๆ ใน component
   ========================================================================== */

/* ============ 1 Fonts (IBM Plex Sans Thai, self-hosted) ============ */
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/IBMPlexSansThai-400-thai.woff2") format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/IBMPlexSansThai-400-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/IBMPlexSansThai-500-thai.woff2") format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/IBMPlexSansThai-500-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/IBMPlexSansThai-600-thai.woff2") format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/IBMPlexSansThai-600-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ 2 Tokens ============ */
:root {
  /* surfaces & text */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --fg: #0f1f33;
  --fg-2: #3d4e63;
  --muted: #5a6b80;
  --border: #e3e8ef;
  --border-strong: #cfd7e2;
  --input: #aab6c6;
  --input-hover: #7f8ea3;
  /* brand & semantic */
  --primary: #2b5ff0;
  --primary-hover: #1f4fd6;
  --primary-active: #1a45bd;
  --primary-soft: #eaf1ff;
  --primary-ink: #1747b5;
  --price: #bf400c;
  --deal: #c2410c;
  --deal-soft: #fff1e8;
  --success: #0f7a45;
  --success-soft: #e8f6ee;
  --warning: #9a4a00;
  --warning-soft: #fff3e0;
  --danger: #c4271b;
  --danger-soft: #fdeceb;
  --star: #d97706;
  --line-green: #06c755;
  --line-green-hover: #05b34c;
  --line-ink: #06331a;
  --line-soft: #e6f9ee;
  --line-deep: #067a37;
  /* inverse (dark surfaces: footer, EV band, estimator) */
  --inverse: #0f1f33;
  --inverse-fg: #ffffff;
  --inverse-muted: #a9b6c8;
  --inverse-soft: #c6d1df;
  --inverse-accent: #9dbbff;
  --accent-warm: #ffd08a;
  --accent-mint: #6ee7a0;
  --overlay: rgba(15, 31, 51, .55);
  --scrim: linear-gradient(180deg, rgba(15, 31, 51, 0) 35%, rgba(15, 31, 51, .85) 100%);
  --ring: 0 0 0 3px rgba(43, 95, 240, .25);

  /* typography */
  --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: clamp(22px, 2.3vw, 30px);
  --text-4xl: clamp(26px, 3.2vw, 40px);
  --text-hero: clamp(28px, 4.2vw, 52px);
  --lh-body: 1.65;
  --lh-head: 1.3;

  /* spacing (4-px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* elevation */
  --shadow-xs: 0 1px 2px rgba(15, 31, 51, .05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 31, 51, .10), 0 1px 2px rgba(15, 31, 51, .05);
  --shadow-md: 0 10px 28px -10px rgba(15, 31, 51, .20), 0 2px 4px rgba(15, 31, 51, .04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 31, 51, .28), 0 4px 8px rgba(15, 31, 51, .05);

  /* motion */
  --dur: .2s;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* layout */
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 68px;
}

/* ============ 3 Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg);
  font: 400 var(--text-base)/var(--lh-body) var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: var(--lh-head); margin: 0 0 .5em; color: var(--fg); letter-spacing: -.005em; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
svg { flex: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--fg); color: #fff; padding: 10px 18px; border-radius: var(--radius-md); transition: top var(--dur); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.req { color: var(--danger); margin-left: 2px; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }
.pb-0 { padding-bottom: 0 !important; }
.h-lg { font-size: var(--text-3xl); }
.h-sub { font-size: var(--text-lg); margin-top: var(--space-lg); }

/* ============ 4 Components ============ */
/* buttons: primary · ghost (secondary) · outline · white · line · link · icon */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-md);
  font: 500 15px/1.2 var(--font); white-space: nowrap; text-align: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--spin, #fff); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-ghost { --spin: var(--fg); background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-outline { --spin: var(--primary); background: var(--surface); color: var(--primary-ink); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-white { --spin: var(--fg); background: #fff; color: var(--fg); }
.btn-white:hover { background: var(--surface-3); }
.btn-line { --spin: var(--line-ink); background: var(--line-green); color: var(--line-ink); }
.btn-line:hover { background: var(--line-green-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; font: 500 14px var(--font); color: var(--primary-ink); }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--fg-2); transition: background-color var(--dur), color var(--dur); }
.icon-btn:hover { background: var(--surface-3); color: var(--fg); }
.icon-btn svg { width: 22px; height: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; vertical-align: middle; font: 500 15px var(--font); color: var(--primary-ink); white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* chips, badges, tags, labels */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: var(--radius-full);
  background: var(--surface-3); color: var(--fg-2); font: 500 13px/1.4 var(--font); white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip-primary { background: var(--primary-soft); color: var(--primary-ink); }
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-deal { background: var(--deal-soft); color: var(--deal); }
.chip-ink { background: var(--fg); color: #fff; }
.chip-white { background: rgba(255, 255, 255, .95); color: var(--fg); }
.chip-remove { min-height: 32px; cursor: pointer; }
.chip-remove:hover { background: var(--primary); color: #fff; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: var(--radius-sm); font: 600 12px/1.3 var(--font); }
.badge-deal { background: var(--deal); color: #fff; }
.tags-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; line-height: 1.5; color: var(--success); }
.tags-row li { display: inline-flex; align-items: center; gap: 4px; }
.tags-row svg { width: 14px; height: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 600 13px/1.4 var(--font); letter-spacing: .02em; color: var(--primary-ink); }
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow.on-dark { color: var(--inverse-accent); }

/* icon tile (one pattern, three sizes) */
.ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary); }
.ic svg { width: 22px; height: 22px; }
.ic-sm { width: 32px; height: 32px; }
.ic-sm svg { width: 18px; height: 18px; }
.ic-lg { width: 48px; height: 48px; border-radius: var(--radius-lg); }
.ic-lg svg { width: 24px; height: 24px; }
.ic-line { background: var(--line-soft); color: var(--line-deep); }

/* form controls */
.f-field {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 7px 12px 6px;
  background: var(--surface); border: 1px solid var(--input); border-radius: var(--radius-md);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.f-field:hover { border-color: var(--input-hover); }
.f-field:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.f-field:has([aria-invalid="true"]) { border-color: var(--danger); }
.f-field > span { display: flex; align-items: center; gap: 6px; font: 500 13px/1.4 var(--font); color: var(--muted); }
.f-field > span svg { width: 14px; height: 14px; color: var(--primary); }
.f-field select, .f-field input { width: 100%; min-width: 0; min-height: 28px; padding: 0; border: 0; outline: 0; background: none; font: 500 15px/1.4 var(--font); color: var(--fg); }
.f-field :focus-visible { outline: none; }
.f-dt { display: flex; gap: 8px; }
.f-dt input[type="date"] { flex: 1.4; }
.f-dt select { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font: 500 14px var(--font); color: var(--fg-2); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-md);
  background: var(--surface); color: var(--fg); font: 400 15px var(--font); outline: 0; transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 120px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.field :is(input, select, textarea):hover { border-color: var(--input-hover); }
.field :is(input, select, textarea):focus { border-color: var(--primary); box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field ::placeholder, .f-field ::placeholder { color: var(--muted); opacity: 1; }
.field-err { margin: 0; font-size: 14px; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-bottom: var(--space-md); }
.form-note { margin: -4px 0 var(--space-md); font-size: 14px; color: var(--muted); }
.select {
  height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--input); border-radius: var(--radius-md); cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat;
  appearance: none; -webkit-appearance: none; font: 500 14px var(--font); color: var(--fg);
}
.select:hover { border-color: var(--input-hover); }
.select:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

/* generic containers */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.card h2, .card h3 { font-size: var(--text-lg); margin-bottom: 12px; }
.card p { color: var(--fg-2); }
.note-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--primary-soft); color: var(--fg); font-size: 15px; }
.note-box > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--primary); }
.col-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: start; }
.inc-list, .checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks { margin: var(--space-md) 0 var(--space-lg); gap: 10px; }
.inc-list li, .checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.inc-list .ck, .inc-list .x, .checks .ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 3px; }
.inc-list .ck, .checks .ck { background: var(--success-soft); color: var(--success); }
.inc-list .x { background: var(--danger-soft); color: var(--danger); }
.inc-list svg, .checks svg { width: 13px; height: 13px; }
.link-chips, .sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a, .sr-chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border-strong); font: 500 14px var(--font); color: var(--fg-2);
  transition: border-color var(--dur), color var(--dur);
}
.link-chips a:hover, .sr-chips a:hover { border-color: var(--primary); color: var(--primary-ink); }

/* empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-state .ic { margin-bottom: 8px; }
.empty-state h3 { margin: 0; font-size: var(--text-lg); }
.empty-state p { margin: 0; max-width: 460px; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-md); }

/* FAQ accordion */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px;
  list-style: none; cursor: pointer; font: 500 16px/1.5 var(--font); color: var(--fg); transition: background-color var(--dur);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--dur); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq .faq-a { padding: 0 20px 16px; font-size: 15px; color: var(--fg-2); }
.faq .faq-a p { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--surface-2); font: 600 14px var(--font); color: var(--fg-2); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.data-table thead th:first-child { background: var(--surface-2); }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table .hl td { background: var(--deal-soft); }
.data-table td b { font-weight: 600; color: var(--price); }
.data-table td a { font-weight: 500; color: var(--primary-ink); }
.data-table td a:hover { text-decoration: underline; }
.data-table td small { color: var(--muted); }

/* booking card */
.book-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.bc-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--border); }
.bc-head small { display: block; font-size: 13px; color: var(--muted); }
.bc-price { margin: 0 0 6px; }
.bc-price b { font: 600 28px/1.2 var(--font); color: var(--price); }
.bc-price span { font-size: 14px; color: var(--muted); }
.bc-body { display: grid; gap: 10px; padding: 16px 20px 20px; }
.bc-row, .bc-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt-group { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.opt-group legend { padding: 0; margin-bottom: 6px; font: 600 14px var(--font); color: var(--fg); }
.opt { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; font-size: 14px; transition: border-color var(--dur), background-color var(--dur); }
.opt:hover { border-color: var(--border-strong); background: var(--surface-2); }
.opt input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--primary); }
.opt span { flex: 1; line-height: 1.45; }
.opt em { font: 500 14px var(--font); font-style: normal; color: var(--fg-2); white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.bc-sum { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; }
.bc-sum div { display: flex; justify-content: space-between; gap: 10px; }
.bc-sum div span:first-child { color: var(--muted); }
.bc-sum .disc { color: var(--success); }
.bc-sum .disc span:first-child { color: var(--success); }
.bc-total { display: flex; justify-content: space-between; align-items: baseline; font: 500 16px var(--font); }
.bc-total b { font-size: 26px; font-weight: 600; color: var(--price); }
.bc-foot { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 12px; background: var(--surface); border: 1px solid var(--input); border-radius: var(--radius-md); }
.qty-row > span { font: 500 13px var(--font); color: var(--muted); }
.qty-row b { display: block; font: 500 15px var(--font); color: var(--fg); }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-full); }
.qty button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--primary-ink); transition: background-color var(--dur); }
.qty button:hover { background: var(--primary-soft); }
.qty output { min-width: 24px; text-align: center; font: 600 16px var(--font); }

/* dialogs */
.overlay { position: fixed; inset: 0; z-index: 80; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur); }
.overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 85; width: min(520px, 100% - 24px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  transform: translate(-50%, -48%) scale(.98); opacity: 0; visibility: hidden; transition: transform var(--dur) var(--ease), opacity var(--dur), visibility var(--dur);
}
.modal.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: var(--text-xl); }
.modal-body { padding: 20px 24px 24px; }
.bk-ref { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--primary-soft); color: var(--primary-ink); font: 500 14px var(--font); }
.bk-ref svg { width: 14px; height: 14px; }
.bk-lines { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.bk-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 15px; }
.bk-lines li + li { border-top: 1px solid var(--border); }
.bk-lines li span:first-child { flex: none; color: var(--muted); }
.bk-lines li span:last-child { text-align: right; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 16px; font: 500 16px var(--font); }
.bk-total b { font-size: 26px; font-weight: 600; color: var(--price); }
.bk-actions { display: grid; gap: 8px; }
.bk-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 99; display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-radius: var(--radius-md); background: var(--inverse); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 160%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast svg { width: 20px; height: 20px; color: var(--accent-mint); }

/* ============ 5 Layout ============ */
/* utility bar + header */
.topbar { background: var(--inverse); color: var(--inverse-soft); font-size: 13px; }
.tb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.tb-promo { display: flex; align-items: center; gap: 8px; margin: 0; }
.tb-promo b { color: var(--accent-warm); font-weight: 600; }
.tb-badge { padding: 3px 7px; border-radius: var(--radius-sm); background: var(--deal); color: #fff; font: 600 12px/1.2 var(--font); }
.tb-contact { display: flex; align-items: center; gap: 20px; }
.tb-contact a, .tb-contact span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.tb-contact a:hover { color: #fff; }
.tb-contact svg { width: 14px; height: 14px; color: var(--inverse-accent); }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow var(--dur); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 600 20px/1.1 var(--font); color: var(--fg); }
.brand-text b span { color: var(--price); }
.brand-text small { margin-top: 3px; font: 600 10px/1.3 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--primary-ink); }

.main-nav { display: flex; align-self: stretch; gap: 2px; margin-left: auto; }
.nav-item { position: relative; display: flex; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font: 500 15px/1.2 var(--font); color: var(--fg-2); transition: color var(--dur); }
.nav-link .ni { width: 18px; height: 18px; color: var(--muted); transition: color var(--dur); }
.nav-link .chev { width: 14px; height: 14px; transition: transform var(--dur); }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link.active { color: var(--primary-ink); }
.nav-link:hover .ni, .nav-link.active .ni { color: var(--primary); }
.nav-link.active::after { transform: none; }
.nav-item:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; z-index: 5; transform: translate(-50%, 6px);
  padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown h2 { margin: 0 0 8px; font: 600 12px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mega { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; width: 620px; }
.mega-types { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-types a, .mega-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius-md); font: 500 15px/1.3 var(--font); color: var(--fg); transition: background-color var(--dur); }
.mega-types a:hover, .mega-list a:hover { background: var(--surface-3); }
.mega-types small { display: block; font: 400 13px/1.3 var(--font); color: var(--muted); }
.mega-list { display: grid; gap: 2px; }
.mega-list svg { width: 16px; height: 16px; color: var(--primary); }
.mega-all { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; font: 600 14px var(--font); color: var(--primary-ink); }
.mega-all svg { width: 16px; height: 16px; }
.mega-all:hover { text-decoration: underline; }
.dd-regions { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 16px 28px; width: max-content; max-width: 600px; }
.dd-regions a { display: block; padding: 5px 0; font: 400 15px/1.5 var(--font); color: var(--fg-2); }
.dd-regions a:hover { color: var(--primary-ink); }
.dd-regions .dd-more { font-weight: 600; color: var(--primary-ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hdr-line { color: var(--line-deep); }
.hdr-line:hover { background: var(--line-soft); color: var(--line-deep); }
.menu-btn { display: none; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; overflow-y: auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface);
  transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mn-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; margin-bottom: 4px; }
.mobile-nav nav > a, .mn-group summary {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--border);
  font: 500 17px var(--font); color: var(--fg); list-style: none; cursor: pointer;
}
.mobile-nav nav > a[aria-current] { color: var(--primary-ink); }
.mobile-nav .ni { width: 20px; height: 20px; color: var(--primary); }
.mn-group summary::-webkit-details-marker { display: none; }
.mn-group summary .chev { width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform var(--dur); }
.mn-group[open] summary .chev { transform: rotate(180deg); }
.mn-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0 12px; }
.mn-sub a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); font: 400 15px/1.35 var(--font); }
.mn-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; }
.mn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* search overlay */
.search-panel { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur); }
.search-panel.open { opacity: 1; visibility: visible; }
.search-box { width: min(680px, 100%); overflow: hidden; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transform: translateY(-8px); transition: transform var(--dur) var(--ease); }
.search-panel.open .search-box { transform: none; }
.search-input { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border); }
.search-input > svg { width: 22px; height: 22px; color: var(--muted); }
.search-input input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none; font-size: 17px; }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.sr-chips { padding: 8px 10px 10px; }
.sr-label { padding: 10px 12px 4px; font: 600 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sr-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: var(--radius-md); }
.sr-item:hover, .sr-item.hl { background: var(--surface-3); }
.sr-item img { width: 64px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-3); }
.sr-item .r-name { font: 500 15px/1.35 var(--font); }
.sr-item .r-name small { display: block; font: 400 13px/1.4 var(--font); color: var(--muted); }
.sr-item .r-price { margin-left: auto; font: 600 15px var(--font); color: var(--price); white-space: nowrap; }
.sr-empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* page heroes */
.page-hero { padding: 20px 0 28px; background: var(--surface); border-bottom: 1px solid var(--border); }
.crumbs { margin: -6px 0 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; opacity: .7; }
.crumbs a { display: inline-block; margin: 0 -4px; padding: 6px 4px; }
.crumbs a:hover { color: var(--primary-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg-2); }
.page-hero h1 { max-width: 900px; margin: 0 0 8px; font-size: var(--text-4xl); }
.page-hero .lead { max-width: 780px; margin: 0; font-size: 17px; color: var(--fg-2); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.photo-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 440px; background: var(--inverse); color: #fff; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 31, 51, .4) 0%, rgba(15, 31, 51, .1) 35%, rgba(15, 31, 51, .85) 100%); }
.photo-hero .wrap { padding: 24px 0 36px; }
.photo-hero h1 { max-width: 900px; color: #fff; font-size: var(--text-4xl); text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.photo-hero .lead { max-width: 760px; margin: 0; font-size: 17px; color: rgba(255, 255, 255, .92); }
.photo-hero .crumbs ol, .photo-hero .crumbs [aria-current] { color: rgba(255, 255, 255, .9); }
.photo-hero .crumbs a:hover { color: #fff; }
.photo-credit { position: absolute; right: 12px; bottom: 8px; max-width: calc(100% - 24px); margin: 0; font: 400 11px/1.4 var(--font); color: rgba(255, 255, 255, .72); text-align: right; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: #fff; }

/* sections */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: var(--space-lg); }
.section-head h2 { margin: 0; font-size: var(--text-3xl); }
.section-head p { max-width: 680px; margin: 6px 0 0; color: var(--muted); }
.section-head .link-arrow { flex: none; }

/* footer */
.site-footer { margin-top: var(--space-2xl); padding: 56px 0 24px; background: var(--inverse); color: var(--inverse-muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { margin-bottom: 10px; font-size: 15px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { max-width: 320px; margin: 14px 0 0; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text b span { color: var(--accent-warm); }
.footer-brand .brand-text small { color: var(--inverse-accent); }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); background: rgba(255, 255, 255, .08); transition: background-color var(--dur); }
.social a:hover { background: var(--primary); color: #fff; }
.social svg { width: 20px; height: 20px; }
.site-footer .footer-contact { margin-top: 16px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 8px; color: var(--inverse-accent); }
.footer-contact li > span { padding: 5px 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-bottom nav a { display: inline-block; padding: 6px 0; }
.m-bar { display: none; }

/* listing layout: filter sidebar + results */
.trip-bar { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.finder-row .btn, .trip-bar .btn { min-height: 56px; }
.list-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-lg); align-items: start; margin-top: var(--space-lg); }
.wrap.list-layout { margin-top: 0; }
.list-main { min-width: 0; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.filters-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.filters-head h2 svg { width: 18px; height: 18px; color: var(--primary); }
.filter-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.filter-group h3, .filter-label { display: block; margin: 0 0 8px; font: 600 14px var(--font); color: var(--fg); }
.filter-options { display: flex; flex-direction: column; gap: 2px; }
.filter-options button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-md); text-align: left; font: 400 15px/1.3 var(--font); color: var(--fg-2); transition: background-color var(--dur), color var(--dur); }
.filter-options button svg { width: 18px; height: 18px; color: var(--muted); }
.filter-options button em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.filter-options button:hover { background: var(--surface-3); }
.filter-options button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
.filter-options button[aria-pressed="true"] svg, .filter-options button[aria-pressed="true"] em { color: var(--primary); }
.filters .select { width: 100%; }
.list-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 40px; margin-bottom: var(--space-md); }
.list-tools .count { margin: 0 auto 0 0; font-size: 15px; color: var(--muted); }
.list-tools .count b { font-weight: 600; color: var(--fg); }
.sort-label { font-size: 14px; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-lg); }
.pill-tabs button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border-strong); font: 500 15px var(--font); color: var(--fg-2);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.pill-tabs button:hover { border-color: var(--primary); color: var(--primary-ink); }
.pill-tabs button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }

/* detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-xl); align-items: start; }
.detail > * { min-width: 0; }
.detail-main > section + section { margin-top: 40px; }
.detail-main h2 { margin-bottom: 14px; font-size: 22px; }
.detail-main > section > p { color: var(--fg-2); }
.page-tabs { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 2px; margin: -8px 0 28px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 48px; margin-bottom: -1px; padding: 0 14px; border-bottom: 2px solid transparent; font: 500 15px var(--font); color: var(--fg-2); white-space: nowrap; }
.page-tabs a:hover { color: var(--primary-ink); }
.page-tabs a[aria-current] { color: var(--primary-ink); border-bottom-color: var(--primary); }
.page-tabs a:focus-visible { outline-offset: -3px; }
.aside-stack { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.aside-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.aside-card h2 { margin-bottom: 14px; font-size: 17px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.facts small { display: block; font-size: 13px; color: var(--muted); }
.facts b { font: 500 15px/1.45 var(--font); }
.facts a { color: var(--primary-ink); }
.facts a:hover { text-decoration: underline; }

/* ============ 6 Cards ============ */
.type-grid, .car-grid, .city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.car-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tour-grid, .article-grid, .review-grid, .dest-list, .branch-grid, .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.tour-grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.why-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* shared card surface */
.type-card, .car-card, .tour-card, .a-card, .city-card, .class-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.type-card:hover, .car-card:hover, .tour-card:hover, .a-card:hover, .city-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.cc-img img, .tc-img img, .a-img img, .type-card img, .city-media img, .dest-card img { transition: transform .5s var(--ease); }
.car-card:hover .cc-img img, .tour-card:hover .tc-img img, .a-card:hover .a-img img, .type-card:hover img, .city-card:hover .city-media img, .dest-card:hover img { transform: scale(1.04); }

/* price block (car / tour) */
.price { line-height: 1.2; }
.price small { display: block; font-size: 12px; color: var(--muted); }
.price b { font: 600 22px/1.2 var(--font); color: var(--price); }
.price span { margin-left: 2px; font-size: 13px; color: var(--muted); }

/* type card */
.type-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-3); }
.type-body { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.type-label { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--font); color: var(--muted); }
.type-label svg { width: 16px; height: 16px; color: var(--primary); }
.type-card h3 { margin: 0; font-size: 17px; }
.type-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.type-card .tp { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.type-card .tp b { font: 600 17px var(--font); color: var(--price); }

/* car card */
.cc-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.cc-body { display: flex; flex: 1; flex-direction: column; padding: 12px 16px 16px; }
.cc-type { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--font); color: var(--muted); }
.cc-type svg { width: 16px; height: 16px; }
.cc-body h3 { margin: 2px 0 0; font-size: 17px; }
.cc-body h3 a::after, .tc-body h3 a::after, .a-card h3 a::after, .branch h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cc-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.cc-specs { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--fg-2); }
.cc-specs li { display: inline-flex; align-items: center; gap: 5px; }
.cc-specs svg { width: 15px; height: 15px; color: var(--muted); }
.cc-foot, .tc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.car-card .tags-row, .tour-card .tags-row { margin-bottom: 12px; }
.cc-total { display: block; margin-top: 2px; font: 500 13px/1.4 var(--font); font-style: normal; color: var(--fg-2); }
.cc-total:empty { display: none; }
.cc-foot .btn { position: relative; z-index: 2; }

/* tour card */
.tc-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.tc-img img { width: 100%; height: 100%; object-fit: cover; }
.tc-badges { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: flex-start; gap: 6px; }
.tc-badges .chip-white { margin-left: auto; }
.tc-body { display: flex; flex: 1; flex-direction: column; padding: 12px 16px 16px; }
.tc-dest { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; font: 500 13px var(--font); color: var(--muted); }
.tc-dest svg { width: 14px; height: 14px; }
.tc-body h3 { margin: 0 0 8px; font-size: 17px; }
.tc-hl { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; font-size: 14px; color: var(--fg-2); }
.tc-hl li { display: flex; align-items: flex-start; gap: 6px; }
.tc-hl svg { width: 14px; height: 14px; margin-top: 5px; color: var(--primary); }
.tc-foot .go { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font: 500 14px var(--font); color: var(--primary-ink); }
.tc-foot .go svg { width: 16px; height: 16px; }

/* article card */
.a-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.a-img img { width: 100%; height: 100%; object-fit: cover; }
.a-body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 18px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.a-card h3 { margin-bottom: 6px; font-size: 17px; }
.a-card p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* destination card (photo overlay) */
.dest-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: var(--radius-lg); background: var(--inverse); color: #fff; }
.dest-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.dc-body { padding: 16px 18px; }
.dest-card h3 { margin: 8px 0 2px; font-size: 22px; color: #fff; }
.dest-card p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .92); }
.dc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.dc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dc-meta svg { width: 14px; height: 14px; }

/* city card (Trip.com style: photo + quick links) */
.city-media { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--inverse); color: #fff; }
.city-media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.city-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.city-name { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.city-name h3 { margin: 0; font-size: 20px; color: #fff; }
.city-name small { font-size: 13px; color: rgba(255, 255, 255, .92); }
.city-links { display: flex; }
.city-links a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; font: 500 14px var(--font); color: var(--fg-2); transition: background-color var(--dur), color var(--dur); }
.city-links a + a { border-left: 1px solid var(--border); }
.city-links a:hover { background: var(--primary-soft); color: var(--primary-ink); }

/* chauffeur vehicle class */
.class-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.class-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cl-body { display: flex; flex: 1; flex-direction: column; padding: 12px 14px 14px; }
.class-card h3 { margin: 0; font-size: 16px; }
.cl-sub { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.cl-cap { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--fg-2); }
.cl-cap span { display: inline-flex; align-items: center; gap: 4px; }
.cl-cap svg { width: 15px; height: 15px; color: var(--primary); }
.class-card dl { display: grid; gap: 4px; margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.class-card dl div { display: flex; justify-content: space-between; gap: 8px; }
.class-card dt { color: var(--muted); }
.class-card dd { margin: 0; font-weight: 600; color: var(--price); }

/* feature / why */
.why-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.why-card .ic { margin-bottom: 12px; }
.why-card h3 { margin-bottom: 4px; font-size: 17px; }
.why-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); counter-reset: s; }
.step { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--primary); color: #fff; font: 600 15px var(--font); }
.step h3 { margin-bottom: 4px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* reviews */
.review { display: flex; flex-direction: column; margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.review blockquote { margin: 10px 0 16px; font-size: 15px; color: var(--fg-2); }
.review figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font: 600 16px var(--font); }
.review figcaption b { display: block; font: 600 15px var(--font); }
.review figcaption small { font-size: 13px; color: var(--muted); }
.review-note { margin: var(--space-md) 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* branches */
.branch { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow var(--dur), border-color var(--dur); }
.branch:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.branch .code { position: absolute; right: 16px; top: 16px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--fg-2); font: 600 13px var(--font); letter-spacing: .06em; }
.branch h3 { margin: 0; padding-right: 56px; font-size: 17px; }
.branch p { margin: 0; font-size: 14px; color: var(--muted); }
.branch .hrs { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 500 14px var(--font); color: var(--success); }
.branch .hrs svg { width: 15px; height: 15px; }

/* bands */
.band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); }
.driver-band { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--border); }
.db-text { padding: 40px; }
.driver-band h2, .ev-band h2 { font-size: var(--text-3xl); }
.driver-band p { max-width: 520px; color: var(--fg-2); }
.db-img, .eb-img { position: relative; min-height: 340px; }
.db-img img, .eb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 24px; }
.db-prices div { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.db-prices dt { font-size: 13px; color: var(--muted); }
.db-prices dd { margin: 0; font: 600 20px/1.3 var(--font); color: var(--price); }
.db-float { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.db-float b { display: block; font: 600 15px var(--font); }
.db-float small { font-size: 13px; color: var(--muted); }
.ev-band { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--inverse); color: var(--inverse-soft); }
.eb-text { padding: 40px; }
.ev-band h2 { color: #fff; }
.ev-band p { color: var(--inverse-soft); }
.eb-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; padding: 0; }
.eb-points li { padding: 4px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; }
.cta-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 24px; padding: 28px 32px; background: var(--primary-soft); }
.cta-band .ic { background: var(--surface); }
.cta-band h2 { margin: 0 0 4px; font-size: var(--text-2xl); }
.cta-band p { margin: 0; color: var(--fg-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* FAQ layout */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside h2 { font-size: var(--text-3xl); }
.faq-aside p { color: var(--muted); }
.faq-aside .card { margin-top: var(--space-md); }

/* ============ 7 Pages ============ */
/* home hero */
.hero-banner { position: relative; isolation: isolate; overflow: hidden; background: var(--inverse); color: #fff; }
.hero-slides img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides img.on { opacity: 1; }
.hero-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 31, 51, .5) 0%, rgba(15, 31, 51, .3) 50%, rgba(15, 31, 51, .6) 100%); }
.hero-content { padding: 64px 0 120px; text-align: center; }
.hero h1 { max-width: 880px; margin: 0 auto 12px; color: #fff; font-size: var(--text-hero); line-height: 1.2; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: normal; color: var(--accent-warm); }
.hero-lead { max-width: 640px; margin: 0 auto 16px; font-size: 17px; color: rgba(255, 255, 255, .92); }
.hero-trust { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .92); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent-warm); }
.finder { position: relative; z-index: 2; margin-top: -80px; padding: 0 16px 16px; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.finder-tabs { display: flex; gap: 4px; margin: 0 -16px 16px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.finder-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin-bottom: -1px; padding: 0 14px; border-bottom: 3px solid transparent; font: 500 15px var(--font); color: var(--fg-2); transition: color var(--dur), border-color var(--dur); }
.finder-tabs button svg { width: 18px; height: 18px; }
.finder-tabs button:hover { color: var(--primary-ink); }
.finder-tabs button[aria-selected="true"] { color: var(--primary-ink); border-bottom-color: var(--primary); }
.finder-tabs button:focus-visible { outline-offset: -3px; }
.finder-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; align-items: stretch; }
.finder-row.cols-3 { grid-template-columns: 1.3fr 1.3fr auto; }
.trust-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: var(--space-md); overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); }
.stat b { display: block; font: 600 20px/1.2 var(--font); }
.stat small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* car / tour detail */
.car-hero-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-3); }
.car-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.img-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.spec-grid, .fact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spec { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.spec svg { width: 22px; height: 22px; margin-bottom: 6px; color: var(--primary); }
.spec small { display: block; font-size: 13px; color: var(--muted); }
.spec b { font: 600 15px/1.4 var(--font); }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 15px; }
.feat-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--success); }
.mini-links { display: grid; gap: 8px; }
.mini-links.cols-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mini-links a { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--dur), box-shadow var(--dur); }
.mini-links a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.mini-links img { width: 64px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }
.mini-links b { display: block; font: 600 15px/1.35 var(--font); }
.mini-links small { font-size: 13px; color: var(--muted); }
.itin-day + .itin-day { margin-top: var(--space-lg); }
.itin-day h3 { display: flex; align-items: center; gap: 10px; font-size: var(--text-lg); }
.itin-day h3 .d { padding: 3px 10px; border-radius: var(--radius-full); background: var(--primary); color: #fff; font: 600 13px var(--font); }
.timeline { position: relative; list-style: none; margin: 12px 0 0; padding: 0 0 0 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 16px 16px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { font: 600 14px var(--font); color: var(--primary-ink); }
.timeline b { display: block; margin: 1px 0 2px; font: 600 16px var(--font); }
.timeline p { margin: 0; font-size: 15px; color: var(--fg-2); }
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hl-grid div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font: 500 15px/1.4 var(--font); }
.hl-grid .n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font: 600 14px var(--font); }

/* destination detail */
.spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: sp; }
.spot { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); counter-increment: sp; }
.spot::before { content: counter(sp); width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-ink); font: 600 18px var(--font); }
.spot h3 { margin: 0 0 4px; font-size: 17px; }
.spot p { margin: 0; font-size: 15px; color: var(--fg-2); }
.spot p .chip { margin-right: 4px; vertical-align: 1px; }
.map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); font: 500 14px var(--font); color: var(--primary-ink); white-space: nowrap; transition: border-color var(--dur), background-color var(--dur); }
.map-link:hover { border-color: var(--primary); background: var(--primary-soft); }
.map-link svg { width: 16px; height: 16px; }
.map-embed { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-wide { aspect-ratio: 21 / 8; }
.map-caption { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tips li { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 15px; }
.tips svg { width: 20px; height: 20px; margin-top: 3px; color: var(--warning); }

/* chauffeur estimator */
.estimator { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.est-form { display: grid; gap: 14px; padding: 24px; }
.est-label { display: block; margin-bottom: 8px; font: 600 14px var(--font); }
.est-out { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--inverse); color: #fff; }
.est-out h3 { margin: 0; font-size: 15px; font-weight: 500; color: var(--inverse-soft); }
.est-out .big { font: 600 40px/1.1 var(--font); }
.est-out ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--inverse-soft); }
.est-out li { display: flex; gap: 8px; }
.est-out li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent-mint); }
.est-note { margin: 0; font-size: 13px; color: var(--inverse-muted); }
.est-out .btn { margin-top: auto; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); background: var(--surface); font: 500 14px var(--font); color: var(--fg-2); cursor: pointer; transition: background-color var(--dur), border-color var(--dur), color var(--dur); }
.seg span:hover { border-color: var(--primary); }
.seg input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* article */
.article-head { max-width: 800px; margin: 0 auto; padding: 28px 0 24px; }
.article-head h1 { margin: 12px 0 10px; font-size: var(--text-4xl); }
.article-head .lead { margin: 0 0 12px; font-size: 18px; color: var(--fg-2); }
.article-cover { max-width: 1080px; aspect-ratio: 16 / 8; margin: 0 auto 32px; overflow: hidden; border-radius: var(--radius-xl); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.toc { max-width: 720px; margin: 0 auto 28px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.toc b { font-weight: 600; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; column-gap: 28px; font-size: 15px; color: var(--fg-2); }
.toc li { padding: 3px 0; }
.toc a:hover { color: var(--primary-ink); text-decoration: underline; }
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: var(--fg-2); }
.prose h2 { margin: 1.6em 0 .5em; font-size: 24px; }
.prose h3 { margin: 1.3em 0 .4em; font-size: 20px; }
.prose a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--fg); }
.prose mark { padding: 0 2px; border-radius: 2px; background: var(--warning-soft); color: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { display: block; width: 100%; margin: 1.2em 0; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); font-weight: 600; color: var(--fg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; margin: 28px auto 0; }
.author-box { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 32px auto 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.author-box .avatar { width: 52px; height: 52px; background: var(--primary); color: #fff; }
.author-box b { font-weight: 600; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }

/* info pages */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.contact-list b { display: block; font-size: 15px; font-weight: 600; }
.contact-list span, .contact-list a { font-size: 15px; color: var(--fg-2); }
.contact-list a { color: var(--primary-ink); }
.contact-list a:hover { text-decoration: underline; }
.doc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.doc-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.doc-card h3 { display: flex; align-items: center; gap: 10px; font-size: var(--text-lg); }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.value { padding: 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.value b { display: block; font: 600 28px/1.2 var(--font); color: var(--primary-ink); }
.value span { font-size: 14px; color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.split p { color: var(--fg-2); }
.split-img { position: relative; }
.split-img img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-xl); }
.split-img .mini { position: absolute; right: 16px; bottom: -24px; width: 42%; aspect-ratio: 4 / 3; border: 5px solid var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.stamp { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; padding: 12px 16px; text-align: center; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); font: 500 13px/1.3 var(--font); color: var(--fg-2); }
.stamp b { display: block; font-size: 28px; line-height: 1.1; color: var(--primary-ink); }
.notfound { padding: 64px 0 32px; text-align: center; }
.notfound .big { font: 600 clamp(84px, 16vw, 160px)/1 var(--font); letter-spacing: -.02em; color: var(--primary); }
.notfound p { max-width: 520px; margin: 0 auto var(--space-lg); color: var(--muted); }
.notfound .btn-row { justify-content: center; }

/* reveal (JS only; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============ 8 Responsive ============ */
@media (max-width: 1280px) {
  .nav-link .ni { display: none; }
}
@media (max-width: 1180px) {
  .nav-link { padding: 0 8px; font-size: 15px; }
  .nav-link::after { left: 8px; right: 8px; }
  .car-grid:not(.cols-3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .tb-contact span { display: none; }
  .finder-row, .trip-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finder-row.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-row .btn, .trip-bar .btn { grid-column: 1 / -1; min-height: 52px; }
  .why-grid.cols-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-band, .ev-band, .split, .faq-layout, .estimator, .detail, .list-layout, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: auto 1fr; }
  .cta-actions { grid-column: 1 / -1; }
  .split { gap: 40px; }
  .book-card, .aside-stack, .faq-aside, .filters { position: static; }
  .spec-grid, .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* filters become a compact bar above results */
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .filter-group { margin: 0; padding: 0; border: 0; }
  .filter-group h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .filter-group:has(select) { display: flex; align-items: center; gap: 10px; }
  .filter-group:has(select) .filter-label { margin: 0; flex: none; font-weight: 500; color: var(--fg-2); }
  .filters .select { width: auto; flex: 1; max-width: 240px; }
  .filter-options { flex-direction: row; gap: 6px; margin-inline: -16px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .filter-options::-webkit-scrollbar { display: none; }
  .filter-options button { flex: none; width: auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); background: var(--surface); font-weight: 500; }
  .filter-options button[aria-pressed="true"] { border-color: var(--primary); }
  .filter-options button em { margin-left: 2px; }
}
@media (max-width: 900px) {
  .tour-grid, .article-grid, .review-grid, .why-grid, .dest-list, .branch-grid, .value-grid, .car-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text b { font-size: 18px; }
  .hdr-line, .hdr-cta { display: none; }
  .section { padding: 44px 0; }
  .section-sm { padding: 32px 0; }
  .section-head { margin-bottom: var(--space-md); }
  .section-head p { font-size: 15px; }
  h1, .page-hero h1, .photo-hero h1 { font-size: 26px; }

  /* inputs ≥16px so iOS does not zoom on focus */
  .f-field select, .f-field input, .field input, .field select, .field textarea, .select, .search-input input { font-size: 16px; }

  /* home hero: search visible above the fold */
  .hero-content { padding: 28px 0 84px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; margin-bottom: 0; }
  .hero-trust { display: none; }
  .finder { margin-top: -64px; padding: 0 12px 12px; }
  .finder-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 -12px 12px; padding: 0; }
  .finder-tabs button { flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 6px 4px; font-size: 13px; line-height: 1.25; text-align: center; }
  .finder-row, .finder-row.cols-3, .trip-bar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ic { width: 36px; height: 36px; }
  .stat .ic svg { width: 20px; height: 20px; }
  .stat b { font-size: 17px; }
  .stat small { font-size: 13px; }

  /* list cards: compact horizontal layout on phones */
  .tour-grid, .article-grid, .review-grid, .dest-list, .branch-grid, .why-grid, .why-grid.cols-4, .steps, .car-grid.cols-3, .car-grid { grid-template-columns: minmax(0, 1fr); }
  .why-card { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 16px; }
  .why-card .ic { grid-row: span 2; margin: 0; }
  .step { display: grid; grid-template-columns: 32px 1fr; gap: 0 14px; padding: 16px; }
  .step::before { grid-row: span 2; margin: 0; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dest-list .dest-card, .dest-card { min-height: 240px; }
  .driver-band .db-text, .ev-band .eb-text { padding: 24px 20px; }
  .db-prices { gap: 6px; }
  .db-prices div { padding: 10px; }
  .db-prices dd { font-size: 16px; }
  .db-img, .eb-img { min-height: 220px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .cta-band .ic { display: none; }
  .cta-actions .btn { flex: 1; }
  .faq summary { padding: 12px 16px; font-size: 15px; }
  .faq .faq-a { padding: 0 16px 14px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 40px; }
  .site-footer li a, .footer-bottom nav a { padding: 7px 0; }

  .photo-hero { min-height: 340px; }
  .photo-hero .lead, .page-hero .lead { font-size: 15px; }
  .page-hero { padding: 16px 0 20px; }
  .detail-main h2 { font-size: 20px; }
  .col-2, .feat-list, .hl-grid, .doc-cols, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot { grid-template-columns: 36px 1fr; padding: 14px; }
  .spot::before { width: 36px; height: 36px; font-size: 16px; }
  .spot .map-link { grid-column: 2; justify-self: start; }
  .map-wide { aspect-ratio: 4 / 3; }
  .article-cover { aspect-ratio: 16 / 10; margin-bottom: 24px; border-radius: var(--radius-lg); }
  .prose { font-size: 17px; }
  .toc ol { columns: 1; }
  .split-img .mini, .stamp { display: none; }
  .data-table td:first-child, .data-table th:first-child { box-shadow: 1px 0 0 var(--border); }
  .est-form, .est-out { padding: 20px; }
  .est-out .big { font-size: 34px; }
  .bk-actions .row { grid-template-columns: minmax(0, 1fr); }
  .modal-body { padding: 16px 18px 20px; }
  .modal-head { padding-left: 18px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); }
  .pill-tabs { flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
  .pill-tabs::-webkit-scrollbar { display: none; }
  .pill-tabs button { flex: none; }
  .list-tools .sort-label { display: none; }

  .m-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px -8px rgba(15, 31, 51, .15);
  }
  .m-bar .btn { min-height: 48px; padding: 0 8px; font-size: 15px; }
  /* horizontal rails for recommendation rows (last in block so they win over the 1-column lists) */
  :is(.type-grid, .car-grid, .city-grid, .tour-grid, .article-grid, .review-grid, .dest-list).rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); grid-template-columns: none;
    gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .js .rail > .reveal { opacity: 1; transform: none; }
  .type-grid.rail.rail { grid-auto-columns: min(62%, 230px); }
  .review-grid.rail.rail { grid-auto-columns: min(85%, 320px); }
}
@media (max-width: 560px) {
  /* car list: image-left cards (Trip.com mobile list pattern) */
  .car-grid:not(.rail) .car-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
  .car-grid:not(.rail) .cc-img { aspect-ratio: auto; height: 100%; }
  .car-grid:not(.rail) .cc-body { padding: 10px 12px 12px; }
  .car-grid:not(.rail) .cc-body h3 { font-size: 15px; }
  .car-grid:not(.rail) .cc-sub { display: none; }
  .car-grid:not(.rail) .cc-specs { margin: 4px 0 4px; }
  .car-grid:not(.rail) .cc-specs li:nth-child(n+3) { display: none; }
  .car-grid:not(.rail) .tags-row li:nth-child(n+2) { display: none; }
  .car-grid:not(.rail) .tags-row { margin-bottom: 8px; }
  .car-grid:not(.rail) .cc-foot { padding-top: 8px; }
  .car-grid:not(.rail) .price b { font-size: 18px; }
  .car-grid:not(.rail) .badge { font-size: 12px; padding: 1px 6px; }
}
@media (max-width: 420px) {
  .class-grid { grid-template-columns: minmax(0, 1fr); }
  .bc-row, .bc-contact { grid-template-columns: minmax(0, 1fr); }
  .db-prices { grid-template-columns: minmax(0, 1fr); }
  .db-prices div { display: flex; justify-content: space-between; align-items: baseline; }
}
