/* The Lagoon Camping Resort — design system
   Palette taken straight from the badge logo: navy outline, mustard ring,
   coral mountains, pine green and cream. */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@500;600;700&display=swap');

:root {
  /* navy — the logo's outline colour, darkened into a full scale */
  --ink-950: #070c16;
  --deep-900: #0d1424;
  --deep-800: #16203a;
  --deep-700: #24304f;
  --deep-600: #394666;   /* brand navy */

  /* pine green from the logo's trees */
  --leaf-600: #4f8a2c;
  --leaf-500: #6eae36;   /* brand green */
  --leaf-300: #a9d489;

  /* coral from the logo's mountains */
  --ember-600: #cf4243;
  --ember-500: #e25051;  /* brand coral */
  --ember-400: #ef8079;

  /* mustard ring */
  --gold-600: #d8b93f;
  --gold-500: #edd25d;   /* brand mustard */
  --gold-300: #f6e7a4;

  /* cream band */
  --sand-100: #fbfaf2;
  --sand-200: #f4f1e2;
  --sand-300: #e7e2ca;
  --sand-400: #cfc9ae;

  --ink-900: #14161c;
  --ink-700: #383d47;
  --ink-500: #6a7080;
  --ink-300: #9aa0ad;

  --bg: var(--sand-100);
  --surface: #ffffff;
  --surface-2: var(--sand-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: rgba(57, 70, 102, 0.16);
  --accent: var(--deep-600);
  --accent-soft: rgba(57, 70, 102, 0.08);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 20, 36, 0.06), 0 2px 8px rgba(13, 20, 36, 0.05);
  --shadow: 0 2px 6px rgba(13, 20, 36, 0.08), 0 12px 32px rgba(13, 20, 36, 0.09);
  --shadow-lg: 0 8px 20px rgba(13, 20, 36, 0.12), 0 32px 64px rgba(13, 20, 36, 0.14);

  --wrap: 1160px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --font: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Noto Serif Thai', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Thai has no spaces between words — never let the browser hyphenate or
     break mid-syllable, and never justify. */
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Thai glyphs stack tone marks above and vowels below, so the script needs a
   little more size and a lot more leading than Latin to stay readable. */
:lang(th) body { font-size: 17px; line-height: 1.85; }
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) h4 { line-height: 1.45; letter-spacing: 0; }
:lang(th) .small { line-height: 1.75; }
:lang(th) .tiny  { line-height: 1.7; }
h1, h2, h3 { text-wrap: pretty; }

img { max-width: 100%; display: block; }

a { color: var(--deep-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
/* Thai needs its tracking left alone and a touch more leading */
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) h4 { letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-600);
  margin-bottom: 0.75rem;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--sand { background: var(--surface-2); }
.section--deep { background: var(--deep-900); color: var(--sand-200); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .muted { color: rgba(244, 236, 224, 0.66); }
.section--deep .eyebrow { color: var(--gold-500); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 242, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.is-stuck { border-bottom-color: var(--border); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--deep-800); }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-300); }

.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--accent-soft); color: var(--deep-800); }
.nav a.is-active { color: var(--deep-800); background: var(--accent-soft); }

.header-tools { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
}
.lang-toggle button.is-active { background: var(--deep-700); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--deep-800); border-radius: 2px;
  content: ''; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--ember-500); color: #fff; box-shadow: 0 6px 18px rgba(226, 80, 81, 0.3); }
.btn--primary:hover:not(:disabled) { background: var(--ember-600); color: #fff; box-shadow: 0 10px 26px rgba(226, 80, 81, 0.36); }
.btn--deep { background: var(--deep-700); color: #fff; }
.btn--deep:hover:not(:disabled) { background: var(--deep-600); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--deep-800); }
.btn--ghost:hover:not(:disabled) { background: var(--accent-soft); color: var(--deep-800); }
.btn--light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--light:hover:not(:disabled) { background: rgba(255,255,255,0.24); color: #fff; }
.btn--sm { padding: 0.42rem 0.9rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--ink-950); color: #fff; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art svg, .hero__art img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 26s ease-out forwards;
}
@keyframes hero-drift { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,15,12,0.62) 0%, rgba(8,15,12,0.12) 34%, rgba(8,15,12,0.55) 72%, rgba(8,15,12,0.92) 100%),
    linear-gradient(75deg, rgba(8,15,12,0.55) 0%, rgba(8,15,12,0) 55%);
}
.hero__inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero h1 {
  color: #fff;
  max-width: 15ch;
  margin-bottom: 0.35em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero__lead { max-width: 42ch; font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,0.86); }
