/* ==========================================================================
   อัลญาณีทัวร์ — ระบบดีไซน์
   สีแบรนด์ดึงจากโลโก้จริง: น้ำเงิน #002863 + ทอง #FFCC47 บนพื้นครีมอบอุ่น
   ทองใช้ตกแต่งและเป็นพื้นปุ่มเท่านั้น ห้ามเป็นตัวหนังสือบนพื้นครีม (คอนทราสต์ 1.39:1)
   ========================================================================== */

:root {
  /* สี */
  --navy:        #002863;
  --navy-700:    #013a7f;
  --navy-900:    #00193f;
  --gold:        #ffcc47;
  --gold-soft:   #fff6dc;
  --gold-ink:    #8a6608;   /* ทองที่อ่านได้บนครีม 4.89:1 */
  --paper:       #fbf6ec;
  --paper-warm:  #f5eddd;
  --card:        #ffffff;
  --ink:         #16243f;   /* 14.35:1 บนครีม */
  --muted:       #56607a;   /* 5.82:1 บนครีม */
  --line:        #e6dcc8;

  --ok-bg:   #e6f4ec;  --ok-ink:   #1b5e45;
  --warn-bg: #fff6dc;  --warn-ink: #6b5a2e;
  --bad-bg:  #fdece6;  --bad-ink:  #8c2f16;

  /* ระยะและรูปทรง */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --gutter: 16px;
  --maxw: 1180px;

  --shadow-1: 0 1px 2px rgba(0, 25, 63, .05), 0 2px 8px rgba(0, 25, 63, .05);
  --shadow-2: 0 2px 4px rgba(0, 25, 63, .06), 0 10px 26px rgba(0, 25, 63, .09);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Anuphan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  /* ภาษาไทยมีสระบนและสระล่าง ถ้าบีบต่ำกว่า 1.4 สระจะชนกันในหัวข้อใหญ่ */
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(30px, 6.4vw, 56px); }
h2 { font-size: clamp(26px, 4.6vw, 40px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
p  { margin: 0 0 1em; }
a  { color: var(--navy-700); }

img, svg, video { display: block; max-width: 100%; }
/* ถ้าไม่ใส่ height:auto รูปที่มี attribute height จะถูกบีบสัดส่วนเมื่อความกว้างโดนจำกัด
   (ที่ตั้งไหนต้องการความสูงคงที่ ให้กำหนดทับเป็นรายจุด เช่น .hero-media img) */
img { height: auto; }

/* ข้อความบรรยายอ่านง่าย คอลัมน์เดียวเสมอ */
.prose { max-width: 62ch; }

/* ลูกของ grid และ flex มีค่าตั้งต้น min-width:auto ถ้าเนื้อหาข้างในกว้างกว่าช่อง
   มันจะดันให้ทั้งหน้าเลื่อนซ้าย-ขวาได้ ต้องบังคับ min-width:0 ให้ยุบตามช่องเสมอ */
.split > *, .two-col > *, .row-2 > *, .tour-grid > *,
.book-layout > *, .pay-layout > *, .trust-grid > *, .stops > * { min-width: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(48px, 8vw, 96px); }

.section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-ink);
  text-transform: none;
  margin-bottom: .5em;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; }

