/* ==========================================================================
   Queen of Andaman Phuket — Main Stylesheet
   Theme: ฟ้า / น้ำเงิน / ขาว  |  Font: Kanit
   ========================================================================== */

/* ---------- Fonts (self-hosted, from Google Fonts: Kanit 300-800 + Kaushan Script) ---------- */
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/kanit-300-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/kanit-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/kanit-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kanit-400-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kanit-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kanit-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/kanit-500-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/kanit-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/kanit-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/kanit-600-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/kanit-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/kanit-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/kanit-700-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/kanit-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/kanit-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/kanit-800-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/kanit-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/kanit-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face {font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kaushan-script-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face {font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kaushan-script-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---------- Design tokens ---------- */
:root {
  --blue-950: #061b3a;
  --blue-900: #0b2d5c;
  --blue-800: #123f7e;
  --blue-700: #1a4f96;
  --blue-600: #2a67b8;
  --blue-500: #4a86c8;
  --blue-400: #6ea3dc;
  --blue-300: #9cc3ec;
  --blue-100: #e6f0fb;
  --blue-50: #f3f8fe;
  --sky: #38bdf8;
  --white: #ffffff;
  --ink: #16263d;
  --muted: #5b6b82;
  --line: #d5e3f4;
  --star: #f5b400;

  --font: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Kaushan Script", "Kanit", cursive;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 14px rgba(11, 45, 92, .08);
  --shadow: 0 14px 40px rgba(11, 45, 92, .14);
  --shadow-lg: 0 24px 60px rgba(11, 45, 92, .22);
  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Kanit has no Chinese / Japanese glyphs: fall back to each OS's native CJK font */
html:lang(zh) { --font: "Kanit", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html:lang(ja) { --font: "Kanit", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.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: 16px; top: -60px; z-index: 200;
  background: var(--blue-700); color: var(--white); padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)) border-box; color: var(--white); box-shadow: 0 10px 24px rgba(26, 79, 150, .35); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(26, 79, 150, .45); }
.btn--white { background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: var(--white); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--blue-700); }
.btn--outline { border-color: var(--blue-500); color: var(--blue-700); background: transparent; }
.btn--outline:hover { background: var(--blue-500); color: var(--white); }
.btn--block { width: 100%; }
.btn .icon { font-size: 1.15em; }

/* ==========================================================================
   Header (components/header.html)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled,
.header-solid .site-header {
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(11, 45, 92, .1); height: 68px;
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); transition: color .35s; }
/* Logo hangs from the top as a white tab */
.site-header .brand {
  align-self: flex-start; background: var(--white); padding: 8px 16px 10px;
  border-radius: 0 0 22px 22px; box-shadow: 0 10px 28px rgba(6, 27, 58, .22);
  transition: padding .35s, box-shadow .35s;
}
.brand img { width: auto; height: 108px; transition: height .35s; }
.is-scrolled .brand, .header-solid .brand { padding: 4px 12px 6px; box-shadow: 0 8px 20px rgba(6, 27, 58, .12); }
.is-scrolled .brand img, .header-solid .brand img { height: 72px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.brand__sub { font-size: .78rem; opacity: .85; font-weight: 300; }
.is-scrolled .brand, .header-solid .brand { color: var(--blue-900); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 8px 16px; border-radius: 999px; color: var(--white);
  font-weight: 400; transition: background .25s, color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: currentColor; border-radius: 2px; transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 22px; }
.nav__link.is-active { font-weight: 500; }
.is-scrolled .nav__link, .header-solid .nav__link { color: var(--blue-900); }
.is-scrolled .nav__link.is-active, .header-solid .nav__link.is-active { color: var(--blue-600); }
.nav__cta { margin-left: 10px; padding: .6em 1.4em; }
/* Language dropdown: [flag TH ▾] → ไทย / English */
.lang-dd { position: relative; margin-left: 8px; }
.lang-dd__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 500; color: var(--white);
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); transition: background .2s, border-color .2s;
}
.lang-dd__btn:hover { background: rgba(255, 255, 255, .26); }
.is-scrolled .lang-dd__btn, .header-solid .lang-dd__btn, .nav-open .lang-dd__btn { background: var(--blue-50); border-color: var(--line); color: var(--blue-800); }
.lang-dd__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.lang-dd.is-open .lang-dd__chev { transform: rotate(180deg); }
.flag { width: 18px; height: 12px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lang-dd__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 160px; padding: 6px;
  background: var(--white); border-radius: 14px; box-shadow: 0 18px 40px -10px rgba(6, 27, 58, .35); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.lang-dd.is-open .lang-dd__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.lang-dd__menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--blue-900); font-size: .95rem; font-weight: 400; white-space: nowrap;
}
.lang-dd__menu a:hover { background: var(--blue-50); }
.lang-dd__menu a.is-current { font-weight: 500; color: var(--blue-700); }
.lang-dd__tick { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--blue-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: var(--white); align-items: center; justify-content: center;
  font-size: 1.5rem; backdrop-filter: blur(6px);
}
.is-scrolled .menu-toggle, .header-solid .menu-toggle { background: var(--blue-100); color: var(--blue-800); }
.header-actions { display: none; align-items: center; gap: 10px; } /* mobile only — hidden on desktop so the nav sits flush right */
.lang-dd--bar { display: none; margin: 0; } /* mobile only */

@media (max-width: 900px) {
  .header-actions { display: flex; }
  .menu-toggle { display: inline-flex; }
  /* dropdown panel that drops down under the header bar, full width, centred links */
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 99; max-height: calc(100svh - 68px); overflow-y: auto;
    flex-direction: column; align-items: center; gap: 0;
    padding: 6px 24px 26px; background: var(--white); border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 40px -12px rgba(6, 27, 58, .35);
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
  .nav__link {
    width: min(100%, 300px); text-align: center; padding: 16px 12px; border-radius: 0;
    color: var(--blue-800) !important; font-size: 1.08rem; font-weight: 500; border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--blue-600) !important; font-weight: 600; }
  .nav__cta { margin: 16px 0 0; width: min(100%, 300px); justify-content: center; }
  .nav .lang-dd { display: none; } /* shown in the header bar instead (.lang-dd--bar) */
  .lang-dd--bar { display: block; }
  .lang-dd--bar .lang-dd__btn { height: 46px; padding: 0 12px 0 14px; border-radius: 14px; }
  .menu-toggle { position: relative; z-index: 101; }

  /* while the menu is open the header becomes a compact white bar */
  .nav-open .site-header { height: 68px; background: var(--white); box-shadow: none; }
  .nav-open .site-header .brand { padding: 4px 12px 6px; box-shadow: none; }
  .nav-open .site-header .brand img { height: 56px; }
  /* backdrop-filter on the header would become the containing block of the fixed .nav panel,
     shrinking it to the header's height once scrolled — use a solid background on mobile instead */
  .site-header.is-scrolled, .header-solid .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-open .menu-toggle { background: var(--blue-100); color: var(--blue-800); }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 98; background: rgba(6, 27, 58, .45);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero (home) — inspired by "Travel / TOGETHER, EVERYWHERE"
   ========================================================================== */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 960px); display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) 0 150px; color: var(--white); text-align: center;
  isolation: isolate; overflow: hidden;
}
/* poster lives here (not on <video>) so phones get a small centre crop; the video covers it once it plays */
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--blue-900) url("../images/hero-video-poster-m.webp") center / cover; }
@media (min-width: 641px) { .hero__bg { background-image: url("../images/hero-video-poster.webp"); } }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out both; }
.hero__bg video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 27, 58, .55) 0%, rgba(11, 45, 92, .2) 40%, rgba(11, 45, 92, .45) 100%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero__content { position: relative; max-width: 920px; }
.hero__script {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(5rem, 16vw, 11.5rem); line-height: .9;
  color: var(--blue-400);
  -webkit-text-stroke: 3px var(--white); paint-order: stroke fill;
  text-shadow: 0 10px 30px rgba(6, 27, 58, .35);
  display: block; transform: rotate(-4deg);
}
.hero__title {
  margin-top: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 5.4vw, 4rem); line-height: 1.1;
  text-shadow: 0 6px 22px rgba(6, 27, 58, .5);
}
.hero__lead { margin: 18px auto 0; max-width: 760px; font-size: clamp(1rem, 2vw, 1.2rem); opacity: .95; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Decorative planes + dashed circle */
.deco-plane { position: absolute; color: var(--white); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); pointer-events: none; }
.deco-plane--1 { top: 22%; left: 7%; width: 80px; transform: rotate(-4deg); animation: floatY 6s ease-in-out infinite; }
.deco-plane--2 { top: 52%; right: 5%; width: 110px; transform: scaleX(-1) rotate(-4deg); animation: floatY 7s ease-in-out infinite reverse; }
.deco-circle {
  position: absolute; top: 34%; left: 3%; width: 170px; height: 170px; border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .75); pointer-events: none;
}
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 92px; translate: -50% 0; z-index: 2;
  width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 20px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px;
  background: var(--white); border-radius: 4px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Torn paper edge (white) */
