@charset "utf-8";
/* ==========================================================================
   จองตั๋ว.net — Design System
   สีหลักดึงจากโลโก้: น้ำเงิน Bus-TH / เขียว / แดงส้ม
   ========================================================================== */

:root{
  /* brand */
  --blue-900:#08243F;
  --blue-800:#0E3D68;
  --blue-700:#0E4C86;
  --blue-600:#1573C4;
  --blue-500:#2E90E0;
  --blue-100:#DCEBF9;
  --blue-050:#F0F7FD;

  --accent-700:#C43A12;
  --accent-600:#E8501F;
  --accent-500:#F4661E;   /* CTA */
  --accent-100:#FFE9DF;

  --green-600:#2C9A4C;
  --green-100:#E1F5E7;

  /* neutrals */
  --ink:#0F1B2D;
  --ink-2:#33475F;
  --muted:#64768C;
  --line:#E2E9F2;
  --line-2:#EEF3F9;
  --surface:#FFFFFF;
  --bg:#F5F8FC;

  /* system */
  --radius:14px;
  --radius-lg:22px;
  --radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(15,27,45,.05), 0 2px 8px rgba(15,27,45,.05);
  --shadow-md:0 4px 12px rgba(15,27,45,.07), 0 12px 28px rgba(15,27,45,.07);
  --shadow-lg:0 8px 24px rgba(8,36,63,.10), 0 28px 60px rgba(8,36,63,.14);
  --ring:0 0 0 3px rgba(21,115,196,.30);

  --wrap:1200px;
  --gutter:20px;
  --header-h:68px;

  --font:"IBM Plex Sans Thai","IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI","Sarabun","Noto Sans Thai",Tahoma,sans-serif;
}

/* ── reset ───────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--font);font-size:16px;line-height:1.7;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  /**
   * ใช้ clip ไม่ใช่ hidden — hidden จะทำให้ body กลายเป็น scroll container
   * แล้วไปคลิป dropdown ของวิดเจ็ตค้นหาที่ยื่นออกนอกกล่อง
   * clip กันการเลื่อนแนวนอนได้เหมือนกันแต่ไม่ยุ่งกับแกนตั้ง
   * (ต้นเหตุการล้นจริงแก้ที่ grid minmax(0,1fr) ไปแล้ว นี่เป็นแค่กันเหนียว)
   */
  overflow-x:clip;
}
img,svg{display:block;max-width:100%}
h1,h2,h3,h4{margin:0;line-height:1.3;font-weight:700;letter-spacing:-.01em}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:6px}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.i{width:1.05em;height:1.05em;flex:none;stroke:currentColor;fill:none}

.skip-link{
  position:fixed;top:8px;left:8px;z-index:200;transform:translateY(-160%);
  background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;font-weight:600;
  transition:transform .2s;
}
.skip-link:focus{transform:none}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn{
  --btn-bg:transparent;--btn-fg:var(--ink);--btn-bd:transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 20px;border:1.5px solid var(--btn-bd);border-radius:var(--radius-pill);
  background:var(--btn-bg);color:var(--btn-fg);
  font-weight:600;font-size:.95rem;cursor:pointer;white-space:nowrap;
  transition:transform .16s cubic-bezier(.3,.9,.4,1),box-shadow .16s,background .16s,color .16s,border-color .16s;
}
.btn:hover{transform:translateY(-1.5px)}
.btn:active{transform:translateY(0)}
.btn--primary{
  --btn-bg:linear-gradient(135deg,var(--accent-500),var(--accent-600));--btn-fg:#fff;
  box-shadow:0 4px 14px rgba(232,80,31,.32);
}
.btn--primary:hover{box-shadow:0 8px 22px rgba(232,80,31,.42)}
.btn--outline{--btn-bd:var(--line);--btn-bg:var(--surface);--btn-fg:var(--blue-700)}
.btn--outline:hover{--btn-bd:var(--blue-500);--btn-bg:var(--blue-050)}
.btn--ghost{--btn-bg:rgba(255,255,255,.9);--btn-bd:var(--line);--btn-fg:var(--ink-2)}
.btn--ghost:hover{--btn-bd:var(--blue-500);--btn-fg:var(--blue-700)}
.btn--quiet{--btn-fg:var(--blue-700);--btn-bg:var(--blue-050)}
.btn--quiet:hover{--btn-bg:var(--blue-100)}
.btn--line{--btn-bg:#06C755;--btn-fg:#fff;box-shadow:0 4px 14px rgba(6,199,85,.3)}
.btn--line:hover{--btn-bg:#05b34c}
.btn--sm{padding:9px 15px;font-size:.875rem}
.btn--lg{padding:15px 28px;font-size:1rem}
.btn--full{width:100%}

/* ── topbar ──────────────────────────────────────────────────────────── */
.topbar{background:var(--blue-900);color:#C6DCF0;font-size:.8rem}
.topbar__in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px}
.topbar__list{display:flex;gap:22px;overflow:auto;scrollbar-width:none}
.topbar__list::-webkit-scrollbar{display:none}
.topbar__list li{display:flex;align-items:center;gap:7px;white-space:nowrap}
.topbar__list .i{color:var(--blue-500)}
.topbar__call{display:flex;align-items:center;gap:7px;color:#fff;font-weight:600;white-space:nowrap}
.topbar__call .i{color:var(--accent-500)}
.topbar__call strong{color:var(--accent-500);letter-spacing:.01em}
.topbar__call:hover strong{text-decoration:underline}

/* ── header ──────────────────────────────────────────────────────────── */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s;
}
.site-header.is-stuck{box-shadow:0 4px 18px rgba(15,27,45,.08)}
.site-header__in{display:flex;align-items:center;gap:18px;min-height:var(--header-h)}

.brand{display:flex;align-items:center;gap:11px;margin-right:auto}
.brand__mark{width:44px;height:44px;border-radius:12px;box-shadow:var(--shadow-sm)}
.brand__text{display:flex;flex-direction:column;line-height:1.15}
.brand__name{font-size:1.22rem;font-weight:700;color:var(--blue-700);letter-spacing:-.02em}
.brand__tld{color:var(--accent-600)}
.brand__tag{font-size:.68rem;color:var(--muted);font-weight:500;letter-spacing:.01em}

.nav{display:flex;gap:4px}
.nav a{
  position:relative;padding:9px 14px;border-radius:10px;
  font-weight:600;font-size:.94rem;color:var(--ink-2);transition:.16s;
}
.nav a:hover{background:var(--blue-050);color:var(--blue-700)}
.nav a[aria-current="page"]{color:var(--blue-700)}
.nav a[aria-current="page"]::after{
  content:"";position:absolute;left:14px;right:14px;bottom:2px;height:2.5px;
  border-radius:2px;background:var(--accent-500);
}
.site-header__cta{display:flex;align-items:center;gap:9px}
/* โชว์เฉพาะตอนเมนูยุบเป็น burger เท่านั้น (desktop มีปุ่มบน header อยู่แล้ว) */
.nav__ticket{display:none}

.burger{display:none;flex-direction:column;gap:4.5px;padding:10px;background:none;border:0;cursor:pointer}
.burger span{width:20px;height:2px;background:var(--ink);border-radius:2px;transition:.2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero{position:relative;isolation:isolate;padding-top:52px;color:#fff}
.hero__bg{
  position:absolute;inset:0 0 92px;z-index:-1;overflow:hidden;
  background:linear-gradient(155deg,var(--blue-800) 0%,var(--blue-700) 42%,#12629F 100%);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 46px),0 100%);
}
.hero__road{
  position:absolute;left:-10%;right:-10%;bottom:26%;height:2px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.34) 0 26px,transparent 26px 52px);
  transform:rotate(-2.2deg);
}
.hero__road::after{
  content:"";position:absolute;left:-10%;right:-10%;top:-58px;height:2px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.14) 0 16px,transparent 16px 44px);
}
.hero__glow{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5}
.hero__glow--a{width:420px;height:420px;top:-140px;right:-80px;background:#2E90E0}
.hero__glow--b{width:340px;height:340px;bottom:-60px;left:-90px;background:var(--accent-600);opacity:.3}

.hero__in{position:relative;padding-bottom:26px}
.crumbs{margin-bottom:18px;font-size:.82rem}
.crumbs ol{display:flex;flex-wrap:wrap;gap:8px;color:#A8CBEA}
.crumbs li+li::before{content:"›";margin-right:8px;opacity:.6}
.crumbs a:hover{color:#fff;text-decoration:underline}
.crumbs [aria-current]{color:#fff;font-weight:600}

.hero__kicker{
  display:inline-flex;align-items:center;gap:9px;margin-bottom:16px;
  padding:6px 14px 6px 11px;border-radius:var(--radius-pill);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);
  font-size:.8rem;font-weight:500;color:#DCEBF9;backdrop-filter:blur(6px);
}
.hero__kicker .dot{
  width:7px;height:7px;border-radius:50%;background:#48D17C;
  box-shadow:0 0 0 3px rgba(72,209,124,.28);animation:pulse 2.2s ease-out infinite;
}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(72,209,124,0)}}

.hero__title{font-size:clamp(1.9rem,5.2vw,3.1rem);line-height:1.24;letter-spacing:-.025em;max-width:20ch}
.hero__title em{
  font-style:normal;position:relative;white-space:nowrap;
  /* ไฮไลต์แบบปากกาเมจิก — พาดทับครึ่งล่างของตัวอักษรให้ดูติดกับข้อความ */
  background:linear-gradient(180deg,
    transparent 0 52%,
    rgba(244,102,30,.92) 52% 80%,
    transparent 80%);
}
.nb{white-space:nowrap}
.hero__lead{margin-top:16px;max-width:56ch;color:#CFE3F5;font-size:clamp(.95rem,1.6vw,1.08rem)}

.hero__stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.hero__stats li{
  display:flex;flex-direction:column;min-width:104px;padding:11px 18px;
  border-radius:var(--radius);background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.17);backdrop-filter:blur(4px);
}
.hero__stats strong{font-size:1.32rem;line-height:1.2;letter-spacing:-.02em}
.hero__stats span{font-size:.76rem;color:#B7D4EE}

/* ── ticket search card ──────────────────────────────────────────────── */
/**
 * ห้ามใส่ overflow:hidden ที่นี่เด็ดขาด
 * วิดเจ็ตค้นหาของ BusX วาง dropdown ผลลัพธ์แบบ absolute ไว้ข้างใน
 * ถ้าคลิปกล่อง รายการที่ค้นเจอจะถูกตัดหายไปครึ่งหนึ่ง
 * มุมโค้งของแถบ BOARDING จึงใช้ border-radius ที่ตัวมันเองแทน
 */
.ticket-search{
  position:relative;display:flex;margin-top:34px;z-index:20;
  background:var(--surface);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}

.ticket-search__stub{
  position:relative;flex:none;width:112px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  background:linear-gradient(165deg,var(--blue-700),var(--blue-600));color:#fff;
  border-radius:var(--radius-lg) 0 0 var(--radius-lg);
}
.ticket-search__stub::after{
  content:"";position:absolute;right:0;top:14px;bottom:14px;width:0;
  border-right:2px dashed rgba(255,255,255,.45);
}
.ticket-search__bus{width:34px;height:34px;stroke:currentColor;fill:none;stroke-width:1.6}
.ticket-search__stubtext{
  font-size:.66rem;font-weight:700;letter-spacing:.22em;
  writing-mode:vertical-rl;text-orientation:mixed;color:rgba(255,255,255,.72);
}
.ticket-search__body{flex:1;min-width:0;padding:26px 28px 22px}
.ticket-search__title{font-size:1.22rem;color:var(--ink)}
.ticket-search__sub{margin-top:5px;font-size:.88rem;color:var(--muted)}
.ticket-search__head{margin-bottom:18px}

/* กรอบให้วิดเจ็ต BusX กลมกลืนกับดีไซน์ */
#busx-search-form{
  min-height:78px;padding:6px;border-radius:var(--radius);
  background:var(--blue-050);border:1px solid var(--blue-100);
}
#busx-search-form:empty::after{
  content:"กำลังโหลดระบบค้นหาเที่ยวรถ…";
  display:flex;align-items:center;justify-content:center;height:66px;
  color:var(--muted);font-size:.9rem;
}
.notice{padding:14px;border-radius:var(--radius);background:var(--accent-100);color:var(--accent-700);font-size:.9rem}

.ticket-search__quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:.84rem}
.ticket-search__quick>li:first-child{color:var(--muted);font-weight:600}
.ticket-search__quick a{
  display:inline-block;padding:5px 13px;border-radius:var(--radius-pill);
  background:var(--bg);border:1px solid var(--line);color:var(--ink-2);
  font-weight:500;transition:.16s;
}
.ticket-search__quick a:hover{background:var(--accent-100);border-color:var(--accent-500);color:var(--accent-700)}

