/* =====================================================================
   Chiang Khan Stay — หน้าบ้าน
   ธีม "สวนและไม้สัก": พื้นครีม · เขียวป่า (แบรนด์) · ส้มดินเผา (ปุ่มกด) · น้ำตาลไม้สัก (ตัวอักษร)
   สัดส่วน 60 / 30 / 10 — สีเว็บเป็นกรอบให้รูปที่พัก ไม่แข่งกับรูป
   ================================================================== */

:root {
    /* 60% พื้นสีกลางโทนอุ่น */
    --bg: #f7f2e9;
    --bg-tint: #ecf0e5;
    --bg-wood: #f1e8db;
    --surface: #fffdf9;

    /* ตัวอักษร: น้ำตาลไม้สัก */
    --ink: #3a2a20;
    --text: #4a3b31;
    --muted: #76675b;
    --line: #e7ddcf;
    --line-strong: #d6c8b5;

    /* 30% สีแบรนด์: เขียวป่า / สวน */
    --green-50: #edf2ea;
    --green-100: #dce6d8;
    --green-200: #bdd0bf;
    --green-400: #7b9a83;
    --green-500: #55785f;
    --green-600: #3f6450;
    --green-700: #2f5140;
    --green-900: #1f3529;

    /* 10% สีปุ่มกด: ส้มดินเผา (หลังคากระเบื้อง) */
    --clay-50: #f8ede5;
    --clay-100: #f0dccf;
    --clay-500: #c4683f;
    --clay-600: #b4552f;
    --clay-700: #9a4424;

    --wood: #6b3a2a;
    --star: #d9a441;
    --line-brand: #06c755;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(58, 42, 32, .07);
    --shadow: 0 1px 2px rgba(58, 42, 32, .05), 0 12px 30px -14px rgba(58, 42, 32, .20);
    --shadow-lg: 0 24px 60px -24px rgba(58, 42, 32, .34);

    --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
    --font-head: "Noto Serif Thai", "IBM Plex Sans Thai", Georgia, serif;
    --header-h: 72px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 820px; }