.torn {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath fill='%23dbe8f7' d='M0 90V38l38-10 30 14 42-22 38 16 44-24 36 18 30-10 42 16 40-22 38 14 44-26 38 22 40-14 42 18 38-20 42 16 36-12 40 20 42-22 38 12 44-18 38 20 40-14 42 18 36-20 44 22 38-12 42 14 40-18 36 12 50-8v62Z'/%3E%3Cpath fill='%23ffffff' d='M0 90V48l40-8 32 12 40-18 40 14 42-20 38 16 32-8 40 14 42-18 36 12 46-22 36 20 42-12 40 16 40-18 40 14 38-10 38 18 44-20 36 10 46-16 36 18 42-12 40 16 38-18 44 20 36-10 44 12 38-16 40 10 44-6v52Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.torn--blue {
  top: -58px; bottom: auto; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23123f7e' d='M0 60V30l36-12 34 16 40-24 38 18 42-20 34 14 36-10 42 18 40-24 38 16 44-20 36 18 42-12 40 14 38-22 42 18 36-10 40 16 42-20 38 12 44-18 38 22 40-16 42 18 36-20 44 20 38-10 42 12 40-18 36 12 50-10v60Z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center;
  padding: calc(var(--header-h) + 70px) 0 150px;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 27, 58, .7), rgba(18, 63, 126, .45)); }
.page-hero .script-title { color: var(--blue-300); -webkit-text-stroke: 2px var(--white); paint-order: stroke fill; font-size: clamp(3.5rem, 10vw, 6.5rem); }
.page-hero h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 4.5vw, 3rem); text-shadow: 0 6px 20px rgba(6, 27, 58, .5); }
.page-hero p { margin: 12px auto 0; max-width: 640px; opacity: .95; }
.breadcrumb { margin: 20px 0 0; padding: 0; list-style: none; display: flex; justify-content: center; gap: 8px; font-size: .95rem; flex-wrap: wrap; }
.breadcrumb a { opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .7; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: 90px 0; }
.section--tight { padding: 60px 0; }
.section--soft { background: var(--blue-50); }
.section--first { padding-top: 40px; }

/* faded sea photo behind a section — set the image with --section-photo */
.section--photo { isolation: isolate; overflow: hidden; }
.section--photo::before,
.section--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section--photo::before { opacity: .14; background: var(--section-photo) center / cover no-repeat; }
.section--photo::after {
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, var(--white) 100%);
}

