/* =========================================================
   Kohzi Beach Hostel — Modern Premium Luxury
   Palette: Gold & White  |  Font: Kanit
   ========================================================= */

:root {
  --gold: #c8a04f;
  --gold-light: #e8cf8f;
  --gold-soft: #f6ecd2;
  --gold-dark: #94712c;
  --gold-grad: linear-gradient(135deg, #f3dea0 0%, #d4ad5c 38%, #b48a3a 70%, #8f6b28 100%);
  --gold-text: linear-gradient(120deg, #f6e3a8 0%, #d9b465 40%, #c09040 70%, #f0d58e 100%);

  --ink: #1d1813;
  --ink-2: #2b241c;
  --text: #4a4239;
  --muted: #8a8075;
  --line: #ece4d6;
  --cream: #fbf8f2;
  --white: #ffffff;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 6px 18px rgba(60, 45, 20, 0.06);
  --shadow: 0 18px 50px rgba(60, 45, 20, 0.10);
  --shadow-lg: 0 30px 80px rgba(40, 30, 10, 0.18);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --container: 1240px;
  --header-h: 84px;
}

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

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

body {
  font-family: "Kanit", system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.25; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container-1100 { --container: 1100px; }

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

.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Section basics ---------- */
.section { padding: 120px 0; position: relative; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink); color: #d8cfc2; }
.section.dark h2, .section.dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.eyebrow.center::after { content: ""; width: 44px; height: 1px; background: currentColor; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin: 16px 0 18px; font-weight: 400; }
.section-head p { color: var(--muted); font-size: 17px; }
.section.dark .section-head p { color: #a99f92; }

.divider-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 22px auto 0; }
.divider-ornament span { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider-ornament span:last-child { transform: scaleX(-1); }
.divider-ornament i { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: .02em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
  overflow: hidden; isolation: isolate;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon.arrow { transform: translateX(4px); }

.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 12px 30px rgba(180, 138, 58, .35); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(180, 138, 58, .45); }
.btn-gold:hover::after { transform: translateX(100%); }

.btn-glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

.btn-outline { border: 1px solid var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-sm { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(60,45,20,.06);
}
.site-header.scrolled { height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .4s; }
.brand-logo { display: block; height: 60px; transition: height .4s; }
.brand-logo img { height: 100%; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); transition: filter .4s; }
.scrolled .brand-logo { height: 50px; }
.scrolled .brand-logo img, .solid .brand-logo img, .mobile-nav .brand-logo img { filter: none; }
.site-footer .brand-logo { height: 96px; }
.mobile-nav .brand-logo { height: 50px; }
.brand-mark { width: 62px; height: 26px; color: var(--gold-light); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-weight: 500; font-size: 19px; letter-spacing: .18em; }
.brand-text small { font-size: 10px; letter-spacing: .58em; color: var(--gold-light); margin-top: 6px; }
.scrolled .brand, .solid .brand { color: var(--ink); }
.scrolled .brand-mark, .solid .brand-mark { color: var(--gold); }
.scrolled .brand-text small, .solid .brand-text small { color: var(--gold-dark); }

.main-nav ul { list-style: none; display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 10px 18px; border-radius: 999px;
  font-weight: 400; font-size: 15.5px; color: rgba(255,255,255,.9); transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 1.5px;
  background: var(--gold-grad); transform: translateX(-50%); transition: width .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 22px; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.scrolled .main-nav a, .solid .main-nav a { color: var(--ink); }
.scrolled .main-nav a:hover, .scrolled .main-nav a.active,
.solid .main-nav a:hover, .solid .main-nav a.active { color: var(--gold-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
}
.lang-switch button {
  height: 32px; min-width: 44px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.85);
  transition: background .3s, color .3s;
}
.lang-switch button.active { background: var(--gold-grad); color: #fff; box-shadow: 0 4px 12px rgba(180,138,58,.35); }
.scrolled .lang-switch, .solid .lang-switch { background: var(--cream); border-color: var(--line); }
.scrolled .lang-switch button, .solid .lang-switch button { color: var(--text); }
.scrolled .lang-switch button.active, .solid .lang-switch button.active { color: #fff; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center; color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.scrolled .menu-toggle, .solid .menu-toggle { color: var(--ink); border-color: var(--line); }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; visibility: hidden;
}
.mobile-nav .backdrop { position: absolute; inset: 0; background: rgba(20,15,10,.5); opacity: 0; transition: opacity .4s; }
.mobile-nav .panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw);
  background: var(--white); padding: 28px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.mobile-nav.open { visibility: visible; }
.mobile-nav.open .backdrop { opacity: 1; }
.mobile-nav.open .panel { transform: none; }
.mobile-nav .panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav .panel-top .brand { color: var(--ink); }
.mobile-nav .panel-top .brand-mark { color: var(--gold); }
.mobile-nav .panel-top .brand-text small { color: var(--gold-dark); }
.mobile-nav .close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.mobile-nav ul { list-style: none; }
.mobile-nav li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 20px; color: var(--ink);
}
.mobile-nav li a.active { color: var(--gold-dark); }
.mobile-nav li a .icon { color: var(--gold); }
.mobile-nav .panel-bottom { margin-top: auto; display: grid; gap: 14px; }
.mobile-nav .lang-switch { background: var(--cream); border-color: var(--line); align-self: flex-start; }
.mobile-nav .lang-switch button { color: var(--text); }
.mobile-nav .lang-switch button.active { color: #fff; }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 180px;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22,17,11,.88) 0%, rgba(22,17,11,.62) 45%, rgba(22,17,11,.15) 100%),
    linear-gradient(0deg, rgba(22,17,11,.55) 0%, transparent 40%);
}
.hero-content { max-width: 760px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: #fff; font-weight: 400; font-size: clamp(38px, 6vw, 76px); line-height: 1.15;
  margin: 22px 0 24px; letter-spacing: -.01em;
}
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.82); max-width: 620px; }

.price-tag {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 30px;
  padding: 12px 22px 12px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(232,207,143,.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.price-tag .badge { background: var(--gold-grad); color: #fff; font-weight: 500; font-size: 13px; padding: 6px 14px; border-radius: 999px; letter-spacing: .06em; }
.price-tag del { color: rgba(255,255,255,.55); font-size: 16px; }
.price-tag strong { font-size: 28px; font-weight: 500; line-height: 1; }
.price-tag small { color: rgba(255,255,255,.7); font-size: 14px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); font-size: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip .icon { color: var(--gold-light); width: 17px; height: 17px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero > .container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }

/* Framed auto slider (right side of hero) */
.hero-content { flex: 1 1 auto; min-width: 0; }
@media (min-width: 1181px) {
  .hero h1 { font-size: clamp(44px, 4.3vw, 64px); }
}
/* 400x400, shifted 160px right (less on narrower screens so it never goes off-screen) and 40px down */
.hero-frame { position: relative; width: min(400px, 30vw); aspect-ratio: 1; flex-shrink: 0; margin-right: calc(-1 * clamp(0px, (100vw - 1240px) / 2 - 18px, 142px)); top: 40px; }
.hero-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px;
  border: 1px solid rgba(232,207,143,.55); pointer-events: none;
}
.hf-inner {
  position: relative; width: 100%; height: 100%; padding: 4px; border-radius: 28px; overflow: hidden;
  background: var(--gold-grad); box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.hf-slide {
  position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover;
  border-radius: 24px; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 3.5s ease;
}
.hf-slide.active { opacity: 1; transform: scale(1); }
.hf-dots { position: absolute; left: 0; right: 0; bottom: -46px; display: flex; justify-content: center; gap: 8px; }
.hf-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); transition: all .4s var(--ease); }
.hf-dots button.active { width: 26px; background: var(--gold-light); }

.hero-dots { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.4); transition: all .4s var(--ease); }
.hero-dots button.active { height: 34px; background: var(--gold-light); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px;
  display: none;
}

/* Floating feature card */
.feature-strip { position: relative; z-index: 5; margin-top: -110px; }
.feature-card {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px;
  border: 1px solid rgba(200,160,79,.18);
}
.feature-item { display: flex; align-items: center; gap: 16px; padding: 4px 22px; position: relative; }
.feature-item + .feature-item::before {
  content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(200,160,79,.25);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-item h4 { font-size: 17px; font-weight: 500; margin-bottom: 2px; }
.feature-item p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  position: relative; min-height: 520px; display: flex; align-items: flex-end;
  color: #fff; padding: calc(var(--header-h) + 80px) 0 90px; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,17,11,.55) 0%, rgba(22,17,11,.78) 100%);
}
.page-hero .container { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.page-hero .eyebrow::after { content: ""; width: 44px; height: 1px; background: currentColor; }
body[data-page="contact"] .page-hero { padding-bottom: 150px; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5.5vw, 68px); font-weight: 400; margin: 16px 0 12px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 620px; font-size: 18px; }
.page-hero .eyebrow { color: var(--gold-light); }
.breadcrumb { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,.7); margin-top: 26px; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }

/* =========================================================
   About (home)
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: center; }
.about-media { position: relative; padding: 0 60px 60px 0; }
.about-media .img-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.about-media .img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .img-sub {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg);
}
.about-media .img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-media .frame {
  position: absolute; left: -24px; top: -24px; width: 60%; height: 60%;
  border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-badge {
  position: absolute; left: -30px; bottom: 90px; background: var(--ink); color: #fff;
  padding: 22px 26px; border-radius: 20px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-badge strong { display: block; font-size: 40px; font-weight: 500; line-height: 1; }
.about-badge span { font-size: 13px; color: var(--gold-light); letter-spacing: .1em; }

.about-text h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 400; margin: 18px 0 22px; }
.about-text > p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 40px; }
.stat { padding: 20px 10px; text-align: center; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 34px; font-weight: 500; line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* =========================================================
   Room cards
   ========================================================= */
.rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.rooms-grid > .room-card:only-of-type { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 640px; }
.room-card {
  background: #fff; border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.room-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-card:hover .room-media img { transform: scale(1.07); }
.room-tag {
  position: absolute; top: 20px; left: 20px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--gold-dark); font-size: 13px; font-weight: 500; letter-spacing: .06em;
}
.room-discount {
  position: absolute; top: 20px; right: 20px; width: 70px; height: 70px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; display: grid; place-items: center; text-align: center;
  font-weight: 500; font-size: 20px; line-height: 1; box-shadow: 0 10px 24px rgba(150,110,40,.4);
}
.room-discount small { display: block; font-size: 10px; letter-spacing: .1em; font-weight: 400; margin-top: 2px; }
.room-body { padding: 30px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.room-body > p { color: var(--muted); margin-bottom: 20px; }
.room-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.room-meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.room-meta .icon { color: var(--gold); width: 19px; height: 19px; }
.room-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price { line-height: 1.1; }
.price del { color: var(--muted); font-size: 15px; display: block; margin-bottom: 4px; }
.price strong { font-size: 36px; font-weight: 500; color: var(--ink); }
.price small { color: var(--muted); font-size: 14px; margin-left: 4px; }

/* Rooms page — detail */
.filter-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filter-tabs button {
  height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; transition: all .3s;
}
.filter-tabs button:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.room-detail {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
  padding: 40px; border-radius: 30px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: opacity .4s, transform .4s;
}
.room-detail + .room-detail { margin-top: 40px; }
.room-detail.reverse .rd-gallery { order: 2; }
.room-detail.hide { display: none; }

.rd-gallery .rd-main { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: var(--cream); }
.rd-gallery .rd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.rd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.rd-thumbs button { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: all .3s; }
.rd-thumbs button.active, .rd-thumbs button:hover { opacity: 1; outline-color: var(--gold); }
.rd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.rd-info h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; margin: 12px 0 14px; }
.rd-info > p { color: var(--muted); margin-bottom: 22px; }
.rd-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 30px; }
.rd-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rd-list li .icon { color: var(--gold); width: 18px; height: 18px; }
.rd-price-box {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 20px; background: var(--cream); border: 1px solid var(--line);
}

