/* ==========================================================================
   Wine Camp Cha-Om — สไตล์หลักของเว็บไซต์หน้าบ้าน
   แนวทาง: Modern Nature / Premium Camping / Riverside Escape

   สีหลักถูกกำหนดจากโปรแกรมหลังบ้าน และถูกฉีดทับใน <style> ของแต่ละหน้า
   ค่าที่นี่จึงเป็นค่าเริ่มต้นเมื่อผู้ดูแลยังไม่ได้ตั้งค่า
   ========================================================================== */

:root{
  --forest:#173f35;
  --forest-2:#0d2c25;
  --wine:#7a263a;
  --wine-2:#9d4057;
  --cream:#f7f1e7;
  --sand:#e8dcc8;
  --gold:#c99a54;
  --ink:#17211f;
  --muted:#69746f;
  --white:#ffffff;
  --line:rgba(23,63,53,.14);
  --shadow:0 22px 60px rgba(17,49,41,.13);
  --shadow-sm:0 12px 30px rgba(17,49,41,.10);
  --radius:26px;
  --radius-sm:16px;
  --container:min(1180px,calc(100% - 40px));

  /* สีสถานะ */
  --ok:#1f7956;
  --ok-bg:#e3f2eb;
  --warn:#a9741f;
  --warn-bg:#fff8df;
  --danger:#a83b2c;
  --danger-bg:#fdefec;
  --info:#20556c;
  --info-bg:#e9f2f6;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,Arial,sans-serif;background:#fbfaf7;color:var(--ink);line-height:1.65}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ต้องมาหลังกฎที่กำหนด display ให้ element เปล่า ๆ ข้างบน
   มิฉะนั้นแอตทริบิวต์ hidden จะไม่ทำงาน เพราะกฎของเราทับ display:none ของเบราว์เซอร์
   ผลคือรูปที่ยังไม่มี src จะโชว์เป็นไอคอนรูปเสีย และปุ่มที่ควรซ่อนจะโผล่ออกมา */
[hidden]{display:none!important}

button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
table{border-collapse:collapse;width:100%}

/* ลดการเคลื่อนไหวสำหรับผู้ที่ตั้งค่าไว้ในระบบปฏิบัติการ */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* โฟกัสที่มองเห็นได้ชัดเจน สำหรับการใช้งานด้วยคีย์บอร์ด */
:focus-visible{outline:3px solid var(--wine);outline-offset:2px;border-radius:4px}

.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--forest);color:#fff;
  padding:14px 22px;border-radius:0 0 14px 0;font-weight:800}
.skip-link:focus{left:0}