/* ocean: white → sea-blue gradient with blurred light blobs (services packages) */
.section.section--ocean { overflow: hidden; padding-bottom: 150px; background: linear-gradient(180deg, var(--white) 0%, #e8f5fd 55%, #cdeafb 100%); }
/* light blobs: a soft radial gradient looks like a blurred circle but costs far less to paint than filter: blur() */
.section--ocean::before, .section--ocean::after { content: ""; position: absolute; pointer-events: none; background: radial-gradient(closest-side, var(--blob) 30%, transparent); }
.section--ocean::before { width: 700px; height: 700px; top: -60px; right: -260px; --blob: var(--sky); opacity: .4; }
.section--ocean::after { width: 640px; height: 640px; bottom: -20px; left: -270px; --blob: #2dd4bf; opacity: .28; }
.section--ocean > .container { position: relative; z-index: 1; }

/* glow: light section with the same blurred sea-light blobs (no wave) */
.section--glow { overflow: hidden; background: linear-gradient(180deg, var(--white), var(--blue-50)); }
.section--glow::before, .section--glow::after { content: ""; position: absolute; pointer-events: none; background: radial-gradient(closest-side, var(--blob) 30%, transparent); }
.section--glow::before { width: 760px; height: 760px; top: -100px; right: -310px; --blob: var(--sky); opacity: .35; }
.section--glow::after { width: 700px; height: 700px; bottom: -100px; left: -310px; --blob: #2dd4bf; opacity: .25; }
.section--glow > .container { position: relative; z-index: 1; }

/* deep sea: dark navy with faint underwater photo (services steps) */
.section--deep {
  overflow: hidden; isolation: isolate; color: var(--white);
  background: radial-gradient(90% 70% at 80% 0%, rgba(56, 189, 248, .35), transparent 60%), linear-gradient(180deg, #0b3a73, var(--blue-950));
}
.section--deep::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: url("../images/snorkeling-diving-bg.webp") center / cover; }
.section--deep .script-title { color: var(--white); }
.section--deep .section-head h2 { color: #7dd3fc; }
.section--deep .section-head p { color: rgba(255, 255, 255, .75); }
.section--deep > .container { position: relative; z-index: 1; }
.section--deep .tour-card { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.section--deep .btn--outline { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.section--deep .btn--outline:hover { background: var(--white); color: var(--blue-800); }
.section--deep .step { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.section--deep .step h3 { color: var(--white); }
.section--deep .step p { color: rgba(255, 255, 255, .75); }
.section--deep .step__num { box-shadow: 0 0 0 6px rgba(56, 189, 248, .2), 0 0 30px rgba(56, 189, 248, .6); }

/* wave dividers between ocean → deep → white */
.wave { position: absolute; left: 0; display: block; width: 100%; height: 90px; pointer-events: none; }
.wave--bottom { bottom: -1px; z-index: 1; }
.wave--bottom path { fill: #0b3a73; }
.wave--top { top: -1px; transform: scaleY(-1); }
.wave--top path { fill: var(--blue-950); }
.section.section--after-wave { padding-top: 150px; }

/* FAQ split: title + photo on the left, questions on the right */
.faq-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq-split__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-split .section-head { text-align: left; margin: 0; max-width: none; }
.faq-split .section-head p a { color: var(--blue-600); font-weight: 400; text-decoration: underline; }
.faq-split__photo { margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.faq-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.faq-split .faq { margin: 0; max-width: none; }
.faq-help {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin-top: 10px;
  padding: 22px 24px; border-radius: var(--radius); color: var(--white);
  background: radial-gradient(90% 90% at 100% 0%, rgba(56, 189, 248, .4), transparent 60%), linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 20px 40px -20px rgba(6, 27, 58, .6);
}
.faq-help__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255, 255, 255, .14); }
.faq-help h3 { font-size: 1.1rem; font-weight: 500; }
.faq-help p { color: var(--blue-300); font-size: .9rem; }
.faq-help__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.faq-help__actions .btn { flex: 1 1 160px; justify-content: center; }
.btn--line { background: #009b3a; color: var(--white); box-shadow: 0 10px 22px rgba(0, 155, 58, .35); }
.btn--line:hover { background: #00812f; }
.btn--whatsapp { background: #25d366; color: var(--white); box-shadow: 0 10px 22px rgba(37, 211, 102, .35); }
.btn--whatsapp:hover { background: #1ebe5a; }
@media (max-width: 900px) {
  .faq-split { grid-template-columns: 1fr; gap: 30px; }
  .faq-split__aside { position: static; }
  .faq-split .section-head { text-align: center; }
  .faq-split__photo { display: none; }
}
@media (max-width: 640px) {
  .section.section--ocean { padding-bottom: 110px; }
  .section.section--after-wave { padding-top: 100px; }
  .wave { height: 50px; }
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.script-title {
  display: block; font-family: var(--font-script); font-weight: 400; color: var(--ink);
  font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1;
}
.section-head h2 {
  margin-top: 6px; color: var(--blue-600); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); letter-spacing: .02em;
}
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* paper plane + dashed trail decoration */
.deco-paperplane { position: absolute; top: 40px; left: 7%; width: 130px; color: var(--blue-500); opacity: .9; pointer-events: none; }
.deco-trail { position: absolute; top: 60px; right: 4%; width: 110px; color: var(--blue-500); pointer-events: none; }
@media (max-width: 760px) { .deco-paperplane, .deco-trail { display: none; } }

/* ---------- Service cards (blue cards like reference) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scard {
  position: relative; display: flex; flex-direction: column; text-align: center;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  border-radius: var(--radius-lg); padding: 14px 14px 30px; color: var(--white);
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.scard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.scard__media { border-radius: 24px; overflow: hidden; border: 4px solid var(--white); aspect-ratio: 4 / 3; background: var(--blue-100); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover .scard__media img { transform: scale(1.07); }
.scard__icon {
  width: 82px; height: 82px; margin: -42px auto 10px; position: relative; z-index: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--blue-600); font-size: 2.1rem;
  box-shadow: 0 8px 20px rgba(11, 45, 92, .25);
}
.scard h3 { font-size: 1.55rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.scard p { margin-top: 4px; opacity: .92; padding: 0 12px; }
.scard__more { margin-top: 16px; align-self: center; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .6); }

/* ---------- Tour cards ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tour-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tour-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__badge {
  position: absolute; top: 14px; left: 14px; padding: 4px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--blue-700); font-size: .85rem; font-weight: 500;
}
.tour-card__tag {
  position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--blue-600); color: var(--white); font-size: .8rem; font-weight: 500;
}
.tour-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tour-card h3 { font-size: 1.3rem; color: var(--blue-900); }
.tour-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.tour-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tour-card__meta .icon { color: var(--blue-500); }
/* the list grows so "View itinerary" + price row line up at the bottom of every card */
.tour-card__list { margin-top: 14px; display: grid; gap: 4px; align-content: start; flex-grow: 1; font-size: .95rem; }
.tour-card__list li { display: flex; gap: 8px; align-items: flex-start; }
.tour-card__list .icon { color: var(--blue-500); margin-top: .35em; }
.tour-card__foot {
  margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-top: 1px dashed var(--line);
}
.tour-card__list + .tour-card__foot { margin-top: 18px; }
.price { line-height: 1.1; }
.price small { display: block; font-size: .8rem; color: var(--muted); }
.price strong { font-size: 1.55rem; font-weight: 600; color: var(--blue-700); }
.price span { font-size: .85rem; color: var(--muted); }
.tour-card .btn { padding: .65em 1.3em; font-size: .95rem; }
.tour-card__media > a { display: block; height: 100%; }
.tour-card h3 a:hover { color: var(--blue-600); }

/* ---------- Tour detail page ---------- */
.tour-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
/* Tour photos: one big photo + a row of thumbnails (click / swipe to change) */
.viewer__main { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--blue-100); box-shadow: var(--shadow-sm); touch-action: pan-y; }
.viewer__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.viewer__main img.is-loading { opacity: .35; }
.viewer__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(6, 27, 58, .65); color: var(--white); font-size: .85rem; }
.viewer__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.viewer__thumbs::-webkit-scrollbar { display: none; }
.viewer__thumbs button { flex: 0 0 88px; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--blue-100); opacity: .65; transition: opacity .2s, border-color .2s; }
.viewer__thumbs button:hover { opacity: .9; }
.viewer__thumbs button[aria-current="true"] { border-color: var(--blue-500); opacity: 1; }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tour-detail__title, .tour-box h2 { font-size: 1.35rem; color: var(--blue-700); }
.tour-detail__title { margin: 44px 0 18px; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; border-left: 3px solid var(--blue-100); margin-left: 8px; }
.timeline li { position: relative; padding-left: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -11px; top: .35em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue-500);
}
.timeline__time { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--blue-600); color: var(--white); font-size: .9rem; font-weight: 500; }
.timeline p { margin-top: 8px; }
.timeline__list { margin-top: 8px; display: grid; gap: 6px; }
.timeline__list li { position: relative; padding-left: 20px; }
.timeline__list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.timeline strong { font-weight: 500; color: var(--blue-900); }
.tour-box__sub { margin-top: 2px; color: var(--muted); font-size: .92rem; }
.tour-box__sub li::before { content: "– "; }
.price del { color: var(--muted); }
/* discounted price (there's a struck-through old price) → sale red */
.price:has(del) strong { color: #e11d48; }
.tour-book__deal { justify-self: start; padding: 3px 12px; border-radius: 999px; background: #e0463c; color: var(--white); font-size: .85rem; font-weight: 500; }
.tour-lists { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tour-box { padding: 26px 26px 28px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line); }
.tour-box--note { margin-top: 20px; background: var(--white); }
.tour-box .tour-card__list { margin-top: 12px; }
.tour-book {
  position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.tour-book .price strong { font-size: 2.2rem; }
.tour-book .tour-card__meta { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 6px; }
.tour-book .tour-card__meta li { display: flex; align-items: center; gap: 8px; }
@media (max-width: 960px) {
  .tour-detail { grid-template-columns: minmax(0, 1fr); } /* minmax(0) so the thumbnail row scrolls instead of widening the page */
  .tour-book { position: static; order: -1; }
}
@media (max-width: 640px) {
  .viewer__thumbs button { flex-basis: 64px; border-radius: 10px; }
  .tour-lists { grid-template-columns: 1fr; }
  .tour-box { padding: 22px 20px; }
}

/* ---------- Filters ---------- */
/* segmented control: one rounded bar, active option filled */
.filters {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 5px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 28px -12px rgba(11, 45, 92, .25);
}
.filter-btn {
  padding: .6em 1.4em; border: 0; border-radius: 999px; background: transparent; white-space: nowrap;
  color: var(--blue-800); font: inherit; font-size: .95rem; font-weight: 400; cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.filter-btn:hover { background: var(--blue-50); }
.filter-btn.is-active { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); font-weight: 500; box-shadow: 0 6px 14px -4px rgba(26, 79, 150, .5); }
.is-hidden { display: none !important; }

/* ---------- Why us / stats ---------- */
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.why-media { position: relative; }
.why-media__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.2; }
.why-media__main img,
.why-media__main video { display: block; width: 100%; height: 100%; object-fit: cover; }
.why-media__float {
  position: absolute; right: -24px; bottom: -28px; width: 46%; border-radius: var(--radius);
  overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow); aspect-ratio: 1;
}
.why-media__float img { width: 100%; height: 100%; object-fit: cover; }
.why-media__badge {
  position: absolute; left: -18px; top: 28px; background: var(--white); border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.why-media__badge strong { font-size: 1.8rem; color: var(--blue-600); line-height: 1; }
.why-media__badge span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.why-content .script-title { font-size: clamp(2.6rem, 6vw, 3.8rem); }
.why-content h2 { margin-top: 6px; color: var(--blue-600); text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); }
.why-content > p { margin-top: 14px; color: var(--muted); }
.why-list { margin-top: 26px; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list__icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-size: 1.5rem;
}
.why-list h3 { font-size: 1.1rem; color: var(--blue-900); font-weight: 500; }
.why-list p { color: var(--muted); font-size: .95rem; }

/* ---------- Ticker: endless band of places & activities (home) ---------- */
.ticker {
  overflow: hidden; padding: 18px 0; color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 10px 30px -12px rgba(11, 45, 92, .45);
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.ticker__group li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.05rem; font-weight: 500; }
.ticker__group li .icon { font-size: 1.35rem; color: #7dd3fc; }
.ticker__group li::after { content: ""; width: 6px; height: 6px; margin: 0 30px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .ticker { padding: 14px 0; }
  .ticker__group li { font-size: .95rem; gap: 8px; }
  .ticker__group li::after { margin: 0 20px; }
}
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 26px; } /* every card the same height */
.review-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: var(--radius); padding: 30px 26px 24px;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 1px 2px rgba(11, 45, 92, .06),
    0 12px 28px rgba(11, 45, 92, .10),
    0 32px 64px -24px rgba(26, 79, 150, .35);
  /* uses `translate` (not transform) so it doesn't fight the .reveal animation */
  translate: 0 calc(var(--stagger, 0px) + var(--lift, 0px));
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.review-card.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease); }
.review-card:hover {
  --lift: -8px;
  box-shadow:
    0 2px 4px rgba(11, 45, 92, .08),
    0 20px 40px rgba(11, 45, 92, .14),
    0 44px 80px -24px rgba(26, 79, 150, .45);
}
/* dark ocean layer — faded in on the featured card so the slider can cross-fade it */
.review-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, .35), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-950));
  transition: opacity .6s var(--ease);
}
.review-card__text, .review-card__tour, .review-card__author, .review-card__author strong, .review-card__author div span {
  transition: color .6s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease);
}
@media (min-width: 961px) {
  .review-grid, .review-track { padding-top: 24px; }
  /* featured card (middle of each row / centre of the slider): raised, dark, glowing */
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) {
    --stagger: -24px;
    border-color: rgba(255, 255, 255, .15);
    box-shadow:
      0 2px 4px rgba(6, 27, 58, .2),
      0 24px 48px rgba(6, 27, 58, .28),
      0 50px 90px -30px rgba(26, 79, 150, .7);
  }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center)::before { opacity: 1; }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .review-card__text { color: rgba(255, 255, 255, .92); }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .review-card__tour { background-color: rgba(255, 255, 255, .14); color: var(--white); }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .review-card__author { border-top-color: rgba(255, 255, 255, .2); }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .review-card__author strong { color: var(--white); }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .review-card__author div span { color: var(--blue-300); }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .avatar { box-shadow: 0 0 0 3px var(--blue-900), 0 0 0 5px var(--av-ring), 0 8px 18px rgba(0, 0, 0, .35); }
  :is(.review-grid > .review-card:nth-child(3n+2), .review-card.is-center) .avatar::after { border-color: var(--blue-900); }
}

