/* Khon Kaen Taxis — modern Isan city: slate, electric blue, a silk-gold rule. System fonts only. */
:root {
  --slate: #2b3440; --slate-2: #222a34; --slate-3: #3a4556;
  --blue: #1f6fe0; --blue-d: #1759c2; --blue-l: #e8f0fd;
  --page: #f5f7fa; --ink: #1b2330; --ink-2: #4a5566; --line: #dde3eb;
  --gold: #c9a24a; --gold-l: #e7d3a0; --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); line-height: 1.55; font-size: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body.l-th { line-height: 1.65; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; }
a { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.l-th h1, .l-th h2, .l-th h3 { line-height: 1.35; }
h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
[hidden] { display: none !important; }
body > main { flex: 1 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }
.in { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* header */
.hd { background: var(--slate); color: #fff; position: sticky; top: 0; z-index: 30; }
.hd-in { max-width: 1200px; margin: 0 auto; padding: 0 12px; height: 56px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-t { display: grid; line-height: 1.15; min-width: 0; }
.brand-t b { font-size: 1.02rem; white-space: nowrap; }
.brand-t small { font-size: .7rem; color: #c3ccd8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { display: none; }
.hd-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; padding: 4px 9px; text-decoration: none; font-weight: 700; font-size: .85rem; }
.hd-wa { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 2px; }
.hd-wa .ic { width: 24px; height: 24px; color: #8fe3b1; }
.hd-wa span, .hd-book { display: none; }

/* hero: the booking counter */
.gate { position: relative; background: var(--slate-2); }
.gate-ph img { display: block; width: 100%; height: clamp(96px, 32vw, 150px); object-fit: cover; object-position: 50% 50%; }
.counter { background: #fff; }
.counter-hd { background: var(--slate); color: #fff; padding: 10px 14px; border-bottom: 3px solid var(--gold); }
.kick { display: none; margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-l); }
.counter-hd h1 { font-size: clamp(1.1rem, 5.5vw, 1.42rem); font-weight: 850; letter-spacing: -.01em; margin: 0 0 6px; }
.l-th .counter-hd h1 { font-size: clamp(1.05rem, 5.3vw, 1.36rem); line-height: 1.3; }
.anchor { margin: 0; font-size: .96rem; line-height: 1.5; color: #fff; }
.anchor b { background: var(--blue); color: #fff; padding: 1px 7px; border-radius: 6px; font-size: 1.04rem; }
.anchor small { color: #c5cedb; font-size: .82rem; }
.hd-chips { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .8rem; font-weight: 600; color: #e6ebf2; }
.hd-chips li { display: flex; align-items: center; gap: 4px; }
.hd-chips .ic { width: 14px; height: 14px; color: var(--gold); }
.rated { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .8rem; color: #d5dce6; }
.stars { color: var(--gold); font-size: .9rem; }
.bk { display: grid; gap: 7px; padding: 10px 12px 12px; }
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: #e9eef5; border-radius: 8px; padding: 3px; }
.dir button { border: 0; background: transparent; border-radius: 6px; padding: 7px 6px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.dir button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 30, 45, .2); }
.rows-l, .cars legend { margin: 2px 0 0; padding: 0; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.rows { display: grid; gap: 3px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 38px; padding: 3px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.row-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; row-gap: 0; }
.row-n b { font-size: .94rem; }
.l-th .row-n b, .l-th .pn { white-space: nowrap; }
.row-n small { font-size: .76rem; color: var(--ink-2); }
.row-p { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row[aria-checked="true"] { border-color: var(--blue); background: var(--blue-l); box-shadow: inset 4px 0 0 var(--blue); }
.vars { display: flex; gap: 5px; }
.vars button { flex: 1 1 0; min-width: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 6px; font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.vars button[aria-checked="true"] { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); }
.cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.cars legend { margin-bottom: 4px; }
.car { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 6px; min-width: 0; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; line-height: 1.3; }
.car input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.car-n { order: 1; white-space: nowrap; font-weight: 800; font-size: .9rem; }
.car small { order: 3; flex: 1 0 100%; font-size: .72rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car b { order: 2; white-space: nowrap; font-size: .92rem; font-variant-numeric: tabular-nums; }
.car:has(input:checked) { border-color: var(--blue); background: var(--blue-l); box-shadow: inset 0 -3px 0 var(--blue); }
.car:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.when { display: flex; gap: 8px; }
.when .fld { flex: 1 1 0; }
.bk .w-flight { display: none; }
.go { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 8px; padding: 12px 16px;
  background: var(--blue); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.go:hover { background: var(--blue-d); }
.go:disabled { opacity: .6; cursor: not-allowed; }
.go b { font-variant-numeric: tabular-nums; }
.fine { margin: 0; text-align: center; font-size: .74rem; color: var(--ink-2); }

/* fields */
.fld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.fld > span, .fld > label { display: block; }
.fld > span.ph { display: flex; }
input, select, textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; font-weight: 400; letter-spacing: normal; text-transform: none;
  color: var(--ink); background: #fff; border: 1.5px solid #c9d2dd; border-radius: 8px; padding: 8px 10px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(31, 111, 224, .25); outline-offset: 0; }
.hint { font-size: .75rem; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--ink-2); }

/* the promise strip under the hero */
.usp { background: var(--slate-2); color: #fff; border-top: 1px solid rgba(201, 162, 74, .6); }
.usp-in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 14px; font-size: .86rem; font-weight: 600; }
.usp-in li { display: flex; align-items: flex-start; gap: 7px; }
.usp-in .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }

/* sections */
.sec { padding: 44px 0; }
.sec-white { background: #fff; }
.sec-slate { background: var(--slate); color: #fff; }
.kicker { margin: 0 0 6px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); }
.kicker span { display: inline-flex; align-items: center; gap: 10px; }
.kicker span::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.sec-slate .kicker { color: var(--gold-l); }
.sub, .lead { margin: 0 0 18px; color: var(--ink-2); max-width: 68ch; }
.lead { font-size: 1.02rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 2px solid transparent; border-radius: 8px;
  font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-line-o { background: #fff; color: var(--blue-d); border-color: var(--blue); }
.btn-wa { background: #0f7a40; color: #fff; }
.btn-line { background: #06c755; color: #042713; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.acts.col { flex-direction: column; align-items: stretch; }

/* airport pickup, step by step */
.kkc { display: grid; gap: 24px; }
.walk { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: w; }
.walk li { position: relative; padding: 0 0 16px 46px; counter-increment: w; }
.walk li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.walk li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--gold); }
.walk li:last-child::after { display: none; }
.walk h3 { font-size: 1.02rem; margin: 4px 0 2px; }
.walk p { margin: 0; color: var(--ink-2); }
.note { margin: 0; padding-left: 12px; border-left: 3px solid var(--gold); color: var(--ink-2); font-size: .93rem; }
.kkc-ph { margin: 0; }
.kkc-ph img { display: block; width: 100%; height: auto; border-radius: var(--r); }

/* fare table */
.fares { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.fares th, .fares td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.fares thead th { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); background: var(--page); }
.fares tbody tr:first-child > * { border-top: 2px solid #c3ccd8; }
.fares tbody th { font-weight: 700; }
.fares td span { font-weight: 800; font-variant-numeric: tabular-nums; }
.rt i { font-style: normal; color: var(--blue); }
.tb-go a { display: inline-block; padding: 6px 14px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.tb-go a:hover { background: var(--blue-d); }

/* intercity */
.xcity { display: grid; gap: 14px; }
.ic-c { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r); padding: 18px; }
.ic-c h3 { font-size: 1.25rem; }
.ic-n { margin: 0; color: var(--ink-2); font-size: .93rem; }
.ic-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ic-l li { border-bottom: 1px dashed #cfd7e1; }
.ic-l a { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 2px 0 8px; color: inherit; text-decoration: none; }
.ic-l a:hover b { color: var(--blue-d); }
.ic-l a > span:first-child { display: grid; min-width: 0; }
.ic-f { margin: 0; font-size: .92rem; font-weight: 600; }
.ic-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ic-3 div { padding: 8px 10px; border-radius: 8px; background: var(--page); }
.ic-3 small { display: block; font-size: .76rem; color: var(--ink-2); }
.ic-3 b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ic-l small { font-size: .8rem; color: var(--ink-2); }
.ic-p { text-align: right; white-space: nowrap; }
.ic-p b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ic-a { display: grid; gap: 8px; margin: auto 0 0; }
.ic-a .btn { flex-direction: column; gap: 0; padding: 9px 12px; }
.ic-a .btn span { font-weight: 500; font-size: .84rem; }

/* fleet */
.fleet-ph { margin: 0; }
.fleet-ph img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.specs { display: grid; gap: 10px; margin-top: 14px; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.spec h3 { font-size: 1.1rem; }
.spec p { margin: 0; color: var(--ink-2); font-size: .92rem; grid-column: 1; }
.spec .spec-p { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--ink); font-size: 1.3rem; font-weight: 850; font-variant-numeric: tabular-nums; }

/* how it works, what is included, who runs it */
.how { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 12px; }
.how li { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--slate-3); }
.how-n { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--gold); color: var(--slate-2); font-weight: 900; display: grid; place-items: center; }
.how h3 { font-size: 1.04rem; margin: 2px 0 4px; color: #fff; }
.how p { margin: 0; color: #d6dde7; }
.incl { display: grid; gap: 12px; }
.incl-b { padding: 16px 18px; border-radius: var(--r); background: #fff; color: var(--ink); }
.incl-b h3 { font-size: 1rem; margin-bottom: 8px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { display: flex; align-items: flex-start; gap: 8px; }
.ticks .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--blue); }
.ticks.plus .ic { color: var(--blue-d); }
.trust p { margin: 0; color: var(--ink-2); }
.rates { display: flex; gap: 10px; margin: 12px 0 6px; }
.rates div { flex: 1 1 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.rates dt { font-size: .8rem; color: var(--ink-2); }
.rates dd { margin: 0; font-size: 1.35rem; font-weight: 900; }
.rates dd::before { content: "\2605\00a0"; color: var(--gold); font-size: 1rem; }
.trust .rates-n { font-size: .8rem; }

/* FAQ: every answer visible */
.qa { margin: 16px 0 0; display: grid; }
.qa-i { padding: 14px 0; border-top: 1px solid var(--line); }
.qa dt { font-weight: 800; margin-bottom: 4px; }
.qa dd { margin: 0; color: var(--ink-2); }
.qa dd span { font-weight: 700; color: var(--ink); }

/* closing band */
.close { background: var(--blue); color: #fff; padding: 32px 0; }
.close-in { display: grid; gap: 4px; }
.close h2 { color: #fff; margin-bottom: 4px; }
.close p { margin: 0; }
.close .btn-blue { background: #fff; color: var(--blue-d); }
.close .acts { margin-top: 14px; }

/* footer */
.ft { background: var(--slate); color: #d6dde7; padding: 34px 0 92px; font-size: .94rem; }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ft-top { display: grid; gap: 22px; }
.ft-brand { display: flex; gap: 12px; align-items: flex-start; }
.ft-brand img { flex: none; }
.ft-brand b { color: #fff; font-size: 1.05rem; }
.ft-brand p { margin: 4px 0 0; }
.ft-links, .ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft a { color: #fff; text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-contact a { display: inline-flex; align-items: center; gap: 8px; }
.ft-contact .ic { color: var(--gold); }
.smile { margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; }
.smile img { width: auto; height: 56px; }
.smile p { margin: 8px 0 0; }
.smile span { margin: 0 8px; color: #b9c3d0; }
.ft-op { margin: 0; text-align: center; font-size: .8rem; color: #b9c3d0; }
/* English footer: every route page */
.ft .kicker { color: var(--gold-l); }
.ft-rt { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.ft-rt ul { list-style: none; margin: 0; padding: 0; columns: 15rem; column-gap: 28px; }
.ft-rt li { padding: 3px 0; }

/* sticky bar (phones) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: var(--slate); border-top: 2px solid var(--gold); box-shadow: 0 -6px 18px rgba(0, 0, 0, .22); }
.bar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 8px; font-weight: 800; font-size: .92rem; text-decoration: none; }
.bar-book { background: var(--blue); color: #fff; }
.bar-wa { background: #0f7a40; color: #fff; }
.bar-line { background: #06c755; color: #042713; }

/* booking, contact, 404 */
.bkp, .cp { padding: 24px 0 44px; }
.bkp-top h1 { font-size: 1.6rem; font-weight: 850; margin-bottom: 6px; }
.bkp-top .sub { margin-bottom: 0; }
.bkp-grid, .cp-grid { display: grid; gap: 14px; margin-top: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.panel h2 { font-size: 1.08rem; margin-bottom: 12px; }
.panel h2 + p { margin-top: 0; }
.ride { display: grid; gap: 8px; }
.ride h2 { margin-bottom: 4px; }
.sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 14px; border-left: 4px solid var(--gold); border-radius: 8px; background: var(--slate); color: #fff; }
.sum small { display: block; font-size: .8rem; color: #cdd5df; }
.sum-p { font-size: 1.5rem; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 12px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ph { display: flex; gap: 6px; }
.ph select { flex: 0 0 104px; width: 104px; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: .95rem; }
.alert.good { background: #e7f6ec; color: #0d4f2a; border: 1px solid #9fd8b4; }
.alert.bad { background: #fdecec; color: #8a1c1c; border: 1px solid #f2b3b3; }
.alt .acts { margin: 12px 0 20px; }
.nexts { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.nf { padding: 56px 0 64px; }
.nf-code { margin: 0 0 6px; font-size: 3.6rem; font-weight: 900; line-height: 1; color: var(--blue); }
.nf h1 { font-size: 1.7rem; margin-bottom: 8px; }

@media (max-width: 559px) { .cp .g2 { grid-template-columns: minmax(0, 1fr); } }
/* phones: the fare table becomes one block per ride */
@media (max-width: 699px) {
  .cars.long .car-n { flex-basis: 100%; }
  .fares, .fares tbody, .fares tr, .fares th, .fares td { display: block; }
  .fares { border: 0; background: transparent; }
  .fares thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fares tbody { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
  .fares tbody tr:first-child > * { border-top: 0; }
  .fares tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 2px 10px; align-items: end; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .fares tr:last-child { border-bottom: 0; }
  .fares th, .fares td { padding: 0; border: 0; }
  .fares tbody th { grid-column: 1 / -1; margin-bottom: 2px; }
  .fares td[data-l]::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
}

@media (min-width: 560px) {
  .usp-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec .spec-p { grid-column: 1; grid-row: auto; }
}

/* tablets and up: the photo fills the hero, the counter sits on the left */
@media (min-width: 700px) {
  .in { padding: 0 24px; }
  .gate { display: flex; flex-direction: column; justify-content: center; min-height: min(calc(100vh - 64px), 880px); padding-bottom: 52px; }
  .usp { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(27, 33, 42, .9); }
  .usp-in { padding: 13px 24px; }
  .hd-chips { display: none; }
  .gate-ph img { position: absolute; inset: 0; height: 100%; object-position: 72% 58%; }
  .gate::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 26, 34, .55), rgba(20, 26, 34, 0) 60%); }
  .gate-in { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px; }
  .counter { width: 480px; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px rgba(10, 16, 24, .45); }
  .counter-hd { padding: 16px 22px 14px; }
  .kick { display: block; }
  .counter-hd h1 { font-size: 1.85rem; }
  .l-th .counter-hd h1 { font-size: 1.62rem; }
  .bk { padding: 14px 22px 16px; gap: 9px; }
  .bk .w-flight { display: grid; }
  .row { min-height: 44px; }
  .sec { padding: 60px 0; }
  h2 { font-size: 1.75rem; }
  .ft-in { padding: 0 24px; }
}

@media (min-width: 980px) {
  .hd-in { height: 64px; padding: 0 24px; gap: 22px; }
  .brand img { width: 38px; height: 38px; }
  .hd-wa span { display: inline; }
  .hd-book { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; }
  .hd-book:hover { background: var(--blue-d); }
  .kkc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .kkc-ph { position: sticky; top: 88px; }
  .xcity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .incl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
  .close-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
  .close .acts { margin: 0; }
  .ft { padding-bottom: 36px; }
  .ft-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
  .bar { display: none; }
  .bkp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; grid-template-areas: "ride det" "alt det"; align-items: start; }
  .ride { grid-area: ride; } .det { grid-area: det; } .alt { grid-area: alt; }
  .cp-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .panel { padding: 20px 22px; }
}

@media (min-width: 1100px) {
  .menu { display: flex; gap: 18px; margin: 0 auto; }
  .menu a { color: #e6ebf2; text-decoration: none; font-weight: 600; font-size: .92rem; }
  .menu a:hover { color: #fff; text-decoration: underline; }
  .hd-act { margin-left: 0; }
}

/* Thai has no capitals: give its small labels room instead of letter-spacing */
.l-th .fld, .l-th .rows-l, .l-th .cars legend, .l-th .kicker, .l-th .kick, .l-th .fares thead th { font-size: .84rem; letter-spacing: .01em; }
.l-th .fares td[data-l]::before { font-size: .78rem; letter-spacing: 0; }
/* Thai reads well at 1.4 inside the compact counter; the page body keeps 1.65 */
.l-th .bk, .l-th .counter-hd { line-height: 1.42; }


/* iPhone gives date and time inputs a width of their own; keep them in their column. */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; max-width: 100%; min-height: 40px; box-sizing: border-box; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
:is(label, div, p):has(> input[type="date"]), :is(label, div, p):has(> input[type="time"]) { grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* The Turnstile box is 300px wide; on a 320px phone scale it with zoom (a transform keeps the layout box). */
@media (max-width: 359px) { .cf-turnstile { zoom: .86; max-width: 100%; } }