.container{width:var(--container);margin-inline:auto}
.section{padding:88px 0}
.section-sm{padding:58px 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

.eyebrow{display:inline-flex;align-items:center;gap:9px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;font-size:.78rem;color:var(--wine)}
.eyebrow::before{content:"";width:28px;height:2px;background:var(--wine)}
.eyebrow-light{color:#f2c8d1}
.eyebrow-light::before{background:#f2c8d1}

h1,h2,h3,h4{line-height:1.18;margin:0 0 .65em;font-family:Georgia,"Noto Serif Thai",serif;font-weight:700}
h1{font-size:clamp(2.65rem,6vw,5.6rem);letter-spacing:-.055em}
h2{font-size:clamp(2.1rem,4vw,3.7rem);letter-spacing:-.04em}
h3{font-size:clamp(1.35rem,2vw,1.8rem);letter-spacing:-.02em}
p{margin:0 0 1em}
.muted{color:var(--muted)}
.lead{font-size:clamp(1.04rem,1.8vw,1.3rem);color:#45534e;max-width:720px}
.lead-light{color:rgba(255,255,255,.7)}

/* ---------- ปุ่ม ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;
  border-radius:999px;padding:13px 22px;font-weight:800;transition:.25s ease;min-height:48px;text-align:center}
.btn:hover{transform:translateY(-2px)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed;transform:none}
.btn-primary{background:var(--wine);color:#fff;box-shadow:0 12px 24px rgba(122,38,58,.23)}
.btn-primary:hover{background:var(--wine-2)}
.btn-dark{background:var(--forest);color:#fff;box-shadow:0 12px 24px rgba(23,63,53,.21)}
.btn-dark:hover{background:var(--forest-2)}
.btn-light{background:#fff;color:var(--forest);border-color:rgba(255,255,255,.48)}
.btn-outline{background:transparent;color:var(--forest);border-color:rgba(23,63,53,.25)}
.btn-outline:hover{background:var(--forest);color:#fff}
.btn-danger{background:var(--danger);color:#fff}
.btn-small{padding:9px 16px;min-height:40px;font-size:.92rem}
.btn-block{width:100%}

.icon-circle{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:var(--cream);font-size:1.25rem;flex:0 0 auto}
.notice{background:var(--warn-bg);color:#6b531e;border:1px solid #ecd99c;border-radius:14px;
  padding:13px 16px;font-size:.91rem}
.notice-info{background:var(--info-bg);color:var(--info);border-color:#bcd7e2}

/* ---------- ข้อความแจ้งผล ---------- */
.flash-stack{padding-top:110px;display:grid;gap:10px}
body[data-page="home"] .flash-stack{padding-top:0;position:absolute;left:0;right:0;z-index:60;margin-top:100px}
.flash{display:flex;align-items:flex-start;gap:12px;border-radius:16px;padding:15px 18px;
  border:1px solid;font-weight:600;box-shadow:var(--shadow-sm);background:#fff}
.flash-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-weight:900;flex:0 0 auto;color:#fff;font-size:.85rem}
.flash-text{flex:1}
.flash-close{background:none;border:0;font-size:1.4rem;line-height:1;color:inherit;opacity:.5;padding:0 4px}
.flash-close:hover{opacity:1}
.flash.is-success{border-color:#b6dbc9;background:var(--ok-bg);color:#155e43}
.flash.is-success .flash-icon{background:var(--ok)}
.flash.is-error{border-color:#f0c4bc;background:var(--danger-bg);color:#8c2f22}
.flash.is-error .flash-icon{background:var(--danger)}
.flash.is-warning{border-color:#ecd99c;background:var(--warn-bg);color:#6b531e}
.flash.is-warning .flash-icon{background:var(--warn)}
.flash.is-info{border-color:#bcd7e2;background:var(--info-bg);color:var(--info)}
.flash.is-info .flash-icon{background:var(--info)}

/* ---------- แถบแจ้งปิดรับจองผ่านหน้าเว็บ (อยู่บนสุดของ header ที่ fixed จึงต้องเลื่อนสิ่งที่วางอิงความสูง header ตาม) ---------- */
body[data-booking-closed]{--booking-bar-h:38px}
.booking-closed-bar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 14px;
  min-height:var(--booking-bar-h);padding:6px 14px;background:var(--wine);color:#fff;font-size:.86rem;
  font-weight:700;line-height:1.3;text-align:center}
.booking-closed-bar a{text-decoration:underline;white-space:nowrap}
body[data-booking-closed] .flash-stack{padding-top:calc(110px + var(--booking-bar-h))}
body[data-booking-closed][data-page="home"] .flash-stack{padding-top:0;margin-top:calc(100px + var(--booking-bar-h))}

/* ---------- Header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:80;transition:.3s ease;color:#fff}
.site-header.scrolled,.site-header.header-solid{background:rgba(255,255,255,.94);backdrop-filter:blur(16px);
  box-shadow:0 8px 30px rgba(12,39,32,.08);color:var(--ink)}
.navbar{width:var(--container);margin:auto;height:86px;display:flex;align-items:center;
  justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:13px;min-width:max-content}
/* ความสูงโลโก้: แถบเมนูสูง 86px จึงเหลือระยะขอบบนล่างด้านละ 13px
   max-width เผื่อไว้กว้างพอสำหรับโลโก้แนวนอนยาว ๆ จะได้ไม่ถูกย่อจนเตี้ยลง */
.brand-logo{height:60px;width:auto;max-width:240px;object-fit:contain}
.brand-logo-light{display:none}
.site-header.scrolled .brand-logo-dark,.site-header.header-solid .brand-logo-dark{display:none}
.site-header.scrolled .brand-logo-light,.site-header.header-solid .brand-logo-light{display:block}
.site-footer .brand-logo-light{display:none}
.brand-mark{width:52px;height:52px;border:1.5px solid currentColor;border-radius:50%;display:grid;
  place-items:center;font-family:Georgia,serif;font-size:1.3rem;font-weight:800;position:relative;flex:0 0 auto}
.brand-mark::after{content:"";position:absolute;inset:5px;border:1px solid currentColor;border-radius:50%;opacity:.45}
.brand-copy strong{display:block;font-family:Georgia,"Noto Serif Thai",serif;font-size:1.09rem;
  line-height:1.05;letter-spacing:.02em}
.brand-copy small{font-size:.67rem;letter-spacing:.18em;text-transform:uppercase;opacity:.8}
.nav-links{display:flex;align-items:center;gap:24px;font-size:.94rem;font-weight:700}
.nav-links a{position:relative;padding:10px 0}
.nav-links a::after{content:"";position:absolute;left:0;right:100%;bottom:3px;height:2px;
  background:var(--wine);transition:.25s}
.nav-links a:hover::after,.nav-links a.active::after{right:0}
.nav-actions{display:flex;align-items:center;gap:9px}
.nav-phone{display:flex;align-items:center;gap:7px;font-weight:800;font-size:.9rem;padding:8px 12px;
  border-radius:999px;border:1px solid currentColor;opacity:.9}
.nav-phone:hover{opacity:1}
.menu-toggle{display:none;width:46px;height:46px;border:1px solid currentColor;border-radius:50%;
  background:transparent;color:inherit;font-size:1.3rem}

/* ---------- Hero ---------- */
.hero{min-height:94vh;display:flex;align-items:flex-end;position:relative;color:#fff;
  padding:160px 0 88px;overflow:hidden;background:var(--forest)}
.hero::before{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,31,26,.84) 0%,rgba(8,31,26,.48) 48%,rgba(8,31,26,.08) 100%),
  linear-gradient(0deg,rgba(8,31,26,.4),transparent 45%),
  var(--hero-image,url('../images/cafe-river.jpg')) center/cover no-repeat;transform:scale(1.02)}
.hero::after{content:"";position:absolute;right:-120px;bottom:-180px;width:520px;height:520px;
  border:1px solid rgba(255,255,255,.16);border-radius:50%;
  box-shadow:0 0 0 75px rgba(255,255,255,.035),0 0 0 150px rgba(255,255,255,.025)}
.hero-content{position:relative;z-index:1;max-width:850px}
.hero .eyebrow{color:#f3c8d1}
.hero .eyebrow::before{background:#f3c8d1}
.hero p{font-size:clamp(1.07rem,2vw,1.3rem);max-width:660px;color:rgba(255,255,255,.85)}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.hero-badges{display:flex;gap:20px;flex-wrap:wrap;margin-top:45px}
.hero-badge{display:flex;align-items:center;gap:10px;font-weight:700;font-size:.92rem;color:rgba(255,255,255,.9)}
.hero-badge span{width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:50%;
  display:grid;place-items:center;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}

/* ---------- แถบค้นหา ---------- */
.booking-bar-wrap{position:relative;z-index:5;margin-top:-38px}
.booking-bar{background:#fff;border-radius:22px;box-shadow:var(--shadow);padding:14px;
  display:grid;grid-template-columns:1.1fr 1.1fr .9fr 1.3fr auto;gap:8px;align-items:end}
.field{display:flex;flex-direction:column;gap:5px}
.field label{font-size:.76rem;font-weight:800;color:#60706a;text-transform:uppercase;letter-spacing:.06em}
/* ช่องกรอกข้อความ — ยกเว้นช่องติ๊กและตัวเลือก ซึ่งไม่ควรกว้างเต็มบรรทัดและสูง 48px */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;
  background:#fbfaf7;padding:11px 12px;color:var(--ink);outline:none;min-height:48px}
.field textarea{min-height:auto}

.field input[type="checkbox"],.field input[type="radio"]{
  width:18px;height:18px;min-height:0;flex:0 0 auto;margin:0;padding:0;
  accent-color:var(--wine);cursor:pointer}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--wine);
  box-shadow:0 0 0 3px rgba(122,38,58,.09)}
.field input[aria-invalid="true"],.field.has-error input,.field.has-error select,.field.has-error textarea{
  border-color:var(--danger);background:#fffaf9}
.field-error{color:var(--danger);font-size:.85rem;font-weight:700;margin:5px 0 0}
.field-hint{color:var(--muted);font-size:.83rem;margin:5px 0 0}
.booking-bar .btn{height:48px}

/* ---------- โครงสร้างการ์ด ---------- */
.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:36px}
.section-head .copy{max-width:760px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  box-shadow:0 8px 30px rgba(19,59,49,.06);transition:.3s ease;display:flex;flex-direction:column}
.card:hover{transform:translateY(-7px);box-shadow:var(--shadow-sm)}
/* ลิงก์ครอบรูปการ์ด ต้องเป็น block มิฉะนั้นจะเกิดช่องว่างใต้ภาพจาก line-height */
.card-media-link{display:block;color:inherit;text-decoration:none}
.card-media{aspect-ratio:4/3;overflow:hidden;position:relative;background:#d8ded7}
.card-media img{width:100%;height:100%;object-fit:cover;transition:.5s ease}
.card:hover .card-media img{transform:scale(1.045)}
.card-tag{position:absolute;top:15px;left:15px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-radius:999px;padding:7px 12px;font-size:.78rem;font-weight:800;color:var(--forest)}
.card-status{position:absolute;top:15px;right:15px;border-radius:999px;padding:6px 12px;
  font-size:.76rem;font-weight:800;color:#fff;background:var(--muted)}
.card-status.status-available{background:var(--ok)}
.card-status.status-booked,.card-status.status-unavailable{background:#8d9692}
.card-status.status-maintenance{background:#a37850}
.card-status.status-closed{background:#6b6b6b}
.card-status.status-held{background:var(--gold)}
.card-body{padding:23px;display:flex;flex-direction:column;flex:1}
.card-meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.88rem;margin-bottom:12px}
.card-zone{font-size:.86rem;color:var(--muted);margin:0 0 8px}
.card-note{font-size:.85rem;color:var(--warn);background:var(--warn-bg);border-radius:10px;padding:8px 11px;margin:8px 0 0}
.card-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;
  border-top:1px solid var(--line);padding-top:18px;margin-top:auto}
.price{font-family:Georgia,"Noto Serif Thai",serif;font-size:1.34rem;font-weight:800;color:var(--wine)}
.price small{font-family:inherit;font-size:.72rem;color:var(--muted);font-weight:600}
.price-sub{font-size:.78rem;color:var(--muted);margin-top:2px}

/* ---------- เรื่องราว ---------- */
.story-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:55px;align-items:center}
.story-media{position:relative;min-height:560px}
.story-media .main-img{width:88%;height:520px;object-fit:cover;border-radius:36px;box-shadow:var(--shadow)}
.story-media .float-img{position:absolute;right:0;bottom:0;width:47%;height:260px;object-fit:cover;
  border:8px solid #fbfaf7;border-radius:26px;box-shadow:var(--shadow-sm)}
.story-stamp{position:absolute;right:2%;top:5%;width:128px;height:128px;background:var(--wine);color:#fff;
  border-radius:50%;display:grid;place-items:center;text-align:center;transform:rotate(7deg);
  font-family:Georgia,"Noto Serif Thai",serif;font-weight:800;box-shadow:var(--shadow-sm)}
.feature-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:30px 0}
.feature{display:flex;gap:13px;align-items:flex-start}
.feature strong{display:block;margin-bottom:2px}
.feature p{font-size:.9rem;color:var(--muted);margin:0}

/* ---------- กิจกรรม ---------- */
.experience-strip{background:var(--forest);color:#fff;overflow:hidden}
.experience-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.experience-card{min-height:360px;border-radius:24px;overflow:hidden;position:relative;display:flex;
  align-items:flex-end;padding:23px;background:#243}
.experience-card::before{content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(7,27,22,.85),rgba(7,27,22,.08) 70%)}
.experience-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.experience-card .content{position:relative;z-index:1}
.experience-card p{color:rgba(255,255,255,.76);font-size:.9rem;margin:0}
.experience-card:nth-child(2),.experience-card:nth-child(4){transform:translateY(28px)}

.event-strip{margin-top:70px;border-top:1px solid rgba(255,255,255,.14);padding-top:32px}
.event-strip-title{font-size:1.2rem;color:#fff;margin-bottom:16px}
.event-strip-list{display:flex;gap:12px;flex-wrap:wrap}
.event-chip{display:flex;flex-direction:column;gap:3px;background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:13px 18px;transition:.25s}
.event-chip:hover{background:rgba(255,255,255,.15)}
.event-chip-date{font-size:.78rem;color:#f3c8d1;font-weight:800}
.event-chip-title{font-weight:700;font-size:.94rem}

/* ---------- รีวิว ---------- */
.review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px}
.quote{background:var(--cream);border-radius:32px;padding:38px;position:relative}
.quote::before{content:"\201C";font-family:Georgia,serif;font-size:6rem;line-height:1;position:absolute;
  right:26px;top:8px;color:rgba(122,38,58,.12)}
.rating{color:#c88728;letter-spacing:.15em;margin-bottom:12px}
.rating-dim{opacity:.25}
.quote blockquote{font-family:Georgia,"Noto Serif Thai",serif;font-size:clamp(1.05rem,1.6vw,1.3rem);
  margin:0 0 18px;position:relative;z-index:1}
.quote cite{font-style:normal;color:var(--muted);font-weight:700;font-size:.9rem}

/* ---------- CTA ---------- */
.cta-panel{border-radius:36px;padding:66px;
  background:linear-gradient(120deg,rgba(10,42,34,.94),rgba(122,38,58,.82)),
  var(--cta-image,url('../images/river-seat.jpg')) center/cover;color:#fff;display:flex;align-items:center;
  justify-content:space-between;gap:40px;box-shadow:var(--shadow)}
.cta-panel p{color:rgba(255,255,255,.78);max-width:650px}

/* ---------- หน้าติดต่อบนหน้าแรก ---------- */
.home-contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px;align-items:center}
/* min-width:0 กันเนื้อหายาว เช่น ที่อยู่หรืออีเมล ดันคอลัมน์จนล้นกริด */
.home-contact-info{min-width:0}
.contact-quick{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}

/* ---------- หน้าย่อย ---------- */
.page-hero{min-height:430px;padding:175px 0 70px;display:flex;align-items:end;position:relative;
  color:#fff;background:var(--forest);overflow:hidden}
.page-hero::before{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(9,34,28,.86),rgba(9,34,28,.34)),
  var(--page-bg,url('../images/camp-lawn.jpg')) center/cover no-repeat}
.page-hero .container{position:relative;z-index:1}
.breadcrumbs{display:flex;gap:9px;align-items:center;color:rgba(255,255,255,.72);font-size:.88rem;
  margin-bottom:18px;flex-wrap:wrap}
.breadcrumbs a:hover{color:#fff;text-decoration:underline}
.page-hero h1{font-size:clamp(2.4rem,5.5vw,4.6rem)}
.page-hero p{max-width:660px;color:rgba(255,255,255,.85);font-size:1.1rem}

/* ---------- ตัวกรอง ---------- */
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.filter-btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 16px;
  font-weight:750;color:var(--forest);transition:.2s}
.filter-btn.active,.filter-btn:hover{background:var(--forest);color:#fff;border-color:var(--forest)}
.filter-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;margin-bottom:26px}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:end}
.filter-checks{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.filter-check{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);
  border-radius:999px;padding:8px 14px;font-size:.87rem;font-weight:700;cursor:pointer;transition:.2s;background:#fff}
.filter-check:hover{border-color:var(--wine)}
.filter-check input{accent-color:var(--wine);margin:0}
.filter-check:has(input:checked){background:var(--cream);border-color:var(--wine);color:var(--wine)}
.result-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;
  flex-wrap:wrap;margin-bottom:22px}
.result-count{font-weight:800;color:var(--forest)}

.room-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}
.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.pill{background:var(--cream);border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:750;color:var(--forest)}

/* ---------- สถานะว่าง / ว่างเปล่า ---------- */
.empty-state{text-align:center;padding:60px 24px;background:#fff;border:1px dashed var(--line);
  border-radius:24px;color:var(--muted)}
.empty-state strong,.empty-state p:first-child{color:var(--ink);font-weight:800;font-size:1.1rem}
.loading-state{display:flex;align-items:center;justify-content:center;gap:12px;padding:40px;color:var(--muted)}
.spinner{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--wine);
  border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- หน้ารายละเอียดที่พัก ---------- */
.detail-layout{display:grid;grid-template-columns:1fr 390px;gap:38px;align-items:start}
/* แกลเลอรี 5 รูป — รูปแรกใหญ่ซ้าย ที่เหลือจัดกริด 2x2 ด้านขวา (grid auto-placement ไล่เติมช่องที่เหลือให้เอง) */
.detail-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;
  height:550px;margin-bottom:40px}
.detail-gallery img{width:100%;height:100%;object-fit:cover;border-radius:18px;cursor:zoom-in}
.detail-gallery img:first-child{grid-row:1/3;border-radius:28px}
.detail-content h1{font-size:clamp(2.2rem,4.5vw,3.6rem)}
.sticky-book{position:sticky;top:110px;background:#fff;border:1px solid var(--line);border-radius:26px;
  padding:26px;box-shadow:var(--shadow-sm)}
.sticky-book .price{font-size:1.75rem;margin-bottom:16px}
.amenities{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:25px 0}
.amenity{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:12px;font-size:.92rem}
.amenity-icon{color:var(--wine);font-weight:900}
.rules{background:var(--cream);border-radius:22px;padding:24px;margin-top:32px}
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:24px 0}
.spec{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;text-align:center}
.spec-value{font-family:Georgia,serif;font-size:1.4rem;font-weight:800;color:var(--forest);display:block}
.spec-label{font-size:.82rem;color:var(--muted)}

/* ปฏิทินวันว่าง */
.availability-calendar{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;margin-top:28px}
.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.calendar-dow{text-align:center;font-size:.78rem;font-weight:800;color:var(--muted);padding:6px 0}
.calendar-day{aspect-ratio:1;border-radius:10px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;font-size:.82rem;font-weight:700;background:#f4f6f4;color:var(--muted);gap:1px}
.calendar-day.is-available{background:var(--ok-bg);color:#155e43}
.calendar-day.is-full{background:#f0f1f0;color:#9aa5a0;text-decoration:line-through}
.calendar-day.is-closed{background:#f7ede4;color:#a37850}
.calendar-day.is-past{opacity:.35}
.calendar-day small{font-size:.66rem;font-weight:600;opacity:.85}
.calendar-legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px;font-size:.82rem;color:var(--muted)}
.calendar-legend i{width:12px;height:12px;border-radius:4px;display:inline-block;margin-right:5px;vertical-align:-1px}

/* ---------- ระบบจอง ---------- */
.booking-layout{display:grid;grid-template-columns:1fr 380px;gap:35px;align-items:start}
.booking-form-card,.summary-card,.contact-card{background:#fff;border:1px solid var(--line);
  border-radius:26px;padding:30px;box-shadow:0 10px 36px rgba(17,49,41,.06)}
.form-section{padding:0 0 30px;margin-bottom:30px;border-bottom:1px solid var(--line)}
.form-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.form-section h2{font-size:1.7rem}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.form-grid .full{grid-column:1/-1}
.steps{display:flex;gap:10px;margin-bottom:30px;list-style:none;padding-left:0}
.step{flex:1;border-radius:14px;background:#edf0ed;padding:11px;text-align:center;font-weight:800;
  font-size:.84rem;color:#78837f;transition:.25s}
.step.active{background:var(--forest);color:#fff}
.step.done{background:var(--ok-bg);color:#155e43}

.addon{display:flex;justify-content:space-between;gap:15px;align-items:center;border:1px solid var(--line);
  border-radius:15px;padding:14px;margin-bottom:10px;transition:.2s}
.addon:has(input:checked){border-color:var(--wine);background:#fffafb}
.addon label{display:flex;gap:11px;align-items:flex-start;cursor:pointer;flex:1}
.addon input{margin-top:5px;accent-color:var(--wine);flex:0 0 auto}
.addon-price{text-align:right;white-space:nowrap}
.addon-qty{width:74px;min-height:40px;text-align:center}

.summary-card{position:sticky;top:110px}
.summary-line{display:flex;justify-content:space-between;gap:18px;margin:10px 0;color:#55615d}
.summary-line.total{border-top:1px solid var(--line);padding-top:17px;margin-top:17px;
  font-size:1.2rem;color:var(--ink);font-weight:900}
.summary-line.deposit{color:var(--wine);font-weight:800}
.summary-card .thumb{width:100%;height:170px;object-fit:cover;border-radius:18px;margin-bottom:18px}
.summary-nights{background:#fbfaf7;border-radius:14px;padding:14px;margin:14px 0;font-size:.86rem}
.summary-nights-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;color:#55615d}
.discount-text{color:var(--ok)!important;font-weight:800}

.hold-timer{display:flex;align-items:center;gap:10px;background:var(--warn-bg);border:1px solid #ecd99c;
  border-radius:14px;padding:12px 15px;margin-bottom:18px;font-weight:700;color:#6b531e;font-size:.9rem}
.hold-timer.is-urgent{background:var(--danger-bg);border-color:#f0c4bc;color:#8c2f22}
.hold-timer-count{font-family:Georgia,serif;font-size:1.15rem;font-weight:900}

/* ---------- โปรโมชั่น ---------- */
.promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.promo-card{background:#fff;border:1px solid var(--line);border-radius:26px;overflow:hidden;
  box-shadow:0 10px 35px rgba(17,49,41,.07);display:flex;flex-direction:column;position:relative}
.promo-card.featured{border-color:rgba(122,38,58,.36);box-shadow:0 18px 45px rgba(122,38,58,.13)}
.promo-visual{min-height:205px;padding:28px;color:#fff;display:flex;flex-direction:column;
  justify-content:space-between;position:relative;background:linear-gradient(135deg,var(--forest),#32705d)}
.promo-visual[style*="--promo-image"]::before{content:"";position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(10,42,34,.88),rgba(122,38,58,.72)),var(--promo-image) center/cover}
.promo-visual>*{position:relative;z-index:1}
.promo-visual-1{background:linear-gradient(135deg,var(--forest),#32705d)}
.promo-visual-2{background:linear-gradient(135deg,#7a263a,#c16a75)}
.promo-visual-3{background:linear-gradient(135deg,#8a6035,#d0a15c)}
.promo-visual-4{background:linear-gradient(135deg,#20556c,#62a7ad)}
.promo-code{display:inline-flex;align-self:flex-start;background:rgba(255,255,255,.16);
  border:1px dashed rgba(255,255,255,.7);padding:7px 13px;border-radius:999px;font-weight:900;letter-spacing:.08em}
.promo-big{font-family:Georgia,"Noto Serif Thai",serif;font-size:2.1rem;line-height:1.05;font-weight:800}
.promo-body{padding:26px;display:flex;flex-direction:column;flex:1}
.promo-body .btn{margin-top:auto}
.promo-terms{font-size:.84rem;color:var(--muted);margin:12px 0 20px}
.promo-conditions{list-style:none;padding:0;margin:12px 0 20px;font-size:.85rem;color:var(--muted);display:grid;gap:6px}
.promo-conditions li{display:flex;gap:8px;align-items:flex-start}
.promo-conditions li::before{content:"✓";color:var(--wine);font-weight:900;flex:0 0 auto}
.promo-remaining{display:inline-block;background:var(--warn-bg);color:#6b531e;border-radius:999px;
  padding:5px 12px;font-size:.8rem;font-weight:800;margin-bottom:12px}
.promo-strip{background:linear-gradient(135deg,#f1e5d1,#fff);border:1px solid var(--line);
  border-radius:30px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.promo-selection-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.promo-select-card{border:1px solid var(--line);border-radius:17px;padding:15px;background:#fff;
  text-align:left;transition:.2s;cursor:pointer;display:block;width:100%}
.promo-select-card:hover,.promo-select-card.active{border-color:var(--wine);box-shadow:0 0 0 3px rgba(122,38,58,.09)}
.promo-select-card.active{background:#fffafb}
.promo-select-card.invalid{border-color:#d88b7d;background:#fff6f3}
.promo-select-card strong{display:block;letter-spacing:.05em}
.promo-select-card span{font-size:.86rem;color:var(--muted)}
.coupon-row{display:flex;gap:10px}
.coupon-row input{flex:1;border:1px solid var(--line);border-radius:12px;padding:11px 12px;
  background:#fbfaf7;min-height:48px;text-transform:uppercase}
.promo-feedback{margin-top:12px;font-size:.9rem;font-weight:700;display:none}
.promo-feedback.is-visible{display:block}
.promo-feedback.is-valid{color:var(--ok)}
.promo-feedback.is-invalid{color:var(--danger)}

/* ---------- แผนผังพื้นที่ ---------- */
.site-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px;align-items:start}
.site-map-shell{background:#fff;border:1px solid var(--line);border-radius:30px;padding:15px;
  box-shadow:var(--shadow-sm)}
.site-map-canvas{position:relative;aspect-ratio:1200/760;border-radius:22px;overflow:hidden;
  background:#e7ecd9;touch-action:pan-x pan-y pinch-zoom}
.site-map-canvas>img{width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.site-map-viewport{overflow:auto;border-radius:22px}

/* ขนาดวงกลมมาจากการตั้งค่าหลังบ้าน (--map-hotspot-size) ปรับได้ที่ตั้งค่า > ธีม
   clamp() กันไว้ไม่ให้เล็ก/ใหญ่จนใช้งานไม่ได้แม้ผู้ดูแลใส่ค่าแปลก ๆ มา
   บริบทอื่น (แผนผังย่อ/จอเล็ก) กำหนด --hs ใหม่เป็นสัดส่วนของค่านี้ ไม่ใช่ตัวเลขคงที่แยกกัน
   เพื่อให้ปรับค่าเดียวแล้วเปลี่ยนสัดส่วนกันทั้งหมดโดยอัตโนมัติ */
.map-hotspot{position:absolute;transform:translate(-50%,-50%);
  --hs:clamp(18px, var(--map-hotspot-size, 30px), 56px);
  width:var(--hs);height:var(--hs);border-radius:50%;
  border:2px solid #fff;background:var(--forest);color:#fff;box-shadow:0 4px 11px rgba(12,42,34,.24);
  display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;
  transition:.2s;z-index:3;padding:0}
.map-hotspot span{font-weight:950;font-size:calc(var(--hs) * .22)}
/* สถานะสื่อสารผ่านสีวงกลม + คำอธิบายด้านล่างแผนผังอยู่แล้ว (.map-legend) และผ่าน title
   แอตทริบิวต์ตอน hover — ไม่ต้องซ้อนคำว่า "ว่าง" ไว้ในวงกลมเล็ก ๆ อีกบรรทัด เพราะทำให้
   อ่านยากและบังคับให้วงกลมต้องใหญ่กว่าที่ควรเพื่อรองรับสองบรรทัด */
.map-hotspot small{display:none}
.map-hotspot:hover:not(:disabled){transform:translate(-50%,-50%) scale(1.15);z-index:5}
.map-hotspot:focus-visible{outline:3px solid #fff;outline-offset:3px;z-index:6}
.map-hotspot.status-available{background:var(--forest)}
.map-hotspot.status-booked,.map-hotspot.status-unavailable{background:#8d9692;cursor:not-allowed;opacity:.8}
.map-hotspot.status-maintenance{background:#a37850;cursor:not-allowed;opacity:.85}
.map-hotspot.status-closed{background:#6b6b6b;cursor:not-allowed;opacity:.8}
.map-hotspot.status-held{background:var(--gold);cursor:not-allowed}
.map-hotspot.selected{background:var(--wine);
  box-shadow:0 0 0 4px rgba(122,38,58,.18),0 6px 16px rgba(122,38,58,.3);
  transform:translate(-50%,-50%) scale(1.15);z-index:7}

.map-side-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:26px;
  box-shadow:var(--shadow-sm);position:sticky;top:110px}
.map-side-image{width:100%;height:160px;object-fit:cover;border-radius:18px;margin-bottom:16px}

/* กรอบแทนภาพเมื่อยังไม่ได้เลือกจุด — สูงเท่ารูปจริงเพื่อไม่ให้แผงกระตุกตอนเลือก */
.map-side-placeholder{width:100%;height:160px;border-radius:18px;margin-bottom:16px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(160deg,#f2f5f2,#e7ece7);
  border:1.5px dashed rgba(23,63,53,.22);color:var(--forest);text-align:center;padding:16px}
.map-side-placeholder svg{width:38px;height:38px;opacity:.55}
.map-side-placeholder span{font-size:.83rem;line-height:1.5;color:var(--muted)}
.map-legend{display:flex;gap:15px;flex-wrap:wrap;margin:14px 0 5px}
.legend-item{display:flex;align-items:center;gap:7px;font-size:.82rem;color:var(--muted)}
.legend-dot{width:13px;height:13px;border-radius:50%;background:var(--forest);flex:0 0 auto}
.legend-dot.selected{background:var(--wine)}
.legend-dot.held{background:var(--gold)}
.legend-dot.booked,.legend-dot.unavailable{background:#8d9692}
.legend-dot.maintenance{background:#a37850}
.legend-dot.closed{background:#6b6b6b}
.map-selection-empty{color:var(--muted)}
.map-side-card [data-map-book]{margin-top:17px;width:100%}
.map-help{margin-top:13px;font-size:.82rem;color:var(--muted)}
.map-date-bar{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;
  margin-bottom:22px;display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end}
.map-zoom-controls{display:flex;gap:8px;margin-top:12px}
.map-zoom-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;
  font-size:1.2rem;font-weight:800;color:var(--forest);display:grid;place-items:center}
.map-zoom-btn:hover{background:var(--forest);color:#fff}

.unit-select-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.map-mini{margin-top:18px}
.map-mini .site-map-shell{padding:10px}
.map-mini .map-hotspot{--hs:calc(clamp(18px, var(--map-hotspot-size, 30px), 56px) * .87);border-width:2px}
.map-mini .site-map-canvas{border-radius:16px}

/* ---------- แกลเลอรี ---------- */
.gallery-grid{columns:3 280px;column-gap:16px}
.gallery-item{break-inside:avoid;margin-bottom:16px;border-radius:20px;overflow:hidden;cursor:zoom-in;
  position:relative;background:#ddd}
.gallery-item img{width:100%;height:auto;display:block;transition:.35s}
.gallery-item:hover img{transform:scale(1.03)}
.gallery-item::after{content:"ดูภาพ";position:absolute;right:12px;bottom:12px;background:rgba(255,255,255,.9);
  border-radius:999px;padding:6px 11px;font-size:.76rem;font-weight:800;opacity:0;transform:translateY(4px);transition:.25s}
.gallery-item:hover::after{opacity:1;transform:none}
.lightbox{position:fixed;inset:0;background:rgba(4,18,15,.94);z-index:120;display:none;
  align-items:center;justify-content:center;padding:30px;flex-direction:column;gap:16px}
.lightbox.open{display:flex}
.lightbox img{max-width:min(1100px,92vw);max-height:80vh;border-radius:16px}
.lightbox-caption{color:rgba(255,255,255,.85);font-size:.92rem;text-align:center;max-width:700px}
.lightbox-close{position:absolute;right:25px;top:20px;background:#fff;color:#111;border:0;width:46px;
  height:46px;border-radius:50%;font-size:1.4rem}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.9);
  border:0;width:50px;height:50px;border-radius:50%;font-size:1.4rem;color:#111}
.lightbox-prev{left:22px}
.lightbox-next{right:22px}

/* ---------- ติดต่อ / FAQ ---------- */
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:25px}
.contact-stack{display:grid;gap:18px}
.contact-card h3{font-family:inherit}
.contact-item{display:flex;gap:13px;align-items:flex-start;margin:18px 0}
.map-frame{width:100%;min-height:480px;border:0;border-radius:26px;background:#dde5df}
.faq{max-width:900px;margin:0 auto}
.faq details{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin-bottom:12px}
.faq summary{cursor:pointer;font-weight:850;list-style:none;display:flex;justify-content:space-between;gap:20px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.3rem;color:var(--wine);flex:0 0 auto}
.faq details[open] summary::after{content:"\2013"}
.faq details p{color:var(--muted);margin:14px 0 0}

/* ---------- ยืนยันการจอง ---------- */
.confirm-box{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:32px;
  padding:48px;box-shadow:var(--shadow)}
.confirm-head{text-align:center;margin-bottom:30px}
.confirm-icon{width:84px;height:84px;border-radius:50%;background:var(--ok-bg);color:var(--ok);
  display:grid;place-items:center;margin:0 auto 22px;font-size:2.2rem}
.confirm-icon.is-pending{background:var(--warn-bg);color:var(--warn)}
.booking-code{display:inline-block;background:var(--cream);border-radius:999px;padding:10px 20px;
  font-weight:900;color:var(--wine);letter-spacing:.08em;font-size:1.1rem}
.confirm-details{background:#fbfaf7;border-radius:20px;padding:24px;margin:26px 0}
.detail-row{display:flex;justify-content:space-between;gap:18px;padding:9px 0;
  border-bottom:1px dashed var(--line);flex-wrap:wrap}
.detail-row:last-child{border-bottom:0}
.detail-row dt{color:var(--muted);font-size:.92rem;margin:0}
.detail-row dd{margin:0;font-weight:700;text-align:right}
.payment-box{background:var(--cream);border-radius:22px;padding:26px;margin:26px 0}
.payment-amount{font-family:Georgia,serif;font-size:2.2rem;font-weight:900;color:var(--wine)}
.bank-detail{display:grid;gap:8px;margin-top:16px;font-size:.95rem}
.bank-detail-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid rgba(23,63,53,.1)}
.copy-btn{background:none;border:1px solid var(--line);border-radius:8px;padding:3px 9px;
  font-size:.78rem;font-weight:800;color:var(--forest)}
.copy-btn:hover{background:var(--forest);color:#fff}
.countdown{display:inline-flex;align-items:center;gap:8px;background:var(--warn-bg);border:1px solid #ecd99c;
  border-radius:999px;padding:8px 16px;font-weight:800;color:#6b531e;font-size:.9rem}

.status-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 15px;
  font-weight:800;font-size:.88rem}
.status-badge.is-pending{background:#eef1ef;color:#5c6a65}
.status-badge.is-awaiting{background:var(--warn-bg);color:#6b531e}
.status-badge.is-review{background:var(--info-bg);color:var(--info)}
.status-badge.is-confirmed{background:var(--ok-bg);color:#155e43}
.status-badge.is-checkedin{background:#e3edf9;color:#1e4f80}
.status-badge.is-checkedout{background:#eef1ef;color:#5c6a65}
.status-badge.is-cancelled{background:var(--danger-bg);color:#8c2f22}
.status-badge.is-noshow{background:#f4e9e4;color:#8a5a3c}
.status-badge.is-default{background:#eef1ef;color:#5c6a65}

.timeline{position:relative;margin-top:26px}
.timeline::before{content:"";position:absolute;left:20px;top:6px;bottom:6px;width:2px;background:var(--line)}
.timeline-item{position:relative;padding-left:58px;margin-bottom:22px}
.timeline-item::before{content:"";position:absolute;left:12px;top:5px;width:17px;height:17px;
  border:5px solid #fbfaf7;background:var(--wine);border-radius:50%;box-shadow:0 0 0 1px var(--wine)}
.timeline-item strong{color:var(--wine);display:block}
.timeline-item time{font-size:.84rem;color:var(--muted)}

.slip-list{display:grid;gap:12px;margin-top:16px}
.slip-item{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:13px}
.slip-thumb{width:64px;height:64px;object-fit:cover;border-radius:12px;flex:0 0 auto;background:#eee}
.slip-meta{flex:1;font-size:.88rem}
.upload-zone{border:2px dashed var(--line);border-radius:20px;padding:30px;text-align:center;
  background:#fbfaf7;transition:.25s;cursor:pointer}
.upload-zone:hover,.upload-zone.is-dragover{border-color:var(--wine);background:#fffafb}
.upload-zone input[type="file"]{display:none}
.upload-preview{max-width:220px;margin:16px auto 0;border-radius:14px}

/* ---------- กิจกรรม ---------- */
.featured-experience{display:grid;grid-template-columns:1.1fr .9fr;gap:0;background:#fff;
  border:1px solid var(--line);border-radius:34px;overflow:hidden;margin-bottom:30px;min-height:440px}
.featured-experience img{width:100%;height:100%;object-fit:cover}
.featured-experience .copy{padding:52px;display:flex;flex-direction:column;justify-content:center}
.featured-experience:nth-child(even) .copy{order:-1}

.event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.event-card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;
  display:flex;flex-direction:column;transition:.3s}
.event-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-sm)}
.event-card img{width:100%;height:190px;object-fit:cover}
.event-card-body{padding:22px;display:flex;flex-direction:column;flex:1}
.event-date{display:inline-flex;align-items:center;gap:7px;background:var(--cream);color:var(--wine);
  border-radius:999px;padding:5px 13px;font-size:.82rem;font-weight:800;margin-bottom:12px;align-self:flex-start}

/* ---------- เนื้อหาทั่วไป ---------- */
.prose{max-width:820px;margin:0 auto;font-size:1.05rem}
.prose h2{font-size:1.9rem;margin-top:1.8em}
.prose h2:first-child{margin-top:0}
.prose ul,.prose ol{padding-left:1.4em;margin-bottom:1.2em}
.prose li{margin-bottom:.5em}
.prose a{color:var(--wine);font-weight:700;text-decoration:underline}

/* ---------- Pagination ---------- */
.pagination{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:36px}
.pagination a,.pagination span{min-width:42px;height:42px;display:grid;place-items:center;
  border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:700;padding:0 12px}
.pagination a:hover{background:var(--forest);color:#fff;border-color:var(--forest)}
.pagination .is-current{background:var(--forest);color:#fff;border-color:var(--forest)}
.pagination .is-disabled{opacity:.4;pointer-events:none}

/* ---------- Cookie Consent ---------- */
.cookie-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:140;background:#fff;
  border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:20px 24px;
  animation:slideUp .4s ease}
@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.cookie-consent-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;
  max-width:1180px;margin:0 auto;flex-wrap:wrap}
.cookie-consent-text{flex:1;min-width:280px}
.cookie-consent-text p{font-size:.88rem;color:var(--muted);margin:5px 0 0}
.cookie-consent-text a{color:var(--wine);font-weight:700;text-decoration:underline}
.cookie-consent-actions{display:flex;gap:10px;flex-wrap:wrap}
.cookie-form{margin:0}

/* ---------- Toast ---------- */
.toast{position:fixed;right:25px;bottom:25px;background:var(--forest);color:#fff;border-radius:14px;
  padding:14px 18px;box-shadow:var(--shadow);z-index:150;transform:translateY(25px);opacity:0;
  pointer-events:none;transition:.3s;max-width:min(420px,calc(100% - 50px))}
.toast.show{transform:none;opacity:1}
.toast.is-error{background:var(--danger)}
.toast.is-success{background:var(--ok)}

.fade-up{opacity:0;transform:translateY(20px);transition:.65s ease}
.fade-up.visible{opacity:1;transform:none}

/* ---------- กล่องสาเหตุข้อผิดพลาดสำหรับผู้ดูแล ---------- */
.error-admin-detail{max-width:840px;margin:26px auto 0;background:#fff;border:1px solid var(--line);
  border-left:4px solid var(--wine);border-radius:14px;padding:20px 22px;text-align:left}
.error-admin-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.error-admin-head strong{font-size:.94rem;color:var(--wine)}
.error-admin-head .btn{margin-left:auto}
.error-admin-message{margin:0 0 14px;font-weight:700;line-height:1.6;word-break:break-word;
  font-family:Consolas,"Courier New",monospace;font-size:.92rem}
.error-admin-meta{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0;font-size:.86rem}
.error-admin-meta dt{color:var(--muted);font-weight:700}
.error-admin-meta dd{margin:0;font-family:Consolas,"Courier New",monospace;word-break:break-all}
.error-admin-detail details{margin-top:14px}
.error-admin-detail summary{cursor:pointer;font-size:.86rem;color:var(--forest);font-weight:700}
.error-admin-trace{margin:10px 0 0;padding:12px 14px;background:#f5f6f5;border-radius:8px;
  font-family:Consolas,"Courier New",monospace;font-size:.78rem;line-height:1.7;
  overflow-x:auto;white-space:pre;color:#3a4441}

@media(max-width:620px){
  .error-admin-head .btn{margin-left:0;width:100%}
  .error-admin-meta{grid-template-columns:1fr;gap:2px}
}

/* ---------- ส่วนท้ายเว็บไซต์ ----------
   คงรูปแบบเดียวกับต้นแบบ แต่ผูกกับตัวแปรสีเพื่อให้เปลี่ยนธีมจากหลังบ้านได้ */
.site-footer{background:var(--forest-2);color:#fff;margin-top:90px;padding:70px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr 1fr;gap:40px;padding-bottom:45px}
.site-footer p,.site-footer a{color:rgba(255,255,255,.68)}
.site-footer a:hover{color:#fff}
.site-footer .brand,.site-footer .brand-copy strong{color:#fff}
.footer-title{font-weight:900;margin-bottom:15px;color:#fff}
.footer-links{display:grid;gap:9px}
.footer-small{font-size:.82rem;opacity:.75;margin-top:14px}

.socials{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.socials a{width:40px;height:40px;border:1px solid rgba(255,255,255,.22);border-radius:50%;
  display:grid;place-items:center;color:#fff;text-decoration:none;transition:.2s}
.socials a:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.45)}

.footer-bottom{border-top:1px solid rgba(255,255,255,.13);padding-top:22px;display:flex;
  justify-content:space-between;align-items:center;gap:20px;font-size:.82rem;color:rgba(255,255,255,.5)}
.footer-policy-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ---------- หน้าพิมพ์ ---------- */
@media print{
  .site-header,.site-footer,.cookie-consent,.toast,.no-print,.skip-link{display:none!important}
  body{background:#fff}
  .confirm-box{box-shadow:none;border:1px solid #ccc;max-width:100%;padding:20px}
  .page-hero{display:none}
  a[href]::after{content:""}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media(max-width:1050px){
  .nav-links{gap:14px}
  .nav-phone .nav-phone-text{display:none}
  .booking-bar{grid-template-columns:repeat(2,1fr)}
  .booking-bar .btn{grid-column:1/-1}
  .cards{grid-template-columns:repeat(2,1fr)}
  .experience-grid{grid-template-columns:repeat(2,1fr)}
  .experience-card:nth-child(2),.experience-card:nth-child(4){transform:none}
  .room-grid{grid-template-columns:1fr}
  .detail-layout{grid-template-columns:1fr}
  /* .booking-layout ฝัง .map-mini ซึ่งมี .site-map-canvas ตั้ง min-width:680px ไว้ตั้งใจ
     (เหตุผลเดียวกับ .site-map-layout ด้านล่าง) ต้องใช้ minmax(0, ...) มิฉะนั้นทั้งหน้าจองจะล้น */
  .booking-layout{grid-template-columns:minmax(0,1fr)}
  .sticky-book,.summary-card{position:static}
  .contact-grid,.home-contact{grid-template-columns:1fr}
  .promo-grid{grid-template-columns:repeat(2,1fr)}
  /* minmax(0, ...) ไม่ใช่แค่โวหาร — .site-map-canvas ด้านล่างตั้ง min-width:720px ไว้ตั้งใจ
     เพื่อให้เลื่อนดูแผนผังในกรอบเล็ก ๆ ได้ (ดูคอมเมนต์ที่บรรทัดนั้น) หากเขียนแค่ 1fr เฉย ๆ
     แทร็กกริดจะยืดตามความกว้างขั้นต่ำของลูกจนล้นออกนอกกรอบ ดันทั้งหน้าให้กว้างเกิน 375px
     เบราว์เซอร์มือถือจะซูมออกทั้งหน้าเพื่อให้พอดีจอ ทำให้กดจุดบนแผนผังไม่ตรงตำแหน่งอีกด้วย */
  .site-map-layout{grid-template-columns:minmax(0,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr);gap:34px}
  .map-side-card{position:static}
  .map-date-bar{grid-template-columns:1fr 1fr}
}

@media(max-width:820px){
  :root{--container:min(100% - 28px,1180px)}
  .section{padding:70px 0}
  .menu-toggle{display:grid;place-items:center}
  .nav-actions .btn,.nav-phone{display:none}
  .nav-links{position:fixed;inset:86px 14px auto 14px;background:#fff;color:var(--ink);border-radius:22px;
    padding:20px;box-shadow:var(--shadow);display:none;flex-direction:column;align-items:stretch;gap:4px;
    overflow:auto;max-height:calc(100vh - 110px)}
  .nav-links.open{display:flex}
  .nav-links a{padding:13px}
  .site-header:not(.scrolled):not(.header-solid) .nav-links{color:var(--ink)}
  .hero{min-height:88vh}
  .story-grid{grid-template-columns:1fr;gap:35px}
  .story-media{min-height:470px}
  .story-media .main-img{height:430px}
  .feature-list{grid-template-columns:1fr 1fr}
  .featured-experience{grid-template-columns:1fr}
  .featured-experience img{height:300px}
  .featured-experience .copy{padding:34px;order:0!important}
  .cta-panel{padding:42px;align-items:flex-start;flex-direction:column}
  .detail-gallery{height:400px}
  .promo-strip{align-items:flex-start;flex-direction:column}
  .map-hotspot{--hs:calc(clamp(18px, var(--map-hotspot-size, 30px), 56px) * .93)}
  .flash-stack{padding-top:100px}
  body[data-page="home"] .flash-stack{margin-top:96px}
  body[data-booking-closed] .nav-links{top:calc(86px + var(--booking-bar-h));max-height:calc(100vh - 110px - var(--booking-bar-h))}
  body[data-booking-closed] .flash-stack{padding-top:calc(100px + var(--booking-bar-h))}
  body[data-booking-closed][data-page="home"] .flash-stack{margin-top:calc(96px + var(--booking-bar-h))}
}

@media(max-width:620px){
  .navbar{height:76px}
  .nav-links{inset:76px 10px auto 10px}
  body[data-booking-closed] .nav-links{top:calc(76px + var(--booking-bar-h))}
  .brand-copy small{display:none}
  /* แถบเมนูบนมือถือสูง 76px จึงเหลือระยะขอบด้านละ 13px เท่าจอใหญ่ */
  .brand-mark{width:46px;height:46px;font-size:1.15rem}
  .brand-logo{height:50px;max-width:200px}
  .site-footer{margin-top:60px;padding:55px 0 22px}
  .footer-grid{grid-template-columns:1fr;gap:30px;padding-bottom:34px}
  .footer-bottom{flex-direction:column;align-items:flex-start;text-align:left}
  .hero{padding-top:120px;padding-bottom:64px}
  .hero-badges{gap:12px;margin-top:32px}
  .booking-bar-wrap{margin-top:-24px}
  .booking-bar{grid-template-columns:1fr;padding:12px}
  .booking-bar .btn{grid-column:auto}
  .section-head{align-items:flex-start;flex-direction:column}
  .cards{grid-template-columns:1fr}
  .story-media{min-height:370px}
  .story-media .main-img{height:350px;width:92%}
  .story-media .float-img{height:180px;width:52%}
  .story-stamp{width:96px;height:96px;font-size:.82rem}
  .feature-list{grid-template-columns:1fr}
  .experience-grid{grid-template-columns:1fr}
  .experience-card{min-height:300px}
  .quote{padding:28px}
  .cta-panel{padding:32px 22px}
  .page-hero{min-height:360px;padding-top:130px}
  /* จอมือถือ — รูปแรกใหญ่เต็มความกว้างด้านบน อีก 4 รูปจัดกริด 2x2 ด้านล่าง */
  .detail-gallery{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:220px 130px 130px}
  .detail-gallery img:first-child{grid-column:1/-1;grid-row:1;border-radius:18px}
  .amenities,.form-grid{grid-template-columns:1fr}
  .form-grid .full{grid-column:auto}
  .booking-form-card,.summary-card,.contact-card{padding:22px}
  .steps{font-size:.72rem;gap:6px}
  .step{padding:9px 4px}
  .gallery-grid{columns:2 140px}
  .confirm-box{padding:28px 20px}
  .promo-grid,.promo-selection-grid{grid-template-columns:1fr}
  .coupon-row{flex-direction:column}
  .unit-select-row,.map-date-bar{grid-template-columns:1fr}
  .site-map-shell{padding:8px;border-radius:20px}
  .map-side-card{padding:22px}
  .cookie-consent{left:10px;right:10px;bottom:10px;padding:18px}
  .cookie-consent-actions{width:100%}
  .cookie-consent-actions .btn,.cookie-form{flex:1}
  .cookie-form .btn{width:100%}
  .toast{right:12px;left:12px;bottom:12px;max-width:none}
  .detail-row{flex-direction:column;gap:2px}
  .detail-row dd{text-align:left}
  .review-grid{grid-template-columns:1fr}
}

/* แผนผังบนมือถือ — เลื่อนดูแนวนอนได้เมื่อภาพใหญ่เกินหน้าจอ */
@media(max-width:620px){
  .site-map-viewport{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .site-map-canvas{min-width:720px;aspect-ratio:1200/760}
  .map-mini .site-map-canvas{min-width:680px}
  .map-hotspot{--hs:calc(clamp(18px, var(--map-hotspot-size, 30px), 56px) * .87);border-width:2px}
}
