/* เวียงปันดาว — สไตล์ร่วมของหน้าเว็บลูกค้า (index.html, booking.html) */
:root {
  --night: #0c2a29;
  --deep: #123f3c;
  --brand: #1d5c57;
  --brand-dark: #154541;
  --lavender: #b7a6d9;
  --lavender-soft: #ece6f6;
  --gold: #c9a35b;
  --gold-soft: #f4ead6;
  --sand: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1b2624;
  --muted: #6b7774;
  --line: #e6dfd3;
  --danger: #b4443a;
  --ok: #237049;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(12, 42, 41, .06);
  --shadow: 0 18px 50px -18px rgba(12, 42, 41, .25);
  --serif: "Noto Serif Thai", serif;
  --sans: "IBM Plex Sans Thai", system-ui, sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); background: var(--sand); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.grain::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
  padding: 13px 28px; border-radius: 999px; font-size: 1rem; font-weight: 500;
  background: var(--gold); color: var(--night);
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(201, 163, 91, .8); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px -10px rgba(29, 92, 87, .8); }
.btn-ghost { background: transparent; color: var(--brand); border-color: rgba(29, 92, 87, .35); }
.btn-ghost:hover { background: rgba(29, 92, 87, .07); box-shadow: none; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.22); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
header { position: fixed; inset: 0 0 auto; z-index: 60; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
header.scrolled { background: rgba(255, 253, 249, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.logo-text small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.nav-links { display: flex; gap: 30px; font-size: .95rem; }
.nav-links a { position: relative; opacity: .85; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 22px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(55% 70% at 88% 18%, rgba(183, 166, 217, .9), transparent 62%),
    radial-gradient(45% 55% at 8% 95%, rgba(201, 163, 91, .45), transparent 60%),
    radial-gradient(60% 60% at 35% 35%, rgba(29, 92, 87, .9), transparent 70%),
    linear-gradient(165deg, #0a2423 0%, #113b38 45%, #2d5f66 100%);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo + .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,36,35,.55), rgba(10,36,35,.35) 50%, rgba(10,36,35,.75)); }
.stars { position: absolute; inset: 0 0 40% 0; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.moon { position: absolute; top: 16%; right: 14%; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8e6, #f1d9a8 60%, #d9b878); box-shadow: 0 0 80px 20px rgba(241, 217, 168, .35); }
.mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46%; }
.hero-inner { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 220px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 400; letter-spacing: -.01em; margin: 14px 0 6px; text-shadow: 0 4px 30px rgba(0,0,0,.2); }
.hero h1 span { display: block; font-size: .38em; font-weight: 300; letter-spacing: .04em; opacity: .9; margin-top: 4px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 560px; opacity: .88; margin: 18px 0 30px; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Quick availability bar */
.quick {
  position: absolute; z-index: 3; left: 50%; bottom: 48px; transform: translateX(-50%);
  width: min(920px, calc(100% - 40px));
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: stretch;
  background: rgba(255, 253, 249, .96); color: var(--ink); border-radius: 22px; padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.quick label { display: flex; flex-direction: column; padding: 8px 18px; border-radius: 16px; cursor: pointer; transition: background .2s; }
.quick label:hover { background: var(--sand); }
.quick label + label { border-left: 1px solid var(--line); }
.quick small { font-size: .74rem; color: var(--muted); letter-spacing: .06em; }
.quick input { border: none; background: transparent; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); padding: 2px 0; outline: none; width: 100%; }
.quick .btn { border-radius: 16px; padding: 0 30px; }

.quick { grid-template-columns: 1fr 1fr 1.3fr auto; }
.qb-guests { display: flex; flex-direction: column; padding: 8px 18px; border-left: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.qb-guests > div { display: flex; gap: 14px; }
.quick label.mini { flex-direction: row; align-items: center; gap: 4px; padding: 0; border: none; border-radius: 0; }
.quick label.mini:hover { background: none; }
.quick select { border: none; background: transparent; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); cursor: pointer; outline: none; padding: 2px 0; }
.quick label.mini span { font-size: .9rem; color: var(--muted); }

/* ---------- ค้นหา / กรองที่พัก ---------- */
.finder { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: -20px 0 34px; }
.finder-row { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chips button:hover { border-color: var(--brand); }
.chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips button:focus-visible, .detail-link:focus-visible, .room-img:focus-visible, .gal-item:focus-visible, .cal-d:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.sort { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.sort select { font: inherit; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--paper); }
.finder-note { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.finder-note:empty { display: none; }
.finder-note b { color: var(--brand); font-weight: 600; }
.no-result { text-align: center; padding: 34px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.no-result h4 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--night); margin-bottom: 6px; }
.no-result .alts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.no-result .alts .btn { padding: 9px 18px; font-size: .9rem; }
.muted-sm { color: var(--muted); font-size: .82em; }
.detail-link { align-self: flex-start; border: none; background: none; color: var(--brand); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; padding: 0; margin: -6px 0 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29,92,87,.35); }
.detail-link:hover { text-decoration-color: currentColor; }
.room-img { cursor: pointer; }
.room-total { display: block; font-family: var(--sans); font-size: .8rem; color: var(--ink); font-weight: 500; margin-top: 4px; }
.room-total:empty { display: none; }
.room-total small { color: var(--muted); font-weight: 400; }

/* ---------- แกลเลอรี ---------- */
#gallery { background: var(--sand); }
.gal-filter { justify-content: center; margin-bottom: 26px; }
/* ตารางรูปขนาดเท่ากัน (ครอบรูปเป็น 4:3) — เรียบร้อยกว่าแบบความสูงไม่เท่ากัน */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-item { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--paper); display: block; width: 100%; border: none; padding: 0; text-align: left; font: inherit; }
.gal-item img, .gal-item svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gal-item.doc img { object-fit: contain; background: var(--sand); }   /* ผัง / ตารางราคา: แสดงทั้งภาพ ไม่ครอบ */
.gal-more { display: block; margin: 22px auto 0; }
@media (max-width: 1020px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
.gal-item:hover img, .gal-item:hover svg { transform: scale(1.04); }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(8,24,23,.75)); }
.gal-item figcaption small { display: block; opacity: .75; font-size: .76rem; }
.gal-item.art { cursor: pointer; }
.lightbox { flex-direction: column; padding: 56px 12px 20px; }
.lb-fig { max-width: min(1100px, 100%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.lb-fig figcaption { color: #fff; font-size: .95rem; text-align: center; }
.lb-fig figcaption small { opacity: .7; margin-left: 8px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--night); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-nav:hover { background: #fff; }

/* ---------- รายละเอียดที่พัก ---------- */
.modal.rd { max-width: 980px; text-align: left; padding: 0; position: relative; }
.rd-x { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255,253,249,.92); }
.rd-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.rd-left { padding: 0 0 26px; border-right: 1px solid var(--line); min-width: 0; }
.rd-right { padding: 26px 26px 26px; min-width: 0; }
.rd-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.rd-photo img, .rd-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-photo img { cursor: zoom-in; }
.rd-thumbs { display: flex; gap: 8px; padding: 10px 26px 0; overflow-x: auto; }
.rd-thumbs:empty { display: none; }
.rd-thumbs button { flex: none; width: 70px; height: 50px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sand); }
.rd-thumbs button[aria-current="true"] { border-color: var(--brand); }
.rd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rd-head { padding: 18px 26px 0; }
.rd-head .badge { margin-bottom: 6px; }
.rd-head h3 { font-size: 1.6rem; margin: 0; }
.rd-desc { padding: 10px 26px 0; color: var(--muted); }
.rd-facts { list-style: none; padding: 14px 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: .9rem; }
.rd-facts li { display: flex; gap: 8px; align-items: flex-start; }
.rd-facts li::before { content: none; }
.rd-price { font-family: var(--serif); font-size: 1.7rem; color: var(--brand); line-height: 1.1; padding-right: 40px; }
.rd-price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.rd-right h4 { font-weight: 500; font-size: 1rem; margin: 18px 0 8px; color: var(--night); }
.rd-right h4 small { color: var(--muted); font-weight: 400; font-size: .8rem; display: block; }
.cal { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cal-head b { font-weight: 500; }
.cal-head button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-wd { font-size: .72rem; color: var(--muted); padding: 2px 0; }
.cal-d { font: inherit; font-size: .88rem; height: 38px; border: none; border-radius: 9px; background: #e9f4ee; color: var(--ink); cursor: pointer; position: relative; padding: 0; font-variant-numeric: tabular-nums; }
.cal-d:hover:not(:disabled) { background: #cfe8da; }
.cal-d.busy { background: #f6e3e0; color: #b9867f; text-decoration: line-through; cursor: not-allowed; }
.cal-d.busy.co-ok { cursor: pointer; text-decoration: none; background: linear-gradient(135deg, #e9f4ee 50%, #f6e3e0 50%); color: var(--ink); }
.cal-d.past { background: transparent; color: #c3c9c7; cursor: default; }
.cal-d.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-d.in { background: #cfe1dd; border-radius: 4px; }
.cal-d.sel { background: var(--brand); color: #fff; font-weight: 600; }
.cal-d.empty { visibility: hidden; }
.cal-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.cal-legend span { display: flex; align-items: center; gap: 5px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-free { background: #e9f4ee; } .lg-busy { background: #f6e3e0; } .lg-sel { background: var(--brand); }
.rd-guests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rd-guests label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 500; color: #3b4744; }
.rd-guests select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rd-sum { margin-top: 14px; }
.rd-sum .sum-row { font-size: .9rem; padding: 4px 0; }
.rd-sum .sum-total { font-size: 1.3rem; margin-top: 8px; padding-top: 10px; }
.rd-sum .hint-box { background: var(--sand); border-radius: 10px; padding: 10px 12px; font-size: .88rem; color: var(--muted); text-align: center; }
.rd-cta { width: 100%; margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--night); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }

/* Highlights */
.highlights { padding: 0; margin-top: -1px; background: var(--sand); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.hl { padding: 44px 26px; display: flex; gap: 16px; align-items: flex-start; }
.hl + .hl { border-left: 1px solid var(--line); }
.hl svg { width: 34px; height: 34px; flex: none; color: var(--brand); }
.hl b { display: block; font-weight: 500; font-size: 1.02rem; }
.hl span { color: var(--muted); font-size: .9rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.about-art { position: relative; aspect-ratio: 4/5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background:
    radial-gradient(70% 50% at 70% 10%, rgba(183,166,217,.95), transparent 70%),
    radial-gradient(60% 50% at 20% 90%, rgba(201,163,91,.55), transparent 70%),
    linear-gradient(180deg, #1d5c57, #0c2a29); }
.about-art svg { position: absolute; inset: auto 0 0 0; width: 100%; }
.about-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; left: -24px; bottom: 40px; background: var(--paper); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.about-badge strong { font-family: var(--serif); font-size: 2.1rem; color: var(--brand); line-height: 1; }
.about-badge span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.about h2 { font-size: clamp(2rem, 4vw, 2.7rem); color: var(--night); margin: 12px 0 20px; }
.about p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--brand); font-weight: 500; line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--muted); }

/* ---------- Rooms ---------- */
#rooms { background: var(--paper); }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group-title h3 { font-size: 1.55rem; color: var(--night); }
.group-title small { color: var(--muted); font-size: .92rem; }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 64px; }
.rooms:last-child { margin-bottom: 0; }
.room {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: row;
  border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, border-color .25s; min-width: 0;
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 92, 87, .18), var(--shadow); }
.room-img { width: 42%; flex: none; min-height: 230px; position: relative; overflow: hidden; }
.room-img svg, .room-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room:hover .room-img svg, .room:hover .room-img img { transform: scale(1.06); }
.room-code {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(255, 253, 249, .92); color: var(--brand); font-weight: 600; font-size: .78rem; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.room-status { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: .76rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; display: none; }
.room-status.free { display: block; background: #e2f2e8; color: var(--ok); }
.room-status.busy { display: block; background: #f8e2df; color: var(--danger); }
.room.full { opacity: .6; }
.room.full:hover { transform: none; box-shadow: none; }
.room-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.room-body h3 { font-size: 1.28rem; color: var(--night); }
.room-en { color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.room-meta { list-style: none; margin: 14px 0 18px; font-size: .9rem; color: var(--muted); display: grid; gap: 4px; }
.room-meta li { display: flex; gap: 8px; align-items: center; }
.room-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lavender); flex: none; }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--brand); line-height: 1.1; }
.price small { font-family: var(--sans); font-size: .76rem; color: var(--muted); font-weight: 400; }
.room-foot .btn { padding: 9px 20px; font-size: .9rem; }

/* ---------- Plan ---------- */
#plan { background: var(--night); color: #fff; overflow: hidden; }
#plan::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 10%, rgba(183,166,217,.35), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(201,163,91,.2), transparent 70%); }
#plan .container { position: relative; }
#plan .section-head h2 { color: #fff; }
#plan .section-head p { color: rgba(255,255,255,.7); }
.plan-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.plan-img { border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transition: transform .4s; }
.plan-img:hover { transform: scale(1.015); }
.plan-info h3 { font-size: 1.35rem; margin-bottom: 16px; color: var(--gold); }
.plan-info ul { list-style: none; display: grid; gap: 4px; margin-bottom: 32px; }
.plan-info li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.plan-info li b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 500; font-size: .85rem; }

/* ---------- Booking ---------- */
#booking { background: linear-gradient(180deg, var(--sand), #efe8f6); }
.booking-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 30px; align-items: start; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; border: 1px solid rgba(230, 223, 211, .7); }
.step { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.step span { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 500; }
.step h3 { font-size: 1.25rem; color: var(--night); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 500; margin-bottom: 7px; color: #3b4744; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7774' stroke-width='1.6'><path d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 92, 87, .12); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.error { color: var(--danger); font-size: .82rem; margin-top: 4px; min-height: 1em; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.divider { height: 1px; background: var(--line); margin: 14px 0 28px; }
.booked-dates { font-size: .87rem; background: var(--gold-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: -4px 0 16px; display: none; }
.booked-dates.show { display: block; }
.booked-dates b { color: var(--danger); font-weight: 500; }

.summary { position: sticky; top: 96px; padding: 0; overflow: hidden; }
.summary-head { position: relative; padding: 26px 30px; color: #fff; background: radial-gradient(80% 120% at 100% 0%, rgba(183,166,217,.7), transparent 60%), linear-gradient(135deg, var(--deep), var(--brand)); }
.summary-head h3 { font-size: 1.3rem; }
.summary-head p { font-size: .85rem; opacity: .8; }
.summary-body { padding: 24px 30px 30px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: .95rem; }
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { text-align: right; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 16px; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--brand); align-items: baseline; }
.sum-empty { color: var(--muted); text-align: center; padding: 22px 0; }
.summary .btn { width: 100%; margin-top: 22px; padding: 15px; font-size: 1.05rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.badge { display: inline-block; background: var(--lavender-soft); color: #5a4a86; font-size: .78rem; font-weight: 500; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.warn { background: #f8e2df; color: var(--danger); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; margin-bottom: 10px; }
.trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: .78rem; color: var(--muted); }
.trust span { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- My bookings ---------- */
#my-bookings { background: #efe8f6; padding-top: 30px; }
.bookings-list { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.bk { background: var(--paper); border-radius: 16px; padding: 18px 24px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1.3fr 1.2fr auto auto; gap: 18px; align-items: center; }
.bk-code { font-weight: 600; color: var(--brand); letter-spacing: .04em; }
.bk small { color: var(--muted); display: block; }
.bk .btn { padding: 8px 16px; font-size: .85rem; }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill { font-size: .72rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }
.pill.ok { background: #e2f2e8; color: var(--ok); }
.pill.wait { background: var(--gold-soft); color: #8a5a0b; }
.pill.bad { background: #eee; color: #777; }
.pill.in { background: #dcebff; color: #1f4f8a; }
.pill.out { background: #ececec; color: #6f6f6f; }
.bk.stay-in { box-shadow: inset 4px 0 0 #1f4f8a, var(--shadow-sm); }
.bk.stay-out { opacity: .8; }
.bk-actions small { color: var(--muted); line-height: 1.5; text-align: right; }

/* ---------- Contact ---------- */
#contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sand); }
.contact-item .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item h4 { font-weight: 500; color: var(--night); margin-bottom: 2px; }
.contact-item p { color: var(--muted); font-size: .95rem; }
.contact-item a { color: var(--brand); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--line); background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

footer { position: relative; background: var(--night); color: rgba(255,255,255,.7); padding: 56px 0 40px; overflow: hidden; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; }
.foot .logo { color: #fff; }
.foot small { font-size: .85rem; }

/* Mobile CTA */
.mobile-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 55; padding: 15px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); transition: transform .3s, opacity .3s; }
.mobile-cta.hide { transform: translateY(140%); opacity: 0; }

/* ---------- Modals ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 24, 23, .62); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-bg.show { display: flex; }
.modal { background: var(--paper); border-radius: 26px; max-width: 470px; width: 100%; max-height: 94vh; overflow-y: auto; padding: 30px; text-align: center; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 1.45rem; color: var(--night); margin-bottom: 6px; }
.modal .check { width: 72px; height: 72px; border-radius: 50%; background: #e2f2e8; color: var(--ok); display: grid; place-items: center; margin: 4px auto 16px; font-size: 2.2rem; }
.modal .code { font-size: 1.5rem; font-weight: 600; letter-spacing: .12em; color: var(--brand); background: var(--sand); border: 1px dashed var(--line); padding: 12px; border-radius: var(--radius-sm); margin: 16px 0; }
.modal .sum-row { text-align: left; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.modal-actions .full { grid-column: 1 / -1; }
.img-viewer { background: transparent; max-width: 960px; padding: 0; position: relative; }
.img-viewer img { border-radius: 14px; margin: 0 auto; max-height: 90vh; width: auto; }
.viewer-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); font-size: 1.6rem; cursor: pointer; color: var(--night); }
.viewer-hint { display: none; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(12,42,41,.85); color: #fff; font-size: .82rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

.pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pay-head h3 { margin: 0; font-size: 1.3rem; }
.x { border: none; background: var(--sand); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.x:hover { background: var(--line); }
.pay-ref { text-align: left; font-size: .9rem; color: var(--muted); }
.pay-ref b { color: var(--brand); letter-spacing: .06em; }
.pay-room { text-align: left; font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.qr-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.qr-brand { background: #113566; color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .12em; padding: 9px; }
.qr-box { display: flex; justify-content: center; padding: 18px 18px 6px; min-height: 240px; align-items: center; }
.qr-box img, .qr-box canvas { width: 220px; height: 220px; }
.qr-box .qr-static { width: 240px; height: auto; }
.qr-placeholder { width: 220px; height: 220px; border: 2px dashed var(--line); border-radius: 14px; display: grid; place-content: center; color: var(--muted); font-size: .9rem; }
.pay-amount { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--brand); }
.pay-account { color: var(--muted); font-size: .9rem; padding-bottom: 16px; }
.link-btn { border: none; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; margin-top: 12px; }
.pay-timer { margin: 12px 0 4px; font-size: .92rem; font-weight: 500; color: var(--brand); }
.pay-timer.low { color: var(--danger); }
.pay-steps { list-style: none; counter-reset: s; text-align: left; font-size: .9rem; color: var(--muted); margin: 16px 0 18px; display: grid; gap: 8px; }
.pay-steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; }
.pay-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lavender-soft); color: #5a4a86; font-size: .75rem; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.slip-btn { width: 100%; padding: 15px; }
.slip-btn.disabled { pointer-events: none; opacity: .5; }
.slip-preview { max-height: 180px; width: auto; margin: 14px auto 0; border-radius: 10px; border: 1px solid var(--line); }
.pay-msg { margin-top: 12px; font-size: .92rem; border-radius: var(--radius-sm); text-align: left; }
.pay-msg:empty { display: none; }
.pay-msg.info { background: #e8f1ef; color: var(--brand); padding: 12px 16px; }
.pay-msg.err { background: #f8e2df; color: var(--danger); padding: 12px 16px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }


/* Live badge */
.live { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .8rem; color: var(--ok); background: #e2f2e8; padding: 4px 12px 4px 10px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(35,112,73,.5); animation: livePing 2s infinite; }
.live.pulse { animation: liveFlash 1.2s ease; }
@keyframes livePing { 70% { box-shadow: 0 0 0 7px rgba(35,112,73,0); } 100% { box-shadow: 0 0 0 0 rgba(35,112,73,0); } }
@keyframes liveFlash { 0%, 100% { background: #e2f2e8; } 30% { background: #c4e6d1; } }

/* Reveal on scroll */
.reveal { transform: translateY(22px); transition: transform .8s ease; }
.reveal.in { transform: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); z-index: 120; max-width: min(92vw, 460px); background: var(--night); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: .92rem; box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stars i, .live i, .live.pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hl-grid { grid-template-columns: 1fr 1fr; }
  .hl:nth-child(3) { border-left: none; }
  .hl:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1080px) {
  .room-img { width: 38%; }
}
@media (max-width: 880px) {
  section { padding: 80px 0; }
  .rooms { grid-template-columns: 1fr; }
  .about-grid, .plan-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .about-badge { left: 12px; }
  .summary { position: static; }
  .bk { grid-template-columns: 1fr 1fr; }
  .bk-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: .95rem; }
  .nav { height: 60px; }
  .nav-cta { display: none; }

  /* hero: สูงตามเนื้อหา ไม่เต็มจอ */
  .hero { min-height: 0; }
  .hero-inner { padding-top: 96px; padding-bottom: 200px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-lead { font-size: 1rem; margin: 12px 0 22px; }
  .hero-actions .btn { padding: 11px 20px; font-size: .95rem; }
  .moon { width: 56px; height: 56px; right: 8%; top: 13%; }
  .mountains { height: 34%; }
  .quick { grid-template-columns: 1fr 1fr; bottom: 20px; width: calc(100% - 32px); border-radius: 18px; padding: 6px; }
  .qb-guests { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 10px; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-inner { padding-bottom: 250px; }
  .finder { margin-top: -6px; padding: 12px; }
  .sort { margin-left: 0; width: 100%; }
  .sort select { flex: 1; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal-item { border-radius: 12px; }
  .gal-item figcaption { font-size: .78rem; padding: 20px 10px 8px; }
  .lb-nav { width: 40px; height: 40px; font-size: 1.6rem; top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .rd-grid { grid-template-columns: 1fr; }
  .rd-left { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .rd-right { padding: 18px 18px 22px; }
  .rd-head, .rd-desc, .rd-facts, .rd-thumbs { padding-left: 18px; padding-right: 18px; }
  .rd-facts { grid-template-columns: 1fr; }
  #roomModal { padding: 0; align-items: flex-end; }
  .modal.rd { border-radius: 22px 22px 0 0; max-height: 96vh; }
  .detail-link { margin: -2px 0 8px; font-size: .8rem; }
  .room-meta .muted-sm { display: none; }
  .quick .btn { grid-column: 1 / -1; padding: 13px; border-radius: 13px; }
  .quick label { padding: 6px 10px; min-width: 0; }
  .quick input { font-size: .92rem; }

  /* จุดเด่น 2×2 */
  .hl-grid { grid-template-columns: 1fr 1fr; border-bottom: none; gap: 10px; padding-block: 18px 6px; }
  .hl, .hl + .hl, .hl:nth-child(n+3) { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
  .hl { padding: 14px; flex-direction: column; gap: 8px; }
  .hl svg { width: 26px; height: 26px; }
  .hl b { font-size: .92rem; line-height: 1.35; }
  .hl span { font-size: .8rem; line-height: 1.4; display: block; }

  /* เกี่ยวกับ: ซ่อนภาพประกอบใหญ่ */
  .about-art { display: none; }
  .about h2 { margin: 8px 0 14px; }
  .about p { font-size: .98rem; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: .78rem; line-height: 1.35; display: block; }

  /* ที่พัก: การ์ดแนวนอนกะทัดรัด */
  .group-title { margin-bottom: 14px; padding-bottom: 10px; }
  .group-title h3 { font-size: 1.3rem; }
  .rooms { gap: 12px; margin-bottom: 40px; }
  .room { border-radius: 16px; }
  .room:hover { transform: none; }
  .room-img { width: 112px; min-height: 0; }
  .room-body { padding: 14px 14px 12px; }
  .room-body h3 { font-size: 1.08rem; }
  .room-en { display: none; }
  .room-meta { margin: 6px 0 10px; font-size: .82rem; gap: 1px; }
  .room-meta li:last-child { display: none; }
  .room-foot { padding-top: 10px; }
  .price { font-size: 1.18rem; }
  .room-foot .btn { padding: 7px 16px; font-size: .84rem; }
  .room-code { top: 8px; left: 8px; font-size: .7rem; padding: 2px 8px; }
  .room-status { top: auto; bottom: 8px; left: 8px; right: auto; font-size: .7rem; padding: 2px 8px; }

  /* ผัง */
  .plan-grid { gap: 26px; }
  .plan-info ul:first-of-type { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .plan-info li { padding: 8px 0; font-size: .92rem; gap: 10px; }
  .plan-info li b { min-width: 28px; height: 28px; font-size: .78rem; }
  .plan-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .plan-info ul { margin-bottom: 22px; }
  .img-viewer { max-width: none; width: 100%; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; display: block; border-radius: 0; animation: none; }
  .img-viewer img { width: 1100px; max-width: none; max-height: none; border-radius: 0; }
  #viewer { padding: 0; align-items: stretch; }
  .viewer-hint { display: block; }

  /* ติดต่อ */
  .contact-grid { gap: 16px; }
  .contact-list { gap: 10px; }
  .contact-item { padding: 16px; gap: 14px; }
  .contact-item .ic { width: 40px; height: 40px; border-radius: 12px; }
  .map, .map iframe, .map-link { min-height: 260px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 24px 20px; }
  .summary { padding: 0; }
  .summary-head, .summary-body { padding-left: 22px; padding-right: 22px; }
  .bk { grid-template-columns: 1fr; gap: 10px; }
  .modal { padding: 24px 20px; }
  .modal-actions { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  footer { padding-bottom: 96px; }
}
  

/* ---------- หน้าจอง (booking.html) ---------- */
.page-head { position: relative; overflow: hidden; color: #fff; padding: 118px 0 34px;
  background: radial-gradient(50% 120% at 92% 0%, rgba(183,166,217,.7), transparent 65%), radial-gradient(40% 90% at 0% 100%, rgba(201,163,91,.3), transparent 70%), linear-gradient(160deg, #0a2423, #1d5c57); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; margin: 6px 0 18px; }
.back-link { font-size: .9rem; opacity: .8; }
.back-link:hover { opacity: 1; text-decoration: underline; }
.steps-bar { list-style: none; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: .9rem; }
.steps-bar li { display: flex; align-items: center; gap: 8px; opacity: .6; }
.steps-bar li.on { opacity: 1; }
.steps-bar b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.5); }
.steps-bar li.on b { background: var(--gold); border-color: var(--gold); color: var(--night); }
.page-booking #booking { padding-top: 44px; }
.page-booking .nav-cta { color: var(--brand); }
@media (max-width: 640px) {
  .page-head { padding: 84px 0 22px; }
  .page-head h1 { margin: 4px 0 12px; }
  .steps-bar { font-size: .78rem; gap: 6px 12px; }
  .steps-bar b { width: 22px; height: 22px; font-size: .72rem; }
  .page-booking #booking { padding-top: 24px; }
}
/* ---------- จองหลายห้อง ---------- */
.room-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 4px; margin-bottom: 12px; background: #fff; }
.ri-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ri-head b { font-weight: 600; color: var(--brand); font-size: .92rem; }
.ri-del { border: none; background: none; color: var(--danger); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.add-room { width: 100%; border: 1.5px dashed rgba(29,92,87,.4); background: rgba(29,92,87,.04); color: var(--brand); border-radius: var(--radius-sm); padding: 12px; font: inherit; font-weight: 500; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .2s; }
.add-room:hover { background: rgba(29,92,87,.09); }
.add-room small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.sum-room .sum-row span:first-child { color: var(--ink); }
.sum-room small { color: var(--muted); }
.member-hint { font-size: .88rem; color: var(--muted); background: var(--lavender-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin: -6px 0 16px; }
.member-hint:empty { display: none; }
.member-hint a, .section-head p a { color: var(--brand); font-weight: 500; text-decoration: underline; }
.hold-left { color: #8a5a0b !important; font-weight: 500; }

/* ---------- ช่องทางชำระเงิน ---------- */
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sand); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.pay-tabs button { border: none; background: transparent; font: inherit; font-size: .88rem; padding: 9px 6px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.pay-tabs button[aria-selected="true"] { background: var(--paper); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm); }
.bank-list { display: grid; gap: 10px; text-align: left; }
.bank-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.bank-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.bank-top small { display: block; color: var(--muted); font-size: .8rem; }
.bank-logo { width: 46px; height: 46px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; }
.bank-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.bank-row span { color: var(--muted); min-width: 78px; }
.bank-row b { flex: 1; font-weight: 600; }
.bank-no { font-size: 1.15rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--brand); }
.bank-warn { margin-top: 8px; font-size: .78rem; color: #8a5a0b; background: var(--gold-soft); border-radius: 8px; padding: 6px 10px; }
.bank-amount { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #e8f1ef; }
.bank-amount span { color: var(--muted); font-size: .9rem; }
.bank-amount b { flex: 1; font-family: var(--serif); font-size: 1.4rem; color: var(--brand); font-weight: 500; }
.copy-btn { border: 1px solid rgba(29,92,87,.35); background: var(--paper); color: var(--brand); font: inherit; font-size: .8rem; padding: 5px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: rgba(29,92,87,.07); }

/* ---------- ตรวจสอบสถานะ ---------- */
#status-check { background: var(--sand); padding: 60px 0 30px; }
.status-card { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.status-card h2 { font-size: 1.5rem; color: var(--night); }
.status-card p { color: var(--muted); font-size: .92rem; }
.status-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.status-form input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-width: 0; }
.status-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,92,87,.12); }
.status-form .btn { border-radius: var(--radius-sm); padding: 12px 24px; }
#scResult .bk { box-shadow: none; border: 1px solid var(--line); }
#scResult:empty { display: none; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; counter-reset: t; }
.timeline li { counter-increment: t; font-size: .8rem; color: var(--muted); text-align: center; padding-top: 30px; position: relative; }
.timeline li::before { content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 600; }
.timeline li::after { content: ""; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ok); }
.timeline li.done::before { background: var(--ok); content: "✓"; }
.timeline li.done::after { background: var(--ok); }
.timeline li.now { color: #8a5a0b; font-weight: 500; }
.timeline li.now::before { background: var(--gold); }
.timeline.stopped li.done::before { background: #9aa5a2; }
@media (max-width: 640px) {
  .status-form { grid-template-columns: 1fr; }
  .room-item { padding: 12px 12px 2px; }
  .bank-row { flex-wrap: wrap; }
  .bank-row span { min-width: 0; width: 100%; }
}

/* ---------- หน้าสมาชิก (account.html) ---------- */
.acc-wrap { max-width: 980px; margin: 0 auto; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sand); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { border: none; background: transparent; font: inherit; padding: 10px; border-radius: 11px; cursor: pointer; color: var(--muted); font-weight: 500; }
.auth-tabs button[aria-selected="true"] { background: var(--paper); color: var(--brand); box-shadow: var(--shadow-sm); }
.auth-card h2 { font-size: 1.5rem; color: var(--night); margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: .88rem; }
.auth-links button { border: none; background: none; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.form-msg { font-size: .9rem; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.form-msg.err { background: #f8e2df; color: var(--danger); }
.form-msg.ok { background: #e2f2e8; color: var(--ok); }
.form-msg:empty { display: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--brand); font: inherit; font-size: .82rem; cursor: pointer; padding: 6px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.acc-head h2 { font-size: 1.7rem; color: var(--night); }
.acc-head p { color: var(--muted); font-size: .92rem; }
.acc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.acc-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-tabs button { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--paper); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.acc-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.acc-list { display: grid; gap: 12px; }
.acc-list .bk { grid-template-columns: 1fr auto; }
.acc-list .bk > div:nth-child(2) { grid-column: 1; }
.acc-list .bk .price { grid-column: 2; grid-row: 1; text-align: right; }
.acc-list .bk .bk-actions { grid-column: 2; grid-row: 2; }
.acc-side .card { padding: 24px; margin-bottom: 16px; }
.acc-side h3 { font-size: 1.15rem; color: var(--night); margin-bottom: 14px; }
.demo-note { background: var(--gold-soft); color: #8a5a0b; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .86rem; margin-bottom: 16px; }
@media (max-width: 880px) { .acc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .acc-list .bk { grid-template-columns: 1fr; } .acc-list .bk .price, .acc-list .bk .bk-actions { grid-column: 1; grid-row: auto; text-align: left; } }
/* =====================================================================
   จัดการการจอง · ใบยืนยัน · รีวิว · ติดต่อ · แจ้งเตือนลูกค้า
   ===================================================================== */
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #b8914a; box-shadow: 0 10px 24px -10px rgba(201, 163, 91, .9); }

/* ปุ่มจัดการในการ์ดการจอง */
.bk-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.tool { font: inherit; font-size: .84rem; color: var(--brand); background: var(--sand); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tool:hover { background: #efe8da; }
.tool-star { background: var(--gold-soft); border-color: #ead7b0; color: #7a5410; }
.bk-alerts { grid-column: 1 / -1; display: grid; gap: 6px; }
.g-alert { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; line-height: 1.5; padding: 8px 12px; border-radius: 10px; background: var(--sand); color: var(--ink); text-align: left; }
.g-alert.g-ok { background: #e2f2e8; color: #1d5a3b; }
.g-alert.g-wait { background: var(--gold-soft); color: #7a5410; }
.g-alert.g-bad { background: #f8e2df; color: var(--danger); }
.g-alert.g-info { background: var(--lavender-soft); color: #4b3d73; }
.hist-tabs { justify-content: center; margin-bottom: 20px; }
.acc-tabs .cnt { opacity: .75; font-size: .85em; }
.acc-alerts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; display: grid; gap: 6px; }
.acc-alerts h3 { font-size: .95rem; color: var(--night); display: flex; gap: 6px; align-items: center; }
.acc-alerts h3 .cnt { background: var(--gold); color: var(--night); border-radius: 999px; font-size: .72rem; padding: 0 7px; }

/* แก้ไขการจอง / ส่งคำขอ */
.edit-modal { max-width: 560px; text-align: left; }
.edit-modal .pay-head { text-align: left; }
.edit-modal .pay-ref { text-align: left; }
.edit-modal .field { margin-bottom: 12px; }
.req-types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.req-types label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 400; cursor: pointer; margin: 0; }
.req-types label:has(input:checked) { border-color: var(--brand); background: rgba(29, 92, 87, .06); }
.policy { background: var(--sand); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.policy summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.policy ul { margin: 8px 0 0 18px; display: grid; gap: 4px; }
#reqCurrent { margin-bottom: 12px; }
.done-confirm { display: block; margin: 16px 0 0; }

/* รีวิว */
#reviews { background: var(--sand); }
.rv-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.rv-summary { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: sticky; top: 90px; display: grid; gap: 16px; text-align: center; }
.rv-avg b { display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--night); }
.rv-avg small { color: var(--muted); }
.rv-stars { color: var(--gold); letter-spacing: 2px; font-size: 1.15rem; }
.rv-avg .rv-stars { display: block; margin: 6px 0 2px; font-size: 1.3rem; }
.rv-dist { display: grid; gap: 5px; }
.rv-bar { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.rv-bar i { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; display: block; }
.rv-bar i b { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.rv-note { font-size: .78rem; color: var(--muted); }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display: grid; gap: 10px; align-content: start; }
.rv-card .rv-h { display: grid; gap: 2px; }
.rv-card .rv-h b { color: var(--night); font-size: 1.02rem; }
.rv-card p { color: #3b4744; font-size: .92rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-card .rv-f { display: grid; font-size: .82rem; color: var(--muted); }
.rv-card .rv-f b { color: var(--ink); font-weight: 500; }
.rv-reply { background: var(--sand); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: .85rem; }
.rv-reply b { color: var(--brand); font-size: .8rem; }
.rv-reply p { font-size: .85rem; margin-top: 2px; }
.rv-empty { grid-column: 1 / -1; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 40px 20px; text-align: center; color: var(--muted); }
.rv-empty b { display: block; color: var(--night); font-size: 1.05rem; margin-bottom: 4px; }
.rv-more { display: block; margin: 20px auto 0; }
.rv-modal { max-width: 520px; text-align: left; }
/* กล่องข้อความของฉัน */
.ct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ct-head h3 { margin: 0; }
.inbox-btn { border: 1px solid var(--line, #e3e0d8); background: var(--paper); color: var(--brand); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.inbox-btn:hover { border-color: currentColor; }
.inbox-badge { background: var(--danger, #b3261e); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-weight: 700; }
.ib-modal { max-width: 560px; text-align: left; }
.ib-sub { margin: 0 0 14px; }
.ib-list { display: grid; gap: 10px; }
.ib-empty { text-align: center; padding: 22px 10px; color: var(--muted, #66736f); }
.ib-empty b { display: block; color: inherit; margin-bottom: 4px; }
.ib-thread { border: 1px solid var(--line, #e3e0d8); border-radius: 16px; background: #fff; overflow: hidden; }
.ib-thread.new { border-color: var(--gold, #c9a35b); box-shadow: 0 0 0 3px rgba(201, 163, 91, .18); }
.ib-thread summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.ib-thread summary::-webkit-details-marker { display: none; }
.ib-topic { display: grid; min-width: 0; }
.ib-topic small { color: var(--muted, #66736f); font-size: .78rem; }
.ib-st { font-size: .76rem; border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-weight: 600; }
.ib-st.ok { background: #e2f2e8; color: var(--ok, #2e7d4f); }
.ib-st.wait { background: #fbf1dc; color: #8a5a00; }
.ib-thread.new .ib-st { background: var(--gold, #c9a35b); color: #fff; }
.ib-chat { display: grid; gap: 8px; padding: 4px 14px 12px; max-height: 340px; overflow-y: auto; }
.ib-msg { max-width: 86%; border-radius: 14px; padding: 8px 12px; }
.ib-msg p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; font-size: .93rem; }
.ib-msg small { font-size: .72rem; opacity: .75; }
.ib-msg.me { justify-self: end; background: #e9f2f0; border-bottom-right-radius: 4px; }
.ib-msg.staff { justify-self: start; background: #fbf6ec; border: 1px solid #efe3c8; border-bottom-left-radius: 4px; }
.ib-wait { font-size: .82rem; color: var(--muted, #66736f); text-align: center; }
.ib-reply { display: flex; gap: 8px; padding: 0 14px 12px; align-items: flex-end; }
.ib-reply textarea { flex: 1; min-width: 0; border: 1px solid var(--line, #e3e0d8); border-radius: 12px; padding: 8px 10px; font: inherit; resize: vertical; }
.ib-thread .form-msg { margin: 0 14px 12px; }
.ib-find { margin-top: 14px; border-top: 1px dashed var(--line, #e3e0d8); padding-top: 12px; }
.ib-find summary { cursor: pointer; font-size: .9rem; color: var(--brand); }
.ib-find form { margin-top: 10px; }
.ib-toast { position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--paper); border-radius: 16px; box-shadow: 0 10px 30px rgba(8, 24, 23, .25); padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.ib-toast[hidden] { display: none; }
.ib-toast .btn { padding: 8px 14px; font-size: .88rem; }
.ib-toast .x { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--muted, #66736f); }
.rv-linked { background: var(--sand); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 2.1rem; line-height: 1; color: #d9d2c4; cursor: pointer; margin: 0; transition: color .12s, transform .12s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--gold); }
.star-pick label:hover { transform: scale(1.12); }
.star-pick input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ติดต่อ / แผนที่ */
.map { display: flex; flex-direction: column; }
.map iframe { flex: 1; }
.map-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; background: var(--paper); border-top: 1px solid var(--line); }
.map-bar .btn { padding: 9px 16px; font-size: .88rem; }
.ct-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ct-links a { color: var(--brand); font-weight: 500; }
.ct-links .link-btn { margin: 0; font-size: .86rem; }
.contact-more { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-top: 40px; align-items: start; }
.contact-more .card { padding: 28px; box-shadow: var(--shadow-sm); }
.contact-more h3 { font-size: 1.2rem; color: var(--night); margin-bottom: 14px; }
.travel-list { list-style: none; display: grid; gap: 14px; counter-reset: tr; }
.travel-list li { counter-increment: tr; display: grid; gap: 2px; padding-left: 40px; position: relative; font-size: .92rem; }
.travel-list li::before { content: counter(tr); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: #7a5410; display: grid; place-items: center; font-weight: 600; font-size: .82rem; }
.travel-list span { color: #3b4744; }
.travel-list small { color: var(--muted); }
.ct-form .btn { width: 100%; }
.ct-form .note { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 880px) {
  .rv-grid, .contact-more { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
}
@media (max-width: 640px) {
  .req-types { grid-template-columns: 1fr; }
  .rv-list { grid-template-columns: 1fr; }
  .contact-more .card { padding: 20px; }
  .bk-tools .tool { flex: 1 1 auto; text-align: center; }
}

/* ===================== ใบยืนยันการจอง (confirmation.html) ===================== */
.page-confirm { background: var(--sand); }
.cf-wrap { max-width: 860px; margin: 0 auto; padding: 110px 16px 60px; }
.cf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.cf-toolbar .btn { padding: 10px 18px; font-size: .9rem; }
.cf-hint { text-align: center; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.cf-find { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 12px; }
.cf-find h1 { font-family: var(--serif); color: var(--night); font-size: 1.6rem; }
.cf-find p { color: var(--muted); }
.cf-loading { text-align: center; color: var(--muted); padding: 60px 0; }
.cf-doc { position: relative; background: #fff; color: #1b2624; border-radius: 16px; box-shadow: var(--shadow); padding: 40px 44px; overflow: hidden; border-top: 8px solid var(--brand); }
.cf-doc.st-wait { border-top-color: var(--gold); }
.cf-doc.st-bad { border-top-color: var(--danger); }
.cf-doc.st-off { border-top-color: #9aa5a2; }
.cf-stamp { position: absolute; top: 30px; right: -46px; transform: rotate(35deg); background: var(--ok); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 6px 54px; }
.st-wait .cf-stamp { background: var(--gold); color: var(--night); }
.st-bad .cf-stamp { background: var(--danger); }
.st-off .cf-stamp { background: #9aa5a2; }
.cf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cf-brand { display: flex; gap: 12px; align-items: center; color: var(--night); }
.cf-brand svg { width: 46px; height: 46px; color: var(--brand); }
.cf-brand b { display: block; font-family: var(--serif); font-size: 1.25rem; }
.cf-brand small { color: var(--muted); font-size: .8rem; }
.cf-title { text-align: right; padding-right: 84px; }
.cf-title h1 { font-family: var(--serif); font-size: 1.45rem; color: var(--night); line-height: 1.2; }
.cf-title small { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.cf-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.cf-code small { display: block; color: var(--muted); font-size: .8rem; }
.cf-code b { font-size: 2rem; letter-spacing: .08em; color: var(--brand); margin-right: 6px; font-variant-numeric: tabular-nums; }
.cf-code .pill { margin: 0; vertical-align: 6px; }
.cf-qr { width: 96px; height: 96px; flex: none; }
.cf-qr img, .cf-qr canvas { width: 96px !important; height: 96px !important; }
.cf-note { border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-bottom: 16px; }
.cf-note.wait { background: var(--gold-soft); color: #7a5410; }
.cf-note.bad { background: #f8e2df; color: var(--danger); }
.cf-note.off { background: #eee; color: #666; }
.cf-note a { color: inherit; font-weight: 600; }
.cf-stay { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; background: var(--sand); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.cf-stay small { display: block; color: var(--muted); font-size: .76rem; }
.cf-stay b { display: block; font-size: 1.05rem; color: var(--night); }
.cf-stay span { font-size: .8rem; color: var(--muted); }
.cf-stay > div:last-child { text-align: right; }
.cf-nights { text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 22px; }
.cf-nights b { font-family: var(--serif); font-size: 1.9rem; color: var(--brand); line-height: 1; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.cf-grid h3 { font-size: .82rem; letter-spacing: .06em; color: var(--brand); text-transform: uppercase; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cf-grid dl { display: grid; grid-template-columns: 96px 1fr; gap: 5px 10px; font-size: .9rem; }
.cf-grid dt { color: var(--muted); }
.cf-grid dd { overflow-wrap: anywhere; }
.cf-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 18px; }
.cf-table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.cf-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cf-table td small { display: block; color: var(--muted); font-size: .78rem; }
.cf-table .r { text-align: right; white-space: nowrap; }
.cf-table tr.off td { color: #999; text-decoration: line-through; }
.cf-table tfoot td { font-weight: 600; font-size: 1.05rem; border-bottom: none; padding-top: 14px; }
.cf-table tfoot td small { display: inline; font-weight: 400; }
.cf-table tfoot .r { color: var(--brand); font-size: 1.25rem; }
.cf-box { background: var(--sand); border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-bottom: 18px; }
.cf-box p { white-space: pre-wrap; }
.cf-info ul { margin-left: 18px; display: grid; gap: 4px; font-size: .86rem; color: #3b4744; }
.cf-info p { font-size: .88rem; color: #3b4744; margin-bottom: 6px; }
.cf-info a { color: var(--brand); }
.cf-foot { border-top: 1px solid var(--line); padding-top: 12px; font-size: .74rem; color: var(--muted); text-align: center; }
.cf-capturing .cf-doc { box-shadow: none; border-radius: 0; }
.cf-capturing .cf-doc .no-print { display: none !important; }
@media (max-width: 640px) {
  .cf-wrap { padding-top: 90px; }
  .cf-doc { padding: 26px 18px; }
  .cf-title { text-align: left; padding-right: 0; }
  .cf-code b { font-size: 1.5rem; }
  .cf-stay { grid-template-columns: 1fr; text-align: left; }
  .cf-stay > div:last-child { text-align: left; }
  .cf-nights { border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .cf-grid { grid-template-columns: 1fr; gap: 18px; }
  .cf-toolbar .btn { flex: 1 1 45%; }
  .cf-table th:nth-child(2), .cf-table td:nth-child(2) { display: none; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body.page-confirm { background: #fff; }
  .no-print, header#header { display: none !important; }
  .cf-wrap { padding: 0; max-width: none; }
  .cf-doc { box-shadow: none; border-radius: 0; padding: 0 0 0 0; border-top-width: 6px; }
  .cf-stamp { top: 22px; }
  .cf-stay, .cf-box, .cf-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cf-stamp, .pill, .cf-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* =====================================================================
   โปรโมชั่น · ข่าวสาร · แถบประกาศ · ภาษา · เมนูมือถือ/แท็บเล็ต
   ===================================================================== */
/* โค้ดส่วนลด (หน้าจอง) */
.promo-box { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font: inherit; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; background: #fff; }
.promo-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 92, 87, .12); }
.promo-row .btn { padding: 10px 18px; font-size: .9rem; white-space: nowrap; margin: 0; width: auto; }
.summary .promo-row .btn { width: auto; margin-top: 0; padding: 10px 18px; font-size: .9rem; }
.promo-msg { font-size: .84rem; margin-top: 8px; line-height: 1.5; }
.promo-msg:empty { display: none; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.err { color: var(--danger); }
.sum-discount span { color: var(--ok); font-weight: 500; }
.strike { text-decoration: line-through; color: var(--muted); }
.cf-disc td { color: var(--ok); font-size: .95rem !important; }

/* การ์ดโปรโมชั่น (หน้าแรก) */
#promotions { background: linear-gradient(180deg, var(--paper), var(--sand)); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.promo-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.promo-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--brand)); }
.promo-tag { align-self: flex-start; background: var(--gold-soft); color: #7a5410; font-weight: 700; font-size: 1.05rem; padding: 4px 14px; border-radius: 999px; }
.promo-card h3 { font-size: 1.15rem; color: var(--night); line-height: 1.4; }
.promo-card p { color: var(--muted); font-size: .92rem; }
.promo-card ul { list-style: none; display: grid; gap: 4px; font-size: .85rem; color: #3b4744; }
.promo-card li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.promo-foot { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.promo-foot .btn { padding: 9px 20px; font-size: .9rem; }
.promo-code { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--brand); background: rgba(29, 92, 87, .05); border-radius: 10px; padding: 7px 12px; cursor: pointer; font: inherit; color: var(--brand); }
.promo-code span { font-size: .75rem; color: var(--muted); }
.promo-code b { letter-spacing: .1em; }
.promo-code.copied { border-style: solid; background: #e2f2e8; }
.promo-auto { font-size: .84rem; color: var(--ok); font-weight: 500; }

/* ข่าวสาร */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.news-card.pinned { border-color: #ead7b0; box-shadow: 0 0 0 3px var(--gold-soft); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-body { padding: 18px 20px; display: grid; gap: 8px; }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.news-type { background: var(--sand); color: var(--brand); padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.news-type.t-ประกาศ { background: #fde8e4; color: var(--danger); }
.news-type.t-กิจกรรม { background: var(--lavender-soft); color: #4b3d73; }
.news-type.t-โปรโมชั่น { background: var(--gold-soft); color: #7a5410; }
.news-pin { color: #7a5410; }
.news-meta time { margin-left: auto; }
.news-card h3 { font-size: 1.08rem; color: var(--night); line-height: 1.45; }
.news-text { color: #3b4744; font-size: .9rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card.open .news-text { -webkit-line-clamp: unset; display: block; }
.news-acts { display: flex; gap: 16px; }
.news-acts .link-btn { margin: 0; font-size: .86rem; }

/* แถบประกาศ */
.ann-bar { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--gold); color: var(--night); font-size: .88rem; padding: 7px 44px 7px 16px; position: relative; text-align: center; line-height: 1.4; }
.ann-bar a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ann-bar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.3rem; line-height: 1; width: 32px; height: 32px; cursor: pointer; color: inherit; }
body.has-ann .hero-inner { margin-top: var(--ann-h, 36px); }
body.has-ann .page-head { padding-top: calc(118px + var(--ann-h, 36px)); }
body.has-ann .cf-wrap { padding-top: calc(110px + var(--ann-h, 36px)); }
@media (max-width: 640px) {
  body.has-ann .page-head { padding-top: calc(84px + var(--ann-h, 36px)); }
  body.has-ann .cf-wrap { padding-top: calc(90px + var(--ann-h, 36px)); }
}

/* ปุ่มภาษา */
.lang-btn { border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: .8rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; opacity: .85; white-space: nowrap; }
.lang-btn:hover { opacity: 1; }
.lang-btn b { font-weight: 700; }

/* เมนูมือถือ / แท็บเล็ต */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px; border-radius: 12px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.m-menu { position: fixed; inset: 0; z-index: 200; background: rgba(8, 24, 23, .55); backdrop-filter: blur(3px); display: none; justify-content: flex-end; }
.m-menu.show { display: flex; }
.m-menu-panel { width: min(340px, 88vw); height: 100%; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.m-menu-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.m-menu-head b { font-family: var(--serif); font-size: 1.2rem; color: var(--night); }
.m-close { border: 0; background: var(--sand); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.m-links { display: flex; flex-direction: column; padding: 8px 0; }
.m-link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--ink); }
.m-link:active { background: var(--sand); }
.m-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }
.m-foot .btn { width: 100%; justify-content: center; }
.m-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sand); border-radius: 12px; padding: 4px; }
.m-lang button { border: 0; background: transparent; font: inherit; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.m-lang button[aria-pressed="true"] { background: var(--paper); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm); }
body.menu-open { overflow: hidden; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav .lang-btn { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------- มือถือ / แท็บเล็ต: ปรับการใช้งานด้วยนิ้ว ---------- */
@media (max-width: 880px) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .contact-more { gap: 20px; }
}
@media (max-width: 640px) {
  /* iOS จะซูมหน้าเว็บถ้าตัวอักษรในช่องกรอกเล็กกว่า 16px */
  input, select, textarea, .field input, .field select, .field textarea, .promo-row input, .status-form input { font-size: 16px !important; }
  .modal { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px; max-height: calc(100dvh - 20px); }
  .modal-bg { padding: 10px; align-items: flex-end; }
  .edit-modal, .rv-modal { border-radius: 22px 22px 16px 16px; }
  .btn { min-height: 44px; }
  .tool { padding: 9px 12px; }
  .promo-grid, .news-grid { grid-template-columns: 1fr; }
  .ann-bar { font-size: .82rem; justify-content: flex-start; text-align: left; }
  .mobile-cta { bottom: max(16px, env(safe-area-inset-bottom)); }
  .acc-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .acc-tabs::-webkit-scrollbar { display: none; }
  .acc-tabs button { flex: none; }
  .hist-tabs { justify-content: flex-start; }
}
@media (hover: none) {
  .room:hover, .rv-card:hover { transform: none; }
}
.rd-facts .rd-ic { display: inline-block; width: 1.5em; flex: none; color: var(--brand); font-weight: 600; text-align: center; }
.sum-note { font-size: .78rem; color: var(--muted); margin: -4px 0 6px; text-align: right; }

/* ส่งสลิปให้เจ้าหน้าที่ตรวจ */
.manual-slip { background: var(--gold-soft); border-radius: var(--radius-sm); padding: 14px; margin: 10px 0; text-align: left; }
.manual-slip p { font-size: .88rem; color: #7a5410; margin-bottom: 10px; }
.manual-slip .field { margin-bottom: 10px; }

/* ---------- เนื้อหาที่แก้จากหลังบ้าน (site-cms.js) ---------- */
.cms-off { display: none !important; }
.hero h1 .h1-main { display: inline; font-size: inherit; font-weight: inherit; letter-spacing: inherit; opacity: 1; margin: 0; }
.hero-photo.cms-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-photo.cms-slide.on { opacity: 1; }
.cms-dots { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.cms-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.25); padding: 0; cursor: pointer; }
.cms-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 700px) { .cms-dots { right: 10px; } }
@media (prefers-reduced-motion: reduce) { .hero-photo.cms-slide { transition: none; } }
/* ===== สิ่งอำนวยความสะดวก & พื้นที่ส่วนกลาง ===== */
#facilities { background: var(--paper); }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.fac-card { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.fac-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fac-body { padding: 20px 20px 22px; }
.fac-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); font-size: 1.45rem; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.fac-card h3 { font-size: 1.08rem; color: var(--night); margin: 0 0 6px; }
.fac-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* ===== ข้อมูลการเข้าพัก & กฎ ===== */
#rules { background: var(--night); color: #fff; overflow: hidden; }
#rules::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 55% at 100% 0%, rgba(183,166,217,.28), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(201,163,91,.18), transparent 70%); }
#rules .container { position: relative; }
#rules .section-head h2 { color: #fff; }
#rules .section-head p { color: rgba(255,255,255,.72); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.rule-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(4px); }
.rule-card h3 { font-size: 1.05rem; color: var(--gold); margin: 0 0 12px; font-family: var(--sans); font-weight: 600; }
.rule-card ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.rule-card li { color: rgba(255,255,255,.88); font-size: .93rem; line-height: 1.55; }
.rule-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rule-times div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; }
.rule-times small { display: block; color: rgba(255,255,255,.65); font-size: .78rem; }
.rule-times b { font-size: 1.35rem; font-family: var(--serif); font-weight: 500; }
.rule-note { color: rgba(255,255,255,.65); font-size: .82rem; margin: 10px 0 0; }
.meal-tbl { width: 100%; border-collapse: collapse; }
.meal-tbl td { padding: 7px 4px; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: .95rem; }
.meal-tbl td:last-child { text-align: right; font-weight: 600; color: var(--gold-soft); }
@media (max-width: 640px) { .rules-grid { grid-template-columns: 1fr; } .rule-card { padding: 18px; } }

/* ===== หน้าจอง: อายุเด็ก · ยอมรับกฎ ===== */
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: -4px 0 12px; }
.ages label { display: block; font-size: .82rem; color: var(--muted); }
.ages label .req { margin-left: 2px; }
.ages label select { margin-top: 4px; }
.ages label.invalid select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,68,58,.12); }
.ages select { width: 100%; }
.ages-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 0; }
.agree-box { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border: 1px solid #ecd9b0; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 16px; font-size: .9rem; }
.agree-box input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.agree-box a { color: var(--brand); font-weight: 600; }
.agree-box.err { border-color: var(--danger); background: #fbe9e6; }
.arrive-warn { font-size: .82rem; color: #8a5a00; background: #fff4d6; border-radius: 10px; padding: 6px 10px; margin-top: 6px; }
.rules-modal-body { max-height: min(70vh, 640px); overflow: auto; }
.rules-modal-body h4 { color: var(--brand); margin: 16px 0 6px; font-size: 1rem; }
.rules-modal-body h4:first-child { margin-top: 0; }
.rules-modal-body ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: .92rem; }
/* เมนูหน้าแรก: ไม่ตัดคำ · แคบลงก่อนเปลี่ยนเป็นปุ่ม ☰ (หน้าแรกมีเมนูมากกว่าหน้าอื่น) */
.nav-links a { white-space: nowrap; }
@media (max-width: 1440px) { body[data-page="home"] .nav-links { gap: 20px; font-size: .9rem; } }
@media (max-width: 1240px) {
  body[data-page="home"] .nav-links { display: none; }
  body[data-page="home"] .menu-btn { display: inline-flex; }
  body[data-page="home"] .nav .lang-btn { display: none; }
  body[data-page="home"] .nav-cta { margin-left: auto; }
}