/* =========================================================
   Talay Trang — เช่าเรือเที่ยวทะเลตรัง
   v2: layout system, tight spacing, premium travel look
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --c-ink:        #0a2740;
  --c-ink-soft:   #36546f;
  --c-muted:      #7a90a3;
  --c-line:       #e5edf3;
  --c-bg:         #ffffff;
  --c-bg-soft:    #f3f9fc;
  --c-bg-deep:    #e8f4f9;

  --c-ocean:      #0277bd;
  --c-ocean-dark: #014a73;
  --c-ocean-deep: #002a40;
  --c-sky:        #00b8e6;
  --c-teal:       #00acc1;
  --c-aqua:       #b3e5fc;
  --c-sand:       #fff5db;

  --c-line-green: #06c755;
  --c-line-dark:  #04a546;
  --c-call:       #ff7a00;
  --c-call-dark:  #e36a00;

  /* Type — Display: DB Adman X (LK3) · Body: IBM Plex Sans Thai Looped */
  /* Primary: SF Pro TH (Local, รองรับไทย+อังกฤษ)
     Fallback chain: system fonts ของแต่ละ OS → IBM Plex Sans Thai Looped */
  --font-base:    'SF Pro TH', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'IBM Plex Sans Thai Looped', 'Sarabun', system-ui, sans-serif;
  --font-display: 'SF Pro TH', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'IBM Plex Sans Thai Looped', 'Sarabun', system-ui, sans-serif;
  /* ฟอนต์เฉพาะแบรนด์ (DB Adman X) — ใช้กับ logo/wordmark เฉพาะ ไม่ใช่ทั้งเว็บ */
  --font-brand:   'DB Adman X', var(--font-display);

  /* Radii / Shadows */
  --r-sm:   8px;
  --r-md:   14px;
  --r-card: 20px;
  --r-lg:   24px;
  --r-full: 999px;

  --sh-sm: 0 2px 10px rgba(2, 65, 100, 0.06);
  --sh-md: 0 12px 32px rgba(2, 65, 100, 0.10);
  --sh-lg: 0 28px 60px rgba(2, 65, 100, 0.16);

  /* Layout */
  --container: 1180px;
  --gutter:    20px;
  --section-y: 56px;
  --header-h:  64px;

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

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --section-y: 80px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-aqua); color: var(--c-ocean-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 .4em;
  color: var(--c-ink);
  /* Thai-aware line wrapping
     - text-wrap: balance → กระจายข้อความให้แต่ละบรรทัดยาวใกล้กัน (ลด orphan)
     - word-break: keep-all → ภาษาไทยใช้ space คั่นวลี → break เฉพาะที่ space (ไม่ตัดกลางวลี)
     - overflow-wrap: anywhere → fallback ถ้าวลีเดียวยาวเกิน container
     - line-break: strict → ใช้กฎ break ของ CJK/Thai */
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  -webkit-hyphens: none;
          hyphens: none;
}
/* เนื้อหารายละเอียด — IBM Plex Looped เสมอ */
p, .lead, .muted, .muted-sm, .program-desc, .program-route, .review-text,
.contact-list span, .field label, .pick-desc, .pick-route, .addon-desc,
.cart-row, .cart-line small, .faq-item p, .boat-info li, .boat-info p {
  font-family: var(--font-base);
}
/* Paragraph — pretty wrap + คงการ break ปกติ (ภาษาไทยจะ break ที่ space ที่มีอยู่จริง) */
p, .lead {
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); }
p  { margin: 0 0 1em; }

/* Heading ที่ต้องการบังคับให้อยู่บรรทัดเดียวบน desktop (เช่น hero CTA)
   บน mobile ปล่อย wrap ตามปกติ เพื่อกัน overflow viewport */
.cta-headline-nowrap { max-width: none; }
@media (min-width: 768px) {
  .cta-headline-nowrap {
    white-space: nowrap;
    text-wrap: nowrap;
  }
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--c-teal);
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--c-ink-soft); }
.muted { color: var(--c-muted); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-deep {
  background: linear-gradient(135deg, #002a40 0%, #004061 70%, #015681 100%);
  color: #e6f4fb;
}
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }
.section-deep .lead, .section-deep .muted { color: #b9d4e4; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}
.section-head.left { margin-left: 0; margin-right: auto; text-align: left; }
.section-head h2 { margin-bottom: .5rem; }
.section-head-wide { max-width: none; }
.section-head-wide .lead { max-width: none; white-space: normal; }
@media (min-width: 900px) {
  .section-head-wide .lead { white-space: nowrap; }
}

/* ---------- Grid system ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
/* Tighter gap on small phones so 2 columns breathe */
@media (max-width: 520px) {
  .grid-3, .grid-4 { gap: 12px; }
}

/* ---------- Mobile slider (grid → horizontal scroll ทีละ 1 ใบ) ---------- */
.slider-dots { display: none; }
@media (max-width: 767px) {
  .grid.mobile-slider {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    padding: 8px 20px 16px;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .grid.mobile-slider::-webkit-scrollbar { display: none; }
  .grid.mobile-slider > * {
    flex: 0 0 calc(100% - 56px);  /* ~28px peek ของใบถัดไป */
    scroll-snap-align: start;
    min-width: 0;
  }
  /* Dots indicator */
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
  }
  .slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 24, 40, .22);
    padding: 0;
    cursor: pointer;
    transition: background .25s ease, width .25s ease, border-radius .25s ease;
    line-height: 0;
  }
  .slider-dots button.is-active {
    background: var(--c-ocean);
    width: 26px;
    border-radius: 999px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: var(--r-full);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-line {
  background: var(--c-line-green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(6, 199, 85, .32);
}
.btn-line:hover { background: var(--c-line-dark); box-shadow: 0 14px 26px rgba(6, 199, 85, .42); }

.btn-call {
  background: var(--c-call);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 0, .32);
}
.btn-call:hover { background: var(--c-call-dark); }

.btn-primary {
  background: var(--c-ocean);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 119, 189, .26);
}
.btn-primary:hover { background: var(--c-ocean-dark); }

.btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-outline {
  background: #fff;
  color: var(--c-ocean-dark);
  border: 1.5px solid var(--c-line);
}
.btn-outline:hover { border-color: var(--c-ocean); color: var(--c-ocean); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  z-index: 50;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-transparent {
  background: transparent;
  border-color: transparent;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(2,65,100,.08); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: filter .25s var(--ease), height .25s var(--ease);
}
@media (min-width: 768px) {
  .brand-logo { height: 42px; max-width: 200px; }
}

/* โลโก้บน hero โปร่งใส (พื้นสว่างจากภาพแบนเนอร์) — โลโก้ต้นฉบับสีน้ำเงิน อ่านได้ดีอยู่แล้ว */
.site-header.is-transparent .brand-logo {
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .55));
}

/* footer logo: ทำให้เป็นโทนขาวเพราะ footer พื้นเข้ม */
.brand-footer .brand-logo {
  filter: brightness(0) invert(1);
  height: 40px;
}

.nav-menu {
  display: none;
  gap: clamp(.6rem, 1.2vw, 1.2rem);
  align-items: center;
}
.nav-link {
  position: relative;
  padding: .5rem .15rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: color .2s var(--ease);
}
.nav-link::after {
  content:'';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-link:hover { color: var(--c-ocean); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--c-ocean); }
