/* ================================================================
   ห้องพัก 9d — สไตล์ทั้งหมด
   ธีมสี: แก้ชุดสีใน [data-palette="..."] ด้านล่าง
   ================================================================ */

/* ----- ธีมสี ----- */
:root,
[data-palette="ocean"] {
  --c1: #0e7490;  /* สีหลัก (ปุ่ม ลิงก์) */
  --c2: #22d3ee;  /* สีรอง (ไล่สี) */
  --accent: #f59e0b;
  --on-c1: #ffffff;
  --bg: #f5fbfc;
  --bg-alt: #e8f6f8;
  --surface: #ffffff;
  --text: #0f2a33;
  --muted: #557079;
  --line: #d6e9ed;
  --shadow: 14 116 144;
  --glow: rgba(34, 211, 238, .35);
  color-scheme: light;
}
[data-palette="gold"] {
  --c1: #8a5a14; --c2: #e2b65e; --accent: #1f2937; --on-c1: #ffffff;
  --bg: #fbf8f2; --bg-alt: #f4ecdd; --surface: #ffffff; --text: #2b2114; --muted: #75664f; --line: #eadfca;
  --shadow: 138 90 20; --glow: rgba(226, 182, 94, .38);
  color-scheme: light;
}
[data-palette="sakura"] {
  --c1: #be185d; --c2: #f9a8d4; --accent: #7c3aed; --on-c1: #ffffff;
  --bg: #fff7fa; --bg-alt: #fde8f1; --surface: #ffffff; --text: #3b0d22; --muted: #85566a; --line: #f6d5e3;
  --shadow: 190 24 93; --glow: rgba(249, 168, 212, .45);
  color-scheme: light;
}
[data-palette="forest"] {
  --c1: #166534; --c2: #4ade80; --accent: #ca8a04; --on-c1: #ffffff;
  --bg: #f5faf5; --bg-alt: #e6f3e8; --surface: #ffffff; --text: #10291a; --muted: #557062; --line: #d3e8d8;
  --shadow: 22 101 52; --glow: rgba(74, 222, 128, .35);
  color-scheme: light;
}
[data-palette="lavender"] {
  --c1: #6d28d9; --c2: #c4b5fd; --accent: #ec4899; --on-c1: #ffffff;
  --bg: #f9f7ff; --bg-alt: #efeafe; --surface: #ffffff; --text: #22164a; --muted: #6b628c; --line: #e2dbfa;
  --shadow: 109 40 217; --glow: rgba(196, 181, 253, .45);
  color-scheme: light;
}
[data-palette="night"] {
  --c1: #e3b75f; --c2: #f7dc9c; --accent: #60a5fa; --on-c1: #1a1405;
  --bg: #0b1020; --bg-alt: #10172b; --surface: #151d33; --text: #e9edf7; --muted: #9aa6c2; --line: #263152;
  --shadow: 0 0 0; --glow: rgba(227, 183, 95, .25);
  color-scheme: dark;
}

:root {
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font-body: 'Sarabun', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Prompt', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --brand-line: #06c755;
  --brand-fb: #1877f2;
  --brand-tt: #111111;
}
html:lang(zh-CN) { --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; --font-head: var(--font-body); }

/* ----- พื้นฐาน ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .5s, color .5s;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c2); color: #000; }
#logo-g stop:first-child { stop-color: var(--c2); }
#logo-g stop:last-child { stop-color: var(--c1); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 8px 16px; border-radius: 10px;
  background: var(--c1); color: var(--on-c1); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ----- ปุ่ม ----- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  border: 0; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer;
  translate: var(--tx) var(--ty);
  transition: translate .35s var(--ease), box-shadow .3s, background-color .3s, color .3s;
}
.btn::after {
  /* แสงวิ่งผ่านตอนชี้ */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  translate: -110% 0; transition: translate .7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { translate: 110% 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 70%, var(--c2)));
  color: var(--on-c1);
  box-shadow: 0 10px 24px -10px rgb(var(--shadow) / .7);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgb(var(--shadow) / .8), 0 0 0 4px var(--glow); }
.btn-glass {
  --line-ink: rgba(10, 15, 25, .65);
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-primary .icon { transition: translate .3s var(--ease); }
.btn-primary:hover .icon { translate: 4px 0; }

.icon-btn, .round-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease-back), background-color .3s, color .3s, border-color .3s;
}
.icon-btn:hover, .round-btn:hover { transform: translateY(-2px) rotate(-6deg); border-color: var(--c1); color: var(--c1); }
.icon-btn:active, .round-btn:active { transform: scale(.9); }

