/* ExMoWay — public site styles (mobile-first). Brand colours carried over from the original site. */
:root {
  --navy: #0b1c45; --navy-2: #132456; --navy-3: #1e3470;
  --accent: #ff4d6d; --accent-strong: #c9374f; --accent-hover: #ad2c42;
  --teal: #00d4aa; --teal-dark: #007a63;
  --gold: #d9a531; --gold-light: #f6c453; --temple-red: #9e1b32;
  --text: #0d1b3e; --muted: #4f5d7a; --soft: #6b7896;
  --bg: #f5f7ff; --surface: #fff; --surface-2: #eef3ff; --border: #dfe6f3;
  --ok: #0f7a4a; --warn: #9a5b00; --warn-bg: #fff6e5;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 2px 14px rgba(11, 28, 69, .07); --shadow-lg: 0 10px 36px rgba(11, 28, 69, .14);
  --font: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 4.6vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 3.4vw, 1.5rem); }
h3, .h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
main:focus { outline: none; }

/* ── Header ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy) url(/assets/img/thai/pattern-on-dark.svg) 0 0 / 44px 44px; box-shadow: 0 2px 16px rgba(0, 0, 0, .18); border-bottom: 2px solid var(--gold); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand img { width: 128px; height: auto; filter: brightness(0) invert(1); }
.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .95rem; cursor: pointer; min-height: 40px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
.main-nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 14px; }
.main-nav.open { display: flex; }
.main-nav a { color: rgba(255, 255, 255, .9); text-decoration: none; padding: 11px 4px; border-top: 1px solid rgba(255, 255, 255, .08); font-weight: 600; }
.main-nav a[aria-current="page"] { color: var(--teal); }
.no-js .main-nav { display: flex; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.open { display: flex; flex-direction: row; width: auto; margin-left: auto; padding: 0; gap: 4px; }
  .main-nav a { border: 0; padding: 8px 14px; border-radius: 999px; }
  .main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .brand img { width: 142px; }
}

/* ── Breadcrumbs ──────────────────────────────────── */
.breadcrumbs ol { list-style: none; margin: 0; padding: 12px 16px 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); }
.breadcrumbs.container ol { padding-left: 0; padding-right: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: var(--soft); }
.breadcrumbs a { color: var(--muted); }