.site-header.is-transparent .nav-link.active { color: #fff; }

.nav-cta { display: none; }
.nav-toggle {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--c-line);
}
.site-header.is-transparent .nav-toggle {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 50, .55);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 60;
}
.nav-drawer.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  background: #fff;
  padding: 24px 22px 32px;
  display: flex; flex-direction: column; gap: 1.2rem;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-bg-soft);
}
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  text-decoration: none;
  gap: 12px;
}
.drawer-link > span:first-child,
.drawer-link {
  /* ป้องกัน label หดจน text wrap แปลกๆ */
  white-space: nowrap;
}
.drawer-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-muted);
}
.drawer-link.active { color: var(--c-ocean); font-weight: 600; }
.drawer-link.active svg { color: var(--c-ocean); }
.drawer-foot { display: flex; gap: .6rem; margin-top: auto; }
.drawer-foot .btn { flex: 1; justify-content: center; }

/* ---------- Hero Banner Slider (home) ---------- */
.banner-slider {
  position: relative;
  width: 100%;
  margin-top: var(--header-h);
  overflow: hidden;
  line-height: 0;
  background: #001626;
}
/* Desktop: ใช้ aspect-ratio ของภาพจริง (2078x757) */
@media (min-width: 769px) {
  .banner-slider {
    aspect-ratio: 2078 / 757;
    max-height: 78vh;
    min-height: 360px;
  }
}
.banner-slider.has-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 18, 30, .15) 0%,
    rgba(0, 18, 30, .35) 35%,
    rgba(0, 18, 30, .55) 65%,
    rgba(0, 18, 30, .85) 100%
  );
  z-index: 3;
}
/* Stack slides on top of each other เพื่อ crossfade ระหว่างภาพ */
.banner-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 1px;
}
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
}
/* Mobile: ความสูงคงที่ ใช้กับ has-overlay (และไม่มี has-overlay ด้วย) */
@media (max-width: 768px) {
  .banner-slider { height: 480px; }
  .banner-slider.has-overlay { height: 480px; }
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 24, 40, .18);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px rgba(0, 24, 40, .12);
  color: var(--c-ink);
  cursor: pointer;
}
.banner-arrow:hover { background: #fff; }
.banner-arrow:focus-visible { outline: 2px solid var(--c-ocean); outline-offset: 3px; }
.banner-arrow svg { width: 22px; height: 22px; }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
@media (min-width: 768px) {
  .banner-arrow { width: 48px; height: 48px; }
  .banner-arrow.prev { left: 20px; }
  .banner-arrow.next { right: 20px; }
}
/* Mobile: ซ่อนปุ่มซ้ายขวา ใช้ dots ที่ด้านล่างแทน */
@media (max-width: 768px) {
  .banner-slider.has-overlay .banner-arrow { display: none; }
}
.banner-slider[data-count="1"] .banner-arrow,
.banner-slider[data-count="1"] .banner-dots { display: none; }
/* ซ่อน dots บน desktop เมื่อมี overlay (ใช้ปุ่มซ้ายขวาแทน) */
@media (min-width: 769px) {
  .banner-slider.has-overlay .banner-dots { display: none; }
}
/* บนมือถือ → แสดง dots ที่ด้านล่าง เหนือขอบล่างเล็กน้อย */
@media (max-width: 768px) {
  .banner-slider.has-overlay .banner-dots {
    display: flex;
    bottom: 14px;
    z-index: 7;
  }
}
.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 7;
  display: flex;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 24, 40, .25);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 8px rgba(0, 24, 40, .1);
  cursor: pointer;
  padding: 0;
}
.banner-dots button.is-active {
  background: var(--c-ocean);
  border-color: var(--c-ocean);
  width: 24px;
  border-radius: 999px;
}

/* หน้าแรก: ยังไม่เลื่อน — เฮดเดอร์โปร่งใส + เมนูสีเข้ม (ภาพอยู่ใต้เฮดเดอร์) */
.site-header.is-transparent.is-flush-top .nav-link,
.site-header.is-transparent.is-flush-top .nav-toggle { color: var(--c-ink); border-color: rgba(0,0,0,.12); }
.site-header.is-transparent.is-flush-top .nav-link.active { color: var(--c-ocean); }
.site-header.is-transparent.is-flush-top .brand-logo { filter: none; }

/* ---------- Banner Overlay (services on hero) ---------- */
.banner-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: clamp(60px, 8vw, 110px) 0 clamp(28px, 4vw, 44px);
  line-height: 1.5;
  pointer-events: none;
}
.banner-overlay .container { pointer-events: auto; }
.overlay-head {
  text-align: center;
  color: #fff;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.overlay-logo {
  display: block;
  height: clamp(60px, 9vw, 120px);
  width: auto;
  max-width: min(560px, 90%);
  margin: 0 auto clamp(10px, 1.8vw, 22px);
  object-fit: contain;
}
.overlay-head h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 .5rem;
  text-shadow: 0 4px 22px rgba(0, 18, 30, .55);
}
.overlay-head p {
  color: rgba(255, 255, 255, .92);
  margin: 0;
  font-size: clamp(.86rem, 1.1vw, 1.05rem);
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 18, 30, .55);
}

/* ---------- Pills overlay (glassmorphism + 2-row marquee เฉพาะมือถือ) ---------- */
/* Desktop: รวม pill ทั้งหมดเป็น flex เดียว แล้ว wrap แบบสมดุล (display: contents
   ทำให้ wrapper .pills-row / .pills-track ไม่กินกล่อง — children กลายเป็นลูกตรงของ container) */
.service-pills.service-pills--overlay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 8px;
  padding: 4px 0 14px;
  margin: 0 auto;
  max-width: 100%;
}
.service-pills.service-pills--overlay .pills-row,
.service-pills.service-pills--overlay .pills-track {
  display: contents;
}
.service-pills.service-pills--overlay .pills-track > [aria-hidden="true"] { display: none; }

/* Mobile: marquee 2 แถว เลื่อนต่อเนื่อง */
@media (max-width: 1099.98px) {
  .service-pills.service-pills--overlay {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  .service-pills.service-pills--overlay .pills-row {
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .service-pills.service-pills--overlay .pills-track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px 12px;
    width: max-content;
    will-change: transform;
  }
  .service-pills.service-pills--overlay .pills-track > [aria-hidden="true"] { display: inline-flex; }
}
.service-pills.service-pills--overlay .service-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 18, 30, .25);
  /* Desktop: ย่อขนาดให้พอดี 2 แถว */
  padding: 8px 14px;
  font-size: .88rem;
  gap: 6px;
}
.service-pills.service-pills--overlay .service-pill svg { color: #fff; flex-shrink: 0; width: 16px; height: 16px; }
.service-pills.service-pills--overlay .service-pill:hover,
.service-pills.service-pills--overlay .service-pill:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--c-ocean);
  box-shadow: 0 14px 28px rgba(0, 18, 30, .35);
}
.service-pills.service-pills--overlay .service-pill:hover svg,
.service-pills.service-pills--overlay .service-pill:focus-visible svg { color: var(--c-ocean); }

/* Mobile: marquee — เลื่อนต่อเนื่องด้วย CSS keyframes (สมูดด้วย GPU) */
@media (max-width: 1099.98px) {
  .banner-overlay {
    inset: 0;
    padding: 24px 0 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .banner-overlay .container {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .overlay-head { padding: 0 24px; margin: 0; }
  .overlay-logo { height: 64px; margin: 0 auto 10px; }
  .overlay-head h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
  .overlay-head p { font-size: .9rem; max-width: 94%; margin: 0 auto; line-height: 1.55; }

  .service-pills.service-pills--overlay .service-pill {
    padding: 10px 18px;
    font-size: .95rem;
    gap: 8px;
    font-weight: 500;
  }
  .service-pills.service-pills--overlay .service-pill svg { width: 16px; height: 16px; }
}

/* Marquee animation — เฉพาะมือถือ (≤1099px) */
@media (max-width: 1099.98px) {
  .service-pills.service-pills--overlay .pills-row--top .pills-track {
    animation: pills-marquee 32s linear infinite;
  }
  .service-pills.service-pills--overlay .pills-row--bot .pills-track {
    animation: pills-marquee 30s linear infinite reverse;
  }
  .service-pills.service-pills--overlay:hover .pills-track,
  .service-pills.service-pills--overlay:focus-within .pills-track,
  .service-pills.service-pills--overlay.is-paused .pills-track {
    animation-play-state: paused;
  }
}
@keyframes pills-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 6px)); }
}