/* -------------------------------------------------------------- ปุ่ม */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-gold   { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-1); }
.btn-navy   { background: var(--navy); color: #fff; }
.btn-ghost  { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn[disabled], .btn[aria-disabled='true'] {
  background: #ddd6c6; color: #7d7768; cursor: not-allowed; box-shadow: none;
}
.btn-block { width: 100%; }
.btn-sm { min-height: 46px; padding: 8px 18px; font-size: 15px; }

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover  { background: #ffd869; transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .btn-navy:hover  { background: var(--navy-700); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--navy); }
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: 6px;
}

/* -------------------------------------------------------------- ส่วนหัว */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-head[data-scrolled='true'] { border-bottom-color: var(--line); }
.head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font-weight: 700; color: var(--navy); font-size: 18px; line-height: 1.4; }
.brand-sub  { font-size: 14px; color: var(--muted); line-height: 1.4; }

.nav { display: none; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav a[aria-current='page'] { color: var(--navy); background: var(--paper-warm); font-weight: 600; }
@media (hover: hover) { .nav a:hover { background: var(--paper-warm); } }

.head-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}

.nav-panel {
  display: none;
  padding: 8px 0 20px;
  border-top: 1px solid var(--line);
}
.nav-panel[data-open='true'] { display: block; }
.nav-panel a {
  display: block;
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .head-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* -------------------------------------------------------------- แบนเนอร์ */

.hero {
  position: relative;
  /* บนมือถือไม่เกิน 70vh เพื่อให้เห็นเนื้อหาถัดไปโผล่ */
  height: min(70vh, 560px);
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* จุดโฟกัสคือเรือที่อยู่กลางภาพค่อนไปทางบนเล็กน้อย ไม่ปล่อย center เฉยๆ */
  object-position: 50% 46%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  /* ครึ่งล่างต้องเข้มพอให้ตัวหนังสือขาวอ่านได้ทุกจุด แม้ตรงที่ตัวเรือสีอ่อนพาดผ่าน
     (วัดแล้วจุดพื้นหลังที่สว่างที่สุดต้องได้อย่างน้อย 4.5:1) ส่วนครึ่งบนปล่อยให้เห็นรูปชัด */
  background:
    linear-gradient(to top,
      rgba(0, 20, 50, .93) 0%,
      rgba(0, 20, 50, .80) 30%,
      rgba(0, 20, 50, .58) 52%,
      rgba(0, 20, 50, .24) 74%,
      rgba(0, 20, 50, .05) 100%),
    linear-gradient(to right, rgba(0, 20, 50, .52), rgba(0, 20, 50, .14) 58%, transparent 78%);
}
.hero-body { position: relative; padding-bottom: clamp(32px, 6vw, 64px); color: #fff; }
.hero-body h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 20px rgba(0, 20, 50, .3); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 14px; font-weight: 600;
  margin-bottom: 14px;
}
.hero-tag span { color: var(--gold); }
.hero-sub { font-size: clamp(16px, 2.1vw, 20px); max-width: 44ch; color: rgba(255,255,255,.93); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 900px) {
  .hero { height: min(78vh, 680px); }
}

/* -------------------------------------------------------------- แถบความน่าเชื่อถือ */

.trust {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 4vw, 40px);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.trust-item { display: flex; gap: 10px; align-items: flex-start; }
.trust-item svg { flex: none; width: 26px; height: 26px; color: var(--navy); }
.trust-item b { display: block; font-size: 16px; color: var(--navy); line-height: 1.35; }
.trust-item span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* -------------------------------------------------------------- การ์ดทัวร์ */

/* รูปทัวร์สัดส่วนไม่เท่ากัน จึงไม่บังคับความสูงเท่ากัน */
.tour-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 760px) { .tour-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

.tour-card {
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .tour-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
}
.tour-card-media { position: relative; background: var(--paper-warm); }
.tour-card-media img { width: 100%; height: auto; }
.tour-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.tour-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tour-card-body h3 { margin-bottom: 6px; }
.tour-card-body p { color: var(--muted); font-size: 16px; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-warm); color: var(--navy);
  font-size: 14px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; }
.tour-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.price-num { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; }
.price-unit { font-size: 15px; color: var(--muted); }
.tour-price .btn { margin-left: auto; }

/* -------------------------------------------------------------- แกลเลอรี */

/* รูปแนวตั้งกับแนวนอนคละกัน ใช้คอลัมน์แบบ masonry ไม่บังคับให้สูงเท่ากัน จะได้ไม่ต้องครอป */
.masonry {
  column-count: 2;
  column-gap: 10px;
}
@media (min-width: 480px) { .masonry { column-count: 3; column-gap: 12px; } }
@media (min-width: 1024px) { .masonry { column-count: 4; column-gap: 14px; } }

.masonry figure {
  break-inside: avoid;
  margin: 0 0 10px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-warm);
}
@media (min-width: 480px) { .masonry figure { margin-bottom: 12px; } }
.masonry img { width: 100%; height: auto; }

/* -------------------------------------------------------------- จุดแวะ */

.stops {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .stops { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px) { .stops { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.stop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px;
}
.stop svg { width: 24px; height: 24px; color: var(--navy); margin-bottom: 8px; }
.stop b { display: block; color: var(--navy); font-size: 16px; line-height: 1.35; }
.stop span { font-size: 14px; color: var(--muted); }

/* -------------------------------------------------------------- แผง/กล่อง */

.panel {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.4vw, 32px);
  box-shadow: var(--shadow-1);
}
.panel-tint { background: var(--gold-soft); box-shadow: none; border: 1px solid #f0e2bd; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split-media { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-warm); }
.split-media img { width: 100%; height: auto; }

/* -------------------------------------------------------------- คำถามที่พบบ่อย */

.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 11px; height: 11px;
  margin-left: auto; margin-top: 7px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* -------------------------------------------------------------- ฟอร์ม */

.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .hint { font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }

input, select, textarea {
  width: 100%;
  /* ต่ำกว่า 16px แล้ว iOS จะซูมเข้าเองตอนกด */
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(1, 58, 127, .13);
  outline: none;
}
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] {
  border-color: #c0432a;
  background: #fffaf8;
}
.field-error { display: block; color: var(--bad-ink); font-size: 14.5px; margin-top: 5px; font-weight: 500; }

.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

fieldset { border: 0; margin: 0 0 18px; padding: 0; }
fieldset > legend {
  font-weight: 600; font-size: 15.5px; color: var(--navy);
  margin-bottom: 8px; padding: 0;
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.choice {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: 16px; font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--gold-soft); font-weight: 600; color: var(--navy); }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy-700); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: .45; cursor: not-allowed; background: var(--paper-warm); }
.choice small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }

/* -------------------------------------------------------------- สรุปยอด */