/* ── sections ────────────────────────────────────────────────────────── */
.section{padding:60px 0}
.section--pop{padding-top:56px}
.section--all{background:linear-gradient(180deg,var(--bg),#EDF2F9)}
.section--hub{background:var(--surface);border-block:1px solid var(--line)}
.section--copy{padding-bottom:72px}

.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}
.section__head--tight{margin-bottom:18px}
.section__head h2{font-size:clamp(1.35rem,3vw,1.85rem);letter-spacing:-.02em}
.eyebrow{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:7px;
  font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-600);
}
.link-more{
  display:inline-flex;align-items:center;gap:6px;flex:none;
  font-weight:600;font-size:.92rem;color:var(--blue-700);
}
.link-more:hover{color:var(--accent-600)}
.link-more:hover .i{transform:translateX(3px)}
.link-more .i{transition:transform .18s}

/* ── popular cards (boarding pass) ───────────────────────────────────── */
.pop-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr));
}
.pass{
  position:relative;display:flex;flex-direction:column;height:100%;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);overflow:hidden;
  transition:transform .2s cubic-bezier(.3,.9,.4,1),box-shadow .2s,border-color .2s;
}
.pass:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--blue-100)}
.pass__rank{
  position:absolute;top:0;left:22px;z-index:2;
  padding:5px 11px 6px;border-radius:0 0 9px 9px;
  background:var(--accent-500);color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.03em;
}
.pass__top{padding:30px 22px 18px}
.pass__route{display:flex;align-items:center;gap:12px}
.pass__city{min-width:0;flex:1}
.pass__city--to{text-align:right}
.pass__label{display:block;font-size:.7rem;color:var(--muted);letter-spacing:.04em}
.pass__name{
  display:block;font-size:1.06rem;font-weight:700;color:var(--ink);letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pass__prov{display:block;font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pass__mid{position:relative;flex:none;width:56px;height:26px;display:grid;place-items:center;color:var(--blue-600)}
.pass__mid::before{
  content:"";position:absolute;left:0;right:0;top:50%;height:1.5px;
  background:repeating-linear-gradient(90deg,var(--blue-100) 0 5px,transparent 5px 10px);
}
.pass__mid .i{position:relative;width:24px;height:24px;background:var(--surface);padding:2px}

.pass__meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.tag{
  display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:var(--radius-pill);
  font-size:.75rem;font-weight:600;background:var(--blue-050);color:var(--blue-700);
}
.tag--green{background:var(--green-100);color:var(--green-600)}
.tag--warm{background:var(--accent-100);color:var(--accent-700)}

.pass__bottom{
  position:relative;margin-top:auto;padding:16px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:var(--blue-050);border-top:1.5px dashed var(--line);
}
.pass__bottom::before,.pass__bottom::after{
  content:"";position:absolute;top:-11px;width:20px;height:20px;border-radius:50%;
  background:var(--bg);border:1px solid var(--line);
}
.pass__bottom::before{left:-11px;clip-path:inset(0 0 0 50%)}
.pass__bottom::after{right:-11px;clip-path:inset(0 50% 0 0)}
.pass__price{line-height:1.25}
.pass__price small{display:block;font-size:.7rem;color:var(--muted)}
.pass__price strong{font-size:1.32rem;color:var(--accent-600);letter-spacing:-.02em}
.pass__price strong span{font-size:.8rem;font-weight:600}
.pass__cta{
  display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:var(--radius-pill);
  background:var(--blue-700);color:#fff;font-size:.85rem;font-weight:600;transition:.16s;
}
.pass:hover .pass__cta{background:var(--accent-500);box-shadow:0 4px 12px rgba(232,80,31,.3)}
.pass__link{position:absolute;inset:0;z-index:1}
.pass__link:focus-visible{box-shadow:inset 0 0 0 3px var(--blue-500);border-radius:var(--radius-lg)}

/* ── browse layout ───────────────────────────────────────────────────── */
.browse{display:grid;grid-template-columns:262px minmax(0,1fr);gap:28px;align-items:start}

.rail__inner{
  position:sticky;top:calc(var(--header-h) + 16px);
  padding:20px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);
}
.rail__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.rail__title{display:flex;align-items:center;gap:8px;font-size:1rem}
.rail__close{display:none;background:none;border:0;font-size:1.1rem;color:var(--muted);cursor:pointer;padding:4px 8px}

.field{padding-block:16px;border-top:1px solid var(--line-2)}
.field:first-of-type{border-top:0;padding-top:0}
.field__label{display:block;margin-bottom:9px;font-size:.85rem;font-weight:700;color:var(--ink-2)}
.field__out{float:right;font-weight:600;color:var(--accent-600)}
.field__hint{margin-top:6px;font-size:.74rem;color:var(--muted)}

.chipset{display:flex;flex-wrap:wrap;gap:7px}
.chip{
  padding:6px 13px;border-radius:var(--radius-pill);border:1.5px solid var(--line);
  background:var(--surface);color:var(--ink-2);font-size:.83rem;font-weight:600;cursor:pointer;
  transition:.16s;
}
.chip:hover{border-color:var(--blue-500);color:var(--blue-700)}
.chip[aria-pressed="true"]{background:var(--blue-700);border-color:var(--blue-700);color:#fff}

.select{
  width:100%;padding:10px 36px 10px 13px;border:1.5px solid var(--line);border-radius:11px;
  background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364768C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center/16px;
  font-size:.9rem;cursor:pointer;appearance:none;
}
.select:hover{border-color:var(--blue-500)}
.select--sm{width:auto;min-width:158px;padding-block:8px;font-size:.86rem}

.range{width:100%;height:5px;border-radius:5px;background:var(--line);appearance:none;cursor:pointer}
.range::-webkit-slider-thumb{
  appearance:none;width:20px;height:20px;border-radius:50%;background:var(--accent-500);
  border:3px solid #fff;box-shadow:0 1px 5px rgba(232,80,31,.5);cursor:grab;
}
.range::-moz-range-thumb{
  width:16px;height:16px;border-radius:50%;background:var(--accent-500);
  border:3px solid #fff;box-shadow:0 1px 5px rgba(232,80,31,.5);cursor:grab;
}

.check{display:flex;align-items:flex-start;gap:9px;padding:6px 0;font-size:.87rem;cursor:pointer}
.check input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--blue-600);cursor:pointer}