@media (max-width: 420px) {
  .banner-overlay { padding: 20px 0 44px; }
  .overlay-head h2 { font-size: 1.32rem; }
  .overlay-head p { font-size: .84rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .overlay-logo { height: 56px; }
  .service-pills.service-pills--overlay .service-pill { padding: 9px 16px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-pills.service-pills--overlay .pills-track { animation: none; }
  .banner-slide { transition: none; }
}

/* ---------- Hero (home, full bleed) ---------- */
.hero {
  position: relative;
  height: 520px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 720px) { .hero { height: 620px; } }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 22s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 24, 40, .45) 0%, rgba(0, 24, 40, .15) 30%, rgba(0, 24, 40, .82) 100%);
}
/* hero-inner ใช้ความกว้างเดียวกับ .container (1180px)
   แล้วจำกัดเฉพาะ text column ของ children */
.hero-inner {
  padding-top: 90px;
  padding-bottom: clamp(36px, 6vw, 64px);
  width: 100%;
}
.hero-inner > .crumb,
.hero-inner > h1,
.hero-inner > .lead,
.hero-inner > .btn-row { max-width: 720px; }
.hero-inner > .hero-meta { max-width: 760px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.hero h1 .stroke {
  color: var(--c-aqua);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}
.hero .lead {
  color: rgba(255,255,255,.94);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 560px;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.6rem;
  margin-top: 1.8rem;
  font-size: .82rem;
  color: rgba(255,255,255,.88);
}
.hero-meta strong { display: block; font-size: 1.3rem; color: #fff; font-weight: 700; }
@media (min-width: 720px) { .hero-meta { grid-template-columns: repeat(4, auto); gap: 1rem 2.4rem; } }

/* ---------- Hero sub (inner pages, center-text) ---------- */
.hero-sub {
  position: relative;
  height: 280px;
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
@media (min-width: 720px) { .hero-sub { height: 360px; } }
.hero-sub .hero-media img { animation: none; }
.hero-sub::after {
  content:''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 24, 40, .50) 0%, rgba(0, 24, 40, .35) 50%, rgba(0, 24, 40, .70) 100%);
}
.hero-sub .hero-inner {
  padding-top: var(--header-h);
  padding-bottom: 0;
  text-align: center;
}
.hero-sub .hero-inner > .crumb,
.hero-sub .hero-inner > h1,
.hero-sub .hero-inner > .lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  margin-bottom: .55rem;
  text-shadow: 0 4px 22px rgba(0, 18, 30, .55);
}
.hero-sub .lead {
  color: rgba(255,255,255,.92);
  margin-bottom: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Feature blocks ---------- */
.feature { display: grid; gap: 14px; }
.feature .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-aqua) 0%, #ffffff 100%);
  color: var(--c-ocean);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 0;
}
.feature p { color: var(--c-ink-soft); margin: 0; }

/* ---------- Boat showcase (boats.html rows) ---------- */
.boat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--c-line);
}
.boat-row:first-child { padding-top: 0; }
.boat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.boat-row.reverse .boat-media { order: -1; }
@media (min-width: 880px) {
  .boat-row { grid-template-columns: 1.1fr 1fr; }
  .boat-row.reverse { grid-template-columns: 1fr 1.1fr; }
  .boat-row.reverse .boat-media { order: 1; }
}
.boat-media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--sh-md);
  background: #cfe6f0;
}
.boat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.boat-row:hover .boat-media img { transform: scale(1.05); }
.boat-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.94);
  color: var(--c-ocean-dark);
  font-weight: 600;
  font-size: .8rem;
  padding: .35rem .75rem;
  border-radius: var(--r-full);
}
.boat-info h2 { margin-bottom: .35rem; }
.boat-info .price { font-size: 1rem; color: var(--c-ocean); font-weight: 600; margin-bottom: 1rem; }
.boat-info .price strong { font-size: 1.5rem; }
.boat-info ul {
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  display: grid; gap: .5rem;
}
.boat-info li {
  display: flex; align-items: flex-start; gap: .65rem;
  color: var(--c-ink-soft);
  font-size: .96rem;
}
.boat-info li::before {
  content: ''; display: block; flex: 0 0 18px; height: 18px; margin-top: 4px;
  background: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* ---------- Boat card (coupon / deal style) ---------- */
.boat-card {
  --pad: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(2, 119, 189, .14);
  border-radius: 16px;
  padding: var(--pad);
  text-decoration: none;
  color: var(--c-ink);
  box-shadow: 0 2px 6px rgba(2, 65, 100, .06);
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.boat-card:hover,
.boat-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(2, 119, 189, .35);
  box-shadow: 0 14px 30px rgba(2, 65, 100, .14);
  outline: none;
}
.boat-card .coupon-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.boat-card .coupon-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(2,119,189,.12), rgba(0,172,193,.18));
  color: var(--c-ocean);
}
.boat-card .coupon-icon svg { width: 20px; height: 20px; }
.boat-card .coupon-head {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.boat-card h3 {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boat-card .coupon-info {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.4px solid rgba(0, 24, 40, .25);
  color: rgba(0, 24, 40, .55);
  font-size: .68rem;
  font-style: italic;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  margin-top: 1px;
}
.boat-card .coupon-sub {
  font-family: var(--font-base);
  color: var(--c-muted);
  font-size: .85rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.boat-card .coupon-divider {
  position: relative;
  height: 1px;
  margin: 4px -4px;
  border-top: 1.4px dashed rgba(2, 65, 100, .22);
}
.boat-card .coupon-divider::before,
.boat-card .coupon-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-bg-soft, #f4f8fb);
  transform: translateY(-50%);
}
.boat-card .coupon-divider::before { left: calc(var(--pad) * -1 - 8px); }
.boat-card .coupon-divider::after  { right: calc(var(--pad) * -1 - 8px); }
.section:not(.section-soft) .boat-card .coupon-divider::before,
.section:not(.section-soft) .boat-card .coupon-divider::after { background: #fff; }
.boat-card .coupon-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.boat-card .brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-base);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-muted);
  text-transform: uppercase;
}
.boat-card .brand-chip svg { width: 14px; height: 14px; }
.boat-card .coupon-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.boat-card .coupon-meta .cap {
  font-size: .76rem;
  color: var(--c-muted);
  font-family: var(--font-base);
}
.boat-card .coupon-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(2, 119, 189, .10);
  color: var(--c-ocean);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.boat-card .coupon-cta svg { width: 14px; height: 14px; }