/* ---------- Review slider (home) ---------- */
.review-slider { --per-view: 3; --gap: 26px; position: relative; }
.review-slider__viewport {
  /* extra room so shadows / raised card aren't clipped, edges faded */
  overflow: hidden; margin: -30px -24px -50px; padding: 30px 24px 50px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.review-track { display: flex; gap: var(--gap); transition: transform .7s var(--ease); will-change: transform; }
.review-track.no-anim, .review-track.no-anim * { transition: none !important; }
.review-track > .review-card { flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view)); }
.review-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.review-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue-300); opacity: .6; transition: width .35s var(--ease), background-color .35s, opacity .35s;
}
.review-dots button[aria-current="true"] { width: 28px; background: var(--blue-600); opacity: 1; }
@media (max-width: 960px) { .review-slider { --per-view: 2; } }
@media (max-width: 640px) { .review-slider { --per-view: 1; --gap: 16px; } }
.stars { display: flex; gap: 2px; color: var(--star); font-size: 1.05rem; }
.review-card__text { margin-top: 12px; color: var(--ink); flex: 1; }
.review-card__tour { margin-top: 14px; display: inline-flex; align-self: flex-start; font-size: .82rem; padding: 3px 12px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); }
.review-card__author { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 12px; }
.avatar {
  --av: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  --av-ring: var(--blue-300);
  position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--av); color: var(--white); font-weight: 600; font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--av-ring), 0 8px 18px rgba(11, 45, 92, .28);
}
/* verified tick */
.avatar::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--white);
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* a different ocean colour per reviewer */
.review-card:nth-child(3n+1) .avatar { --av: linear-gradient(135deg, #2dd4bf, #0e7490); --av-ring: #99f6e4; }
.review-card:nth-child(3n+2) .avatar { --av: linear-gradient(135deg, #fbbf24, #f97316); --av-ring: #fde68a; }
.review-card:nth-child(3n+3) .avatar { --av: linear-gradient(135deg, var(--sky), var(--blue-700)); --av-ring: var(--blue-300); }
.review-card__author strong { display: block; font-weight: 500; color: var(--blue-900); line-height: 1.3; }
.review-card__author div span { font-size: .85rem; color: var(--muted); }

/* ---------- Reviews page: photo band + trip photo strip ---------- */
.review-band { position: relative; overflow: hidden; padding: 30px 0 50px; }
.review-band .rating-summary { margin-bottom: 0; }
.photo-strip__label {
  width: max-content; margin: 16px auto 0; padding: 4px 16px; border-radius: 999px; font-size: .85rem;
  color: var(--blue-700); background: var(--blue-100);
}
.photo-strip {
  overflow: hidden; margin-top: 14px; padding: 12px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.photo-strip__track { display: flex; gap: 16px; width: max-content; animation: photoStrip 45s linear infinite; }
.photo-strip:hover .photo-strip__track { animation-play-state: paused; }
.photo-strip img {
  width: 220px; height: 160px; flex-shrink: 0; object-fit: cover; border-radius: 16px;
  border: 4px solid var(--white); box-shadow: 0 14px 28px -12px rgba(6, 27, 58, .45);
}
.photo-strip img:nth-child(odd) { rotate: -2deg; }
.photo-strip img:nth-child(even) { rotate: 2deg; translate: 0 8px; }
@keyframes photoStrip { to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 640px) { .photo-strip img { width: 160px; height: 116px; } }
@media (prefers-reduced-motion: reduce) { .photo-strip__track { animation: none; } }
.section.review-list { padding-top: 40px; }

.rating-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: var(--white); border-radius: var(--radius-lg); padding: 34px 40px; box-shadow: var(--shadow);
  margin-bottom: 50px; border: 1px solid var(--line);
}
.rating-summary__score { text-align: center; padding-right: 40px; border-right: 1px solid var(--line); }
.rating-summary__score strong { display: block; font-size: 3.6rem; font-weight: 600; color: var(--blue-700); line-height: 1; }
.rating-summary__score .stars { justify-content: center; margin: 8px 0 4px; font-size: 1.3rem; }
.rating-summary__score span { color: var(--muted); font-size: .92rem; }
.rating-bars { display: grid; gap: 8px; }
.rating-bar { display: grid; grid-template-columns: 48px 1fr 44px; gap: 12px; align-items: center; font-size: .92rem; }
.rating-bar__track { height: 10px; background: var(--blue-100); border-radius: 999px; overflow: hidden; }
.rating-bar__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); border-radius: inherit; transition: width 1.2s var(--ease); }
.rating-bar span:last-child { color: var(--muted); text-align: right; }

/* ---------- Contact bar (like reference) ---------- */
.contact-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
  border: 2px solid var(--blue-400); border-radius: var(--radius-lg); padding: 22px 10px; box-shadow: var(--shadow-sm);
}
.contact-bar__item { display: flex; align-items: center; gap: 14px; padding: 8px 22px; min-width: 0; }
.contact-bar__item > div { min-width: 0; }
.contact-bar__item + .contact-bar__item { border-left: 2px solid var(--line); }
.contact-bar__icon {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--blue-500); color: var(--white); font-size: 1.5rem;
}
.contact-bar h3 { font-size: 1rem; font-weight: 600; color: var(--blue-600); text-transform: uppercase; letter-spacing: .04em; }
.contact-bar p, .contact-bar a { font-weight: 500; color: var(--ink); line-height: 1.45; }
.contact-bar a:hover { color: var(--blue-600); }
.contact-bar small { font-size: .85rem; font-weight: 300; color: var(--muted); line-height: 1.45; }
.contact-bar a[href^="mailto:"], .info-card__email { overflow-wrap: break-word; } /* long address wraps (at the <wbr> before @) on narrow screens */