/* ── toolbar ─────────────────────────────────────────────────────────── */
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:14px}
.search-inline{
  position:relative;display:flex;align-items:center;gap:10px;flex:1;min-width:230px;
  padding:0 14px;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius-pill);
  transition:.16s;
}
.search-inline:focus-within{border-color:var(--blue-500);box-shadow:var(--ring)}
.search-inline .i{color:var(--muted);width:18px;height:18px}
.search-inline input{width:100%;padding:12px 0;border:0;background:none;font-size:.94rem}
.search-inline input:focus{outline:none}
.search-inline input::-webkit-search-cancel-button{display:none}
.search-inline__clear{
  background:var(--line-2);border:0;border-radius:50%;width:24px;height:24px;
  color:var(--muted);cursor:pointer;font-size:.78rem;line-height:1;flex:none;
}
.search-inline__clear:hover{background:var(--line);color:var(--ink)}
.toolbar__right{display:flex;gap:9px;align-items:center}
.badge-count{
  display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;
  border-radius:9px;background:var(--accent-500);color:#fff;font-size:.7rem;font-weight:700;
}

.result-count{font-size:.88rem;color:var(--muted);margin-bottom:10px}
.result-count strong{color:var(--ink);font-weight:700}
.active-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.active-chips:empty{display:none}
.achip{
  display:inline-flex;align-items:center;gap:7px;padding:5px 8px 5px 13px;
  border-radius:var(--radius-pill);background:var(--blue-700);color:#fff;font-size:.8rem;font-weight:600;
}
.achip button{background:rgba(255,255,255,.22);border:0;border-radius:50%;width:18px;height:18px;color:#fff;cursor:pointer;font-size:.7rem;line-height:1}
.achip button:hover{background:rgba(255,255,255,.4)}

/* ── route list (ticket rows) ────────────────────────────────────────── */
.route-list{display:grid;gap:11px;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr))}
.rt{
  position:relative;display:flex;align-items:center;gap:14px;
  padding:15px 17px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);transition:.18s cubic-bezier(.3,.9,.4,1);
}
.rt::before{
  content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;
  background:var(--blue-500);opacity:0;transition:opacity .18s;
}
.rt:hover{border-color:var(--blue-100);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.rt:hover::before{opacity:1}
.rt:focus-within{border-color:var(--blue-500);box-shadow:var(--ring)}

.rt__body{flex:1;min-width:0}
.rt__route{display:flex;align-items:center;gap:8px;font-size:.98rem;font-weight:700;letter-spacing:-.01em}
.rt__o,.rt__d{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44%}
.rt__ar{flex:none;color:var(--blue-500);font-size:.9rem}
.rt__sub{margin-top:3px;font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt__tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.rt__tags .tag{font-size:.7rem;padding:3px 9px}
.rt__price{flex:none;text-align:right;line-height:1.25}
.rt__price small{display:block;font-size:.68rem;color:var(--muted)}
.rt__price b{font-size:1.1rem;color:var(--accent-600);letter-spacing:-.02em}
.rt__price b span{font-size:.75rem}
.rt__go{
  flex:none;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;
  background:var(--blue-050);color:var(--blue-700);transition:.18s;
}
.rt:hover .rt__go{background:var(--accent-500);color:#fff;transform:translateX(2px)}
.rt__link{position:absolute;inset:0;border-radius:var(--radius)}

.empty{
  padding:52px 24px;text-align:center;background:var(--surface);
  border:1px dashed var(--line);border-radius:var(--radius-lg);
}
.empty__icon{width:46px;height:46px;margin:0 auto 14px;color:var(--line);stroke-width:1.4}
.empty h3{font-size:1.1rem;margin-bottom:6px}
.empty p{color:var(--muted);font-size:.9rem;margin-bottom:18px}

.loadmore{margin-top:26px;text-align:center}
.loadmore__hint{margin-top:10px;font-size:.8rem;color:var(--muted)}

/* แบ่งหน้าแบบลิงก์จริง — ใช้ตอน JS ยังไม่เข้าคุม / ปิด JS */
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:26px}
.pager__info{font-size:.85rem;color:var(--muted)}

/* ระหว่างโหลด JSON ก้อนใหญ่ */
.is-filtering .route-list{opacity:.5;transition:opacity .2s}
.route-list[aria-busy="true"]{cursor:progress}

/* ── วิธีจอง 8 ขั้นตอน ───────────────────────────────────────────── */
.section--how{background:var(--surface);border-block:1px solid var(--line)}
.steps{
  display:grid;gap:18px;counter-reset:step;
  grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));
}
.step{display:flex;flex-direction:column;gap:12px}
.step__btn{
  position:relative;display:block;width:100%;padding:0;cursor:zoom-in;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;transition:.2s cubic-bezier(.3,.9,.4,1);
}
.step__btn:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--blue-100)}
.step__btn img{width:100%;height:auto;display:block}
.step__zoom{
  position:absolute;right:8px;bottom:8px;padding:4px 10px;border-radius:var(--radius-pill);
  background:rgba(15,27,45,.78);color:#fff;font-size:.72rem;font-weight:600;
  opacity:0;transition:opacity .2s;backdrop-filter:blur(3px);
}
.step__btn:hover .step__zoom,.step__btn:focus-visible .step__zoom{opacity:1}
.step__text{position:relative;padding-left:38px}
.step__num{
  position:absolute;left:0;top:0;width:28px;height:28px;display:grid;place-items:center;
  border-radius:50%;background:var(--blue-700);color:#fff;font-size:.85rem;font-weight:700;
}
.step__text h3{font-size:.95rem;margin-bottom:4px}
.step__text p{font-size:.82rem;color:var(--muted);line-height:1.6}