.boat-card:hover .coupon-cta { background: var(--c-ocean); color: #fff; }

/* ---------- Deal card (Traveloka-style) ---------- */
.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-ink);
  border: 1px solid rgba(0, 24, 40, .06);
  box-shadow: 0 2px 8px rgba(0, 24, 40, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.deal-card:hover,
.deal-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 24, 40, .14);
  outline: none;
}
.deal-card .deal-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #cfe6f0;
}
.deal-card .deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.deal-card:hover .deal-media img { transform: scale(1.06); }
.deal-card .deal-badge-tl,
.deal-card .deal-badge-tr {
  position: absolute;
  top: 12px;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.deal-card .deal-badge-tl {
  left: 12px;
  background: var(--c-ocean);
  color: #fff;
}
.deal-card .deal-badge-tr {
  right: 12px;
  background: #ef4444;
  color: #fff;
}
.deal-card .deal-badge-tr.is-hot { background: #f59e0b; }
.deal-card .deal-badge-tr.is-info { background: #10b981; }
.deal-card .deal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.deal-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card .deal-sub {
  font-family: var(--font-base);
  font-size: .8rem;
  color: var(--c-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card .deal-stars {
  display: inline-flex;
  gap: 1px;
  color: #f59e0b;
  margin: 2px 0 0;
}
.deal-card .deal-stars svg { width: 13px; height: 13px; }
.deal-card .deal-rate {
  font-family: var(--font-base);
  font-size: .8rem;
  color: var(--c-ink-soft);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.deal-card .deal-rate strong { color: var(--c-ocean); font-weight: 700; font-size: .92rem; }
.deal-card .deal-rate .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--c-muted);
  display: inline-block;
  flex-shrink: 0;
}
.deal-card .deal-price {
  margin-top: auto;
  padding-top: 6px;
  line-height: 1;
}
.deal-card .deal-price small {
  display: block;
  font-size: .68rem;
  color: var(--c-muted);
  font-family: var(--font-base);
  margin-bottom: 4px;
}
.deal-card .deal-price s {
  font-size: .75rem;
  color: var(--c-muted);
  margin-right: 6px;
  font-family: var(--font-base);
}
.deal-card .deal-price strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ef4444;
  font-weight: 700;
}

/* Compact deal-card sizing for narrow mobile (2-col grid) */
@media (max-width: 520px) {
  .deal-card { border-radius: 12px; }
  .deal-card .deal-body { padding: 10px 12px 12px; gap: 4px; }
  .deal-card h3 { font-size: .9rem; line-height: 1.25; }
  .deal-card .deal-sub { font-size: .72rem; }
  .deal-card .deal-stars svg { width: 11px; height: 11px; }
  .deal-card .deal-rate { font-size: .7rem; gap: 4px; }
  .deal-card .deal-rate strong { font-size: .82rem; }
  .deal-card .deal-price strong { font-size: 1rem; }
  .deal-card .deal-price small { font-size: .62rem; margin-bottom: 2px; }
  .deal-card .deal-badge-tl,
  .deal-card .deal-badge-tr { font-size: .65rem; padding: 3px 8px; top: 8px; }
  .deal-card .deal-badge-tl { left: 8px; }
  .deal-card .deal-badge-tr { right: 8px; }
}

/* ---------- Program card ---------- */
.program {
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.program:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.program-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #cfe6f0;
}
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.program:hover .program-media img { transform: scale(1.06); }
.program-media .ribbon {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-sand);
  color: var(--c-ocean-dark);
  font-weight: 600;
  font-size: .76rem;
  padding: .3rem .7rem;
  border-radius: var(--r-full);
}
.program-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.program-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.program-route {
  font-size: .82rem;
  color: var(--c-ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.program-desc {
  font-size: .85rem;
  color: var(--c-ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.program-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px;
}
.program-meta span {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-bg-soft);
  color: var(--c-ink-soft);
  font-size: .74rem;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.program-meta svg { width: 13px; height: 13px; }
.program-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}
.program-foot .price { color: var(--c-ocean); font-weight: 600; line-height: 1; }
.program-foot .price strong { font-size: 1.15rem; }
.program-foot .price small { color: var(--c-muted); font-weight: 400; display: block; font-size: .68rem; margin-bottom: 2px; }
.program-foot .btn-sm { padding: 6px 14px; font-size: .82rem; }

/* desktop ที่ 4 cols — แน่นขึ้น เลยขยาย padding/title สำหรับจอใหญ่ ๆ */
@media (min-width: 1280px) {
  .grid-4 .program-body { padding: 20px 20px 18px; }
  .grid-4 .program-body h3 { font-size: 1.15rem; }
}

/* ---------- Review card ---------- */
.review {
  background: #fff;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  gap: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stars { display: inline-flex; gap: 2px; color: #ffb300; }
.stars svg { width: 18px; height: 18px; }
.review-text { color: var(--c-ink); font-size: .96rem; line-height: 1.7; flex: 1; }
.review-foot { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-ocean), var(--c-teal));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  flex-shrink: 0;
}
.review-foot strong { display: block; font-size: .94rem; }
.review-foot span { font-size: .8rem; color: var(--c-muted); }

/* ---------- Articles (Blog) ---------- */
.article-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(2, 65, 100, .08);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid var(--c-line);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 65, 100, .14);
}
.article-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.article-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.article-card:hover .article-card-media img { transform: scale(1.04); }

.article-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--c-ocean-dark);
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.article-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-body p {
  color: var(--c-muted);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--c-muted);
}
.article-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--c-muted);
  opacity: .6;
}
.article-meta.light { color: rgba(255, 255, 255, .92); }
.article-meta.light .dot { background: rgba(255, 255, 255, .8); }