/* ---------- CTA banner ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: 60px 50px; color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 45, 92, .92), rgba(26, 79, 150, .55)); }
.cta .script-title { color: var(--blue-300); font-size: clamp(2.4rem, 5vw, 3.4rem); }
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; }
.cta p { margin-top: 6px; opacity: .9; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Steps (services) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 30px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.step__num {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-size: 1.6rem;
}
.step h3 { font-size: 1.15rem; color: var(--blue-900); font-weight: 500; }
.step p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.step::after {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 12px; right: 18px;
  font-weight: 600; font-size: 1.1rem; color: var(--blue-300);
}
/* flow arrows between steps (4-column layout only) */
@media (min-width: 961px) {
  .step + .step::before {
    content: ""; position: absolute; z-index: 2; top: 46px; left: -26px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a67b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
    box-shadow: 0 4px 12px rgba(11, 45, 92, .25);
  }
}
.steps-dots { display: none; } /* mobile only */
.steps-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; text-align: center; }
.steps-cta span { font-size: .92rem; color: var(--muted); }
.steps-cta span a { color: var(--blue-600); text-decoration: underline; }
.section--deep .steps-cta span { color: rgba(255, 255, 255, .7); }
.section--deep .steps-cta span a { color: #7dd3fc; }
/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; position: relative; font-weight: 500; color: var(--blue-900);
}
.faq summary::-webkit-details-marker { display: none; }
/* +/− drawn with gradients (font glyphs sit off-centre in Kanit) */
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  --mark: var(--blue-600);
  background:
    linear-gradient(var(--mark), var(--mark)) center / 12px 2px no-repeat,
    linear-gradient(var(--mark), var(--mark)) center / 2px 12px no-repeat,
    var(--blue-100);
  transition: rotate .3s var(--ease), background-color .3s;
}
/* open: the + turns 45° into an × */
.faq details[open] summary::after {
  --mark: var(--white);
  background:
    linear-gradient(var(--mark), var(--mark)) center / 12px 2px no-repeat,
    linear-gradient(var(--mark), var(--mark)) center / 2px 12px no-repeat,
    var(--blue-600);
  rotate: 45deg;
}
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info--grid { grid-template-columns: repeat(2, 1fr); }
.info-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s;
}
a.info-card:hover { transform: translateX(6px); border-color: var(--blue-400); }
.info-card__icon { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-500); color: var(--white); font-size: 1.4rem; }
.info-card h2, .info-card h3 { font-size: .95rem; color: var(--blue-600); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.info-card p { font-weight: 400; }
.info-card small { color: var(--muted); }
.info-card p a:hover { color: var(--blue-600); }
.info-card small a { color: var(--blue-600); font-weight: 400; }
.info-card small a:hover { text-decoration: underline; }

/* contact page: "Let's talk" split + map card */
.contact-page__bg { background: var(--blue-50); }
.section--first.contact-page__bg { background: linear-gradient(180deg, var(--white), var(--blue-50) 160px); } /* blend with the white torn edge */
.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
.contact-split .info-card { border: 0; box-shadow: 0 14px 30px -16px rgba(11, 45, 92, .3); }
.talk-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: 40px 36px; color: var(--white);
  background: radial-gradient(90% 70% at 100% 0%, rgba(56, 189, 248, .45), transparent 60%), linear-gradient(160deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 40px 80px -30px rgba(6, 27, 58, .6);
}
.talk-panel::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; opacity: .18;
  background: url("../images/queen-of-andaman-speedboat.webp") center / cover;
}
.talk-panel .script-title { color: #7dd3fc; font-size: clamp(2.6rem, 6vw, 3.4rem); }
.talk-panel h2 { margin-top: 4px; font-size: 1.7rem; font-weight: 600; }
.talk-panel > p { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.talk-panel__btns { display: grid; gap: 12px; margin-top: 28px; }
.talk-panel__btns .btn { justify-content: center; }
.talk-panel .talk-panel__hours { display: flex; gap: 8px; align-items: center; margin-top: 22px; color: var(--blue-300); font-size: .92rem; }
.map-box { position: relative; }
.map-card { position: absolute; left: 32px; bottom: 32px; max-width: 320px; padding: 20px 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.map-card h3 { color: var(--blue-900); font-weight: 500; font-size: 1.1rem; }
.map-card p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.map-card .btn { margin-top: 12px; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .talk-panel { padding: 32px 22px; }
  /* card overlaps the map's bottom edge so the two read as one unit */
  .map-card { position: relative; left: auto; bottom: auto; max-width: none; margin: -48px 14px 0; padding: 20px; text-align: center; }
  .map-card .btn { margin-top: 16px; width: 100%; justify-content: center; }
}

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h2 { color: var(--blue-900); font-size: 1.6rem; }
.form-card > p { color: var(--muted); margin-top: 4px; }
.form-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 400; font-size: .95rem; color: var(--blue-900); }
.field label .req { color: #d64545; }
.field label .optional { color: var(--muted); font-size: .85em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--blue-50);
  font-weight: 300; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 4px rgba(74, 134, 200, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; background: #fff6f6; }
.field__error { font-size: .85rem; color: #d64545; min-height: 0; }
.form-note { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #e9f8ef; color: #1c7a43; border: 1px solid #bfe7cf;
}
.form-success.is-visible { display: block; }

/* ---------- Booking form ---------- */
.booking-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.form-step { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--blue-900); font-size: 1.15rem; font-weight: 500; }
.form-step:first-child { margin-top: 0; }
.form-step span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); font-size: .9rem; font-weight: 600;
}
.form-step + .form-grid, .form-step + .pay-options { margin-top: 16px; }

.stepper { display: grid; grid-template-columns: 48px 1fr 48px; }
.stepper button {
  border: 1.5px solid var(--line); background: var(--white); color: var(--blue-700); font-size: 1.3rem; cursor: pointer;
  transition: background .2s, color .2s;
}
.stepper button:first-child { border-radius: 14px 0 0 14px; border-right: 0; }
.stepper button:last-child { border-radius: 0 14px 14px 0; border-left: 0; }
.stepper button:hover { background: var(--blue-600); color: var(--white); }
.field .stepper input { border-radius: 0; text-align: center; font-weight: 500; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option__body {
  display: grid; gap: 2px; height: 100%; padding: 16px 18px 16px 48px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--blue-50); transition: border-color .25s, background .25s, box-shadow .25s;
}
.pay-option__body::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--blue-300); background: var(--white); transition: border .2s;
}
.pay-option strong { color: var(--blue-900); font-weight: 500; }
.pay-option small { color: var(--muted); font-size: .85rem; }
.pay-option em { font-style: normal; margin-top: 6px; color: var(--blue-600); font-weight: 600; font-size: 1.15rem; }
.pay-option input:checked + .pay-option__body { border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 4px rgba(74, 134, 200, .15); }
.pay-option input:checked + .pay-option__body::before { border: 6px solid var(--blue-600); }
.pay-option input:focus-visible + .pay-option__body { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.consent { margin: 22px 0 18px; font-size: .92rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; accent-color: var(--blue-600); }
.consent a { color: var(--blue-600); text-decoration: underline; margin: 0 3px; }

.booking-summary {
  position: sticky; top: calc(var(--header-h) + 20px); padding: 30px 28px; border-radius: var(--radius-lg); color: var(--white);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(56, 189, 248, .35), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 30px 60px -20px rgba(6, 27, 58, .55);
}
.booking-summary h3 { font-size: 1.25rem; font-weight: 500; }
.booking-summary dl { margin: 18px 0 0; display: grid; gap: 10px; }
.booking-summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.booking-summary dt { color: var(--blue-300); flex-shrink: 0; }
.booking-summary dd { margin: 0; text-align: right; }
.booking-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .25); }
.booking-summary__total strong { font-size: 1.8rem; font-weight: 600; }
.booking-summary__pay { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; gap: 6px; font-size: .95rem; }
.booking-summary__pay div { display: flex; justify-content: space-between; }
.booking-summary__pay strong { color: #7dd3fc; font-size: 1.15rem; font-weight: 600; }
.booking-summary__perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.booking-summary__perks li { display: flex; gap: 8px; align-items: center; }
.booking-summary__perks .icon { color: #7dd3fc; flex-shrink: 0; }

.booking-pkg { margin: -8px -6px 24px; }
.booking-pkg__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 16px 30px rgba(0, 0, 0, .3); }
.booking-pkg__media img { width: 100%; height: 100%; object-fit: cover; }
.booking-pkg__title { margin-top: 16px; font-size: 1.2rem; font-weight: 500; line-height: 1.4; }
.booking-pkg__meta { margin-top: 4px; color: var(--blue-300); font-size: .92rem; }
.booking-pkg__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #7dd3fc; font-size: .9rem; }
.booking-pkg__link:hover { text-decoration: underline; }
.booking-pkg__empty { margin-bottom: 20px; padding: 18px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .3); color: var(--blue-300); font-size: .92rem; text-align: center; }
.booking-pkg + .booking-pkg__empty[hidden], .booking-pkg[hidden] { display: none; }
.page-hero--short { padding-bottom: 110px; }