/* ── lightbox ────────────────────────────────────────────────────── */
.lightbox{
  position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;
  background:rgba(8,36,63,.88);backdrop-filter:blur(6px);
}
.lightbox[hidden]{display:none}
.lightbox__fig{margin:0;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.lightbox__fig img{
  max-width:min(420px,92vw);max-height:78vh;width:auto;height:auto;
  border-radius:var(--radius);box-shadow:var(--shadow-lg);background:#fff;
}
.lightbox__fig figcaption{color:#DCEBF9;font-size:.9rem;font-weight:600;text-align:center}
.lightbox__close{
  position:absolute;top:16px;right:16px;width:42px;height:42px;border:0;border-radius:50%;
  background:rgba(255,255,255,.16);color:#fff;font-size:1.1rem;cursor:pointer;
}
.lightbox__close:hover{background:rgba(255,255,255,.3)}

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band{
  position:relative;isolation:isolate;padding:56px 0;color:#fff;overflow:hidden;
  background:linear-gradient(120deg,var(--blue-900),var(--blue-700) 55%,#134E86);
}
.cta-band::before{
  content:"";position:absolute;inset:0;z-index:-1;opacity:.5;
  background:
    radial-gradient(520px 320px at 88% -10%,rgba(244,102,30,.42),transparent 70%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 30px,transparent 30px 60px);
}
.cta-band__in{display:grid;grid-template-columns:1.35fr 1fr;gap:36px;align-items:center}
.cta-band h2{font-size:clamp(1.4rem,3.2vw,2rem);letter-spacing:-.02em}
.cta-band p{margin-top:11px;color:#CFE3F5;max-width:52ch}
.cta-band__actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:22px}
.cta-band__actions .btn--quiet{--btn-bg:rgba(255,255,255,.14);--btn-fg:#fff}
.cta-band__actions .btn--quiet:hover{--btn-bg:rgba(255,255,255,.24)}
.cta-band__points{display:grid;gap:11px}
.cta-band__points li{display:flex;align-items:center;gap:11px;font-size:.94rem;color:#E4F0FA}
.cta-band__points .i{
  width:26px;height:26px;padding:5px;border-radius:50%;flex:none;
  background:rgba(72,209,124,.2);color:#66E094;
}

/* ── hub (internal links) ────────────────────────────────────────────── */
.hub-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
.hub{padding:20px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--bg)}
.hub__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.hub__head h3{font-size:1.02rem;color:var(--blue-700)}
.hub__count{font-size:.75rem;color:var(--muted);white-space:nowrap}
.hub__list{display:flex;flex-wrap:wrap;gap:6px}
.hub__list a{
  padding:4px 11px;border-radius:var(--radius-pill);background:var(--surface);
  border:1px solid var(--line);font-size:.82rem;color:var(--ink-2);transition:.16s;
}
.hub__list a:hover{background:var(--blue-700);border-color:var(--blue-700);color:#fff}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-wrap{display:grid;grid-template-columns:.85fr 1.15fr;gap:44px;align-items:start}
.faq-intro h2{font-size:clamp(1.35rem,3vw,1.8rem);margin-bottom:12px}
.faq-intro__lead{color:var(--muted);margin-bottom:20px;font-size:.94rem}
.faq-intro__actions{display:flex;flex-wrap:wrap;gap:10px}
.faq{display:grid;gap:10px}
.faq__item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.faq__item[open]{border-color:var(--blue-100);box-shadow:var(--shadow-sm)}
.faq__item summary{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:16px 18px;cursor:pointer;list-style:none;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary h3{font-size:.98rem;font-weight:600;color:var(--ink)}
.faq__item[open] summary h3{color:var(--blue-700)}
.faq__sign{position:relative;width:18px;height:18px;flex:none}
.faq__sign::before,.faq__sign::after{
  content:"";position:absolute;inset:50% 0 auto;height:2px;border-radius:2px;background:var(--blue-600);
  transform:translateY(-50%);transition:transform .22s;
}
.faq__sign::after{transform:translateY(-50%) rotate(90deg)}
.faq__item[open] .faq__sign::after{transform:translateY(-50%) rotate(0)}
.faq__body{padding:0 18px 18px;color:var(--ink-2);font-size:.92rem}

/* ── SEO copy ────────────────────────────────────────────────────────── */
.seo-copy{max-width:80ch}
.seo-copy h2{font-size:clamp(1.25rem,2.6vw,1.6rem);margin-bottom:14px}
.seo-copy h3{font-size:1.02rem;margin:24px 0 8px;color:var(--blue-700)}
.seo-copy p,.seo-copy li{color:var(--ink-2);font-size:.94rem}
.seo-copy ul{display:grid;gap:6px;margin-top:8px}
.seo-copy ul li{position:relative;padding-left:20px}
.seo-copy ul li::before{
  content:"";position:absolute;left:4px;top:.72em;width:6px;height:6px;
  border-radius:50%;background:var(--accent-500);
}
/* collapse ด้วย grid 0fr→1fr ต้องมีลูกชั้นเดียว มิฉะนั้นแถวที่เหลือจะเป็น auto แล้วเนื้อหาทะลุออกมา */
.seo-copy__more{
  display:grid;grid-template-rows:0fr;
  transition:grid-template-rows .4s cubic-bezier(.3,.9,.4,1);
}
.seo-copy__more-in{min-height:0;overflow:hidden}
.seo-copy.is-open .seo-copy__more{grid-template-rows:1fr}
#moreToggle{margin-top:16px}
#moreToggle .i{transition:transform .25s}
.seo-copy.is-open #moreToggle .i{transform:rotate(180deg)}

/* ── footer ──────────────────────────────────────────────────────────── */
.site-footer{background:var(--blue-900);color:#A9C6DF;padding-top:52px;font-size:.9rem}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px;padding-bottom:38px}
.brand--footer{margin:0 0 16px}
.brand--footer .brand__mark{width:48px;height:48px}
.brand--footer .brand__name{color:#fff}
.brand--footer .brand__tld{color:var(--accent-500)}
.brand--footer .brand__tag{color:#8FB2CE}
.footer-brand p{max-width:44ch;line-height:1.75}

.footer-call{
  display:inline-flex;align-items:center;gap:12px;margin-top:18px;padding:11px 18px 11px 12px;
  border-radius:var(--radius);background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);transition:.16s;
}
.footer-call:hover{background:rgba(244,102,30,.14);border-color:var(--accent-500)}
.footer-call__icon{
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;flex:none;
  background:var(--accent-500);color:#fff;
}
.footer-call__icon .i{width:19px;height:19px}
.footer-call small{display:block;font-size:.7rem;color:#8FB2CE;line-height:1.4}
.footer-call strong{display:block;font-size:1.15rem;color:#fff;letter-spacing:.01em;line-height:1.3}

.social{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.social a{
  display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:var(--radius-pill);
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  font-size:.8rem;font-weight:600;color:#DCEBF9;transition:.16s;
}
.social a:hover{background:rgba(255,255,255,.18);color:#fff}
.social .i{width:17px;height:17px}
.social li:nth-child(1) a:hover{background:#06C755;border-color:#06C755;color:#fff}
.social li:nth-child(2) a:hover{background:#1877F2;border-color:#1877F2;color:#fff}
.social li:nth-child(3) a:hover{background:#FF0033;border-color:#FF0033;color:#fff}

.appbadge{
  display:inline-flex;align-items:center;gap:11px;margin-top:12px;padding:9px 18px 9px 14px;
  border-radius:var(--radius);background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);transition:.16s;
}
.appbadge:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3)}
.appbadge .i{width:24px;height:24px;color:#5AC8FA}
.appbadge small{display:block;font-size:.68rem;color:#8FB2CE;line-height:1.3}
.appbadge strong{display:block;font-size:.95rem;color:#fff;line-height:1.3}

.footer-pay__title{font-size:.8rem;color:#8FB2CE;margin-top:20px;font-weight:600}
.pay{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.pay li{
  display:flex;align-items:center;gap:7px;padding:6px 11px;background:#fff;
  border-radius:8px;font-size:.72rem;color:var(--ink-2);font-weight:600;
}
.pay li img{height:20px;width:auto;object-fit:contain}
.footer-col h2{font-size:.95rem;color:#fff;margin-bottom:13px}
.footer-col ul{display:grid;gap:9px}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer-bottom{
  display:flex;flex-wrap:wrap;gap:10px 24px;justify-content:space-between;
  padding-block:18px;border-top:1px solid rgba(255,255,255,.1);font-size:.8rem;
}
.footer-bottom__meta{color:#7FA2C0}

/* ── mobile sticky CTA ───────────────────────────────────────────────── */
.mobile-cta{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:90;
  gap:14px;align-items:center;padding:11px 16px calc(11px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);backdrop-filter:blur(12px);
  border-top:1px solid var(--line);box-shadow:0 -4px 20px rgba(15,27,45,.09);
  transform:translateY(110%);transition:transform .3s cubic-bezier(.3,.9,.4,1);
}
.mobile-cta.is-on{transform:none}
.mobile-cta__line{
  display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;
  background:#06C755;color:#fff;
}
.mobile-cta__line:active{background:#05b34c}
.mobile-cta__line .i{width:23px;height:23px}
.mobile-cta__price{line-height:1.2;white-space:nowrap}
.mobile-cta__price span{display:block;font-size:.68rem;color:var(--muted)}
.mobile-cta__price strong{font-size:1.1rem;color:var(--accent-600)}
.mobile-cta .btn{flex:1;min-width:0}

/* topbar / footer — ช่องทางติดต่อ */
.topbar__line{display:flex;align-items:center;gap:7px;color:#C6DCF0;white-space:nowrap}
.topbar__line .i{color:#06C755;width:16px;height:16px}
.topbar__line strong{color:#fff}
.topbar__line:hover strong{text-decoration:underline}
.footer-call--line .footer-call__icon{background:#06C755}
.footer-phone{margin-top:10px;font-size:.85rem;color:#8FB2CE}
.footer-phone a{color:#fff;font-weight:600}
.footer-phone a:hover{text-decoration:underline}
.faq-intro__phone{margin-top:12px;font-size:.85rem;color:var(--muted)}
.faq-intro__phone a{color:var(--blue-700);font-weight:600}

/* ══════════════════════════════════════════════════════════════════
   หน้าแรก
   ══════════════════════════════════════════════════════════════════ */
.hero--home{padding-top:60px}
.hero--home .hero__title{font-size:clamp(2rem,5.6vw,3.35rem)}

/* จุดขาย 4 ช่อง */
.usp{padding:34px 0 6px;background:var(--bg)}
.usp__in{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.usp__item{display:flex;gap:13px;align-items:flex-start}
.usp__icon{
  display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;
  background:var(--blue-050);color:var(--blue-700);border:1px solid var(--blue-100);
}
.usp__icon .i{width:21px;height:21px}
.usp__item h2{font-size:.98rem;margin-bottom:4px}
.usp__item p{font-size:.83rem;color:var(--muted);line-height:1.65}

/* การ์ดภาค */
.regiongrid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr))}
.regiongrid a{
  display:block;padding:18px 20px;background:var(--bg);
  border:1px solid var(--line);border-radius:var(--radius);
  transition:.2s cubic-bezier(.3,.9,.4,1);
}
.regiongrid a:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--blue-100);background:var(--surface)}
.regiongrid__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.regiongrid__head strong{font-size:1.02rem;color:var(--blue-700)}
.regiongrid__head .i{width:18px;height:18px;color:var(--blue-600);flex:none;transition:transform .18s}
.regiongrid a:hover .i{transform:translateX(3px)}
.regiongrid__meta{display:block;margin-top:6px;font-size:.82rem;color:var(--ink-2)}
.regiongrid__top{display:block;margin-top:8px;font-size:.76rem;color:var(--muted);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* โลโก้บริษัท */
.section--ops{background:var(--surface);border-block:1px solid var(--line)}
.oplogos{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),1fr))}
.oplogos li{
  display:flex;flex-direction:column;align-items:center;gap:9px;padding:16px 12px;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);text-align:center;
}
.oplogos img{width:72px;height:48px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}
.oplogos span{font-size:.76rem;color:var(--ink-2);font-weight:600;line-height:1.4}

/* ══════════════════════════════════════════════════════════════════
   หน้ารายละเอียดเส้นทาง
   ══════════════════════════════════════════════════════════════════ */
.dhero{position:relative;isolation:isolate;padding:26px 0 34px;color:#fff}
.dhero__bg{
  position:absolute;inset:0;z-index:-1;overflow:hidden;
  background:linear-gradient(150deg,var(--blue-800) 0%,var(--blue-700) 48%,#12629F 100%);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 30px),0 100%);
}
.dhero__grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:30px;align-items:start;margin-top:14px}
.dhero__title{font-size:clamp(1.55rem,3.4vw,2.3rem);line-height:1.28;letter-spacing:-.02em;max-width:20ch;margin-top:8px}
.dhero__sub{margin-top:8px;font-size:.92rem;color:#CFE3F5}

/* คู่ต้นทาง–ปลายทาง */
.odpair{
  display:flex;align-items:center;gap:14px;margin-top:22px;padding:16px 20px;
  border-radius:var(--radius);background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(4px);
}
.odpair__side{min-width:0;flex:1}
.odpair__side--to{text-align:right}
.odpair__label{display:block;font-size:.7rem;color:#A8CBEA;letter-spacing:.04em}
.odpair__city{display:block;font-size:1.2rem;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis}
.odpair__prov{display:block;font-size:.78rem;color:#B7D4EE}
.odpair__mid{position:relative;flex:none;width:110px;display:grid;place-items:center;gap:2px}
.odpair__line{
  position:absolute;left:0;right:0;top:12px;height:1.5px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.45) 0 5px,transparent 5px 10px);
}
.odpair__bus{position:relative;width:26px;height:26px;stroke:#fff;fill:none;stroke-width:1.7;background:var(--blue-700);padding:2px;border-radius:6px}
.odpair__dur{font-size:.72rem;color:#CFE3F5;white-space:nowrap}

/* แถบตัวเลขสำคัญ */
.factstrip{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.factstrip li{
  flex:1;min-width:118px;padding:11px 16px;border-radius:var(--radius);
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);
}
.factstrip__k{display:block;font-size:.72rem;color:#B7D4EE;margin-bottom:2px}
.factstrip__v{display:block;font-size:1.18rem;font-weight:700;letter-spacing:-.02em}
.factstrip__v small{font-size:.78rem;font-weight:600}
.factstrip__v--price{color:#FFB08A}
.factstrip__s{display:block;font-size:.7rem;color:#A8CBEA}

/* การ์ดจอง */
.bookcard{
  position:sticky;top:calc(var(--header-h) + 14px);
  padding:20px;border-radius:var(--radius-lg);background:var(--surface);
  box-shadow:var(--shadow-lg);color:var(--ink);
}
.bookcard__head{padding-bottom:14px;margin-bottom:14px;border-bottom:1.5px dashed var(--line)}
.bookcard__from{display:block;font-size:.76rem;color:var(--muted)}
.bookcard__price{display:block;font-size:2rem;font-weight:700;color:var(--accent-600);letter-spacing:-.03em;line-height:1.2}
.bookcard__price small{font-size:1rem;font-weight:600}
.bookcard__note{display:block;margin-top:4px;font-size:.72rem;color:var(--muted);line-height:1.5}
.bookcard__points{display:grid;gap:8px;margin-top:16px}
.bookcard__points li{display:flex;align-items:flex-start;gap:8px;font-size:.83rem;color:var(--ink-2)}
.bookcard__points .i{width:16px;height:16px;margin-top:3px;color:var(--green-600)}
.bookcard__line{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding-top:14px;
  border-top:1px solid var(--line-2);font-size:.85rem;font-weight:600;color:#06C755;
}
.bookcard__line:hover{text-decoration:underline}
.bookcard__alt{
  display:block;margin-top:10px;text-align:center;font-size:.8rem;
  color:var(--blue-700);font-weight:600;
}
.bookcard__alt:hover{text-decoration:underline}

/* ── หน้าจอรอระหว่างพาไประบบจอง ─────────────────────────────────── */
.bookwait{
  position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:24px;
  background:rgba(8,36,63,.93);backdrop-filter:blur(8px);
  animation:bw-in .2s ease-out;
}
.bookwait[hidden]{display:none}
@keyframes bw-in{from{opacity:0}to{opacity:1}}
.bookwait__box{max-width:340px;text-align:center;color:#fff}
.bookwait__road{
  position:relative;height:52px;margin-bottom:20px;overflow:hidden;
}
/* ถนนวิ่งผ่าน ให้ความรู้สึกว่ากำลังเดินทาง */
.bookwait__road::after{
  content:"";position:absolute;left:0;right:0;bottom:8px;height:3px;border-radius:3px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.55) 0 18px,transparent 18px 36px);
  background-size:36px 3px;
  animation:bw-road .55s linear infinite;
}
@keyframes bw-road{to{background-position:-36px 0}}
.bookwait__bus{
  position:absolute;left:50%;bottom:12px;width:44px;height:44px;margin-left:-22px;
  stroke:#fff;fill:none;stroke-width:1.6;
  animation:bw-bounce .55s ease-in-out infinite alternate;
}
@keyframes bw-bounce{to{transform:translateY(-4px)}}
.bookwait__title{font-size:1.12rem;font-weight:700;letter-spacing:-.01em}
.bookwait__sub{margin-top:5px;font-size:.95rem;color:#FFB08A;font-weight:600}
.bookwait__note{margin-top:12px;font-size:.82rem;color:#A8CBEA;line-height:1.6}

.dsearch{padding:26px 0 8px}

/* ── โครงเนื้อหา ── */
.dbody{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start;padding-block:34px 8px}
/* min-width:0 ต้องไล่ลงมาทุกชั้น — grid item ตั้งต้นเป็น min-width:auto
   ชื่อสถานที่ยาว ๆ ในการ์ด "ใกล้เคียง" จะดัน aside ให้กว้างเกินคอลัมน์ 300px
   จนหน้าเลื่อนแนวนอนได้ ถ้าไม่ปลดตรงนี้ ellipsis ข้างในก็ไม่มีวันทำงาน */
.dbody__side{min-width:0}
.dside{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;position:sticky;top:calc(var(--header-h) + 14px)}

.dsec{margin-bottom:38px;scroll-margin-top:calc(var(--header-h) + 16px)}
.dsec__title{display:flex;align-items:center;gap:10px;font-size:clamp(1.15rem,2.4vw,1.45rem);margin-bottom:8px}
.dsec__title .i{width:22px;height:22px;color:var(--blue-600);flex:none}
.dsec__lead{color:var(--muted);font-size:.92rem;margin-bottom:16px}
.dsec__note{margin-top:12px;font-size:.82rem;color:var(--muted)}

/* ── ตารางเวลา ── */
.timegroups{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.timegroup{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.timegroup h3{font-size:.85rem;color:var(--blue-700);margin-bottom:10px}
.timechips{display:flex;flex-wrap:wrap;gap:6px}
.timechips li{
  padding:5px 12px;border-radius:8px;background:var(--blue-050);border:1px solid var(--blue-100);
  font-size:.88rem;font-weight:600;color:var(--blue-700);font-variant-numeric:tabular-nums;
}
.timechips--sm li{padding:3px 9px;font-size:.8rem}
.timechips__more{background:var(--line-2)!important;border-color:var(--line)!important;color:var(--muted)!important}

/* ── บริษัทเดินรถ ── */
.oplist{display:grid;gap:12px}
.opcard{
  position:relative;display:grid;gap:14px;padding:18px;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto auto;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  transition:.18s;
}
.opcard:hover{border-color:var(--blue-100);box-shadow:var(--shadow-md)}
.opcard__id{display:flex;align-items:center;gap:12px;min-width:0}
.opcard__logo{
  width:56px;height:56px;flex:none;object-fit:contain;background:#fff;
  border:1px solid var(--line);border-radius:11px;padding:5px;
}
.opcard__logo--ph{display:grid;place-items:center;color:var(--line)}
.opcard__logo--ph .i{width:26px;height:26px}
.opcard__name{font-size:1rem;margin-bottom:5px}
.opcard__classes{display:flex;flex-wrap:wrap;gap:5px}
.opcard__k{display:block;font-size:.72rem;color:var(--muted);margin-bottom:5px}
.opcard__buy{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.opcard__price{text-align:right;line-height:1.3}
.opcard__price small{display:block;font-size:.68rem;color:var(--muted)}
.opcard__price b{font-size:1.22rem;color:var(--accent-600);letter-spacing:-.02em}
.opcard__price b span{font-size:.8rem}
/* รูปรถของบริษัท — เป็นภาพตัวอย่าง ต้องบอกให้ชัดกันเข้าใจผิด */
.opcard__figure{margin:0;flex:none;width:132px}
.opcard__bus{
  width:132px;height:88px;object-fit:cover;border-radius:10px;
  border:1px solid var(--line);background:var(--bg);
}
.opcard__figure figcaption{
  margin-top:4px;font-size:.63rem;line-height:1.35;color:var(--muted);text-align:center;
}

/* ── จุดขึ้น–ลง ── */
.points{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.points__col{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.points__col h3{display:flex;align-items:center;gap:9px;font-size:.92rem;margin-bottom:11px}
.points__dot{width:11px;height:11px;border-radius:50%;flex:none}
.points__dot--o{background:var(--green-600);box-shadow:0 0 0 3px var(--green-100)}
.points__dot--d{background:var(--accent-500);box-shadow:0 0 0 3px var(--accent-100)}
.points__col ul{display:grid;gap:7px}
.points__col li{position:relative;padding-left:16px;font-size:.88rem;color:var(--ink-2)}
.points__col li::before{content:"";position:absolute;left:2px;top:.7em;width:5px;height:5px;border-radius:50%;background:var(--line)}
.tag--sm{padding:2px 8px;font-size:.66rem;margin-left:5px;vertical-align:1px}
.points__station{margin-top:11px;padding-top:11px;border-top:1px solid var(--line-2);font-size:.8rem;color:var(--muted)}

/* ── เส้นทาง/จุดจอด ── */
.rmap{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:10px;overflow:hidden}
.rmap[open]{border-color:var(--blue-100);box-shadow:var(--shadow-sm)}
.rmap summary{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:15px 18px;
  cursor:pointer;list-style:none;
}
.rmap summary::-webkit-details-marker{display:none}
.rmap__op{font-weight:700;font-size:.95rem}
.rmap__name{font-size:.85rem;color:var(--ink-2)}
.rmap__meta{margin-left:auto;font-size:.78rem;color:var(--muted);white-space:nowrap}
.rmap .faq__sign{flex:none}

.rmap__all{color:var(--muted);font-weight:400}
.rmap__note{
  margin:0 18px 4px;padding:10px 13px;border-radius:10px;
  background:var(--blue-050);border:1px solid var(--blue-100);
  font-size:.8rem;color:var(--ink-2);line-height:1.6;
}

.stops{padding:4px 18px 20px;position:relative}
.stop{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:9px 0 9px 26px;font-size:.88rem}
.stop::before{
  content:"";position:absolute;left:5px;top:0;bottom:0;width:2px;background:var(--blue-100);
}
.stop:first-child::before{top:50%}
.stop:last-child::before{bottom:50%}
.stop__mark{
  position:absolute;left:0;top:calc(50% - 6px);width:12px;height:12px;border-radius:50%;
  background:#fff;border:2.5px solid var(--blue-300,#7FB6E4);z-index:1;
}
.stop__name{color:var(--ink-2)}

/* จุดขึ้น–ลงของ "เส้นทางนี้" ไม่ใช่ต้น–ปลายสายของบริษัท */
.stop--board .stop__mark{
  border-color:var(--green-600);background:var(--green-600);
  box-shadow:0 0 0 4px var(--green-100);
}
.stop--alight .stop__mark{
  border-color:var(--accent-500);background:var(--accent-500);
  box-shadow:0 0 0 4px var(--accent-100);
}
.stop--board,.stop--alight{padding-block:12px}
.stop--board .stop__name,.stop--alight .stop__name{font-weight:700;color:var(--ink)}

/* ช่วงที่รถวิ่งต่อนอกเส้นทางนี้ — จางไว้ให้รู้ว่าไม่เกี่ยว */
.stop--beyond{opacity:.45}
.stop--beyond .stop__mark{border-color:var(--line);background:#fff}
.stop--beyond::before{background:repeating-linear-gradient(180deg,var(--line) 0 4px,transparent 4px 8px)}

.stop__badge{
  padding:2px 9px;border-radius:var(--radius-pill);font-size:.68rem;font-weight:700;white-space:nowrap;
}
.stop__badge--on{background:var(--green-100);color:var(--green-600)}
.stop__badge--off{background:var(--accent-100);color:var(--accent-700)}
.stop__map{
  margin-left:9px;font-size:.72rem;font-weight:600;color:var(--blue-600);
  padding:2px 8px;border-radius:var(--radius-pill);background:var(--blue-050);white-space:nowrap;
}
.stop__map:hover{background:var(--blue-100)}

/* ── ภาพเที่ยวรถจริง ── */
.shots{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr))}
.shots .step__btn img{aspect-ratio:3/4;object-fit:cover;object-position:top}

/* ── การ์ดข้างขวา ── */
.retcard{
  display:flex;align-items:center;gap:13px;padding:16px;
  background:linear-gradient(135deg,var(--blue-700),var(--blue-600));color:#fff;
  border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:.18s;
}
.retcard:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.retcard__icon{
  display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;
  background:rgba(255,255,255,.18);
}
.retcard__icon .i{width:21px;height:21px}
.retcard small{display:block;font-size:.72rem;color:#CFE3F5}
.retcard strong{display:block;font-size:.98rem;margin:2px 0}

.infocard{min-width:0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.infocard h2{font-size:.95rem;margin-bottom:11px}
.infocard p{font-size:.86rem;color:var(--ink-2)}
.infocard__note{margin-top:10px;font-size:.76rem;color:var(--muted);line-height:1.6}
.infocard__note a{color:var(--blue-700);font-weight:600}
.infocard--line{border-color:rgba(6,199,85,.3);background:linear-gradient(180deg,#F2FCF6,var(--surface))}
.infocard--line .btn{margin-top:12px}
.kv{display:grid;gap:9px}
.kv>div{display:flex;justify-content:space-between;gap:12px;font-size:.86rem}
.kv dt{color:var(--muted)}
.kv dd{margin:0;font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:6px}

.section--near{background:linear-gradient(180deg,var(--bg),#EDF2F9);padding:52px 0}

/* ── หน้า hub จังหวัด / ภาค ─────────────────────────────────────── */
.dhero--hub{padding-bottom:40px}
.dhero--hub .dhero__title{max-width:none}
.hubnote{margin-top:12px;font-size:.85rem;color:var(--muted)}
.linkgrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));margin-top:28px}

/* ตารางจังหวัดในหน้าภาค */
.provgrid{display:grid;gap:11px;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
.provgrid a{
  display:flex;align-items:center;gap:10px;padding:15px 17px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  transition:.18s cubic-bezier(.3,.9,.4,1);
}
.provgrid a:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--blue-100)}
.provgrid__name{flex:1;min-width:0;font-weight:700;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.provgrid__meta{font-size:.78rem;color:var(--muted);white-space:nowrap}
.provgrid a .i{width:18px;height:18px;color:var(--blue-600);flex:none;transition:transform .18s}
.provgrid a:hover .i{transform:translateX(3px)}

/* ชิปจังหวัดมีตัวเลขต่อท้าย */
.hub__list a b{font-weight:700;color:var(--accent-600);font-size:.78rem}
.hub__list a:hover b{color:#fff}

/* ══════════════════════════════════════════════════════════════════
   บริษัทรถทัวร์
   ══════════════════════════════════════════════════════════════════ */
/* การ์ดเหลือแค่โลโก้กับชื่อ จึงจัดได้ถี่ขึ้น */
.cogrid{display:grid;gap:11px;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
.cocard{
  position:relative;display:flex;align-items:center;gap:13px;padding:13px 15px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  transition:.18s cubic-bezier(.3,.9,.4,1);
}
.cocard:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--blue-100)}
.cocard__link{position:absolute;inset:0;border-radius:var(--radius)}
.cocard__logo{
  width:64px;height:44px;flex:none;object-fit:contain;background:#fff;
  border:1px solid var(--line-2);border-radius:9px;padding:3px;
}
.cocard__logo--ph{display:grid;place-items:center;color:var(--line)}
.cocard__logo--ph .i{width:24px;height:24px}
.cocard__name{flex:1;min-width:0;font-size:.95rem;line-height:1.4;letter-spacing:-.01em}
.cocard:hover .rt__go{background:var(--accent-500);color:#fff}

/* หัวหน้าบริษัท */
.cohero{display:flex;align-items:flex-start;gap:18px;margin-top:8px;flex-wrap:wrap}
.cohero>div:not([class]){flex:1;min-width:200px}
.cohero__photo{
  margin:0 0 0 auto;flex:none;width:240px;
}
.cohero__photo img{
  display:block;width:240px;height:150px;object-fit:cover;border-radius:14px;
  border:2px solid rgba(255,255,255,.25);box-shadow:var(--shadow-md);background:var(--blue-800);
}
.cohero__logo{
  width:86px;height:86px;flex:none;object-fit:contain;background:#fff;
  border-radius:16px;padding:8px;box-shadow:var(--shadow-sm);
}
.cohero__en{margin-top:3px;font-size:.9rem;color:#A8CBEA}
.cohero__tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.cohero__tags .tag{background:rgba(255,255,255,.16);color:#fff}

.prose p{color:var(--ink-2);font-size:.94rem;line-height:1.85}
.prose p + p{margin-top:12px}
.prose--wide{max-width:82ch}

/* หมายเหตุความสดของข้อมูล — โทนเทา ให้เป็นข้อมูลประกอบ ไม่ใช่คำเตือน */
.datanote{
  display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;padding:12px 15px;
  background:var(--line-2);border:1px solid var(--line);border-radius:var(--radius);
  font-size:.83rem;line-height:1.65;color:var(--muted);
}
.datanote .i{width:17px;height:17px;flex:none;margin-top:2px;color:var(--muted)}
.datanote strong{font-weight:700;color:var(--ink-2)}
.section--intro{padding:44px 0 8px}
.section--intro .dsec__title{margin-bottom:14px}

/* จุดจำหน่ายตั๋ว */
.counters{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
.counters li{padding:15px 17px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.counters h3{font-size:.92rem;margin-bottom:5px}
.counters__addr{font-size:.82rem;color:var(--muted);line-height:1.6}
.counters__phone{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:.85rem;font-weight:600;color:var(--blue-700)}
.counters__phone .i{width:15px;height:15px}

.morebox{margin-top:14px}
.morebox summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;
  padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  font-size:.88rem;font-weight:600;color:var(--blue-700);list-style:none;
}
.morebox summary::-webkit-details-marker{display:none}
.morebox[open] summary{margin-bottom:12px}

/* สายเดินรถมาตรฐาน */
.lines{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
.line{
  padding:14px 16px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);border-left:3px solid var(--green-600);
}
.line__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.line__head h3{font-size:.92rem;line-height:1.45}
.line__head .tag{flex:none;font-size:.66rem;padding:3px 8px}
.line__meta{margin-top:5px;font-size:.76rem;color:var(--muted)}
.line__od{
  margin-top:7px;padding-top:7px;border-top:1px solid var(--line-2);
  font-size:.78rem;color:var(--ink-2);
}
.line__od span{color:var(--blue-500);margin:0 3px}

/* บริษัทที่เกี่ยวข้อง */
.relist{display:grid;gap:9px}
.relist a{display:flex;align-items:center;gap:10px}
.relist img{width:36px;height:26px;object-fit:contain;background:#fff;border:1px solid var(--line-2);border-radius:6px;padding:2px;flex:none}
.relist strong{display:block;font-size:.86rem;color:var(--ink)}
.relist small{display:block;font-size:.72rem;color:var(--muted)}
.relist a:hover strong{color:var(--blue-700);text-decoration:underline}

/* ══════════════════════════════════════════════════════════════════
   สถานีขนส่ง
   ══════════════════════════════════════════════════════════════════ */
.stgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
.stcard{
  position:relative;display:flex;align-items:flex-start;gap:13px;padding:15px 17px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  transition:.18s cubic-bezier(.3,.9,.4,1);
}
.stcard:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--blue-100)}
.stcard__link{position:absolute;inset:0;border-radius:var(--radius)}
.stcard__pin{
  display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;
  background:var(--blue-050);color:var(--blue-700);border:1px solid var(--blue-100);
}
.stcard__pin .i{width:19px;height:19px}
.stcard__body{flex:1;min-width:0}
.stcard__body h3{font-size:.94rem;line-height:1.45}
.stcard__meta{margin-top:3px;font-size:.78rem;color:var(--muted)}
.stcard .rt__tags{margin-top:7px}
.stcard:hover .rt__go{background:var(--accent-500);color:#fff}
.stcard .rt__go{margin-top:3px}

/* จุดจอดที่มีหน้าของตัวเอง — ทำเป็นลิงก์ในไทม์ไลน์หน้าเส้นทาง */
.stop__name--link{color:var(--blue-700);text-decoration:underline;text-decoration-color:var(--blue-100);
  text-underline-offset:3px}
.stop__name--link:hover{text-decoration-color:var(--blue-600)}
.points__more{
  display:inline-flex;align-items:center;gap:7px;margin-top:10px;
  font-size:.8rem;font-weight:600;color:var(--blue-700);
}
.points__more:hover{text-decoration:underline}
.points__more .i{width:15px;height:15px}

/* สถานที่ใกล้เคียงในแถบข้าง */
.nearby{margin-top:14px}
.nearby:first-of-type{margin-top:10px}
.nearby h3{font-size:.78rem;color:var(--muted);font-weight:700;margin-bottom:6px}
.nearby ul{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
.nearby li{display:flex;justify-content:space-between;gap:10px;min-width:0;font-size:.82rem;color:var(--ink-2)}
.nearby li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nearby li b{flex:none;font-size:.74rem;color:var(--muted);font-weight:600}

/* ══════════════════════════════════════════════════════════════════
   หน้าติดต่อเรา
   ══════════════════════════════════════════════════════════════════ */
.contact-hero{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;
  padding:30px 32px;border-radius:var(--radius-lg);
  background:linear-gradient(135deg,#F2FCF6,var(--surface));
  border:1px solid rgba(6,199,85,.28);box-shadow:var(--shadow-sm);
}
.contact-hero__badge{
  display:inline-block;padding:5px 13px;border-radius:var(--radius-pill);
  background:#06C755;color:#fff;font-size:.74rem;font-weight:700;
}
.contact-hero h2{font-size:clamp(1.3rem,2.8vw,1.75rem);margin:12px 0 10px}
.contact-hero p{color:var(--ink-2);font-size:.94rem;max-width:56ch}
.contact-hero__id{
  margin:14px 0;font-size:1.5rem;font-weight:700;color:#06C755;letter-spacing:-.01em;
}
.contact-hero__tip{
  margin-top:16px;padding:11px 14px;border-radius:var(--radius);
  background:var(--line-2);font-size:.83rem;color:var(--muted);line-height:1.65;
}
.contact-hero__tip strong{color:var(--ink-2)}
.contact-hero__side{flex:none}
.contact-hero__icon{width:120px;height:120px;fill:#06C755;opacity:.16}

/* การ์ดช่วยเหลือตัวเอง */
.selfgrid,.chgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
.selfgrid a,.chgrid a{
  display:block;height:100%;padding:18px 20px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);
  transition:.18s cubic-bezier(.3,.9,.4,1);
}
.selfgrid a:hover,.chgrid a:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--blue-100)}
.selfgrid__icon,.chgrid__icon{
  display:grid;place-items:center;width:42px;height:42px;border-radius:12px;margin-bottom:12px;
  background:var(--blue-050);color:var(--blue-700);border:1px solid var(--blue-100);
}
.selfgrid__icon .i,.chgrid__icon .i{width:21px;height:21px}
.selfgrid strong,.chgrid strong{display:block;font-size:.98rem;margin-bottom:5px}
.selfgrid small,.chgrid small{display:block;font-size:.82rem;color:var(--muted);line-height:1.65}
.chgrid__icon--fb{background:#E7F0FE;color:#1877F2;border-color:#CFE0FC}
.chgrid__icon--yt{background:#FFEAEA;color:#FF0033;border-color:#FFD1D1}
.chgrid__icon--app{background:#E8F7FF;color:#0B78B8;border-color:#CDEBFA}
.chgrid__icon--tel{background:var(--accent-100);color:var(--accent-700);border-color:rgba(232,80,31,.2)}

/* กล่องบอกบทบาทผู้ให้บริการ — โทนเรียบกว่าการ์ดช่องทางติดต่อ
   ตั้งใจให้อ่านเหมือนข้อมูลกำกับ ไม่ใช่ CTA อีกอัน */
.legalnote{
  margin-top:26px;padding:22px 24px;min-width:0;
  background:var(--blue-050);border:1px solid var(--blue-100);border-radius:var(--radius);
}
.legalnote__title{display:flex;align-items:center;gap:9px;font-size:1rem;margin-bottom:12px}
.legalnote__title .i{width:19px;height:19px;color:var(--blue-600);flex:none}
.legalnote p{font-size:.88rem;color:var(--ink-2);line-height:1.85;margin-bottom:10px}
.legalnote strong{color:var(--ink);font-weight:700}
.legalnote__links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.86rem}
.legalnote__links a{color:var(--blue-700);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.legalnote__links span{color:var(--line)}
.legalnote__note{
  margin:14px 0 0;padding-top:13px;border-top:1px solid var(--blue-100);
  font-size:.79rem;color:var(--muted);line-height:1.7;
}
.chgrid__icon--fb .i,.chgrid__icon--yt .i,.chgrid__icon--app .i{fill:currentColor;stroke:none}

@media (max-width:680px){
  .contact-hero{grid-template-columns:minmax(0,1fr);padding:24px 20px}
  .contact-hero__side{display:none}
}

/* ── หน้า error ──────────────────────────────────────────────────── */
.errorbox{
  max-width:56ch;margin:40px auto;padding:44px 28px;text-align:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
.errorbox__icon{width:52px;height:52px;margin:0 auto 16px;color:var(--line);stroke-width:1.4}
.errorbox h1{font-size:1.5rem;margin-bottom:10px}
.errorbox p{color:var(--muted);margin-bottom:24px;word-break:break-word}
.errorbox__actions{display:flex;flex-wrap:wrap;gap:11px;justify-content:center}

/* ══ responsive ═══════════════════════════════════════════════════════ */
@media (max-width:1080px){
  .browse{grid-template-columns:minmax(0,1fr)}
  .dhero__grid,.dbody{grid-template-columns:minmax(0,1fr)}
  .bookcard,.dside{position:static}
  .dside{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
  .rail{
    position:fixed;inset:0;z-index:120;background:rgba(8,36,63,.45);
    backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
  }
  .rail.is-open{opacity:1;visibility:visible}
  .rail__inner{
    position:absolute;inset:auto 0 0;max-height:86vh;overflow:auto;
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom));
    transform:translateY(100%);transition:transform .3s cubic-bezier(.3,.9,.4,1);
  }
  .rail.is-open .rail__inner{transform:none}
  .rail__close{display:block}
  .faq-wrap{grid-template-columns:minmax(0,1fr);gap:26px}
  .cta-band__in{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:1081px){ .only-sm{display:none} }

@media (max-width:860px){
  .footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .footer-brand{grid-column:1/-1}
  .nav{
    position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:2px;padding:10px 16px 16px;
    background:var(--surface);border-bottom:1px solid var(--line);box-shadow:var(--shadow-md);
    display:none;
  }
  .nav.is-open{display:flex}
  .nav a{padding:11px 12px}
  .nav__ticket{
    display:flex;align-items:center;gap:8px;margin-top:6px;padding:12px!important;
    border-top:1px solid var(--line);color:var(--blue-700)!important;font-weight:700;
  }
  .nav__ticket .i{width:18px;height:18px}
  .nav a[aria-current="page"]::after{display:none}
  .burger{display:flex}
  .hide-sm{display:none}
}

@media (max-width:680px){
  :root{--gutter:16px}
  .topbar__list li:nth-child(n+2){display:none}
  .hero{padding-top:34px}
  .hero__bg{clip-path:polygon(0 0,100% 0,100% calc(100% - 26px),0 100%)}
  .hero__stats li{flex:1;min-width:0;padding:9px 12px}
  .hero__stats strong{font-size:1.1rem}
  .ticket-search{flex-direction:column;margin-top:26px}
  .ticket-search__stub{
    width:100%;height:52px;flex-direction:row;
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  }
  .ticket-search__stub::after{right:14px;left:14px;top:auto;bottom:0;width:auto;height:0;border-right:0;border-bottom:2px dashed rgba(255,255,255,.4)}
  .ticket-search__stubtext{writing-mode:horizontal-tb}
  .ticket-search__body{padding:20px 18px}
  .section{padding:44px 0}
  .section__head{flex-direction:column;align-items:flex-start;gap:10px}
  .route-list,.pop-grid{grid-template-columns:minmax(0,1fr)}
  .opcard{grid-template-columns:minmax(0,1fr);gap:12px}
  .opcard__buy{flex-direction:row;align-items:center;justify-content:space-between;width:100%}
  .opcard__price{text-align:left}
  .opcard__figure{width:100%}
  .opcard__bus{width:100%;height:130px}
  .cohero__photo{width:100%;margin-left:0}
  .cohero__photo img{width:100%;height:170px}
  .odpair{flex-direction:column;align-items:stretch;gap:10px;text-align:center}
  .odpair__side--to{text-align:center}
  .odpair__mid{width:100%;height:34px}
  .odpair__line{top:16px}
  .factstrip li{min-width:calc(50% - 5px)}
  .shots{grid-template-columns:repeat(2,1fr)}
  .dhero__title{max-width:none}
  .toolbar__right{width:100%;justify-content:space-between}
  .select--sm{flex:1}
  .mobile-cta{display:flex}
  /* แถบ CTA ล่างจอทำหน้าที่แทนแล้ว ปุ่มบน header จึงซ้ำซ้อน */
  .site-header__cta{display:none}
  body{padding-bottom:0}
  .site-footer{padding-bottom:78px}
  .footer-grid{grid-template-columns:minmax(0,1fr);gap:26px}
}

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

@media print{
  .topbar,.site-header,.mobile-cta,.rail,.cta-band,.loadmore,.toolbar{display:none!important}
  body{background:#fff}
}

/* ── ลิงก์ข้ามหมวด (บริษัท / จังหวัด) ที่ฝังอยู่ในข้อความ ─────────── */
.opcard__name a,.rmap__op a{color:inherit}
.opcard__name a:hover,.rmap__op a:hover{color:var(--blue-700);text-decoration:underline}
.odpair__prov a{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);
  text-underline-offset:3px}
.odpair__prov a:hover{color:#fff;text-decoration-color:#fff}

/* โลโก้บริษัทในหน้าแรกเป็นลิงก์ */
.oplogos a{display:flex;flex-direction:column;align-items:center;gap:9px;color:inherit}
.oplogos li:hover{border-color:var(--blue-100);box-shadow:var(--shadow-sm);transform:translateY(-2px)}
.oplogos li{transition:.18s cubic-bezier(.3,.9,.4,1)}
.oplogos a:hover span{color:var(--blue-700)}