/* ---------- Article detail page ---------- */
.article-detail { background: #fff; }
.article-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--header-h);
}
.article-hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.article-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.article-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 18, 30, .35) 0%, rgba(0, 18, 30, .55) 60%, rgba(0, 18, 30, .82) 100%);
}
.article-hero-inner {
  padding: clamp(60px, 8vw, 90px) 0 clamp(28px, 4vw, 44px);
}
.article-hero-inner > h1,
.article-hero-inner > .article-meta {
  max-width: 820px;  /* จำกัดเฉพาะตัวอักษรเพื่ออ่านง่าย ไม่ครอบทั้ง section */
}
.article-hero-inner .article-tag {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}
.article-hero-inner h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.18;
  margin: 0 0 14px;
  text-shadow: 0 4px 22px rgba(0, 18, 30, .55);
}
.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-size: .88rem;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 18px;
  transition: background .2s var(--ease);
}
.crumb-link:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.article-body {
  /* ใช้ container เต็ม 1180px เหมือน header */
  padding-top: clamp(40px, 6vw, 60px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.article-content {
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--c-ink);
}
.article-content > * + * { margin-top: 1.1rem; }
.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  margin-top: 2.2rem !important;
  margin-bottom: .4rem;
  color: var(--c-ink);
  position: relative;
  padding-left: 16px;
}
.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .35em;
  bottom: .25em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-ocean), var(--c-ocean-dark));
}
.article-content p { color: #2c3e50; }
.article-quote {
  margin: 1.6rem 0;
  padding: 18px 22px;
  background: var(--c-bg-soft);
  border-left: 4px solid var(--c-ocean);
  border-radius: 8px;
  font-style: italic;
  color: var(--c-ink);
  font-size: 1.04rem;
  line-height: 1.7;
}
.article-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.article-list li {
  position: relative;
  padding: 4px 0 4px 28px;
  color: #2c3e50;
  line-height: 1.7;
}
.article-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-ocean);
}
.article-figure {
  margin: 1.6rem 0;
  border-radius: var(--r-card);
  overflow: hidden;
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-cta {
  margin-top: 48px;
  padding: 28px 24px 28px 32px;
  background: linear-gradient(135deg, #eaf5fc, #ffffff);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.article-cta > div:first-child { flex: 1 1 auto; min-width: 240px; }
.article-cta .btn-row { margin-left: auto; flex-shrink: 0; }
/* btn-ghost ในพื้น CTA สว่าง — สลับเป็น outline style ที่อ่านได้ */
.article-cta .btn-ghost {
  background: #fff;
  color: var(--c-ocean-dark);
  border: 1.5px solid var(--c-ocean);
}
.article-cta .btn-ghost:hover {
  background: var(--c-ocean);
  color: #fff;
  border-color: var(--c-ocean);
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--c-ink);
}
.article-cta p {
  margin: 0;
  color: var(--c-muted);
  font-size: .94rem;
}
@media (max-width: 600px) {
  .article-cta { padding: 22px 20px; flex-direction: column; align-items: flex-start; }
  .article-cta .btn-row { width: 100%; }
  .article-cta .btn { flex: 1; justify-content: center; }
}

.article-related {
  margin-top: 56px;
  border-top: 1px solid var(--c-line);
  padding-top: 32px;
}
.article-related h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 20px;
  color: var(--c-ink);
}

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-thumb {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: #001d2e;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: block;
}
.video-thumb:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s, transform .6s var(--ease); }
.video-thumb:hover img { opacity: 1; transform: scale(1.05); }
.video-thumb::after {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,18,30,.85) 100%);
}
.video-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff;
  z-index: 1;
}
.video-thumb .play span {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.video-thumb:hover .play span { background: rgba(255,255,255,.32); transform: scale(1.1); }
.video-thumb .play svg { width: 22px; height: 22px; }
.video-thumb .meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  color: #fff;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.video-thumb .meta strong { font-weight: 500; flex: 1; min-width: 0; }
.video-thumb .meta strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.video-thumb .meta .views { display: inline-flex; align-items: center; gap: 3px; opacity: .9; }
.video-thumb .meta svg { width: 14px; height: 14px; }

/* Social embed feeds (TikTok / Facebook) */
.embed-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.embed-grid--tiktok {
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
}
.embed-grid--facebook {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr));
  justify-content: center;
}
.embed-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.embed-card-body { display: flex; justify-content: center; background: var(--c-bg-soft); }
.embed-card-title {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
}
.fb-video-wrap {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  line-height: 0;
}
.fb-video-wrap iframe {
  width: 100% !important;
  max-width: 100%;
  border-radius: 0;
}
.tiktok-iframe-wrap {
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  line-height: 0;
  background: #000;
}
.tiktok-iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 738px;
  border: 0;
}
.embed-card-body--placeholder {
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
}
.embed-card-body--placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-more-wrap { margin-top: 8px; }
.feed-more-btn { min-width: 220px; }
.fb-page-embed {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.fb-page-layout {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .fb-page-layout {
    grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
    gap: 28px;
  }
}
.fb-page-iframe-wrap {
  width: 100%;
  max-width: 500px;
  min-height: 720px;
  height: 100%;
  margin: 0 auto;
  line-height: 0;
  background: #f0f2f5;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
}
@media (min-width: 960px) {
  .fb-page-iframe-wrap {
    margin: 0;
  }
}
.fb-page-loading {
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  line-height: 1.5;
}
.fb-page-iframe-wrap .fb-page-iframe {
  display: block;
  width: 100% !important;
  max-width: 500px;
  min-height: 720px;
  border: 0;
}
.fb-page-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid rgba(2, 119, 189, 0.12);
  box-shadow: var(--sh-md);
  background: linear-gradient(165deg, #f8fcff 0%, #ffffff 42%, #eef6fb 100%);
}
.fb-page-aside-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 119, 189, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.fb-page-aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 720px;
  padding: 28px 28px 24px;
}
.fb-page-aside-head {
  margin-bottom: 22px;
}
.fb-page-aside-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-ocean);
  background: rgba(2, 119, 189, 0.1);
  border: 1px solid rgba(2, 119, 189, 0.15);
}
.fb-page-aside-title {
  margin: 12px 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--c-ocean-deep);
  letter-spacing: -0.02em;
}
.fb-page-aside-lead {
  margin: 0;
  line-height: 1.65;
  color: var(--c-muted);
  font-size: .96rem;
}
.fb-aside-features {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.fb-aside-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(2, 119, 189, 0.08);
  box-shadow: 0 2px 8px rgba(2, 65, 100, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.fb-aside-feature:hover {
  border-color: rgba(2, 119, 189, 0.2);
  box-shadow: 0 6px 18px rgba(2, 65, 100, 0.08);
}
.fb-aside-feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e3f2fd, #fff);
  font-size: 1.15rem;
}
.fb-aside-feature strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
  color: var(--c-ink);
}
.fb-aside-feature p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--c-muted);
}
.fb-aside-info {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(2, 119, 189, 0.05);
  border: 1px dashed rgba(2, 119, 189, 0.18);
}
.fb-aside-info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: .88rem;
  line-height: 1.45;
}
.fb-aside-info-row > span:first-child {
  font-weight: 600;
  color: var(--c-ocean);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.fb-aside-info-row a {
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
}
.fb-aside-info-row a:hover {
  color: var(--c-ocean);
}
.fb-page-aside-cta {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 8px;
}
.fb-aside-btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 959px) {
  .fb-page-aside,
  .fb-page-aside-inner {
    min-height: 0;
  }
  .fb-page-iframe-wrap {
    min-height: 560px;
  }
  .fb-page-iframe-wrap .fb-page-iframe {
    min-height: 560px;
  }
}
.fb-page-wrap {
  display: flex;
  justify-content: center;
  min-height: 320px;
  margin-bottom: 20px;
}
.fb-page-wrap .fb-page,
.fb-page-wrap .fb-page span,
.fb-page-wrap iframe {
  max-width: 100% !important;
}
.social-feed-empty,
.social-feed-hint {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--r-card);
  background: var(--c-bg-soft);
  border: 1.5px dashed var(--c-line);
}
.social-feed-hint {
  text-align: left;
  margin-bottom: 20px;
  border-style: solid;
  background: #fff;
}
.social-feed-empty p,
.social-feed-hint p { margin: 0 0 .5rem; }
.social-feed-empty p:last-child,
.social-feed-hint p:last-child { margin-bottom: 0; }
.social-feed-fb-card {
  margin-top: 16px;
  text-align: center;
}
.social-feed-fb-card .btn { margin-top: 12px; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  padding: 28px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
}
@media (min-width: 880px) { .trust { grid-template-columns: repeat(4, 1fr); padding: 36px; } }
.trust-cell { text-align: center; }
.trust-cell strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--c-ocean-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.trust-cell span { font-size: .88rem; color: var(--c-muted); }

/* ---------- Service pills (แพ็คเกจทัวร์ตรัง) ---------- */
.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(2, 119, 189, .12);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease),
              box-shadow .25s var(--ease),
              background .25s var(--ease),
              color .25s var(--ease),
              border-color .25s var(--ease);
  box-shadow: 0 1px 2px rgba(2, 65, 100, .04);
  white-space: nowrap;
}
.service-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-ocean);
  transition: color .25s var(--ease);
}
.service-pill:hover,
.service-pill:focus-visible {
  background: var(--c-ocean);
  border-color: var(--c-ocean);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 119, 189, .28);
  outline: none;
}
.service-pill:hover svg,
.service-pill:focus-visible svg { color: #fff; }
.service-pill:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(2, 119, 189, .25); }
@media (max-width: 520px) {
  .service-pills { gap: 8px 10px; }
  .service-pill { padding: 10px 16px; font-size: .9rem; gap: 8px; }
  .service-pill svg { width: 18px; height: 18px; }
}