/* ---------- Booking success page ---------- */
.success-page { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 90px; }
.success-page__bg { position: absolute; inset: 0; z-index: -1; }
.success-page__bg img { width: 100%; height: 100%; object-fit: cover; }
.success-page__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 27, 58, .75), rgba(18, 63, 126, .55) 40%, var(--blue-50) 85%); }
.success-page:not(.has-booking) .only-booking { display: none; }

.success-card {
  max-width: 760px; margin: 0 auto; padding: 48px 44px 40px; text-align: center; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(6, 27, 58, .55);
  animation: successIn .7s var(--ease) both;
}
@keyframes successIn { from { opacity: 0; translate: 0 30px; } }
.success-check { width: 88px; height: 88px; margin: -92px auto 10px; border-radius: 50%; background: var(--white); padding: 8px; box-shadow: 0 14px 30px rgba(34, 197, 94, .35); }
.success-check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { fill: #22c55e; stroke: none; transform-origin: center; animation: checkPop .5s .2s var(--ease) both; }
.success-check path { stroke: var(--white); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: checkDraw .45s .6s ease-out forwards; }
@keyframes checkPop { from { transform: scale(0); } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-card .script-title { font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--blue-600); }
.success-card h1 { margin-top: 4px; color: var(--blue-900); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; }
.success-lead { margin: 10px auto 0; max-width: 560px; color: var(--muted); }
.success-lead strong { color: var(--blue-900); font-weight: 500; }

.success-ref { display: grid; gap: 2px; margin: 26px auto 0; padding: 16px 20px; max-width: 360px; border-radius: 16px; border: 2px dashed var(--blue-300); background: var(--blue-50); }
.success-ref span { font-size: .88rem; color: var(--muted); }
.success-ref strong { font-size: 1.7rem; letter-spacing: .08em; color: var(--blue-700); font-weight: 600; }
.success-ref small { font-size: .8rem; color: var(--muted); }

.success-summary { display: grid; grid-template-columns: 200px 1fr; gap: 22px; margin-top: 28px; padding: 18px; text-align: left; border-radius: var(--radius); border: 1px solid var(--line); }
.success-summary__media { border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--blue-100); }
.success-summary__media img { width: 100%; height: 100%; object-fit: cover; }
.success-summary h2 { font-size: 1.1rem; font-weight: 500; color: var(--blue-900); line-height: 1.4; }
.success-summary dl { margin: 10px 0 0; display: grid; gap: 5px; font-size: .92rem; }
.success-summary dl div { display: flex; justify-content: space-between; gap: 14px; }
.success-summary dt { color: var(--muted); flex-shrink: 0; }
.success-summary dd { margin: 0; text-align: right; color: var(--ink); }
.success-summary .is-strong { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.success-summary .is-strong dt, .success-summary .is-strong dd { color: var(--blue-700); font-weight: 600; font-size: 1.05rem; }


.success-note { margin-top: 28px; font-size: .9rem; color: var(--muted); }
.success-note a { color: var(--blue-600); text-decoration: underline; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
/* Pay fallback: two chat buttons paired, phone full-width below */
.success-actions--split { display: grid; grid-template-columns: 1fr 1fr; }
.success-actions--split .btn--outline { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .success-card { padding: 40px 20px 30px; }
  .success-summary { grid-template-columns: 1fr; }
  .success-summary__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 960px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { order: -1; }
  .booking-summary { position: static; }
}
@media (max-width: 640px) { .pay-options { grid-template-columns: 1fr; } }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); aspect-ratio: 21 / 8; background: var(--blue-100); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Footer (components/footer.html)
   ========================================================================== */
.site-footer { position: relative; margin-top: 70px; background: var(--blue-800); color: rgba(255, 255, 255, .85); }
.site-footer__main { padding: 40px 0 30px; text-align: center; }
.footer-logo {
  display: inline-block; background: var(--white); border-radius: var(--radius); padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); transition: transform .3s var(--ease);
}
.footer-logo:hover { transform: translateY(-3px); }
.footer-logo img { width: 100px; height: auto; }
.site-footer__about { margin-top: 16px; font-size: .95rem; max-width: 520px; margin-inline: auto; }
.site-footer__addr { margin-top: 16px; max-width: 520px; margin-inline: auto; text-align: center; }
.site-footer__addr-label {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 4px; font-weight: 700; font-size: .95rem;
}
.site-footer__addr-label .icon { width: 1.05em; height: 1.05em; opacity: .85; }
.site-footer__addr-text {
  display: block; font-size: .9rem; line-height: 1.55;
  color: inherit; text-decoration: none; opacity: .88; transition: opacity .2s;
}
.site-footer__addr-text:hover { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.socials { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(255, 255, 255, .1); color: var(--white); transition: background .25s, transform .25s;
}
.socials a:hover { transform: translateY(-3px); filter: brightness(1.1); }
/* brand colours: LINE green, phone sky blue, email amber */
.socials a[href*="line.me"] { background: #009b3a; box-shadow: 0 8px 18px -6px rgba(0, 155, 58, .6); }
.socials a[href*="wa.me"] { background: #25d366; box-shadow: 0 8px 18px -6px rgba(37, 211, 102, .6); }
.socials a[href^="tel:"] { background: #e23b2e; box-shadow: 0 8px 18px -6px rgba(226, 59, 46, .6); }
.socials a[href^="mailto:"] { background: #f59e0b; box-shadow: 0 8px 18px -6px rgba(245, 158, 11, .6); }
/* Brand-coloured ripple ring on each icon, pulsing one after another */
.socials a { position: relative; }
.socials a::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  animation: social-ripple 2.4s ease-out infinite; pointer-events: none;
}
.socials a:nth-child(2)::after { animation-delay: .6s; }
.socials a:nth-child(3)::after { animation-delay: 1.2s; }
.socials a:nth-child(4)::after { animation-delay: 1.8s; }
.socials a[href*="line.me"]::after { border-color: #009b3a; }
.socials a[href*="wa.me"]::after { border-color: #25d366; }
.socials a[href^="tel:"]::after { border-color: #e23b2e; }
.socials a[href^="mailto:"]::after { border-color: #f59e0b; }
@keyframes social-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .88rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-footer__bottom a:hover { color: var(--white); }
.footer-palm { position: absolute; bottom: 60px; right: 2%; width: 160px; color: rgba(255, 255, 255, .06); pointer-events: none; }
/* Rising bubbles drifting up through the footer, like looking into the sea */
.footer-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.footer-bubbles i {
  position: absolute; bottom: -22px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  animation: bubbleUp linear infinite;
}
.footer-bubbles i:nth-child(1) { left: 8%;  width: 12px; height: 12px; animation-duration: 7s; }
.footer-bubbles i:nth-child(2) { left: 20%; width: 7px;  height: 7px;  animation-duration: 9s;   animation-delay: 2s; }
.footer-bubbles i:nth-child(3) { left: 33%; width: 16px; height: 16px; animation-duration: 11s;  animation-delay: 1s; }
.footer-bubbles i:nth-child(4) { left: 52%; width: 9px;  height: 9px;  animation-duration: 8s;   animation-delay: 3.5s; }
.footer-bubbles i:nth-child(5) { left: 66%; width: 13px; height: 13px; animation-duration: 10s;  animation-delay: .5s; }
.footer-bubbles i:nth-child(6) { left: 79%; width: 8px;  height: 8px;  animation-duration: 7.5s; animation-delay: 4s; }
.footer-bubbles i:nth-child(7) { left: 90%; width: 15px; height: 15px; animation-duration: 12s;  animation-delay: 2.5s; }
@keyframes bubbleUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .9; }
  85% { opacity: .5; }
  100% { transform: translateY(-340px) translateX(14px); opacity: 0; }
}

/* Floating buttons */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  color: var(--white); font-size: 1.5rem; box-shadow: 0 10px 24px rgba(11, 45, 92, .3); transition: transform .25s, opacity .3s;
}
.float-btn:hover { transform: scale(1.08); }
a[href^="tel:"] { white-space: nowrap; } /* never break a phone number across lines */
.float-btn--line { background: #009b3a; }
.float-btn--whatsapp { background: #25d366; }
.float-btn--phone { background: #e23b2e; }
.float-btn--top { background: var(--white); color: var(--blue-700); opacity: 0; pointer-events: none; }
.float-btn--top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Collapsible contact FAB (channels tuck behind one toggle) ---------- */
.fab-channels { display: grid; gap: 10px; }
.fab-more { background: var(--blue-600); display: none; position: relative; } /* shown only once JS is ready */
.fab-more svg {
  width: 26px; height: 26px; grid-area: 1 / 1; /* stack both icons in the same spot */
  transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.fab-more__open  { opacity: 1; transform: rotate(0) scale(1); }
.fab-more__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.float-actions.fab-ready .fab-more { display: grid; }
/* Collapsed channels float above the toggle so they reserve no space when hidden */
.float-actions.fab-ready .fab-channels {
  position: absolute; right: 0; bottom: 100%; margin-bottom: 10px;
}
.float-actions.fab-ready .fab-channels .float-btn {
  opacity: 0; transform: scale(.5); transform-origin: bottom center; pointer-events: none;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
}
.float-actions.fab-ready.is-open .fab-channels .float-btn { opacity: 1; transform: none; pointer-events: auto; }
.float-actions.fab-ready.is-open .fab-channels .float-btn:hover { transform: scale(1.08); }
.float-actions.fab-ready.is-open .fab-channels .float-btn:nth-child(3) { transition-delay: 0s; }
.float-actions.fab-ready.is-open .fab-channels .float-btn:nth-child(2) { transition-delay: .05s; }
.float-actions.fab-ready.is-open .fab-channels .float-btn:nth-child(1) { transition-delay: .1s; }
.float-actions.is-open .fab-more__open  { opacity: 0; transform: rotate(90deg) scale(.6); }
.float-actions.is-open .fab-more__close { opacity: 1; transform: rotate(0) scale(1); }
/* Attention ripple: a ring keeps pulsing out of the toggle until it is opened */
.float-actions.fab-ready .fab-more::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; pointer-events: none;
  border: 3px solid var(--blue-600); background: rgba(42, 103, 184, .28);
  animation: fab-ripple 2.4s ease-out infinite;
}
.float-actions.is-open .fab-more::after { animation: none; opacity: 0; }
@keyframes fab-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .float-actions.fab-ready .fab-channels .float-btn { transition: opacity .2s; transform: none; }
  .float-actions.fab-ready .fab-more::after { animation: none; opacity: 0; }
  .footer-bubbles i, .socials a::after { animation: none; opacity: 0; }
}

/* ---------- Prose (privacy / cancellation & refund policy) ---------- */
.prose {
  max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 44px 48px;
}
.prose__updated { display: inline-block; margin-bottom: 18px; padding: 4px 14px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: .9rem; }
.prose h2 { margin: 34px 0 10px; font-size: 1.3rem; color: var(--blue-700); font-weight: 600; }
.prose h3 { margin: 22px 0 6px; font-size: 1.08rem; color: var(--blue-900); font-weight: 500; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { margin-top: 8px; display: grid; gap: 6px; }
.prose ol { counter-reset: prose-ol; }
.prose li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.prose ol > li { counter-increment: prose-ol; padding-left: 30px; }
.prose ol > li::before { content: counter(prose-ol); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.prose strong { font-weight: 500; color: var(--blue-900); }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.prose__contact { padding: 20px 24px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line); }
.prose__contact p + p { margin-top: 2px; }
@media (max-width: 640px) { .prose { padding: 28px 20px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 40px; }
.notfound strong { display: block; font-size: clamp(6rem, 20vw, 10rem); line-height: 1; font-weight: 700; color: var(--blue-100); -webkit-text-stroke: 3px var(--blue-500); }
.notfound h1 { margin-top: 10px; color: var(--blue-900); font-size: 1.8rem; }
.notfound p { margin: 8px 0 26px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-bar { grid-template-columns: repeat(2, 1fr); }
  .contact-bar__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 960px) {
  .service-grid, .tour-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-layout, .contact-info--grid { grid-template-columns: 1fr; }
  .why-media { max-width: 560px; margin: 0 auto 30px; }
  .contact-bar { grid-template-columns: 1fr; padding: 10px; }
  .contact-bar__item + .contact-bar__item { border-left: 0; border-top: 2px solid var(--line); }
  .contact-bar__item { padding: 16px 18px; }
  .map-wrap { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .service-grid, .tour-grid, .review-grid, .steps { grid-template-columns: 1fr; }
  .scard { max-width: 420px; width: 100%; margin: 0 auto; }
  .brand__sub { display: none; }
  .brand img { height: 84px; }
  .is-scrolled .brand img, .header-solid .brand img { height: 60px; }
  /* hero decorations crowd the logo / floating buttons on a phone */
  .deco-plane, .deco-circle, .scroll-hint { display: none; }

  /* floating LINE / call buttons: smaller so they cover less content */
  .float-actions { right: 12px; bottom: 12px; gap: 8px; }
  .float-btn { width: 46px; height: 46px; font-size: 1.3rem; }

  /* tour / review filters: the segmented bar spans the full width, options share it equally */
  .filters { width: 100%; margin-bottom: 30px; padding: 4px; gap: 2px; }
  .filter-btn { flex: 1 1 0; min-width: 0; padding: .7em .2em; font-size: .84rem; white-space: normal; line-height: 1.2; }

  /* booking steps: swipeable carousel (auto-advances every 5s, see initStepsSlider) */
  .steps {
    position: relative; /* offsetParent for the cards (slider maths) */
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 6px 16px 18px; -webkit-overflow-scrolling: touch;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps > .step { flex: 0 0 84%; scroll-snap-align: center; }
  .steps-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .steps-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: var(--blue-300); opacity: .6; transition: width .3s, opacity .3s, background-color .3s; }
  .steps-dots button[aria-current="true"] { width: 26px; opacity: 1; background: var(--blue-600); }
  .section--deep .steps-dots button { background: rgba(255, 255, 255, .45); }
  .section--deep .steps-dots button[aria-current="true"] { background: var(--white); }

  /* booking page: compact package summary above the form */
  .booking-summary { padding: 22px 20px; }
  .booking-pkg { margin: 0 0 18px; }
  .booking-pkg__media { aspect-ratio: 2 / 1; }
  .booking-summary__perks { display: none; }
  .hero__script { -webkit-text-stroke: 2px var(--white); }
  .rating-summary { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .rating-summary__score { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding: 44px 26px; }
  .why-media__float { right: -6px; }
  .why-media__badge { left: -6px; }
}

/* ---------- Phuket beaches (home): row of square photos, auto-slides one card at a time ---------- */
.beach-slider { position: relative; --gap: 20px; --per-view: 3; }
.beach-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; padding: 6px 0 18px; /* room for the card shadows */
}
.beach-track::-webkit-scrollbar { display: none; }
.beach-slide {
  position: relative; margin: 0; overflow: hidden; scroll-snap-align: start; aspect-ratio: 1;
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  border-radius: var(--radius); background: var(--blue-100); box-shadow: var(--shadow-sm);
}
.beach-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.beach-slide:hover img { transform: scale(1.05); }
.beach-slide figcaption {
  position: absolute; inset: auto 0 0; padding: 60px 22px 20px; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(6, 27, 58, .78));
}
.beach-slide strong { display: block; font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.beach-slide span { display: block; margin-top: 2px; font-size: .92rem; opacity: .92; }
.beach-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.beach-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: #bfdbfe; transition: width .3s var(--ease), background .3s; }
.beach-dots button[aria-current="true"] { width: 26px; background: var(--blue-600); }
@media (max-width: 960px) { .beach-slider { --per-view: 2; --gap: 16px; } }
@media (max-width: 640px) { .beach-slider { --per-view: 1; } }

/* ---------- Booking backend: form alerts, payment page, result states ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.form-alert { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff3f3; border: 1px solid #f3c4c4; color: #b42318; font-size: .92rem; text-align: left; }
.form-alert + .btn { margin-top: 16px; }
.pay-card .pay-actions { margin-top: 26px; }
.pay-test { margin: 18px auto 0; padding: 8px 14px; max-width: 420px; border-radius: 10px; background: #fff7e0; color: #8a5a00; font-size: .88rem; }
.pay-qr { margin-top: 26px; padding: 22px; border-radius: var(--radius); border: 2px solid var(--blue-100); background: var(--blue-50); }
.pay-qr h2 { font-size: 1.15rem; font-weight: 500; color: var(--blue-900); }
.pay-qr img { width: 280px; max-width: 100%; height: auto; margin: 14px auto; background: var(--white); border-radius: 12px; padding: 8px; }
.pay-qr p { font-size: .9rem; color: var(--muted); }
.pay-qr__wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 16px; color: var(--blue-700) !important; font-weight: 400; }
.pay-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue-300); border-top-color: var(--blue-700); animation: paySpin .8s linear infinite; }
@keyframes paySpin { to { transform: rotate(360deg); } }
.success-check--wait, .success-check--fail, .success-check--none, .success-check--cancel { display: grid; place-items: center; box-shadow: var(--shadow); }
.success-check--wait span, .success-check--fail span, .success-check--none span, .success-check--cancel span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: var(--white); font-size: 2rem; font-weight: 700; line-height: 1; }
.success-check--wait span { background: var(--blue-500); }
.success-check--fail span, .success-check--cancel span, .success-check--none span { background: #f59e0b; }

/* Speed: sections far below the fold skip layout/paint (and their lazy images) until scrolled near */
main > section:nth-of-type(n+3) { content-visibility: auto; contain-intrinsic-size: auto 900px; }

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