/* ---------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: 10px 20px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .94rem; }
.btn-block { width: 100%; }
/* ปุ่มหลัก = สีส้มดินเผา ใช้เฉพาะการกระทำสำคัญ (ติดต่อ/จอง/ค้นหา) */
.btn-primary { background: var(--clay-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(154, 68, 36, .8); }
.btn-primary:hover { background: var(--clay-700); color: #fff; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-soft { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.btn-soft:hover { background: var(--green-100); color: var(--green-900); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-700); }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { background: var(--green-50); color: var(--green-900); }
.btn-line { background: var(--line-brand); color: #fff; }
.btn-line:hover { background: #05b04b; color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 242, 233, .88);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
    background: linear-gradient(145deg, var(--green-500), var(--green-900)); color: #fff; font-size: 1.25rem;
    box-shadow: 0 6px 14px -6px rgba(31, 53, 41, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.brand-sub { font-size: .78rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block; padding: 8px 14px; border-radius: 999px;
    color: var(--text); text-decoration: none; font-weight: 500;
}
.nav-list a:hover { background: var(--green-50); color: var(--green-700); }
.nav-list a.is-active { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 3px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: .03em; }
.lang-switch a.is-active { background: var(--green-700); color: #fff; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 920px) {
    .nav-toggle { display: grid; place-items: center; }
    .brand-sub { display: none; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .nav-list { flex-direction: column; }
    .nav-list a { padding: 12px 16px; font-size: 1.05rem; }
    .nav-actions { justify-content: space-between; }
}

/* ---------------------------------------------------------------------
   Sections / typography
   ------------------------------------------------------------------ */
.section { padding-block: 88px; }
.section-tight { padding-block: 40px 88px; }
.section-tinted { background: var(--bg-tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-center { justify-content: center; text-align: center; }
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55em; margin: 0 0 10px;
    color: var(--clay-700); font-size: .86rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
/* เส้นสั้นนำหน้า ล้อลายไม้ฉลุ */
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .75; }
.section-head-center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .75; }
.prose { color: var(--text); font-size: 1.04rem; }
.prose p:last-child { margin-bottom: 0; }

.page-hero { padding-block: 56px 16px; background: linear-gradient(180deg, var(--bg-wood), var(--bg)); }
.page-title { font-family: var(--font-head); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); font-weight: 600; }
.page-lead { max-width: 680px; margin-top: 10px; color: var(--muted); font-size: 1.08rem; }
.footnote { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 580px; display: flex; align-items: center;
    background: radial-gradient(1200px 500px at 85% -10%, #fcf1e2 0%, transparent 60%), linear-gradient(180deg, #e8ece1 0%, var(--bg) 100%);
}
.hero-illustration { position: absolute; inset: auto 0 0 0; height: 62%; z-index: -1; }
.hero-illustration svg { width: 100%; height: 100%; }
.hero-content { padding-block: 72px 110px; }
.hero-title { max-width: 760px; font-family: var(--font-head); font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); font-weight: 600; line-height: 1.25; }
.hero-subtitle { max-width: 600px; margin-top: 16px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); }

.hero-has-image { min-height: min(84vh, 720px); background: var(--green-900); }
.hero-has-image .hero-content { color: #fff; }
.hero-has-image .hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-has-image .hero-subtitle { color: rgba(255, 255, 255, .92); }
.hero-has-image .eyebrow { color: #f6dcc8; }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
/* เงาโทนน้ำตาลอุ่น เข้ากับไม้สักและหลังคากระเบื้องในรูป */
.hero-slides::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(38, 26, 18, .74) 0%, rgba(38, 26, 18, .38) 55%, rgba(38, 26, 18, .10) 100%),
                linear-gradient(0deg, rgba(38, 26, 18, .45) 0%, transparent 40%);
}
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }

.hero-dots { display: flex; gap: 8px; margin-top: 28px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background-color .3s; }
.hero-dots button.is-active { width: 28px; background: #fff; }

.search-card {
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
    max-width: 720px; margin-top: 32px; padding: 14px;
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text);
}
.search-card .btn { min-height: 52px; padding-inline: 24px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { font-size: .82rem; font-weight: 500; color: var(--muted); padding-left: 4px; }
.field select, .field input {
    width: 100%; min-height: 52px; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
    transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2376675b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:hover, .field input:hover { border-color: var(--line-strong); }
.field select:focus, .field input:focus { outline: none; border-color: var(--green-400); background-color: #fff; box-shadow: 0 0 0 3px var(--green-100); }

@media (max-width: 640px) {
    .hero { min-height: 0; }
    .hero-content { padding-block: 48px 72px; }
    .search-card { grid-template-columns: 1fr 1fr; }
    .search-card .btn { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------
   Intro
   ------------------------------------------------------------------ */
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.intro-text .section-title { margin-bottom: 20px; }
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.stat-list li {
    display: flex; flex-direction: column; gap: 2px; padding: 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; background: var(--green-50); color: var(--green-600); font-size: 1.2rem; }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.stat-value-sm { font-size: 1.6rem; }
.stat-label { font-size: .92rem; color: var(--muted); }

@media (max-width: 860px) {
    .intro-grid { grid-template-columns: 1fr; gap: 36px; }
    .section { padding-block: 64px; }
}

/* ---------------------------------------------------------------------
   Stay cards
   ------------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }

.stay-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.stay-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.stay-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-50); }
.stay-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stay-card:hover .stay-card-media img { transform: scale(1.05); }
.stay-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.stay-card-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.stay-card-title a { color: inherit; text-decoration: none; }
.stay-card-title a:hover { color: var(--green-700); }
.stay-card-summary { margin: 6px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }

.badge {
    display: inline-flex; align-items: center; gap: .35em; padding: 4px 12px;
    border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5;
}
.badge-type { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 252, .94); color: var(--green-700); box-shadow: var(--shadow-sm); }
.badge-static { position: static; background: var(--green-100); box-shadow: none; }
.badge-distance { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 252, .94); color: var(--green-700); }

.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 14px 0 0; padding: 0; }
.facts-compact li { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--text); }
.facts-compact i { color: var(--green-500); }

.amenity-dots { display: flex; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.amenity-dots li { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green-600); }

.stay-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.stay-card-body > .facts + .stay-card-foot, .stay-card-body > .amenity-dots + .stay-card-foot { margin-top: 18px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.price-label { width: 100%; font-size: .8rem; color: var(--muted); line-height: 1.2; }
.price-value { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--clay-700); line-height: 1.3; }
.price-unit { font-size: .9rem; color: var(--muted); }

.placeholder-img {
    display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .6), transparent 50%),
        linear-gradient(135deg, var(--bg-wood), var(--green-100));
    color: var(--green-600); font-size: 2.6rem;
}

/* ---------------------------------------------------------------------
   Attractions
   ------------------------------------------------------------------ */
.attraction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.attraction-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.attraction-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.attraction-media { position: relative; aspect-ratio: 3 / 2; background: var(--green-50); }
.attraction-media img { width: 100%; height: 100%; object-fit: cover; }
.attraction-body { padding: 18px 20px 20px; }
.attraction-title { font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; }
.attraction-body p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 10px; }
.attraction-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------ */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.review-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.review-card { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stars { display: flex; gap: 3px; color: var(--star); }
.stars .is-off { color: var(--line-strong); }
.review-card blockquote { margin: 0; color: var(--text); line-height: 1.7; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; line-height: 1.4; }
.review-card figcaption span { display: flex; flex-direction: column; }
.review-card figcaption .muted { font-size: .85rem; }
.review-avatar { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--clay-100); color: var(--clay-700); font-weight: 600; }

/* ---------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------ */
.section-cta { padding-block: 0 88px; }
.section-tinted + .section-cta { padding-top: 88px; background: var(--bg); }
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
    padding: 44px 48px; border-radius: var(--radius-lg); color: #fff;
    background: radial-gradient(600px 260px at 100% 0%, rgba(196, 104, 63, .35), transparent 65%), linear-gradient(135deg, var(--green-700), var(--green-900));
}
.cta-title { color: #fff; font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .86); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------------------------------------------------------------------
   Stays listing
   ------------------------------------------------------------------ */
.filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 32px; }
.segmented { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 10px 20px; border-radius: 999px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.segmented label:hover span { color: var(--green-700); }
.segmented input:checked + span { background: var(--green-700); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--green-400); outline-offset: 2px; }
.field-inline { min-width: 200px; }
.field-inline select { min-height: 48px; background-color: #fff; }
.filter-count { margin: 0 0 12px auto; color: var(--muted); }
@media (max-width: 640px) { .segmented { width: 100%; } .segmented label { flex: 1; text-align: center; } .segmented span { padding-inline: 8px; } .field-inline { flex: 1; } .filter-count { margin: 0; width: 100%; } }

.empty-state { max-width: 520px; margin: 24px auto; padding: 48px 24px; text-align: center; }
.empty-state > i { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 16px; border-radius: 24px; background: var(--green-50); color: var(--green-500); font-size: 2.2rem; }
.empty-state h1, .empty-state h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.empty-state-lg { padding-block: 80px; }

/* ---------------------------------------------------------------------
   Stay detail
   ------------------------------------------------------------------ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 24px 8px; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb i { font-size: .7rem; }
.stay-header { padding-block: 8px 24px; }
.stay-title { margin-top: 12px; font-family: var(--font-head); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); font-weight: 600; }
.stay-header .page-lead { margin-top: 6px; }

.gallery { display: grid; gap: 10px; height: clamp(320px, 46vw, 500px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-count-1 { grid-template-columns: 1fr; }
.gallery-count-2 { grid-template-columns: 1fr 1fr; }
.gallery-count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-count-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-count-4 .gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-count-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-count-3 .gallery-item:first-child,
.gallery-count-4 .gallery-item:first-child,
.gallery-count-5 .gallery-item:first-child { grid-row: span 2; }
.gallery-item { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--green-50); cursor: zoom-in; min-height: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery-more {
    position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 252, .95); color: var(--ink); font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-sm);
}
.gallery-empty { height: 300px; border-radius: var(--radius-lg); overflow: hidden; }

@media (max-width: 720px) {
    .gallery {
        display: flex; height: auto; gap: 10px; margin-inline: -20px; padding-inline: 20px;
        overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; scrollbar-width: none;
    }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery-item { flex: 0 0 86%; height: 260px; border-radius: var(--radius); scroll-snap-align: center; }
    .gallery-count-1 .gallery-item { flex-basis: 100%; }
}

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(26, 19, 14, .96); color: #fff; }
.lightbox::backdrop { background: rgba(26, 19, 14, .9); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: center; padding: 56px 0 24px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox-figure figcaption { font-size: .9rem; color: rgba(255, 255, 255, .75); }
.lightbox-nav, .lightbox-close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; cursor: pointer; justify-self: center; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) { .lightbox[open] { grid-template-columns: 1fr; } .lightbox-nav { position: absolute; bottom: 24px; } .lightbox-prev { left: 24px; } .lightbox-next { right: 24px; } }

.stay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-block: 40px 88px; }
@media (max-width: 980px) { .stay-layout { grid-template-columns: 1fr; gap: 40px; } }

.facts-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 12px; }
.facts-large li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts-large i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--green-50); color: var(--green-600); font-size: 1.15rem; }
.facts-large span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.facts-large strong { color: var(--ink); font-weight: 600; font-size: .98rem; }
.facts-large small { color: var(--muted); font-size: .8rem; }

.stay-section { padding-block: 32px; border-top: 1px solid var(--line); }
.stay-section:first-of-type { border-top: 0; }
.stay-section-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin-bottom: 18px; }

.bedroom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.bedroom-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.bedroom-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: var(--green-50); color: var(--green-600); font-size: 1.1rem; }
.bedroom-card h3 { font-size: 1.05rem; font-weight: 600; }
.bedroom-beds { margin: 4px 0 10px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.bedroom-meta { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: .9rem; line-height: 1.6; }
.bedroom-meta li { display: flex; gap: 8px; }
.bedroom-meta i { color: var(--green-500); }

.note-box { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--green-50); color: var(--green-900); line-height: 1.6; }
.note-box i { color: var(--green-600); font-size: 1.15rem; line-height: 1.4; }

.amenity-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 32px; }
.amenity-group h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--green-700); margin-bottom: 10px; }
.amenity-list { list-style: none; margin: 0; padding: 0; }
.amenity-list li { display: flex; align-items: center; gap: 12px; padding-block: 7px; color: var(--text); }
.amenity-list i { color: var(--green-500); font-size: 1.1rem; width: 22px; text-align: center; }

.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rule-time { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rule-time i { font-size: 1.3rem; color: var(--green-600); }
.rule-time span { display: flex; flex-direction: column; line-height: 1.35; }
.rule-time small { color: var(--muted); }
.rule-time strong { color: var(--ink); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: flex; gap: 10px; padding-block: 5px; }
.rule-list i { color: var(--green-500); }

/* Booking card */
.stay-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .stay-aside { position: static; } }
.booking-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--clay-500); border-radius: var(--radius-lg); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.booking-price { display: flex; align-items: baseline; gap: 6px; }
.booking-price .price-value { font-size: 2rem; }
.booking-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.estimator { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.estimator-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.estimator .field input, .estimator .field select { min-height: 48px; }
.estimate-hint { display: flex; gap: 8px; margin: 0; font-size: .88rem; color: var(--muted); }
.estimate { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-wood); }
.estimate dl { margin: 0; }
.estimate dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; font-size: .92rem; }
.estimate dt { color: var(--text); }
.estimate dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate .estimate-total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-weight: 600; font-size: 1.02rem; color: var(--clay-700); }
.estimate-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.estimate-warning { color: #9a5b1e; }
.booking-actions { display: grid; gap: 10px; margin-top: 20px; }
.booking-foot { display: flex; gap: 8px; margin: 16px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.booking-foot i { color: var(--green-500); }

/* ---------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------ */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-bottom: 48px; }
.channel-card {
    display: flex; align-items: center; gap: 14px; padding: 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.channel-card:hover { color: var(--text); border-color: var(--green-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.channel-card > i:first-child { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green-600); font-size: 1.35rem; }
.channel-line > i:first-child { background: #e6f9ee; color: var(--line-brand); }
.channel-card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.channel-card strong { color: var(--ink); }
.channel-card small { color: var(--muted); overflow-wrap: anywhere; }
.channel-go { margin-left: auto; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; }
.steps li > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--clay-600); color: #fff; font-weight: 600; }
.steps strong { color: var(--ink); }
.steps p { margin: 2px 0 0; color: var(--muted); }
.address { display: flex; gap: 8px; color: var(--text); }
.address i { color: var(--green-600); }
.map-frame { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--green-50); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; color: var(--green-600); transition: transform .25s; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 18px; color: var(--text); }
.faq-answer p:last-child { margin: 0; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .78); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer:hover { color: #fff; }
.site-footer p { font-size: .95rem; }
.footer-title { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 14px; letter-spacing: .03em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; }
.footer-links i, .footer-address i { color: #e7b597; margin-right: 4px; }
.site-footer { border-top: 4px solid var(--clay-600); }
.footer-times strong { color: #fff; font-weight: 500; }
.footer-bottom { margin-top: 48px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------------
   แถบติดต่อล่างจอ (มือถือ) — ปุ่มอยู่ใกล้นิ้วโป้งเสมอ
   ------------------------------------------------------------------ */
.mobile-cta { display: none; }
@media (max-width: 720px) {
    body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px -18px rgba(58, 42, 32, .45);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .mobile-cta-price { display: flex; flex-direction: column; margin-right: auto; line-height: 1.2; min-width: 0; text-decoration: none; }
    .mobile-cta-price small { font-size: .74rem; color: var(--muted); }
    .mobile-cta-price strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--clay-700); white-space: nowrap; }
    .mobile-cta-price strong span { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--muted); }
    .mobile-cta .btn { min-height: 48px; padding-inline: 16px; flex: 1; }
    .mobile-cta-price ~ .btn { flex: 0 0 auto; }
    .mobile-cta .btn-icon-only { flex: 0 0 48px; width: 48px; padding: 0; font-size: 1.2rem; }
}