/* ---------- Steps row (จองอย่างไร 4 ขั้นตอน) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step-card .num {
  position: absolute;
  top: -10px; right: 18px;
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--c-bg-deep);
  line-height: 1;
  pointer-events: none;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: .35rem;
  position: relative;
}
.step-card p { font-size: .9rem; color: var(--c-ink-soft); margin: 0; position: relative; }
.step-card .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-ocean) 0%, var(--c-teal) 100%);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .8rem;
  box-shadow: 0 6px 14px rgba(2, 119, 189, .25);
}
.step-card .badge svg { width: 22px; height: 22px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px max(env(safe-area-inset-left), 14px) calc(10px + env(safe-area-inset-bottom, 0px)) max(env(safe-area-inset-right), 14px);
  display: flex; gap: 10px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -10px 28px rgba(2,65,100,.08);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding: .82rem 1rem; font-size: .94rem; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (max-width: 1023.9px) {
  body.has-sticky { padding-bottom: 84px; }
}

/* =========================================================
   Booking page (v3) — Wizard flow + coupon cards + white cart
   ========================================================= */
.booking-section {
  background: #eef4f8;
  --bg-coupon: #eef4f8;
}

/* ----- Progress wizard ----- */
.booking-progress {
  display: flex; align-items: center; justify-content: center;
  list-style: none; padding: 0;
  margin: 0 auto 30px;
  max-width: 980px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.booking-progress::-webkit-scrollbar { display: none; }
.booking-progress .pip {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  color: #94a4ae;
  font-size: .95rem; font-weight: 500;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.booking-progress .pip-num {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: #d8e1e7;
  color: #fff;
  border-radius: 50%;
  font-size: .92rem; font-weight: 700;
  flex-shrink: 0;
  transition: all .25s var(--ease);
}
.booking-progress .pip.is-active {
  color: var(--c-ink);
  font-weight: 700;
}
.booking-progress .pip.is-active .pip-num {
  background: var(--c-ocean-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 65, 100, .28);
}
.booking-progress .pip.is-done {
  color: var(--c-ocean-dark);
}
.booking-progress .pip.is-done .pip-num {
  background: var(--c-ocean);
  color: #fff;
}
.booking-progress .pip-line {
  flex: 1; min-width: 30px; max-width: 120px;
  height: 2px;
  background: #d8e1e7;
  margin: 0 14px;
  border-radius: 2px;
  transition: background .25s var(--ease);
  list-style: none;
}
.booking-progress .pip-line.is-done {
  background: var(--c-ocean);
}

@media (max-width: 760px) {
  .booking-progress {
    justify-content: flex-start;
    padding: 0 4px 6px;
    margin-bottom: 22px;
  }
  .booking-progress .pip { font-size: .85rem; gap: 6px; }
  .booking-progress .pip-num { width: 28px; height: 28px; font-size: .82rem; }
  .booking-progress .pip-text { display: none; }
  .booking-progress .pip.is-active .pip-text {
    display: inline; font-size: .82rem;
  }
  .booking-progress .pip-line { min-width: 14px; max-width: 36px; margin: 0 6px; }
}

/* ----- Wizard step container ----- */
.wizard-step {
  display: none;
  animation: wizardFade .35s var(--ease);
}
.wizard-step.is-active {
  display: block;
}
@keyframes wizardFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wizard-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.wizard-nav > span:empty { width: 1px; height: 1px; }
.wizard-nav .btn {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
@media (min-width: 640px) {
  .wizard-nav .btn { flex: 0 0 auto; min-width: 200px; justify-content: center; }
}
.wizard-nav .wizard-back {
  background: #fff;
  color: var(--c-muted);
  border: 1.5px solid var(--c-line);
  backdrop-filter: none;
}
.wizard-nav .wizard-back:hover {
  border-color: var(--c-ocean);
  color: var(--c-ocean-dark);
  background: #fff;
}
.wizard-nav .wizard-next {
  background: var(--c-ocean);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 119, 189, .26);
}
.wizard-nav .wizard-next:hover { background: var(--c-ocean-dark); }
.wizard-nav .btn svg { flex-shrink: 0; }
.wizard-nav .btn {
  white-space: nowrap;          /* ห้ามตัดบรรทัด */
  padding-inline: 16px;
}
.wizard-next-detail { display: inline; }
/* มือถือ: ซ่อนรายละเอียดหลัง ":" — เหลือแค่ "ถัดไป →"
   และให้ next button กว้างกว่า back (back กระชับ, next สำคัญกว่า) */
@media (max-width: 639px) {
  .wizard-next-detail { display: none; }
  .wizard-nav { flex-wrap: nowrap; gap: 10px; }
  .wizard-nav .wizard-back {
    flex: 0 1 auto;
    padding-inline: 14px;
  }
  .wizard-nav .wizard-next {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

.booking-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .booking-grid { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); }
  .booking-summary-wrap { position: sticky; top: calc(var(--header-h) + 20px); }
}

.form-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--sh-sm);
}
.form-card + .form-card { margin-top: 18px; }
@media (min-width: 640px) {
  .form-card { padding: 28px 30px; }
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  padding-bottom: .25rem;
  margin: 0 0 .5rem;
  color: var(--c-ink);
}
.form-card h3 .optional {
  font-size: .8rem; font-weight: 400; color: var(--c-muted);
}
.form-card .muted-sm {
  margin: 0 0 1.1rem;
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.field { display: block; margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: .45rem;
}
.field label .req { color: #e53935; margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  padding: .82rem 1rem;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-ocean);
  box-shadow: 0 0 0 4px rgba(2,119,189,.12);
}
.textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

/* ----- Quantity stepper ----- */
.qty-stepper {
  display: flex; align-items: center; gap: 0;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 4px;
  height: 50px;
  width: 100%;
}
.qty-stepper .qty-btn {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 0; background: #f1f7fb;
  color: var(--c-ocean-dark);
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
  flex-shrink: 0;
}
.qty-stepper .qty-btn:hover { background: var(--c-ocean); color: #fff; }
.qty-stepper .qty-btn:active { transform: scale(.95); }
/* wrapper รวม input + unit ให้อยู่ในช่องเดียวกัน */
.qty-stepper .qty-value {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.qty-stepper .qty-input {
  border: 0; outline: none;
  background: transparent;
  text-align: right;
  font-size: 1.05rem; font-weight: 600;
  font-family: var(--font-base);
  color: var(--c-ink);
  width: 3ch;
  padding: 0;
  -moz-appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qty-stepper .qty-unit {
  font-size: .9rem;
  color: var(--c-muted);
  flex-shrink: 0;
}

/* ----- Pick grid (coupon-style cards) ----- */
.pick-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Outer wrapper — hosts the BORDER layer behind via ::before */
.pick {
  --pick-bot-h: 64px;
  --notch-r: 11px;
  --border-w: 1.5px;
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.pick input { position: absolute; opacity: 0; pointer-events: none; z-index: 2; }
.pick:hover { transform: translateY(-2px); }

/* BORDER layer — sits BEHIND .pick-card, slightly larger by --border-w, masked into a "coupon" shape concentric with .pick-card. The visible ring between the two masks IS the border that follows the coupon outline (including notch curves) */
.pick::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--border-w));
  background: #cdd9e1;
  border-radius: calc(18px + var(--border-w));
  z-index: 0;
  pointer-events: none;
  transition: background .25s var(--ease);
  -webkit-mask:
    radial-gradient(circle calc(var(--notch-r) - var(--border-w)) at var(--border-w) calc(100% - var(--pick-bot-h) - var(--border-w)), transparent 99%, #000 100%),
    radial-gradient(circle calc(var(--notch-r) - var(--border-w)) at calc(100% - var(--border-w)) calc(100% - var(--pick-bot-h) - var(--border-w)), transparent 99%, #000 100%);
  mask:
    radial-gradient(circle calc(var(--notch-r) - var(--border-w)) at var(--border-w) calc(100% - var(--pick-bot-h) - var(--border-w)), transparent 99%, #000 100%),
    radial-gradient(circle calc(var(--notch-r) - var(--border-w)) at calc(100% - var(--border-w)) calc(100% - var(--pick-bot-h) - var(--border-w)), transparent 99%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.pick:hover::before { background: var(--c-sky); }
.pick:has(input:checked) {
  --border-w: 2px;
}
.pick:has(input:checked)::before { background: var(--c-ocean); }

/* Visible card body — coupon mask, NO border (border comes from ::before above) */
.pick-card {
  position: relative;
  z-index: 1;
  display: block;
  background: #fff;
  border-radius: 18px;
  transition: background .25s var(--ease);
  -webkit-mask:
    radial-gradient(circle var(--notch-r) at 0 calc(100% - var(--pick-bot-h)), transparent 99%, #000 100%),
    radial-gradient(circle var(--notch-r) at 100% calc(100% - var(--pick-bot-h)), transparent 99%, #000 100%);
  mask:
    radial-gradient(circle var(--notch-r) at 0 calc(100% - var(--pick-bot-h)), transparent 99%, #000 100%),
    radial-gradient(circle var(--notch-r) at 100% calc(100% - var(--pick-bot-h)), transparent 99%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.pick:has(input:checked) .pick-card {
  background: linear-gradient(180deg, #fafdff 0%, #fff 100%);
}

/* Grid container — pad so the slightly-larger ::before isn't clipped */
.pick-grid { padding: 4px 14px; margin: -4px -14px; }

/* Top section: thumb + body */
.pick-top {
  display: flex; gap: 14px;
  padding: 16px 18px 14px;
}
.pick-thumb {
  position: relative;
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eaf3f9;
}
.pick-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease);
}
.pick:hover .pick-thumb img { transform: scale(1.07); }
.pick-ribbon {
  position: absolute; top: 6px; left: 6px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #f5a623, #f57c00);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  border-radius: var(--r-full);
  box-shadow: 0 4px 10px rgba(245, 124, 0, .35);
  letter-spacing: .02em;
}
.pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pick-tag {
  align-self: flex-start;
  padding: 3px 9px;
  background: #e8f5fd;
  color: var(--c-ocean-dark);
  font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  border-radius: var(--r-full);
  margin-bottom: 2px;
}
.pick-title {
  font-family: var(--font-display);
  font-size: 1.06rem; line-height: 1.25; color: var(--c-ink);
  font-weight: 600;
}
.pick-meta { font-size: .8rem; color: var(--c-muted); }
.pick-desc {
  font-size: .82rem; color: #4a5d6a; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; margin-top: 2px;
}
.pick-route {
  font-size: .82rem; color: var(--c-ocean-dark); line-height: 1.4; font-weight: 500;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; margin-top: 2px;
}

/* Dashed divider between top and bottom (the "perforation") */
.pick-divider {
  position: relative;
  margin: 0 10px;
  height: 0;
  border-top: 1.6px dashed #c8d6df;
}

/* Bottom section: price + CTA */
.pick-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 16px;
  height: var(--pick-bot-h);
  box-sizing: border-box;
}
.pick-price small {
  display: block;
  font-size: .72rem;
  color: var(--c-muted);
  margin-bottom: 1px;
}
.pick-price strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--c-ocean-dark);
  letter-spacing: -0.01em;
}

.pick-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: #eaf5fc;
  color: var(--c-ocean-dark);
  border-radius: var(--r-full);
  font-size: .85rem; font-weight: 700;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.pick-cta svg { width: 14px; height: 14px; }
.pick-cta .cta-checked { display: none; align-items: center; gap: 4px; }
.pick:hover .pick-cta { background: #d8edfa; }
.pick:has(input:checked) .pick-cta {
  background: var(--c-ocean);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 119, 189, .35);
}
.pick:has(input:checked) .pick-cta .cta-default { display: none; }
.pick:has(input:checked) .pick-cta .cta-checked { display: inline-flex; }

@media (max-width: 480px) {
  .pick { --pick-bot-h: 58px; }
  .pick-top { padding: 14px; gap: 12px; }
  .pick-thumb { width: 82px; height: 82px; }
  .pick-title { font-size: 1rem; }
  .pick-price strong { font-size: 1.06rem; }
  .pick-cta { padding: 8px 14px; font-size: .8rem; }
  .pick-divider { margin: 0 14px; }
  .pick-bot { padding: 10px 14px 14px; }
}

/* ----- Transport picker (modern, organized) ----- */
.transport-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .transport-grid { grid-template-columns: repeat(3, 1fr); } }

.transport-pick {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
  min-height: 84px;
}
.transport-pick input { position: absolute; opacity: 0; pointer-events: none; }
.transport-pick:hover {
  border-color: var(--c-sky);
  transform: translateY(-1px);
}
.transport-pick:has(input:checked) {
  border-color: var(--c-ocean);
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
  border-width: 2px;
  padding: 15px;
}

.transport-pick .t-icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eaf5fc;
  color: var(--c-ocean-dark);
  display: grid; place-items: center;
  align-self: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.transport-pick:has(input:checked) .t-icon {
  background: linear-gradient(135deg, var(--c-ocean) 0%, var(--c-ocean-dark) 100%);
  color: #fff;
}
.transport-pick .t-icon svg { width: 24px; height: 24px; }

.transport-pick .t-label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-right: 64px; /* เว้นที่ให้ pill มุมขวาบนไม่ทับ */
}
.transport-pick .t-label strong {
  font-weight: 600; font-size: .98rem; color: var(--c-ink);
  line-height: 1.25;
}
.transport-pick .t-label span {
  font-size: .78rem; color: var(--c-muted); line-height: 1.4;
}

/* price pill ปักมุมขวาบน absolute ออกจาก flex flow */
.transport-pick .t-price {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  background: #fff7e6;
  color: #c46a05;
  border-radius: var(--r-full);
  font-size: .74rem; font-weight: 700;
  line-height: 1.3;
  z-index: 1;
}
.transport-pick .t-price.t-free {
  background: #e6f7ed; color: #1e7a3a;
}
.transport-pick .t-price.t-muted {
  background: #f2f5f7; color: var(--c-muted);
}

/* Mobile: กระชับ — icon ซ้าย title ขวา ราคามุมบนขวา */
@media (max-width: 639px) {
  .transport-grid { gap: 10px; }
  .transport-pick {
    padding: 14px 14px 14px 14px;
    min-height: 0;
    gap: 12px;
    align-items: center;
    border-radius: 12px;
  }
  .transport-pick:has(input:checked) { padding: 13px; }
  .transport-pick .t-icon {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    border-radius: 10px;
  }
  .transport-pick .t-icon svg { width: 20px; height: 20px; }
  .transport-pick .t-label { gap: 2px; padding-right: 58px; }
  .transport-pick .t-label strong { font-size: .94rem; line-height: 1.2; }
  .transport-pick .t-label span { font-size: .76rem; line-height: 1.4; }
  .transport-pick .t-price {
    top: 10px;
    right: 12px;
    font-size: .72rem;
    padding: 3px 9px;
  }
}

/* ----- Add-on options grid (icon-based, no checkbox) ----- */
.addon-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }

.addon {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon:hover {
  border-color: var(--c-sky);
  transform: translateY(-1px);
}
.addon:has(input:checked) {
  border-color: var(--c-ocean);
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
  border-width: 2px;
  padding: 13px 15px;
}

.addon-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #eaf5fc;
  color: var(--c-ocean-dark);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.addon-icon svg { width: 22px; height: 22px; }
.addon:has(input:checked) .addon-icon {
  background: linear-gradient(135deg, var(--c-ocean) 0%, var(--c-ocean-dark) 100%);
  color: #fff;
}

.addon-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addon-body strong { font-weight: 600; font-size: .95rem; color: var(--c-ink); line-height: 1.25; }
.addon-desc { font-size: .78rem; color: var(--c-muted); line-height: 1.4; }

.addon-price {
  font-size: .82rem; font-weight: 700;
  color: var(--c-ocean-dark);
  white-space: nowrap;
}

/* =========================================================
   Cart Summary — WHITE / Clean style
   ========================================================= */
.cart {
  background: #fff;
  color: var(--c-ink);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: 0 14px 38px rgba(0, 24, 40, .08), 0 0 0 1px rgba(0, 24, 40, .04);
  position: relative;
  overflow: hidden;
}

.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--c-line);
}
.cart-head h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--c-ink);
  margin: 0;
}
.cart-count {
  font-size: .78rem;
  color: var(--c-ocean-dark);
  background: #eaf5fc;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 600;
}

/* Hero showcase */
.cart-hero {
  display: flex; gap: 12px; align-items: center;
  background: #f6fbff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 1rem;
}
.cart-hero img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-hero-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-hero-body strong {
  font-family: var(--font-display); font-size: 1rem; color: var(--c-ink);
}
.cart-hero-body small { color: var(--c-muted); font-size: .82rem; }

/* Item lines */
.cart-items { display: flex; flex-direction: column; }
.cart-line {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--c-line);
  align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.line-icon {
  width: 30px; height: 30px;
  background: #eaf5fc;
  color: var(--c-ocean-dark);
  border-radius: 8px;
  display: grid; place-items: center;
}
.line-icon svg { width: 15px; height: 15px; }
.line-icon-strong {
  background: linear-gradient(135deg, var(--c-ocean) 0%, var(--c-ocean-dark) 100%);
  color: #fff;
}
.line-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.line-body strong { font-size: .92rem; font-weight: 600; color: var(--c-ink); }
.line-body small { font-size: .76rem; color: var(--c-muted); }
.line-amt {
  font-size: .94rem; font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
}
.line-pill {
  font-size: .7rem; font-weight: 700;
  color: #1e7a3a;
  background: #e6f7ed;
  padding: 4px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.cart-line-base {
  margin-top: 4px;
  padding-top: 14px !important;
  border-top: 1.5px solid var(--c-line) !important;
  border-bottom: 0 !important;
}
.cart-line-base .line-amt {
  color: var(--c-ocean-dark);
  font-size: 1.06rem;
}

/* Empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 16px;
  color: var(--c-muted);
  text-align: center;
  font-size: .88rem;
  line-height: 1.55;
}
.cart-empty-icon { color: #c5d2da; }

/* Subtotal breakdown */
.cart-subtotal {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: 2px;
}
.cart-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .3rem 0;
  font-size: .88rem;
}
.cart-row span:first-child { color: var(--c-muted); }
.cart-row span:last-child { color: var(--c-ink); font-weight: 600; }

/* Grand total */
.cart-total {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1.5px dashed var(--c-line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.cart-total-label {
  color: var(--c-muted);
  font-size: .95rem;
  font-weight: 500;
}
.cart-total-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ocean-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.cart-total-amount small {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ocean-dark);
}

.cart-actions {
  margin-top: 1.2rem;
  display: grid; gap: .55rem;
}
.cart-actions .btn-outline {
  border-color: var(--c-line);
  color: var(--c-ocean-dark);
}
.cart-note {
  margin-top: .9rem;
  font-size: .76rem;
  color: var(--c-muted);
  line-height: 1.55;
}

@media (max-width: 1023.9px) {
  .cart { padding: 18px; }
  .cart-total-amount { font-size: 1.7rem; }
}
.optional {
  font-size: .8rem; font-weight: 400; color: var(--c-muted);
  margin-left: 4px;
}

.field-error { color: #d63b3b; font-size: .82rem; margin-top: .3rem; display: none; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: #d63b3b; }
.field.has-error .field-error { display: block; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--c-ink);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: var(--r-full);
  font-size: .92rem;
  z-index: 80;
  opacity: 0;
  transition: all .3s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Office / Contact ---------- */
.office {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 880px) { .office { grid-template-columns: 1fr 1.05fr; } }
.office-map {
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--sh-md);
  background: #cfe6f0;
}
.office-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.office-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--c-bg-deep);
  color: var(--c-ocean-dark);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; }
.contact-list span { color: var(--c-ink-soft); font-size: .92rem; }

/* ---------- About story ---------- */
.story-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 200px 180px;
}
.story-grid img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-card);
}
.story-grid img:nth-child(1) { grid-row: 1 / span 2; }
@media (min-width: 720px) { .story-grid { grid-template-rows: 260px 200px; } }