.hero__eyebrow { color: rgba(255,255,255,0.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem;
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
}
.hero__facts strong { color: #fff; font-weight: 600; }

.hero__cue {
  position: absolute; left: 50%; bottom: 1.4rem; z-index: 2;
  transform: translateX(-50%);
  display: grid; place-items: center; gap: .4rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hero__cue::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
  animation: cue-fall 2.2s ease-in-out infinite;
}
@keyframes cue-fall { 0%,100% { opacity: .25; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* --------------------------------------------------------------- page head */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep-800);
  color: #fff;
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}
.page-head__art { position: absolute; inset: 0; z-index: -2; }
.page-head__art img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7,12,22,.92) 0%, rgba(7,12,22,.68) 52%, rgba(7,12,22,.3) 100%);
}
.page-head h1 { color: #fff; margin-bottom: .4rem; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.page-head p { color: rgba(255,255,255,.85); max-width: 54ch; margin: 0; }
.page-head .eyebrow { color: var(--ember-400); }
.page-head .stock-badge { z-index: 1; }

/* ------------------------------------------------------------------ gallery */
.gallery-figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.gallery-figure .card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.gallery-figure figcaption {
  position: absolute; inset: auto 0 0; z-index: 1;
  padding: 2.5rem .95rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(7,12,22,.85));
  color: #fff; font-size: .88rem; font-weight: 500;
  pointer-events: none;
}

.footer-note { flex-basis: 100%; opacity: .75; }
.footer-note a { text-decoration: underline; }

/* -------------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card--hover:hover .card__media img { transform: scale(1.04); }

/* Marks a library photo rather than a picture of the actual site. */
.stock-badge {
  position: absolute;
  z-index: 3;
  right: .5rem;
  bottom: .5rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(7, 12, 22, 0.62);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: .02em;
  pointer-events: none;
}
.stock-badge--corner { right: 1rem; bottom: 1rem; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__title { margin: 0 0 0.35rem; font-size: 1.16rem; }
.card__foot { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }

.price { display: flex; flex-direction: column; line-height: 1.2; }
.price__amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--deep-800); }
.price__unit { font-size: 0.78rem; color: var(--text-muted); }

.feature-list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; gap: 0.4rem; }
.feature-list li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; color: var(--ink-700); }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--leaf-500);
}

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.7rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.01em;
  background: var(--accent-soft); color: var(--deep-700);
}
.pill--ember { background: rgba(207, 122, 60, 0.14); color: var(--ember-600); }
.pill--lake { background: rgba(59, 132, 128, 0.14); color: var(--leaf-600); }
.pill--muted { background: var(--surface-2); color: var(--text-muted); }
.pill--danger { background: rgba(178, 42, 42, 0.12); color: #a52a2a; }
.pill--ok { background: rgba(34, 122, 74, 0.13); color: #1c7548; }

/* --------------------------------------------------------------- attractions */
.attraction {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.attraction:last-child { border-bottom: 0; }
.attraction__dist {
  text-align: center;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.7rem 0.4rem;
  align-self: start;
}
.attraction__km { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--deep-800); line-height: 1; }
.attraction__unit { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.06em; }
.attraction__min { font-size: 0.72rem; color: var(--leaf-600); margin-top: 0.3rem; }
.attraction h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.attraction__tip {
  margin-top: 0.6rem; padding: 0.55rem 0.8rem;
  background: rgba(224, 160, 90, 0.12);
  border-left: 3px solid var(--ember-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.87rem; color: var(--ink-700);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-row button {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 0.4rem 1rem;
  font: inherit; font-size: 0.87rem; font-weight: 500; color: var(--ink-700); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-row button:hover { border-color: var(--leaf-300); }
.filter-row button.is-active { background: var(--deep-700); border-color: var(--deep-700); color: #fff; }

/* -------------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field > label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.field__hint { font-size: 0.78rem; color: var(--text-muted); }

input[type='text'], input[type='tel'], input[type='email'], input[type='date'],
input[type='number'], input[type='password'], input[type='month'], select, textarea {
  width: 100%;
  padding: 0.66rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--sand-400);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 3px rgba(59, 132, 128, 0.18);
}
textarea { min-height: 90px; resize: vertical; }
:focus-visible { outline: 2px solid var(--leaf-500); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 1rem; }

.stepper { display: inline-flex; align-items: center; gap: 0.4rem; }
.stepper button {
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--sand-400); background: var(--surface);
  border-radius: 50%; font: inherit; font-size: 1.05rem; line-height: 1;
  color: var(--deep-700); cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--accent-soft); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 2.2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ booking */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); align-items: start; }
@media (max-width: 940px) { .booking-layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.panel + .panel { margin-top: var(--gap); }
.panel__title { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.25rem; font-size: 1.15rem; }
.panel__step {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--deep-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font); font-size: 0.85rem; font-weight: 700;
}

.summary { position: sticky; top: 92px; }
.summary__line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.92rem; }
.summary__line--total {
  border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.85rem;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--deep-800);
}
.summary__sub { font-size: 0.8rem; color: var(--text-muted); }

.stay-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  transition: border-color .15s, background .15s;
}
.stay-option + .stay-option { margin-top: 0.75rem; }
.stay-option.is-selected { border-color: var(--leaf-500); background: rgba(59, 132, 128, 0.05); }
.stay-option.is-full { opacity: 0.55; }
.stay-option__meta { font-size: 0.82rem; color: var(--text-muted); }
.stay-option__guests { grid-column: 1 / -1; display: none; align-items: center; gap: 0.75rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); font-size: 0.87rem; }
.stay-option.is-selected .stay-option__guests { display: flex; flex-wrap: wrap; }