.summary { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; font-size: 16px;
}
.summary-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-row.is-discount { color: var(--ok-ink); }
.summary-row.is-total {
  border-top: 1.5px solid var(--line);
  margin-top: 8px; padding-top: 14px;
  font-size: 19px; font-weight: 700; color: var(--navy);
}
.summary-row.is-due {
  background: var(--gold-soft);
  margin: 10px -14px 0; padding: 14px;
  border-radius: var(--r-sm);
  font-size: 19px; font-weight: 700; color: var(--navy);
}

.amount-big {
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- ป้ายสถานะ */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.badge-wait    { background: var(--warn-bg); color: var(--warn-ink); }
.badge-check   { background: #e6eefb; color: #1a3f7a; }
.badge-ok      { background: var(--ok-bg);  color: var(--ok-ink); }
.badge-cancel  { background: var(--bad-bg); color: var(--bad-ink); }
.badge-ph {
  background: #ffedd8; color: #8a4b14;
  font-size: 14px; padding: 3px 10px;
}

/* -------------------------------------------------------------- ไทม์ไลน์ */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 28px;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute; left: -8px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 2.5px solid var(--line);
}
.timeline li.is-done::before { background: var(--gold); border-color: var(--navy); }
.timeline b { display: block; color: var(--navy); font-size: 16.5px; }
.timeline span { font-size: 14.5px; color: var(--muted); }

/* -------------------------------------------------------------- แจ้งเตือน */

.note {
  display: flex; gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  line-height: 1.6;
}
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.note-info { background: #eef3fb; color: #1a3f7a; }
.note-warn { background: var(--warn-bg); color: var(--warn-ink); }
.note-bad  { background: var(--bad-bg);  color: var(--bad-ink); }
.note-ok   { background: var(--ok-bg);   color: var(--ok-ink); }

/* -------------------------------------------------------------- ส่วนท้าย */

.site-foot {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(40px, 6vw, 64px);
  font-size: 15.5px;
}
.site-foot h4 { color: #fff; font-size: 16px; margin-bottom: .6em; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.site-foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
@media (hover: hover) { .site-foot a:hover { color: var(--gold); } }
.foot-list { list-style: none; margin: 0; padding: 0; }
/* พื้นที่กดต้องสูงอย่างน้อย 44px ไม่งั้นนิ้วกดพลาดบนมือถือ */
.foot-list li { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
.foot-list li a { display: flex; align-items: center; width: 100%; min-height: 44px; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.site-foot h4 + .foot-list { margin-top: -6px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; }
.foot-bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; color: rgba(255, 255, 255, .6);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* -------------------------------------------------------------- แถบลอยบนมือถือ */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  height: 58px;
  background: var(--line);
  box-shadow: 0 -2px 18px rgba(0, 25, 63, .12);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card);
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.mobile-bar a.is-line { background: #06c755; color: #fff; }
.mobile-bar svg { width: 21px; height: 21px; }
body { padding-bottom: 58px; }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* -------------------------------------------------------------- อนิเมชัน */

/* ปรากฏตอนเลื่อนถึง ขยับขึ้น 20px จางเข้า 520ms เล่นครั้งเดียว */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- ตัวช่วย */

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 0 0 12px 12px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

.stack > * + * { margin-top: var(--s, 16px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* -------------------------------------------------------------- ปุ่มสลับภาษา */

.lang-switch {
  display: inline-flex;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}
.lang-switch button {
  min-height: 38px;
  padding: 6px 13px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.4;
}
.lang-switch button[aria-pressed='true'] { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .lang-switch button:not([aria-pressed='true']):hover { background: var(--paper-warm); color: var(--navy); }
}
.lang-switch.is-panel { display: flex; width: 100%; margin-top: 14px; }
.lang-switch.is-panel button { flex: 1; min-height: 46px; font-size: 16px; }
@media (min-width: 900px) { .lang-switch.is-panel { display: none; } }

/* -------------------------------------------------------------- รอบเวลาออกเรือ */

.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) { .slot-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.slot {
  position: relative;
  display: block;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease);
}
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot:has(input:checked) {
  border-color: var(--navy);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.slot:has(input:focus-visible) { outline: 3px solid var(--navy-700); outline-offset: 2px; }
.slot:has(input:disabled) { opacity: .45; cursor: not-allowed; background: var(--paper-warm); }
@media (hover: hover) and (pointer: fine) {
  .slot:not(:has(input:disabled)):hover { border-color: var(--navy-700); transform: translateY(-2px); }
}

.slot-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slot-time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.slot-time svg { flex: none; width: 21px; height: 21px; color: var(--gold-ink); }
.slot-note { display: block; margin-top: 5px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.slot-left { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.slot:has(input:disabled) .slot-left { color: var(--bad-ink); }

/* แถวจำนวนผู้โดยสาร */
.pax-row { display: grid; gap: 12px; }
@media (min-width: 520px) { .pax-row { grid-template-columns: 1fr 1fr; } }
.pax-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  font-size: 15px;
  line-height: 1.6;
  color: var(--warn-ink);
}