.chip {
  flex: none;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-back);
}
.chip:hover { border-color: var(--c1); color: var(--c1); }
.chip:active { transform: scale(.94); }
.chip.is-active { background: var(--c1); border-color: var(--c1); color: var(--on-c1); }

/* ----- หน้าโหลด ----- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.no-js .preloader, .is-loaded .preloader { opacity: 0; visibility: hidden; }
.preloader-mark { width: 76px; height: 76px; animation: pop 1.2s var(--ease-back) infinite alternate; }
.preloader-mark svg { width: 100%; height: 100%; }
.preloader-bar { width: 140px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--c2), var(--c1)); animation: load 1s ease-in-out infinite; }
@keyframes pop { from { transform: scale(.9) rotate(-4deg); } to { transform: scale(1.05) rotate(4deg); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c2), var(--c1), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }

/* ----- Header ----- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, color .4s, height .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgb(var(--shadow) / .5);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.logo-svg { width: 40px; height: 40px; flex: none; transition: transform .6s var(--ease-back); }
.logo:hover .logo-svg { transform: rotate(-12deg) scale(1.08); }
.logo-text b { background: linear-gradient(135deg, var(--c2), var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; white-space: nowrap;
  transition: color .3s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--c2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.main-nav + .header-tools { margin-left: 0; }

/* header โปร่งบนสไลด์: ตัวหนังสือขาว */
.site-header.on-hero:not(.is-scrolled) { color: #fff; }
.site-header.on-hero:not(.is-scrolled) .icon-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.site-header.on-hero:not(.is-scrolled) .lang-switch { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

.lang-switch { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang-switch button {
  min-width: 40px; height: 34px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.lang-switch button[aria-pressed="true"] { background: var(--c1); color: var(--on-c1); }

.burger { position: relative; width: 18px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle { display: none; }

/* แผงเลือกธีม */
.theme-panel {
  position: absolute; top: calc(100% + 8px); right: var(--gutter);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .35);
  transform-origin: top right;
  animation: panelIn .45s var(--ease-back);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.92); } }
.theme-panel-title { font-family: var(--font-head); font-weight: 600; margin-bottom: 12px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch {
  display: grid; justify-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: transform .3s var(--ease-back), border-color .3s;
}
.swatch:hover { transform: translateY(-3px); border-color: var(--c1); }
.swatch-dot {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--s1), var(--s2), var(--s1));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
  color: #fff;
}
.swatch-dot .icon { opacity: 0; transform: scale(.4); transition: .3s var(--ease-back); filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.swatch.is-active { border-color: var(--c1); box-shadow: 0 0 0 3px var(--glow); }
.swatch.is-active .swatch-dot .icon { opacity: 1; transform: none; }

/* เปลี่ยนธีมแบบวงกลมขยายจากปุ่มที่กด */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
.vt-circle::view-transition-old(root) { animation: none; }
.vt-circle::view-transition-new(root) { animation: vtCircle .8s var(--ease); }
@keyframes vtCircle {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); }
}

/* ----- Hero ----- */
.hero {
  --hero-y: 0px;
  position: relative; isolation: isolate;
  min-height: max(600px, 100svh);
  display: grid; align-content: end;
  padding-block: calc(var(--header-h) + 40px) 96px;
  color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), #0b1020);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; translate: 0 var(--hero-y); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img { animation: kenburns calc(var(--delay, 6500ms) + 1.5s) linear forwards; }