.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.addon-row:last-child { border-bottom: 0; }

/* -------------------------------------------------------------------- alerts */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.alert--info { background: rgba(59,132,128,0.09); border-color: rgba(59,132,128,0.3); color: #1d4f4c; }
.alert--warn { background: rgba(224,160,90,0.13); border-color: rgba(207,122,60,0.36); color: #8a4a1c; }
.alert--error { background: rgba(178,42,42,0.08); border-color: rgba(178,42,42,0.28); color: #8f2222; }
.alert--ok { background: rgba(34,122,74,0.09); border-color: rgba(34,122,74,0.3); color: #1b6b41; }

/* ------------------------------------------------------------------ payment */
.pay-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 820px) { .pay-grid { grid-template-columns: 1fr; } }
.qr-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; }
.qr-card img { width: 100%; max-width: 280px; margin-inline: auto; border-radius: var(--radius); }
.qr-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--deep-800); line-height: 1.1; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }

.dropzone {
  border: 2px dashed var(--sand-400);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--surface);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--leaf-500); background: rgba(59,132,128,0.05); }
.dropzone img { max-height: 260px; width: auto; margin: 0.75rem auto 0; border-radius: var(--radius-sm); }

.steps-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.steps-timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 0.8rem; align-items: start; font-size: 0.92rem; }
.steps-timeline .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-500);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
}
.steps-timeline li.is-done .dot { background: var(--deep-700); color: #fff; }
.steps-timeline li.is-current .dot { background: var(--ember-600); color: #fff; }

/* -------------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(59,132,128,0.04); }

/* ---------------------------------------------------------------- accordion */
.qa { border-bottom: 1px solid var(--border); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 600; position: relative; color: var(--deep-800);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--leaf-600); transition: transform .2s;
}
.qa[open] summary::after { content: '−'; }
.qa__body { padding: 0 0 1.15rem; color: var(--ink-700); }

/* ------------------------------------------------------------------- footer */
.site-footer { background: var(--ink-950); color: rgba(244,236,224,0.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: rgba(244,236,224,0.9); }
.site-footer a:hover { color: var(--ember-400); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.footer-grid h4 { color: #fff; font-family: var(--font); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.82rem; color: rgba(244,236,224,0.5);
}

/* --------------------------------------------------------------- utilities */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--sand-300) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
  min-height: 1rem;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.toast-host { position: fixed; inset: auto 1rem 1rem auto; z-index: 200; display: grid; gap: 0.6rem; max-width: min(28rem, calc(100vw - 2rem)); }
.toast {
  background: var(--deep-800); color: #fff;
  padding: 0.8rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 0.9rem;
  animation: toast-in .22s ease-out;
}
.toast--error { background: #8f2222; }
.toast--ok { background: #1b6b41; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ==================================================================
   Lifestyle layer — the editorial, photo-forward pieces
   ================================================================== */

/* Film grain over dark, photo-backed areas. Pure CSS, no asset. */
.grain::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
/* Lift only the content layer above the grain — never the absolutely
   positioned art layers, or they would rejoin the flow and add their own
   height to the section. */
.hero > .wrap, .statement > .wrap, .section.grain > .wrap { position: relative; z-index: 1; }

/* Section labels: (01) — เรื่องราว */
.eyebrow--num { display: flex; align-items: center; gap: .7rem; }
.eyebrow--num::before {
  content: attr(data-num);
  font-variant-numeric: tabular-nums;
  opacity: .55;
}
.eyebrow--num::after {
  content: ''; flex: 0 0 auto; width: clamp(28px, 6vw, 64px); height: 1px;
  background: currentColor; opacity: .35;
}

/* Scrolling word strip — the outdoor-brand signature */
.marquee {
  overflow: hidden;
  background: var(--ink-950);
  color: var(--sand-200);
  border-block: 1px solid rgba(255,255,255,.08);
  padding: .85rem 0;
  --marquee-duration: 42s;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span {
  display: inline-flex; align-items: center;
  padding: 0 1.4rem;
  font-size: .84rem; font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
}
.marquee__group span::after {
  content: '✦'; margin-left: 1.4rem; opacity: .4; font-size: .7em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal on scroll — pure CSS, driven by the element's own view timeline.
   No script decides whether content is visible: a browser without
   scroll-driven animation support (or with reduced motion) simply paints it,
   and one that has it starts the element mid-animation if it is already on
   screen. There is no state in which .reveal can stay stuck at opacity 0. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .reveal--d1 { animation-range: entry 4% entry 66%; }
    .reveal--d2 { animation-range: entry 8% entry 72%; }
    .reveal--d3 { animation-range: entry 12% entry 78%; }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Full-bleed statement band */
.statement {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 62vh, 620px);
  display: grid; align-items: center;
  color: #fff;
  background: var(--ink-950);
}
.statement__art { position: absolute; inset: 0; z-index: -2; }
.statement__art img { width: 100%; height: 100%; object-fit: cover; }
.statement::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,15,12,.86) 0%, rgba(8,15,12,.45) 55%, rgba(8,15,12,.15) 100%);
}
.statement__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.25;
  max-width: 20ch;
  margin: 0 0 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.statement__by { font-size: .9rem; color: rgba(255,255,255,.72); max-width: 42ch; }

/* Editorial numbered tile — used for the stay line-up */
.tile { position: relative; display: block; text-decoration: none; color: inherit; }
.tile__frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}
.tile__frame img, .tile__frame svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.tile:hover .tile__frame img { transform: scale(1.05); }
.tile__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,15,12,.05) 40%, rgba(8,15,12,.78) 100%);
}
.tile__num {
  position: absolute; top: 1rem; left: 1.1rem; z-index: 2;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: rgba(255,255,255,.85); letter-spacing: .08em;
}
.tile__cap {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 1.1rem 1.2rem;
  color: #fff;
}
.tile__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.tile__meta { font-size: .82rem; color: rgba(255,255,255,.78); margin-top: .2rem; }
.tile__price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: .85rem; padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.tile__amount { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.tile__unit { font-size: .74rem; color: rgba(255,255,255,.7); }
.tile__go { font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.tile__go::after { content: '→'; transition: transform .25s; }
.tile:hover .tile__go::after { transform: translateX(4px); }

/* Horizontal snap rail for activities */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 30%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  /* Break out of .wrap to the viewport edge. 100vw counts the scrollbar, so
     --sbw (published by app.js) is subtracted or the page gains a stray
     horizontal scroll of exactly the scrollbar's width. */
  margin-inline: calc(50% - 50vw + var(--sbw, 0px) / 2);
  padding-inline: max(1.25rem, calc(50vw - var(--sbw, 0px) / 2 - var(--wrap) / 2));
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--sand-400); border-radius: 3px; }
@media (max-width: 640px) { .rail { grid-auto-columns: 78%; } }