/* Floors */
.floors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.floor-card {
  position: relative; padding: 40px 34px; border-radius: 26px; border: 1px solid rgba(232,207,143,.18);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  overflow: hidden; text-align: center;
}
.floor-card .num { font-size: 92px; font-weight: 600; line-height: 1; opacity: .9; }
.floor-card h3 { font-size: 24px; margin: 10px 0 10px; font-weight: 400; }
.floor-card p { color: #a99f92; }
.floor-card.highlight { background: var(--gold-grad); border: 0; }
.floor-card.highlight h3, .floor-card.highlight p, .floor-card.highlight .num { color: #fff; }
.floor-card.highlight .num { -webkit-text-fill-color: #fff; }

/* =========================================================
   Amenities
   ========================================================= */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.amenity {
  text-align: center;
  padding: 34px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  position: relative; overflow: hidden;
}
.amenity::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold-grad);
  transition: width .5s var(--ease);
}
.amenity:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.amenity:hover::after { width: 100%; }
.amenity .a-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 22px;
  background: var(--gold-soft); color: var(--gold-dark); transition: background .4s, color .4s;
}
.amenity:hover .a-icon { background: var(--gold-grad); color: #fff; }
.amenity .a-icon .icon { width: 28px; height: 28px; }
.amenity h4 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.amenity p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   Location
   ========================================================= */
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.distance-list { list-style: none; display: grid; gap: 16px; margin-top: 36px; }
.distance-list li {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,207,143,.15);
  transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.distance-list li:hover { background: rgba(232,207,143,.08); border-color: rgba(232,207,143,.4); transform: translateX(6px); }
.distance-list .d-time {
  min-width: 82px; height: 82px; border-radius: 18px; display: grid; place-items: center; text-align: center;
  background: var(--gold-grad); color: #fff; line-height: 1;
}
.distance-list .d-time strong { font-size: 32px; font-weight: 500; display: block; }
.distance-list .d-time small { font-size: 12px; letter-spacing: .06em; }
.distance-list h4 { color: #fff; font-size: 19px; font-weight: 400; }
.distance-list p { color: #a99f92; font-size: 14.5px; }

.location-media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/4.4; }
.location-media img { width: 100%; height: 100%; object-fit: cover; }
.location-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,17,11,.7), transparent 50%); }
.location-media .lm-caption { position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 2; color: #fff; display: flex; gap: 14px; align-items: center; }
.location-media .lm-caption .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--gold-grad); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.g-item { position: relative; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: var(--cream); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,17,11,.65), transparent 55%);
  opacity: 0; transition: opacity .45s;
}
.g-item .g-cap {
  position: absolute; left: 20px; bottom: 16px; z-index: 2; color: #fff; font-size: 15px;
  transform: translateY(10px); opacity: 0; transition: all .45s var(--ease);
}
.g-item .g-zoom {
  position: absolute; right: 16px; top: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--gold-dark); display: grid; place-items: center;
  transform: scale(.6); opacity: 0; transition: all .45s var(--ease);
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after, .g-item:hover .g-cap, .g-item:hover .g-zoom { opacity: 1; transform: none; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item.hide { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(15,11,7,.94);
  display: flex; align-items: center; justify-content: center; padding: 60px 90px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #d8cfc2; margin-top: 18px; }
.lightbox figcaption span { color: var(--gold-light); margin-right: 10px; }
.lb-btn {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(232,207,143,.4); color: var(--gold-light); transition: background .3s, color .3s;
}
.lb-btn:hover { background: var(--gold); color: #fff; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev .icon { transform: rotate(180deg); }

/* =========================================================
   Reviews
   ========================================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card {
  position: relative; padding: 36px 32px 30px; border-radius: 26px; background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card .quote { position: absolute; right: 28px; top: 18px; font-size: 90px; line-height: 1; color: var(--gold-soft); font-weight: 600; }
.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 18px; }
.stars .icon { width: 18px; height: 18px; }
.review-card p { color: var(--text); margin-bottom: 26px; position: relative; }
.reviewer { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gold-grad); color: #fff; font-weight: 500; font-size: 18px;
}
.reviewer strong { display: block; color: var(--ink); font-weight: 500; line-height: 1.3; }
.reviewer small { color: var(--muted); font-size: 13.5px; }
.review-cta { background: var(--cream); border-style: dashed; border-color: var(--gold-light); }
.review-cta h3 { margin-bottom: 10px; font-size: 21px; font-weight: 500; color: var(--ink); }
.review-cta p { color: var(--muted); }
.review-cta .btn { margin-top: auto; align-self: flex-start; }

.rating-summary {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 70px; align-items: center;
  padding: 44px 50px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-bottom: 60px;
}
.rating-score { text-align: center; }
.rating-score img { width: 210px; height: 96px; max-width: none; object-fit: contain; margin: 0 auto; }
.rating-score strong { font-size: 76px; font-weight: 500; line-height: 1; display: block; }
.rating-score .stars { justify-content: center; margin: 10px 0 4px; }
.rating-score small { color: var(--muted); }
.rating-bars { display: grid; gap: 12px; }
.rating-bar { display: grid; grid-template-columns: 130px 1fr 40px; gap: 16px; align-items: center; font-size: 15px; }
.rating-bar .track { height: 8px; border-radius: 99px; background: var(--cream); overflow: hidden; border: 1px solid var(--line); }
.rating-bar .fill { height: 100%; width: 0; border-radius: 99px; background: var(--gold-grad); transition: width 1.4s var(--ease); }
.rating-bar b { font-weight: 500; color: var(--ink); text-align: right; }

.note-sample { text-align: center; font-size: 13px; color: var(--muted); margin-top: 26px; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  position: relative; border-radius: 34px; overflow: hidden; padding: 90px 70px;
  background-size: cover; background-position: center; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,17,11,.9), rgba(22,17,11,.5)); }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; max-width: 620px; margin-top: 14px; }
.cta-banner p { color: rgba(255,255,255,.75); margin-top: 12px; max-width: 560px; }
.cta-banner .eyebrow { color: var(--gold-light); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Contact
   ========================================================= */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: -80px; position: relative; z-index: 3; }
.contact-card {
  text-align: center;
  background: #fff; border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .45s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); }
.contact-card .a-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-grad); color: #fff; margin: 0 auto 20px; }
.contact-card .a-icon .icon { width: 26px; height: 26px; }
.contact-card h4 { font-size: 18px; font-weight: 500; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 15.5px; word-break: break-word; }
.contact-card a:hover { color: var(--gold-dark); }

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: stretch; }
.form-card { padding: 48px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 30px; font-weight: 400; margin: 12px 0 8px; }
.form-card > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 400; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--cream); outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
  font-weight: 300;
}
.field textarea { height: 130px; padding: 14px 18px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(200,160,79,.15); }
.field.error input, .field.error select { border-color: #d0605e; }

.estimate {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 16px; background: var(--gold-soft); border: 1px dashed var(--gold);
}
.estimate span { color: var(--gold-dark); font-size: 15px; }
.estimate strong { font-size: 26px; font-weight: 500; color: var(--ink); }

.form-success {
  display: none; margin-top: 18px; padding: 16px 20px; border-radius: 14px;
  background: #eef7ee; color: #2f6b3a; border: 1px solid #cfe6d1; font-size: 15px;
}
.form-success.show { display: block; }

.map-card { border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; background: #fff; }
.map-card iframe { width: 100%; flex: 1; min-height: 380px; border: 0; filter: grayscale(.25) sepia(.15); }
.map-info { padding: 28px 30px; display: grid; gap: 14px; }
.map-info li { list-style: none; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.map-info li .icon { color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #a99f92; padding: 100px 0 0; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; }
.site-footer .brand { color: #fff; margin-bottom: 22px; }
.site-footer h5 { color: #fff; font-size: 17px; font-weight: 500; margin-bottom: 22px; letter-spacing: .04em; }
.site-footer ul { list-style: none; display: grid; gap: 12px; }
.site-footer ul a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(232,207,143,.25); color: var(--gold-light); transition: all .3s; font-size: 13px; font-weight: 500;
}
.socials a:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }
.footer-bottom {
  margin-top: 70px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px;
}

/* =========================================================
   Floating contact + back to top
   ========================================================= */
.float-contact { position: fixed; right: 26px; bottom: 26px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fc-list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fc-list a {
  display: flex; align-items: center; gap: 10px; padding: 0 18px 0 8px; height: 50px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 15px;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: all .35s var(--ease);
}
.fc-list a .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #fff; }
.fc-list a .ic .icon { width: 18px; height: 18px; }
.float-contact.open .fc-list a { opacity: 1; transform: none; pointer-events: auto; }
.float-contact.open .fc-list a:nth-child(1) { transition-delay: .25s; }
.float-contact.open .fc-list a:nth-child(2) { transition-delay: .2s; }
.float-contact.open .fc-list a:nth-child(3) { transition-delay: .15s; }
.float-contact.open .fc-list a:nth-child(4) { transition-delay: .1s; }
.float-contact.open .fc-list a:nth-child(5) { transition-delay: .05s; }
.fc-toggle {
  width: 62px; height: 62px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px rgba(150,110,40,.45); position: relative;
}
.fc-toggle::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(200,160,79,.45);
  animation: pulse 2.4s infinite;
}
.fc-toggle .icon { width: 26px; height: 26px; transition: transform .4s var(--ease); }
.float-contact.open .fc-toggle .icon { transform: rotate(90deg); }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: box-shadow .4s, border-color .4s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(200,160,79,.4); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; font-size: 17.5px; font-weight: 400; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-dark); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .35s var(--ease), background .35s, color .35s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold-grad); color: #fff; }
.faq-item .faq-a { padding: 0 26px 24px; color: var(--muted); }

/* =========================================================
   Legal (privacy policy)
   ========================================================= */
html[lang="th"] [data-lang-block="en"],
html[lang="en"] [data-lang-block="th"] { display: none; }
.legal { max-width: 860px; margin: 0 auto; padding: 56px 60px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.legal .updated { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 34px 0 12px; padding-left: 16px; border-left: 3px solid var(--gold); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { color: var(--gold-dark); text-decoration: underline; }

/* =========================================================
   Error pages (404 / 500)
   ========================================================= */
.error-page {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px; color: #fff; background-size: cover; background-position: center;
}
.error-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,17,11,.72), rgba(22,17,11,.9)); }
.error-page .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.error-code { font-size: clamp(110px, 22vw, 220px); font-weight: 600; line-height: 1; letter-spacing: .02em; }
.error-page h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); font-weight: 400; margin: 10px 0 14px; }
.error-page p { color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 34px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.error-brand { width: 210px; margin-bottom: 30px; }

@media (max-width: 640px) {
  .legal { padding: 30px 22px; border-radius: 22px; }
  .faq-item summary { padding: 18px 18px; font-size: 16px; }
  .faq-item .faq-a { padding: 0 18px 20px; }
  .error-actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

.hero .anim { opacity: 0; transform: translateY(30px); animation: up 1.1s var(--ease) forwards; }
.hero .anim.a2 { animation-delay: .15s; }
.hero .anim.a3 { animation-delay: .3s; }
.hero .anim.a4 { animation-delay: .45s; }
.hero .anim.a5 { animation-delay: .6s; }
.hero .anim.a6 { animation-delay: .75s; }
@keyframes up { to { opacity: 1; transform: none; } }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  /* frame sits below the hero buttons on tablet / mobile */
  .hero > .container { flex-direction: column; align-items: stretch; gap: 0; }
  .hero-frame { align-self: center; width: min(340px, 78vw); margin: 56px 0 50px; top: 0; }
  .hero-frame::before { inset: 12px -12px -12px 12px; }
  .hf-dots { bottom: -40px; }
  .main-nav a { padding: 10px 12px; }
  .header-actions .btn { display: none; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .section { padding: 90px 0; }
  .main-nav, .header-actions .lang-switch { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero { padding-bottom: 160px; }
  .hero-dots { right: 20px; }
  .feature-card { grid-template-columns: repeat(2, 1fr); gap: 26px 0; padding: 30px 10px; }
  .feature-item:nth-child(3)::before { display: none; }

  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-media { max-width: 600px; }
  .rooms-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .room-detail { grid-template-columns: 1fr; gap: 34px; padding: 26px; }
  .room-detail.reverse .rd-gallery { order: 0; }
  .floors { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; }
  .rating-summary { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 36px 28px; }
  .rating-bar { text-align: left; }
  .cta-banner { padding: 60px 40px; }
  .location-media { aspect-ratio: 16/11; }
}

@media (max-width: 767px) {
  .hero-slide { background-image: var(--bg-m, var(--bg)); background-position: center top; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .2em; gap: 10px; }
  .eyebrow::before, .eyebrow.center::after, .page-hero .eyebrow::after { width: 28px; }
  .brand-mark { width: 50px; }
  .brand-logo, .scrolled .brand-logo { height: 46px; }
  .brand-text strong { font-size: 16px; letter-spacing: .14em; }
  .brand-text small { font-size: 9px; letter-spacing: .5em; }

  .hero { padding: calc(var(--header-h) + 30px) 0 150px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(22,17,11,.92) 0%, rgba(22,17,11,.6) 55%, rgba(22,17,11,.35) 100%); }
  .hero-dots { flex-direction: row; justify-content: center; top: auto; bottom: 130px; right: 0; left: 0; transform: none; }
  .hero-dots button.active { height: 10px; width: 30px; }
  .price-tag { gap: 10px; padding: 10px 16px 10px 10px; flex-wrap: wrap; }
  .price-tag strong { font-size: 24px; }
  .chip { height: 36px; font-size: 13px; padding: 0 12px; }
  .hero-cta .btn { flex: 1 1 100%; }

  .feature-strip { margin-top: -90px; }
  .feature-card { grid-template-columns: 1fr; padding: 14px 6px; gap: 0; border-radius: 22px; }
  .feature-item { padding: 14px 16px; }
  .feature-item + .feature-item::before { display: block !important; left: 16px; right: 16px; top: 0; width: auto; height: 1px; background: var(--line); }

  .about-media { padding: 0 30px 40px 0; }
  .about-badge { left: -8px; bottom: 60px; padding: 14px 18px; }
  .about-badge strong { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .room-body { padding: 24px; }
  .price strong { font-size: 30px; }
  .room-foot .btn { width: 100%; }
  .rd-list { grid-template-columns: 1fr; }
  .rd-price-box .btn { width: 100%; }
  .room-detail { padding: 16px; border-radius: 24px; }

  .floors { gap: 14px; }
  .floor-card { padding: 22px 20px; border-radius: 20px; }
  .floor-card .num { font-size: 52px; }
  .floor-card h3 { font-size: 19px; margin: 6px 0; }
  .floor-card p { font-size: 14px; line-height: 1.6; }

  .amenities { grid-template-columns: 1fr 1fr; gap: 14px; }
  .amenity { padding: 24px 18px; }
  .amenity .a-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 16px; }
  .amenity h4 { font-size: 16.5px; }
  .amenity p { font-size: 13.5px; }

  .distance-list li { padding: 14px; gap: 14px; }
  .distance-list .d-time { min-width: 66px; height: 66px; }
  .distance-list .d-time strong { font-size: 26px; }

  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .g-item { border-radius: 14px; }
  .g-item.wide { grid-column: span 2; }

  .rating-bar { grid-template-columns: 118px 1fr 34px; gap: 10px; font-size: 14px; }
  .rating-score strong { font-size: 60px; }

  .cta-banner { padding: 46px 26px; border-radius: 26px; }
  .cta-actions, .cta-actions .btn { width: 100%; }

  .page-hero { min-height: 420px; padding-bottom: 110px; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-card { padding: 22px 6px; border-radius: 18px; }
  .contact-card .a-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; }
  .contact-card .a-icon .icon { width: 22px; height: 22px; }
  .contact-card h4 { font-size: 15.5px; }
  .contact-card p, .contact-card a { font-size: 12.5px; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .form-card { padding: 28px 20px; border-radius: 24px; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { text-align: center; }
  .site-footer .brand { justify-content: center; }
  .socials { justify-content: center; }
  .footer-contact li { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .site-footer { padding-top: 70px; }

  .lightbox { padding: 70px 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }

  .float-contact { right: 16px; bottom: 16px; }
  .fc-toggle { width: 56px; height: 56px; }
}

/* =========================================================
   Booking page (/booking/)
   ========================================================= */
.booking-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px 40px; align-items: start;
}
.cal-card { min-width: 0; }

.bk-step { display: flex; align-items: center; gap: 14px; }
.bk-step .eyebrow::before { display: none; }
.bk-step .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #fff; font-size: 15px; font-weight: 500;
}

.room-toggle { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 30px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.room-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15px; transition: background .3s, color .3s; }
.room-toggle button:hover { color: var(--gold-dark); }
.room-toggle button.active { background: var(--ink); color: #fff; }

.cal-wrap { position: relative; }
.cal-nav { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; pointer-events: none; z-index: 1; }
.cal-nav button {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .3s, color .3s;
}
.cal-nav button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-dark); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav .prev .icon { transform: rotate(180deg); }

.cal-months { display: grid; grid-template-columns: repeat(var(--cal-cols, 1), minmax(0, 1fr)); gap: 36px; }
.cal-month h4 { height: 40px; line-height: 40px; margin-bottom: 12px; text-align: center; font-size: 18px; font-weight: 500; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { padding-bottom: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.cal-day {
  aspect-ratio: 1 / 1.08; border-radius: 12px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.cal-day .n { font-size: 15.5px; font-weight: 400; color: var(--ink); }
.cal-day .s { font-size: 10.5px; white-space: nowrap; }
.cal-day.ok { background: #f1f7f0; }
.cal-day.ok .s { color: #3d7a48; }
.cal-day.low { background: #fdf3e1; }
.cal-day.low .s { color: #b0711d; }
.cal-day.full { background: repeating-linear-gradient(135deg, #f5efe6 0 6px, #fbf8f2 6px 12px); cursor: not-allowed; }
.cal-day.full .n { color: #b9b0a4; text-decoration: line-through; }
.cal-day.full .s { color: #c0605e; }
.cal-day.past { cursor: default; }
.cal-day.past .n { color: #d3cbbf; }
.cal-day.today { border-color: var(--gold-light); }
.cal-day.ok:hover, .cal-day.low:hover { border-color: var(--gold); }
.cal-day.in-range { background: var(--gold-soft); }
.cal-day.start, .cal-day.end { background: var(--gold-grad); border-color: transparent; box-shadow: 0 8px 18px rgba(180, 138, 58, .35); cursor: pointer; }
.cal-day.start .n, .cal-day.end .n, .cal-day.start .s, .cal-day.end .s { color: #fff; text-decoration: none; }

.cal-note { min-height: 1.75em; margin-top: 16px; font-size: 14.5px; color: var(--gold-dark); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 16px; height: 16px; border-radius: 5px; }
.lg-ok { background: #e2efe0; border: 1px solid #bcd8bf; }
.lg-low { background: #fbe8c6; border: 1px solid #ecc98a; }
.lg-full { background: repeating-linear-gradient(135deg, #eadfce 0 3px, #fbf8f2 3px 6px); border: 1px solid #e2d5c2; }
.lg-sel { background: var(--gold-grad); }
.cal-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ct-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.ct-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark); }
.ct-item > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.ct-item small { font-size: 13px; color: var(--muted); }
.ct-item strong { font-size: 16px; font-weight: 500; color: var(--ink); }
@media (max-width: 420px) { .cal-times { grid-template-columns: 1fr; } }
.cal-updated { margin-top: 12px; font-size: 13px; color: var(--muted); }

.summary-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 36px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.summary-card h3 { margin: 10px 0 16px; font-size: 26px; font-weight: 400; }
.sum-list > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-list dt { color: var(--muted); }
.sum-list dd { color: var(--ink); font-weight: 400; text-align: right; }
.sum-list dt small { font-size: 12px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream);
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }  /* กดรัวๆ บนมือถือไม่ให้กลายเป็น double-tap zoom */
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--gold-dark); font-size: 20px; line-height: 1; box-shadow: var(--shadow-sm);
  transition: background .25s, color .25s;
}
@media (hover: hover) { .stepper button:hover:not(:disabled) { background: var(--gold-grad); color: #fff; } }
.stepper button:active:not(:disabled) { background: var(--gold-grad); color: #fff; }
.stepper button { touch-action: manipulation; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.stepper output { min-width: 28px; text-align: center; font-weight: 500; color: var(--ink); }

.sum-form { display: grid; gap: 14px; margin-top: 22px; }
.sum-form .field input, .sum-form .field textarea { height: 48px; }
.sum-form .field textarea { height: 90px; }
.sum-total {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin: 22px 0; padding: 18px 20px; border-radius: 16px; background: var(--gold-soft); border: 1px dashed var(--gold);
}
.sum-total > span { color: var(--gold-dark); font-size: 15px; }
.sum-total > div { text-align: right; }
.sum-total s { display: block; font-size: 14px; color: var(--muted); }
.sum-total strong { font-size: 32px; font-weight: 500; line-height: 1.1; }
.summary-card .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.sum-hint { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

.btn-line { margin-top: 12px; background: #06c755; color: #fff; box-shadow: 0 12px 26px rgba(6, 199, 85, .25); }
.btn-line:hover { background: #05b04b; transform: translateY(-3px); }
.summary-card .form-success { margin-top: 14px; }
.btn-wa { margin-top: 12px; background: #25d366; color: #fff; box-shadow: 0 12px 26px rgba(37, 211, 102, .25); }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-3px); }

.bk-guide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bk-guide-card { padding: 26px 28px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); }
.bk-guide-card h3 { margin: 8px 0 14px; font-size: 21px; font-weight: 400; }
.bk-guide-card p { font-size: 15px; color: var(--muted); }
.bk-guide-steps { list-style: none; display: grid; gap: 10px; counter-reset: bkg; font-size: 15px; }
.bk-guide-steps li { position: relative; padding-left: 36px; counter-increment: bkg; }
.bk-guide-steps li::before {
  content: counter(bkg); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); color: #fff; font-size: 13px;
}
.bk-guide-wa { display: flex; flex-direction: column; align-items: flex-start; }
.bk-guide-wa .btn { margin-top: auto; }
.bk-guide-wa p { margin-bottom: 18px; }
@media (max-width: 760px) { .bk-guide { grid-template-columns: minmax(0, 1fr); } .bk-guide-card { padding: 22px 20px; } }
.form-success.is-error { background: #fbe9e8; color: #b8433f; border-color: #f1d0ce; }

@media (max-width: 980px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
}

@media (max-width: 640px) {
  .room-toggle { display: flex; }
  .room-toggle button { flex: 1; justify-content: center; padding: 0 10px; }
  .cal-grid { gap: 3px; }
  .cal-day { border-radius: 9px; }
  .cal-day .n { font-size: 14px; }
  .cal-day .s { font-size: 8.5px; letter-spacing: -.02em; }
  .summary-card { padding: 26px 20px; border-radius: 24px; }
  .sum-total strong { font-size: 28px; }
}

/* Booking step 2: payment */
.pay-wrap[hidden], .booking-grid[hidden] { display: none; }
.pay-card .btn-block + .btn-block { margin-top: 12px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px 40px; align-items: start; max-width: 1040px; margin: 0 auto; }
.pay-card h3 { font-size: 30px; font-weight: 400; margin: 12px 0 8px; }
.pay-card > p { color: var(--muted); margin-bottom: 24px; }
.pay-solo { max-width: 560px; margin: 0 auto; }
.pay-loading { height: 120px; border-radius: 16px; background: linear-gradient(90deg, var(--cream), #f3ece0, var(--cream)); background-size: 200% 100%; animation: pay-shimmer 1.4s linear infinite; }
@keyframes pay-shimmer { to { background-position: -200% 0; } }

.pay-test { margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: #fdf3e1; border: 1px dashed #e0b25c; color: #9a6215; font-size: 13.5px; text-align: center; }
.qr-card { max-width: 340px; margin: 0 auto 16px; border-radius: 20px; overflow: hidden; border: 1px solid #d6dfea; background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.qr-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #113566; color: #fff; font-size: 12px; letter-spacing: .08em; }
.qr-head b { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.qr-box { padding: 18px 26px 6px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-amount { padding: 4px 18px 10px; }
.qr-amount small { display: block; font-size: 13px; color: var(--muted); }
.qr-amount strong { font-size: 34px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.qr-meta { display: grid; gap: 2px; padding: 12px 18px 16px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.qr-meta b { color: var(--ink); font-weight: 500; }
#pay-left { font-variant-numeric: tabular-nums; color: #c0605e; }

.pay-steps { margin: 22px 0; padding: 0; list-style: none; counter-reset: ps; display: grid; gap: 10px; }
.pay-steps li { counter-increment: ps; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.pay-steps li::before {
  content: counter(ps); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-dark); font-size: 13px; font-weight: 500;
}
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold-dark); }
.pay-wait .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pay-pulse 1.2s ease-in-out infinite; }
@keyframes pay-pulse { 50% { opacity: .25; transform: scale(.7); } }
.btn-test { margin-top: 12px; border: 1px dashed #e0b25c; background: #fdf3e1; color: #9a6215; }
.btn-test:hover { background: #fbe8c6; }

.pay-state { padding: 34px 24px; border-radius: 20px; text-align: center; background: var(--cream); border: 1px solid var(--line); }
.pay-state .ps-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.pay-state .ps-ic .icon { width: 28px; height: 28px; }
.pay-state h4 { font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.pay-state p { color: var(--muted); }
.pay-state .btn { margin-top: 18px; }
.pay-state.is-ok { background: #eef7ee; border-color: #cfe6d1; }
.pay-state.is-ok .ps-ic { background: #2f8a4a; color: #fff; }
.pay-state.is-wait .ps-ic { background: var(--gold-soft); color: var(--gold-dark); }
.pay-state.is-off .ps-ic { background: #fbe9e8; color: #b8433f; }

.pay-ref { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pay-sum .sum-total { margin: 22px 0 16px; }
.pay-help { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.pay-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pay-contact .btn { margin-top: 0; padding: 0 12px; }

@media (max-width: 980px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pay-card h3 { font-size: 26px; }
  .qr-box { padding: 14px 18px 4px; }
}

/* Contact: full-width landscape map */
.map-wide iframe { flex: none; min-height: 0; height: clamp(320px, 38vw, 480px); }
.map-wide .map-info { grid-template-columns: repeat(3, 1fr); justify-items: center; }
@media (max-width: 640px) {
  .map-wide .map-info { grid-template-columns: 1fr; justify-items: start; }
}

/* Rooms: house rules card */
.rules-card {
  margin-top: 40px; padding: 44px; border-radius: 30px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.rules-head { margin-bottom: 28px; }
.rules-head h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; margin-top: 12px; }
.rules-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.rules-list li {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  border-radius: 18px; background: var(--cream); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.6;
}
.rules-list .r-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-grad); color: #fff;
}
.rules-list .r-icon .icon { width: 22px; height: 22px; }
.rules-list li > span:last-child { padding-top: 9px; color: var(--ink); }
@media (max-width: 980px) {
  .rules-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rules-card { padding: 26px 18px; border-radius: 24px; }
  .rules-list li { padding: 14px; gap: 12px; font-size: 14.5px; }
  .rules-list .r-icon { width: 40px; height: 40px; border-radius: 12px; }
  .rules-list li > span:last-child { padding-top: 7px; }
}