.slide.is-leaving { opacity: 0; z-index: 0; }
.slide.is-leaving img { transform: scale(1); }
.slide:nth-child(even).is-active img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.15) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate(-1%, 0); } to { transform: scale(1.14) translate(1%, -1.5%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 100%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(5, 10, 20, .55) 0%, rgba(5, 10, 20, .15) 35%, rgba(5, 10, 20, .75) 100%);
}
.hero-content { max-width: var(--container); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c1);
}
.hero .eyebrow { color: #fff; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 0 var(--c2); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title {
  margin-top: 18px;
  font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.hero-title .w { display: inline-block; }
.hero-text { margin-top: 18px; max-width: 640px; min-height: 5.5em; }
.hero-text strong { display: block; font-family: var(--font-head); font-size: clamp(1.3rem, 3.2vw, 2rem); font-weight: 600; line-height: 1.35; }
.hero-text strong .w { display: inline-block; }
.hero-text .sub { display: block; margin-top: 6px; font-size: 1.1rem; opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before, .hero-dot span { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.hero-dot::before { background: rgba(255, 255, 255, .3); }
.hero-dot span { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span { animation: dotFill var(--delay, 6500ms) linear forwards; }
.hero.is-paused .hero-dot.is-active span { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; align-items: center; gap: 12px; }
.hero .round-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .round-btn:hover { background: #fff; color: var(--c1); }
.hero-count { font-family: var(--font-head); font-variant-numeric: tabular-nums; opacity: .85; }
.hero-count b { font-size: 1.3rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 64px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ข้อความขึ้นทีละคำ */
.js .hero-title .w { opacity: 0; transform: translateY(60%) rotate(4deg); filter: blur(6px); }
.is-loaded .hero-title .w { animation: wordIn .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * 70ms); }
.hero-text.is-in strong .w { animation: wordIn .8s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.hero-text.is-in .sub { animation: fadeUp .8s .25s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(60%) rotate(4deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero-eyebrow, .js .hero-actions, .js .hero-controls { opacity: 0; }
.is-loaded .hero-eyebrow { animation: fadeUp .8s .1s var(--ease) forwards; }
.is-loaded .hero-actions { animation: fadeUp .8s .6s var(--ease) forwards; }
.is-loaded .hero-controls { animation: fadeUp .8s .8s var(--ease) forwards; }

/* ----- ตัวเลข ----- */
.stats-band { position: relative; z-index: 2; margin-top: -48px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  padding: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--line);
  box-shadow: 0 30px 60px -30px rgb(var(--shadow) / .45);
  max-width: calc(var(--container) - 2 * var(--gutter));
}
.stats-band .container { padding-inline: 0; width: calc(100% - 2 * var(--gutter)); }
.stat { display: grid; gap: 2px; padding: 26px 20px; text-align: center; background: var(--surface); }
.stat b { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ----- section ----- */
.section { position: relative; padding-block: clamp(72px, 10vw, 120px); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title { margin-top: 10px; font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 700; }
.lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.blob { position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; translate: 0 var(--py, 0); }
.blob-a { top: 10%; right: -200px; background: radial-gradient(circle, var(--glow), transparent 70%); }
.blob-b { top: -120px; left: -220px; background: radial-gradient(circle, var(--glow), transparent 70%); }
.section { isolation: isolate; overflow-x: clip; }

/* แสดงเมื่อเลื่อนถึง */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.from-left { transform: translateX(-48px); }
.js .reveal.from-right { transform: translateX(48px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ----- เกี่ยวกับ ----- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; aspect-ratio: 1 / 1.02; }
.about-img { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgb(var(--shadow) / .6); }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-img:hover img { transform: scale(1.06); }
.about-img-1 { inset: 0 22% 18% 0; }
.about-img-2 { inset: 46% 0 0 40%; border: 6px solid var(--bg); }
.about-badge {
  position: absolute; left: 6%; bottom: 4%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 16px;
  background: var(--surface); color: var(--text); font-family: var(--font-head); font-weight: 600;
  box-shadow: 0 20px 40px -20px rgb(var(--shadow) / .6);
}
.about-badge .icon { color: var(--accent); }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about-copy .eyebrow, .about-copy .section-title { text-align: left; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points p { color: var(--muted); }
.point-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--c2) 22%, var(--surface)); color: var(--c1);
  transition: transform .4s var(--ease-back);
}
.points li:hover .point-icon { transform: rotate(-10deg) scale(1.1); }

/* การ์ดเอียงตามเมาส์ + แสงตามเมาส์ */
.tilt { --rx: 0deg; --ry: 0deg; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .4s; }
.tilt:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); }
.spot { position: relative; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }
/* .reveal ใช้ transform แล้ว: การ์ดที่เป็น reveal + tilt เอียงหลังขึ้นมาแล้วเท่านั้น */
.js .reveal.tilt.is-visible:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition-delay: 0ms; }

/* ----- ห้องพัก ----- */
.rooms { background: var(--bg-alt); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -30px rgb(var(--shadow) / .6);
}
.room:hover { box-shadow: 0 40px 60px -30px rgb(var(--shadow) / .7); }
.room-media { position: relative; display: block; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--line); }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.room:hover .room-media img { transform: scale(1.08); }
.room-tag, .room-photos {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.room-tag { top: 14px; left: 14px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px var(--accent); animation: float 4s ease-in-out infinite; }
[data-palette="gold"] .room-tag { color: #fff; }
.room-photos { right: 14px; bottom: 14px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .3s; }
.room-media:hover .room-photos { background: var(--c1); color: var(--on-c1); }
.room-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px; position: relative; z-index: 2; }
.room-body h3 { font-size: 1.4rem; }
.room-body > p { color: var(--muted); }
.room-meta, .room-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.room-meta li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .95rem; }
.room-meta .icon { color: var(--c1); }
.room-features li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); font-size: .88rem; }
.room-features .icon { color: var(--c1); width: 1em; height: 1em; }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price b { font-family: var(--font-head); font-size: 1.7rem; color: var(--c1); }
.price small { color: var(--muted); }

/* ----- สิ่งอำนวยความสะดวก ----- */
.amen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amen {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .4s, translate .4s var(--ease);
}
.amen:hover { border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); box-shadow: 0 24px 40px -28px rgb(var(--shadow) / .7); translate: 0 -6px; }
.amen > * { position: relative; z-index: 2; }
.amen b { display: block; margin-top: 14px; font-family: var(--font-head); font-size: 1.1rem; }
.amen p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.amen-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--c2), var(--c1)); color: var(--on-c1);
  box-shadow: 0 12px 24px -12px rgb(var(--shadow) / .8);
  transition: transform .5s var(--ease-back);
}
.amen-icon .icon { width: 26px; height: 26px; }
.amen:hover .amen-icon { transform: rotate(-8deg) scale(1.1); }