/* ---------- Footer (Traveloka-inspired) ---------- */
.site-footer {
  background: #002a40;
  color: #b9d4e4;
  padding: 60px 0 24px;
  font-size: .92rem;
  line-height: 1.55;
}
.footer-grid {
  display: grid;
  gap: 36px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; } }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.footer-col h4.mt-block { margin-top: 1.8rem; }
.footer-col h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 .7rem;
}

/* link lists */
.footer-links,
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.footer-links a,
.footer-social a {
  color: #b9d4e4;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-links a:hover,
.footer-social a:hover { color: var(--c-aqua); }

/* social rows with colored icon chip */
.footer-social .ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  color: #fff;
}
.footer-social .ico svg { width: 14px; height: 14px; }
.footer-social .ico-fb   { background: #1877f2; }
.footer-social .ico-tt   { background: #000; }
.footer-social .ico-line { background: #06c755; }
.footer-social .ico-call { background: var(--c-ocean); }

/* --------- Col 1: Brand --------- */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-col-brand .brand-footer {
  display: inline-flex;
}
.footer-col-brand .brand-logo { height: 44px; }

.footer-cta {
  margin-top: 18px;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--c-ocean);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: background .2s, transform .2s;
  box-shadow: 0 6px 16px rgba(2,119,189,.25);
}
.footer-cta:hover { background: var(--c-ocean-dark, #015c92); transform: translateY(-2px); }
.footer-cta svg { width: 14px; height: 14px; }

.pay-block h5 { margin-bottom: 10px; }
.pay-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 320px;
}
.pay-chip {
  display: grid;
  place-items: center;
  height: 42px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s var(--ease);
}
.pay-chip:hover { transform: translateY(-2px); }
.pay-chip img {
  display: block;
  max-width: 100%;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --------- Col 4: contact card --------- */
.footer-contact-card {
  margin-top: 18px;
  padding: 16px 16px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
}
.footer-contact-card p {
  color: #b9d4e4;
  margin: 0 0 4px;
  font-size: .85rem;
}
.footer-contact-card .muted-thin { color: #7da0b8; font-size: .8rem; margin-bottom: 12px; }
.footer-contact-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-contact-buttons .btn { flex: 1; min-width: 100px; justify-content: center; }
.footer-contact-buttons .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.footer-contact-buttons .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* --------- Bottom bar --------- */
.footer-bot {
  margin-top: 44px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-size: .82rem;
  color: #7da0b8;
}
.footer-bot-meta { color: #7da0b8; font-size: .76rem; }
@media (min-width: 720px) {
  .footer-bot { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 22px 22px;
}
.faq-item h3 {
  font-family: var(--font-display);
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.faq-item h3 .q {
  color: var(--c-teal);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item p { margin: 0; color: var(--c-ink-soft); font-size: .94rem; }

/* ---------- Misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem;
  border-radius: var(--r-full);
  background: var(--c-bg-deep);
  color: var(--c-ocean-dark);
  font-size: .78rem;
  font-weight: 500;
}
.pill.dark { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