.rail-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; background: var(--surface-2); }
.rail-card img, .rail-card svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.rail-card:hover img { transform: scale(1.06); }
.rail-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,15,12,0) 35%, rgba(8,15,12,.85) 100%);
}
.rail-card__body { position: absolute; inset: auto 0 0; z-index: 2; padding: 1.1rem 1.15rem; color: #fff; }
.rail-card__body h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .3rem; }
.rail-card__body p { font-size: .82rem; color: rgba(255,255,255,.8); margin: 0; }
.rail-card__price {
  display: inline-block; margin-top: .6rem;
  font-size: .76rem; font-weight: 600;
  padding: .18rem .6rem; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
}
.rail-card .stock-badge { z-index: 3; top: .6rem; bottom: auto; }

.rail-hint { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.rail-hint::after { content: '→'; }

/* Gallery mosaic — first frame takes the corner */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.mosaic .gallery-figure { aspect-ratio: 1; }
.mosaic .gallery-figure .card__media { aspect-ratio: 1; height: 100%; }
.mosaic .gallery-figure:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .gallery-figure:first-child .card__media { aspect-ratio: 1; }
@media (max-width: 780px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------- share & contact */
.footer-social {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.fb-like { border-radius: 4px; }

.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.share-bar__label {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .6; margin-right: .35rem;
}
.share-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: background .18s, border-color .18s, transform .18s, color .18s;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover {
  background: var(--gold-500); border-color: var(--gold-500);
  color: var(--ink-950); transform: translateY(-2px);
}

/* Floating contact dock — Messenger first, since that is where guests ask */
.dock {
  position: fixed;
  right: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  z-index: 80;
  display: flex; flex-direction: column-reverse; gap: .6rem;
}
.dock__btn {
  display: flex; align-items: center; gap: 0;
  height: 52px; width: 52px;
  border-radius: 999px;
  background: var(--deep-700);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(13,20,36,.28);
  overflow: hidden;
  transition: width .28s cubic-bezier(.22,.61,.36,1), background .2s, box-shadow .2s;
}
.dock__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.dock__icon svg { width: 24px; height: 24px; }
.dock__label {
  white-space: nowrap; padding-right: 1.15rem;
  font-size: .9rem; font-weight: 600; opacity: 0;
  transition: opacity .2s;
}
.dock__btn:hover, .dock__btn:focus-visible {
  width: auto; color: #fff;
  box-shadow: 0 10px 28px rgba(13,20,36,.34);
}
.dock__btn:hover .dock__label, .dock__btn:focus-visible .dock__label { opacity: 1; }
.dock__btn--messenger { background: #0084ff; }
.dock__btn--line { background: #06c755; }
.dock__btn--phone { background: var(--ember-500); }

@media (max-width: 520px) {
  .dock__btn { height: 46px; width: 46px; }
  .dock__icon { width: 46px; height: 46px; }
  .dock__icon svg { width: 21px; height: 21px; }
}
@media print { .dock { display: none; } }

/* ------------------------------------------------------- attraction cards */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.place {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.place:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.place__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.place__frame img, .place__frame svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.place:hover .place__frame img { transform: scale(1.05); }

.place__dist {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  display: grid; place-items: center; gap: 0;
  min-width: 52px; padding: .35rem .5rem;
  border-radius: var(--radius-sm);
  background: rgba(7,12,22,.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
}
.place__dist small { display: block; font-family: var(--font); font-weight: 500; font-size: .6rem; letter-spacing: .1em; opacity: .75; }
.place__cat {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  padding: .2rem .65rem; border-radius: 999px;
  background: var(--gold-500); color: var(--ink-950);
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
}

.place__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.1rem; }
.place__name { font-size: 1.15rem; margin: 0 0 .45rem; }
.place__name a { text-decoration: none; color: inherit; }
.place__name a:hover { color: var(--ember-600); }
.place__desc { font-size: .9rem; color: var(--text-muted); margin: 0; }
.place__tip {
  margin: .75rem 0 0; padding: .5rem .75rem;
  background: rgba(237,210,93,.18);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .84rem; color: var(--ink-700);
}
.place__meta { margin: .75rem 0 0; font-size: .78rem; color: var(--ink-300); }
.place__foot {
  margin-top: auto; padding-top: 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
}
.place__map { font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.place__map::after { content: ' →'; }
.place__credit { font-size: .66rem; color: var(--ink-300); text-align: right; line-height: 1.4; }
.place__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Arrow motion on primary buttons */
.btn--arrow::after { content: '→'; transition: transform .25s; }
.btn--arrow:hover::after { transform: translateX(4px); }

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

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