.marquee { margin-top: clamp(48px, 7vw, 80px); overflow: hidden; padding-block: 18px; background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 60%, var(--c2))); color: var(--on-c1); rotate: -1.5deg; scale: 1.04; }
.marquee-track { display: flex; width: max-content; gap: 40px; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 600; white-space: nowrap; }
.marquee-track .icon { color: var(--c2); }
[data-palette="night"] .marquee-track .icon { color: var(--on-c1); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ----- อัลบั้มรูป ----- */
.filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.filters::-webkit-scrollbar { display: none; }
.masonry { columns: 4 240px; column-gap: 16px; transition: opacity .25s, transform .25s; }
.masonry.is-leaving { opacity: 0; transform: translateY(12px); }
.shot {
  position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  background: var(--line);
  break-inside: avoid;
}
.shot:nth-child(3n+1) img { aspect-ratio: 4 / 5; }
.shot:nth-child(3n+2) img { aspect-ratio: 4 / 3; }
.shot:nth-child(3n) img { aspect-ratio: 1 / 1; }
.shot img { width: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.shot:hover img { transform: scale(1.08); filter: saturate(1.15); }
.shot-cap {
  position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 40px 14px 12px; text-align: left; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  opacity: 0; translate: 0 10px; transition: opacity .4s, translate .4s var(--ease);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; translate: 0 0; }
.masonry.is-entering .shot { animation: shotIn .7s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes shotIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@media (hover: none) { .shot-cap { opacity: 1; translate: 0 0; } }

/* ----- รีวิว ----- */
.reviews { background: var(--bg-alt); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.review > * { position: relative; z-index: 2; }
.review::after { content: '“'; position: absolute; top: -6px; right: 22px; font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: var(--c2); opacity: .25; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.review blockquote { margin: 0; font-size: 1.05rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption b { display: block; }
.review figcaption small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--c2), var(--c1)); color: var(--on-c1); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }

/* ----- แผนที่ ----- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.loc-copy .eyebrow, .loc-copy .section-title { text-align: left; }
.address { display: flex; gap: 10px; margin-top: 20px; font-weight: 600; }
.address .icon { color: var(--c1); margin-top: 3px; }
.nearby-title { margin-top: 26px; font-size: 1.1rem; }
.nearby { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; gap: 8px; }
.nearby li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, translate .3s var(--ease); }
.nearby li:hover { border-color: var(--c1); translate: 6px 0; }
.nearby span { display: flex; align-items: center; gap: 8px; }
.nearby .icon { color: var(--c1); }
.nearby b { color: var(--c1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-wrap { position: relative; border-radius: calc(var(--radius) + 6px); padding: 6px; background: linear-gradient(135deg, var(--c2), var(--c1)); box-shadow: 0 40px 70px -40px rgb(var(--shadow) / .8); }
.map, .map-fallback { height: clamp(360px, 50vw, 520px); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.map-fallback { display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.map-fallback > .icon { width: 48px; height: 48px; color: var(--c1); }
.leaflet-container { font-family: var(--font-body); }
[data-palette="night"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
.map-pin { background: none; border: 0; }
.pin-body {
  position: absolute; left: 4px; top: 0; width: 44px; height: 44px; padding: 3px;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--surface);
  box-shadow: 0 10px 20px -6px rgb(0 0 0 / .5);
  animation: pinDrop .9s var(--ease-back) both;
}
.pin-body svg { width: 100%; height: 100%; rotate: 45deg; }
.pin-pulse { position: absolute; left: 16px; bottom: 0; width: 20px; height: 8px; border-radius: 50%; background: var(--c1); animation: pinPulse 2s ease-out infinite; }
@keyframes pinDrop { from { opacity: 0; translate: 0 -60px; } }
@keyframes pinPulse { from { box-shadow: 0 0 0 0 var(--c1); opacity: .8; } to { box-shadow: 0 0 0 26px transparent; opacity: 0; } }
.map-popup { display: grid; gap: 4px; min-width: 180px; font-family: var(--font-body); }
.map-popup b { font-family: var(--font-head); font-size: 1rem; }
.map-popup a { color: var(--c1); font-weight: 600; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }

/* ----- ติดต่อ ----- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 64px);
  border-radius: calc(var(--radius) + 12px);
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
  color: #fff;
}
.contact-card .section-head { margin-bottom: 36px; }
.contact-card .eyebrow { color: var(--c2); }
.contact-card .lead { color: rgba(255, 255, 255, .85); }
[data-palette="night"] .contact-card { color: var(--on-c1); }
[data-palette="night"] .contact-card .eyebrow, [data-palette="night"] .contact-card .lead { color: var(--on-c1); }
.contact-glow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, var(--c2), transparent 30%, var(--accent), transparent 60%); opacity: .35; filter: blur(60px); animation: spin 18s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin-inline: auto; }
.contact-btn {
  --brand: var(--c1);
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 18px;
  background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: 0 16px 30px -20px rgb(0 0 0 / .6);
  transition: transform .4s var(--ease-back), box-shadow .4s;
}
.contact-btn:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 26px 40px -20px rgb(0 0 0 / .6), 0 0 0 3px color-mix(in srgb, var(--brand) 50%, transparent); }
.js .contact-btn.reveal.is-visible:hover { transform: translateY(-5px) scale(1.02); transition-delay: 0ms; }
.c-icon { --line-ink: var(--brand); display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; transition: transform .5s var(--ease-back); }
.c-icon .icon { width: 28px; height: 28px; }
.contact-btn:hover .c-icon { transform: rotate(-10deg) scale(1.08); }
.c-text { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.c-text b { font-family: var(--font-head); font-size: 1.1rem; }
.c-text small { color: var(--muted); overflow-wrap: anywhere; }
.c-arrow { color: var(--muted); transition: translate .3s var(--ease), color .3s; }
.contact-btn:hover .c-arrow { translate: 4px 0; color: var(--brand); }
.c-facebook { --brand: var(--brand-fb); }
.c-line { --brand: var(--brand-line); }
.c-tiktok { --brand: var(--brand-tt); }
.c-tiktok .c-icon { background: linear-gradient(135deg, #25f4ee, #111 45%, #111 55%, #fe2c55); }
[data-palette="night"] .c-tiktok { --brand: #fe2c55; }
.c-phone { --brand: var(--c1); }
.c-phone .c-icon { color: var(--on-c1); }

/* ----- Footer ----- */
.site-footer { padding-block: 48px 110px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; justify-items: center; gap: 20px; text-align: center; }
.footer-social { display: flex; gap: 10px; }
.footer-social .round-btn { --line-ink: var(--surface); }
.footer-copy { color: var(--muted); font-size: .95rem; }

/* ----- ปุ่มลอย ----- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: grid; justify-items: end; gap: 10px; }
.fab-main {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--c2), var(--c1)); color: var(--on-c1);
  box-shadow: 0 14px 30px -10px rgb(var(--shadow) / .8);
  transition: transform .4s var(--ease-back);
}
.fab-main::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--c2); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab-main:hover { transform: scale(1.08); }
.fab-main .icon { position: absolute; width: 26px; height: 26px; transition: transform .4s var(--ease-back), opacity .3s; }
.fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.fab.is-open .fab-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.fab.is-open .fab-close { opacity: 1; transform: none; }
.fab.is-open .fab-main::before { animation: none; opacity: 0; }
.fab-items { display: grid; justify-items: end; gap: 10px; }
.fab-item {
  --brand: var(--c1);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / .5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8); transform-origin: right center;
  transition: opacity .3s, visibility .3s, transform .45s var(--ease-back);
  transition-delay: calc(var(--i) * 40ms);
}
.fab-item .icon { --line-ink: var(--brand); width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--brand); color: #fff; order: 2; }
.fab-item span { order: 1; padding-left: 10px; }
.fab-item.c-phone .icon { color: var(--on-c1); }
.fab.is-open .fab-item { opacity: 1; visibility: visible; transform: none; }
.fab-item:hover { transform: translateX(-4px) !important; }
.to-top {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); color: var(--c1); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgb(0 0 0 / .5);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .4s var(--ease-back);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ----- ดูรูปขนาดใหญ่ ----- */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(5, 8, 15, .94); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding-inline: 4px; }
.lb-count { font-family: var(--font-head); font-variant-numeric: tabular-nums; opacity: .8; }
.lightbox .round-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox .round-btn:hover { background: #fff; color: #000; }
.lb-stage { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 0; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-height: 0; height: 100%; align-content: center; }
.lb-img { max-width: 100%; max-height: calc(100svh - 230px); border-radius: 12px; object-fit: contain; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.lb-img.from-r { transform: translateX(40px) scale(.97); }
.lb-img.from-l { transform: translateX(-40px) scale(.97); }
.lb-img.is-in { opacity: 1; transform: none; }
.lb-caption { text-align: center; font-weight: 600; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; justify-content: safe center; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .5; background: #222; transition: opacity .3s, border-color .3s, transform .3s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.is-active { opacity: 1; border-color: var(--c2); transform: translateY(-3px); }

/* ----- จอกลาง ----- */
@media (max-width: 1100px) {
  .room-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .amen-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
}

/* ----- เมนูมือถือ ----- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: 0 0 auto; z-index: -1;
    flex-direction: column; gap: 4px;
    padding: calc(var(--header-h) + 12px) var(--gutter) 24px;
    background: var(--surface); color: var(--text);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .4);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility .5s;
  }
  .main-nav a { padding: 14px 16px; font-size: 1.1rem; border-radius: 14px; opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .4s var(--ease), background-color .3s; }
  .main-nav a::after { display: none; }
  .main-nav a.is-current, .main-nav a:hover { background: var(--bg-alt); color: var(--c1); }
  .menu-open .main-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu-open .main-nav a { opacity: 1; transform: none; }
  .menu-open .main-nav a:nth-child(2) { transition-delay: 40ms; }
  .menu-open .main-nav a:nth-child(3) { transition-delay: 80ms; }
  .menu-open .main-nav a:nth-child(4) { transition-delay: 120ms; }
  .menu-open .main-nav a:nth-child(5) { transition-delay: 160ms; }
  .menu-open .site-header { color: var(--text) !important; }
  .menu-open .site-header .icon-btn, .menu-open .site-header .lang-switch { background: var(--surface) !important; border-color: var(--line) !important; color: var(--text) !important; }
  .about-grid, .loc-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- จอเล็ก ----- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .room-grid, .review-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-controls { margin-top: 28px; }
  .hero-count { display: none; }
  .hero-actions .btn { flex: 1 1 200px; }
  .scroll-cue { display: none; }
  .masonry { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; }
  .lb-stage { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; background: rgba(0, 0, 0, .55) !important; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .filters { justify-content: flex-start; }
}
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 8px; }
  .header-tools { gap: 6px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-svg { width: 34px; height: 34px; }
  .lang-switch button { min-width: 32px; padding: 0 6px; font-size: .78rem; }
  .icon-btn { width: 40px; height: 40px; }
  .amen-grid { gap: 10px; }
  .amen { padding: 18px 14px; }
  .amen-icon { width: 46px; height: 46px; }
  .stat { padding: 18px 10px; }
  .hero-dot { width: 30px; }
  .contact-btn { padding: 14px; gap: 12px; }
  .c-icon { width: 46px; height: 46px; }
}
@media (max-width: 370px) {
  .logo-text { display: none; }
  .amen-grid { grid-template-columns: 1fr; }
}

/* ----- ปิดเอฟเฟกต์เมื่อผู้ใช้ตั้งลดการเคลื่อนไหว ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .hero-title .w, .js .hero-eyebrow, .js .hero-actions, .js .hero-controls { opacity: 1 !important; transform: none !important; filter: none !important; }
  .slide.is-active img { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .hero-slides { translate: none; }
}