/* ── Buttons & forms ──────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-3); color: var(--navy); }
.btn-small { min-height: 36px; padding: 4px 14px; font-size: .9rem; }
.btn-link, .link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-strong); text-decoration: underline; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 1rem; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--navy-3); outline: 3px solid rgba(0, 212, 170, .35); outline-offset: 0; }
.form-errors { background: #fdecef; border: 1px solid #f5b5c1; color: #8c1d33; border-radius: var(--radius-sm); padding: 10px 14px; grid-column: 1 / -1; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-status { margin: 0; font-size: .9rem; color: var(--muted); min-height: 0; grid-column: 1 / -1; }
.form-status:empty { display: none; }

/* ── Hero & search panel ──────────────────────────── */
/* Twilight sky with floating khom loi lanterns over a temple skyline (assets/img/thai, drawn by build/make-thai-art.mjs). */
.hero { color: #fff; padding: 0 0 8px; }
.hero-top { position: relative; padding-top: 28px;
  background: linear-gradient(180deg, #0a1940 0%, #15275f 38%, #2f3478 60%, #7a4a86 82%, #d9845e 100%); }
.hero-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: url(/assets/img/thai/band-krajang.svg) left bottom / 17px 10px repeat-x; }
.hero-text { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(5, 12, 40, .55); }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero-sub { color: rgba(255, 255, 255, .88); max-width: 720px; }
.hero-scene { height: 240px; margin-top: -36px; background: url(/assets/img/thai/hero-scene.svg) center bottom / cover no-repeat; }
.search-panel { position: relative; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px 14px 16px; margin-top: -56px; border-top: 3px solid var(--gold); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 -14px 14px; padding: 0 8px; overflow-x: auto; }
.tabs button { flex: 1 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 10px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--accent-strong); }
.js .tab-panel[hidden] { display: none; }
.search-form { display: grid; gap: 10px; }
.search-form-inline { grid-template-columns: 1fr auto; align-items: end; }
.btn-search { min-height: 46px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--navy); text-decoration: none; font-size: .9rem; }
.chip:hover { background: #dfe8ff; color: var(--navy); }
.hero-chips-dark { margin: 0 0 16px; }
@media (min-width: 720px) {
  .search-form { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .search-form-inline { grid-template-columns: 1fr auto; }
  .hero-top { padding-top: 44px; }
  .hero-scene { height: clamp(250px, 26vw, 360px); margin-top: -90px; }
  .search-panel { padding: 6px 20px 20px; margin-top: -70px; }
  .tabs { margin: 0 -20px 16px; padding: 0 12px; }
}

/* ── Transport form ───────────────────────────────── */
.transport-form { background: #fff; border-radius: var(--radius); }
.section-tint .transport-form, .page-head + .container > .transport-form { padding: 16px; box-shadow: var(--shadow); }
.tf-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.tf-grid > .field:nth-of-type(3), .tf-grid > .field:nth-of-type(5), .tf-grid > .btn-search { grid-column: 1 / -1; }
.tf-grid > .field-small { grid-column: auto; }
.tf-swap { min-height: 46px; width: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
@media (max-width: 959px) {
  /* phone/tablet: [from ⇄ to] / [date] / [passengers | type] / [search] */
  .tf-grid > .field:nth-of-type(3) { grid-column: 1 / -1; }
  .tf-grid > .field-small { grid-column: 1 / 2; }
  .tf-grid > .field:nth-of-type(5) { grid-column: 2 / 4; }
}
@media (min-width: 960px) {
  .tf-grid { grid-template-columns: 1.3fr auto 1.3fr 1fr .8fr 1fr auto; }
  .tf-grid > .field:nth-of-type(3), .tf-grid > .field:nth-of-type(5), .tf-grid > .btn-search, .tf-grid > .field-small { grid-column: auto; }
}

/* ── Sections ─────────────────────────────────────── */
.section { padding-top: 28px; padding-bottom: 8px; }
.section-tint { background: var(--surface-2) url(/assets/img/thai/pattern-on-light.svg) 0 0 / 44px 44px; padding-top: 28px; padding-bottom: 24px; margin: 20px 0; }
.section-tint .chip, .hero-chips-dark .chip { background: #fff; border: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
/* ประจำยาม ornament before section titles */
.section-head h2::before { content: ""; flex: none; width: 24px; height: 24px; background: url(/assets/img/thai/ornament.svg) center / contain no-repeat; }
.section-head a { white-space: nowrap; font-weight: 600; font-size: .95rem; }
.section-sub { color: var(--muted); margin-top: -4px; }
.page-head { padding-top: 18px; padding-bottom: 6px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 760px; }
.eyebrow { margin: 0 0 4px; color: var(--teal-dark); font-weight: 600; font-size: .92rem; }

/* ── Cards ────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; } }
.card-grid-3 { margin-top: 16px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3d5a99, #1e3470); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-icon { font-size: 2.6rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.card-media img.card-art { transition: transform .4s ease; }
.card:hover .card-art { transform: scale(1.04); }
.card-media img.card-art-flip { transform: scaleX(-1); }
.card:hover .card-art-flip { transform: scaleX(-1) scale(1.04); }
.card-body { padding: 10px 12px 14px; }
.card-title { font-size: 1rem; margin: 0 0 4px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin: 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 10px; }
.card-note { margin: 4px 0 0; font-size: .78rem; color: var(--warn); }
.card-distance { margin: 4px 0 0; font-size: .85rem; color: var(--teal-dark); font-weight: 600; }
.badge { position: absolute; top: 8px; left: 8px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy); }
.badge-live { left: auto; right: 8px; background: var(--teal); color: #05302a; }
.date-chip { position: absolute; bottom: 8px; left: 8px; background: #fff; border-radius: 10px; padding: 4px 9px; text-align: center; line-height: 1.1; box-shadow: var(--shadow); }
.date-chip-day { display: block; font-size: 1.2rem; font-weight: 700; color: var(--accent-strong); }
.date-chip-month { display: block; font-size: .75rem; color: var(--muted); }
.detail-head .badge { position: static; display: inline-block; background: var(--surface-2); }
.cat-nature { background: linear-gradient(135deg, #2f8f5b, #145a3a); }
.cat-beaches-islands { background: linear-gradient(135deg, #1aa3c9, #0b5e8f); }
.cat-temples { background: linear-gradient(135deg, #e0a83a, #9c6512); }
.cat-history { background: linear-gradient(135deg, #b5794b, #6b4024); }
.cat-local-communities { background: linear-gradient(135deg, #8a63c9, #523089); }
.cat-cafes-restaurants { background: linear-gradient(135deg, #a8744f, #5e3b22); }
.cat-family { background: linear-gradient(135deg, #f07aa5, #b0386a); }
.cat-markets-shopping { background: linear-gradient(135deg, #f39a3d, #b55e0d); }
.cat-outdoor-activities { background: linear-gradient(135deg, #13b39a, #0a6b5c); }
.cat-event { background: linear-gradient(135deg, #e5576f, #7a2d73); }

/* ── Provinces, pills, routes ─────────────────────── */
.province-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.province-tile { position: relative; isolation: isolate; overflow: hidden; display: block; padding: 14px; border-radius: var(--radius); color: #fff; text-decoration: none; min-height: 84px; background: var(--navy-3); }
/* region symbol (temple, chedi, prang, islands…) and ประจำยาม texture behind the name */
.province-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/img/thai/pattern-on-color.svg) 0 0 / 44px 44px; }
.province-tile::after { content: ""; position: absolute; right: -2px; bottom: -1px; z-index: -1; width: 92px; height: 62px; background: right bottom / contain no-repeat; opacity: .34; }
.province-tile.region-north::after { background-image: url(/assets/img/thai/region-north.svg); }
.province-tile.region-northeast::after { background-image: url(/assets/img/thai/region-northeast.svg); }
.province-tile.region-central::after { background-image: url(/assets/img/thai/region-central.svg); }
.province-tile.region-east::after { background-image: url(/assets/img/thai/region-east.svg); }
.province-tile.region-west::after { background-image: url(/assets/img/thai/region-west.svg); }
.province-tile.region-south::after { background-image: url(/assets/img/thai/region-south.svg); }
.province-tile:hover { color: #fff; filter: brightness(1.08); }
.province-tile strong { display: block; font-size: 1.05rem; }
.province-tile span { display: block; font-size: .8rem; opacity: .88; }
.province-grid-compact .province-tile { min-height: 70px; padding: 12px; }
.region-north { background: linear-gradient(135deg, #2f8f5b, #17573a); }
.region-northeast { background: linear-gradient(135deg, #c27a1a, #7c4a08); }
.region-central { background: linear-gradient(135deg, #1e3470, #0b1c45); }
.region-east { background: linear-gradient(135deg, #14809a, #0b4f66); }
.region-west { background: linear-gradient(135deg, #7a4fb0, #4b2c75); }
.region-south { background: linear-gradient(135deg, #0f8c9e, #0b5e8f); }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--navy); text-decoration: none; font-size: .95rem; }
.pill:hover { border-color: var(--navy-3); color: var(--navy); }
.pill-count { font-size: .8rem; color: var(--muted); }
.route-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.route-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.route-list a:hover { border-color: var(--navy-3); }
.route-icons { font-size: 1.1rem; }
.route-count { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* ── Filters & listings ───────────────────────────── */
.filter-bar { display: grid; gap: 10px; background: #fff; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 720px) { .filter-bar { grid-template-columns: repeat(3, 1fr); } .filter-bar .field-grow { grid-column: span 3; } .filter-actions { grid-column: 1 / -1; } }
@media (min-width: 1060px) { .filter-bar { grid-template-columns: 2fr repeat(4, 1fr); } .filter-bar .field-grow { grid-column: auto; } }
.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.seg a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--navy); text-decoration: none; font-size: .93rem; }
.seg a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { color: var(--muted); font-size: .92rem; margin: 6px 0 12px; }
.notice { background: var(--surface-2); border-left: 4px solid var(--navy-3); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: var(--text); }
.notice-warn { background: var(--warn-bg); border-left-color: #e0a83a; }
.notice-soft { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal); }
.empty-state { text-align: center; background: #fff url(/assets/img/thai/pattern-on-light.svg) 0 0 / 44px 44px; border: 1px dashed #e3d3a8; border-radius: var(--radius); padding: 28px 16px; color: var(--muted); }
.empty-state::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 8px; background: url(/assets/img/thai/ornament.svg) center / contain no-repeat; }
.empty-title { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--navy); }
.pagination span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Detail pages ─────────────────────────────────── */
.detail { padding-top: 16px; padding-bottom: 24px; }
.detail-narrow { max-width: 820px; }
.detail-head { margin-bottom: 14px; }
.detail-alt { color: var(--muted); margin: -6px 0 4px; }
.detail-loc { color: var(--muted); margin: 0 0 6px; }
.detail-layout { display: grid; gap: 24px; }
@media (min-width: 980px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; } .detail-side { position: sticky; top: 80px; align-self: start; } }
.detail-figure { margin: 0 0 18px; }
.detail-figure img { width: 100%; border-radius: var(--radius); }
.detail-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.detail-art img { aspect-ratio: 16 / 7; object-fit: cover; }
.map-note { font-size: .8rem; color: var(--muted); margin-top: -6px; }
.detail-section { margin-top: 26px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.facts { margin: 18px 0; display: grid; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.facts > div { background: #fff; padding: 12px 14px; display: grid; gap: 2px; }
@media (min-width: 640px) { .facts > div { grid-template-columns: 170px 1fr; gap: 12px; } }
.facts dt { font-weight: 600; color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts-highlight dd strong { font-size: 1.05rem; }
.ok-text { color: var(--ok); font-size: .9rem; }
.warn-text { color: var(--warn); font-size: .9rem; }
.map-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.source-line { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.error-page { text-align: center; padding: 48px 16px; }
.error-code { font-size: 3.4rem; font-weight: 700; color: var(--accent-strong); margin: 0; line-height: 1; }
.error-page .search-form-inline { max-width: 520px; margin: 18px auto; text-align: left; }

/* ── Transport results ────────────────────────────── */
.route-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.route-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; }
@media (min-width: 720px) { .route-card { grid-template-columns: 150px 1fr auto; align-items: center; gap: 18px; padding: 16px 18px; } }
.route-card-type { font-weight: 600; color: var(--navy); }
.route-card-main h3 { margin: 0 0 2px; font-size: 1.05rem; }
.route-card-path { margin: 0 0 6px; color: var(--text); }
.route-card-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--muted); }
.route-card-note, .route-card-verified { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.route-card-cta { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
.route-card-cta small { color: var(--soft); }
.route-card-flight { border: 1.5px dashed var(--navy-3); box-shadow: none; }
.route-card-partner { border: 1.5px solid var(--teal); }
.fare-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fare { display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.fare .btn { grid-column: 1 / -1; }
.fare-logo { width: 30px; height: 30px; border-radius: 6px; }
.fare-main { min-width: 0; line-height: 1.45; }
.fare-main small { color: var(--muted); }
.fare-price { font-weight: 700; font-size: 1.1rem; color: var(--accent-strong); white-space: nowrap; }
@media (min-width: 720px) { .fare { grid-template-columns: 30px 1fr auto auto; } .fare .btn { grid-column: auto; } }
.flight-form { display: grid; gap: 10px; background: #fff; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 860px) { .flight-form { grid-template-columns: 1.4fr 1.4fr 1fr .8fr auto; align-items: end; } }
.trip-planner { display: grid; gap: 10px; background: var(--surface-2); padding: 14px; border-radius: var(--radius); }
@media (min-width: 640px) { .trip-planner { grid-template-columns: 1.5fr 1fr .8fr auto; align-items: end; } }
.submit-form { display: grid; gap: 12px; max-width: 760px; background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.submit-form textarea { width: 100%; min-height: 90px; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.operator-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.operator { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.operator-logo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.operator-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.operator-body small { color: var(--muted); }

/* ── Ads (always labelled) ────────────────────────── */
.ad-slot { margin: 16px 0; display: grid; gap: 12px; }
.ad-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ad-unit { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ad-label { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(13, 27, 62, .82); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .02em; }
.ad-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ad-link img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.ad-cards .ad-link img, .ad-side .ad-link img { aspect-ratio: 4 / 3; }
@media (max-width: 719px) { .ad-banner .ad-link img { aspect-ratio: 2 / 1; } }
.ad-text { padding: 10px 14px; display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.ad-text strong { color: var(--text); font-size: 1rem; }
.ad-link:not(:has(img)) .ad-text { padding-top: 34px; }

/* ── Footer & consent ─────────────────────────────── */
.site-footer { position: relative; background: var(--navy) url(/assets/img/thai/pattern-on-dark.svg) 0 0 / 44px 44px; color: rgba(255, 255, 255, .8); margin-top: 56px; padding: 32px 0 calc(16px + env(safe-area-inset-bottom)); font-size: .93rem; border-top: 3px solid var(--gold); }
/* กระจัง (krajang) border rising from the footer edge */
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; margin-bottom: 3px; background: url(/assets/img/thai/band-krajang.svg) left bottom / 20px 12px repeat-x; }
.site-footer a, .site-footer .link-button { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { width: 142px; filter: brightness(0) invert(1); margin-bottom: 10px; }
.footer-small { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 14px; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff; box-shadow: 0 -6px 28px rgba(11, 28, 69, .16); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.consent-inner { display: grid; gap: 10px; }
.consent p { margin: 0; font-size: .92rem; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 140px; }
@media (min-width: 760px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; } .consent-actions .btn { flex: 0 0 auto; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .ad-slot, .consent, .filter-bar { display: none !important; } }
