/* ══════════════ House of Happiness — Design System ══════════════ */

:root {
  /* โทนครีม-น้ำตาลโมเดิร์น (คงชื่อตัวแปรเดิมไว้เพื่อไม่ให้กระทบทั้งไฟล์: --gold = น้ำตาลหลัก) */
  --gold: #8a5a34;
  --gold-dark: #6b4226;
  --gold-soft: #f3e8da;
  --dark: #3e2f23;
  --dark-2: #4e3b2c;
  --cream: #f7f1e6;
  --card: #fffcf6;
  --line: #e3d5c2;
  --text: #4a3f35;
  --muted: #8d7f70;
  --green: #06c755; /* LINE */
  --booking-blue: #003580;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(62,47,35,.05), 0 4px 16px rgba(62,47,35,.06);
  --shadow-md: 0 10px 30px rgba(62,47,35,.14);
  --font-head: "Prompt", "Segoe UI", "Noto Sans Thai", sans-serif;
  --font-body: "Sarabun", "Segoe UI", "Noto Sans Thai", sans-serif;
  --font-display: "Playfair Display", "Prompt", "Noto Sans Thai", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text);
  background: var(--cream);
  background-image: radial-gradient(rgba(138,90,52,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.7;
}
h1, h2, h3 { font-family: var(--font-head); }
img { max-width: 100%; }

/* ── Top navigation ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--line);
}
.topnav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.topnav .brand .logo { font-size: 1.2rem; }
.navlinks {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
}
.navlinks a {
  color: #7a6a58;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.navlinks a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }
.navlinks + .nav-right { margin-left: 0; }
@media (max-width: 760px) {
  .navlinks { display: none; }
  .nav-right { margin-left: auto; }
}

/* ── Language toggle ── */
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  background: transparent;
  color: #7a6a58;
  border: none;
  padding: 0.3rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-toggle button.active { background: var(--gold); color: #fff; font-weight: 700; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(160deg, #a06a3f, var(--gold) 55%, var(--gold-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(138, 90, 52, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(138, 90, 52, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-soft); }
.cta-strip .btn-outline { color: #fff; border-color: rgba(255,255,255,0.55); }
.cta-strip .btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-line { background: var(--green); color: #fff; box-shadow: 0 5px 18px rgba(6,199,85,0.35); }
.btn-mail { background: var(--dark); color: #fff; box-shadow: 0 5px 18px rgba(62,47,35,0.3); }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(138,90,52,0.10), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(138,90,52,0.07), transparent 60%),
    linear-gradient(160deg, #fbf7ef 0%, var(--cream) 60%, #f1e6d4 100%);
  color: var(--dark);
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1.5px solid var(--line);
}
.hero .kicker {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--dark);
}
.hero .sub {
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-top: 0.6rem;
}
.hero .divider {
  color: var(--gold);
  letter-spacing: 0.6em;
  margin: 1.1rem 0;
  font-size: 0.8rem;
  opacity: 0.9;
}
.hero .tagline {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: #6b5d4d;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.45rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  color: #6b5d4d;
  box-shadow: var(--shadow-sm);
}
.rating-pill .stars { color: var(--gold); letter-spacing: 0.1em; }
.rating-pill strong { color: var(--gold); }

/* ── Sections ── */
main.site { max-width: 64rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
section { margin-bottom: clamp(3rem, 7vw, 4.5rem); scroll-margin-top: 5rem; }
.sec-head { text-align: center; margin-bottom: 2rem; }
.sec-head::before {
  content: "✦";
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4em;
}
.sec-head h2 {
  font-family: var(--font-display);
  color: var(--dark);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
}
.sec-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 2.5px;
  margin: 0.7rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Room card ── */
.room-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.room-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.room-card .info { flex: 1 1 20rem; }
.room-card .info h3 { color: var(--dark); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.room-card .info p { font-size: 0.95rem; color: var(--muted); }
.room-card .price-box {
  text-align: center;
  padding: 1.3rem 1.8rem;
  background: linear-gradient(160deg, #6b4f38, #4e3a2c);
  border-radius: calc(var(--radius) - 4px);
}
.room-card .price-box .from { font-size: 0.85rem; color: #d9c6b0; }
.room-card .price-box .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #f5d9b8; line-height: 1.2; }
.room-card .price-box .unit { font-size: 0.85rem; color: #d9c6b0; margin-bottom: 0.9rem; }
.room-card .price-box .btn-gold {
  background: #fdf8ef;
  color: var(--gold-dark);
  box-shadow: none;
}
.room-card .price-box .btn-gold:hover { background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: 1.1rem;
}
.gallery figure {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #f1e5d0, #dcc49e);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery figure::before {
  content: attr(data-icon);
  font-size: 2.4rem;
  opacity: 0.55;
}
.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(62,47,35,0.8));
  color: #fff;
  font-size: 0.88rem;
  padding: 1.6rem 0.9rem 0.55rem;
  pointer-events: none;
}

/* ── Amenities ── */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.8rem;
  list-style: none;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-sm);
}
.amenities li .ico {
  flex: 0 0 auto;
  width: 2.3rem; height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.05rem;
}

/* ── Location ── */
address { font-style: normal; font-weight: 500; color: var(--dark); }
.map-embed {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 21rem; border: 0; }

/* ── FAQ ── */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}
details[open] { border-color: var(--gold); }
details summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.6rem; height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 700;
  transition: transform 0.2s ease;
}
details[open] summary::after { content: "–"; transform: rotate(180deg); }
details p { margin-top: 0.7rem; font-size: 0.96rem; color: var(--text); }

/* ── CTA strip ── */
.cta-strip {
  background:
    radial-gradient(50rem 20rem at 90% 0%, rgba(245,217,184,0.15), transparent 60%),
    linear-gradient(150deg, #4e3a2c, #3e2f23);
  color: #fff;
  text-align: center;
  padding: clamp(2.8rem, 7vw, 4rem) 1.5rem;
}
.cta-strip h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; }
.cta-strip p { margin: 0.7rem 0 1.6rem; color: #e4d5c3; }
.cta-strip .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ── Footer ── */
footer.site {
  background: #33271d;
  padding: clamp(2.2rem, 5vw, 3.2rem) 1.5rem 5.5rem;
  font-size: 0.9rem;
  color: #b8a58f;
}
footer.site a { color: #e8d8c4; text-decoration: none; transition: color 0.15s ease; }
footer.site a:hover { color: #f5d9b8; text-decoration: underline; }
.foot-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.foot-brand .fb-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5d9b8;
  margin-bottom: 0.5rem;
}
.foot-brand p { line-height: 1.6; margin-bottom: 0.6rem; }
.foot-brand address { font-style: normal; font-size: 0.84rem; color: #9b8a76; }
.foot-col h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7761;
  margin-bottom: 0.7rem;
}
.foot-col a { display: block; padding: 0.18rem 0; }
.foot-bottom {
  max-width: 64rem;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(245,217,184,0.15);
  text-align: center;
  font-size: 0.8rem;
  color: #8a7761;
}
@media (min-width: 641px) { footer.site { padding-bottom: 2rem; } }

/* ── Back to top ── */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 5.2rem;
  z-index: 70;
  width: 2.8rem; height: 2.8rem;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(62,47,35,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.to-top:hover { background: var(--gold-dark); transform: translateY(-2px); }
@media (min-width: 641px) { .to-top { bottom: 1.5rem; } }

/* ── Nav active state (scrollspy) ── */
.navlinks a.active { color: var(--gold); font-weight: 600; }

/* ── Sticky mobile booking bar (index) ── */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 246, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--line);
  color: var(--dark);
  box-shadow: 0 -6px 20px rgba(62,47,35,0.08);
}
.sticky-cta .price { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.sticky-cta .price b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--gold); }
@media (max-width: 640px) { .sticky-cta { display: flex; } }

/* ══════════════ Booking page ══════════════ */
.bk-hero { padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem clamp(2rem, 5vw, 2.8rem); }
.bk-grid {
  max-width: 66rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: start;
}
@media (min-width: 900px) {
  .bk-grid { grid-template-columns: 1fr 24rem; padding-bottom: 3rem; }
  .bk-side { position: sticky; top: 4.6rem; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.bk-side .card { margin-bottom: 0; }
.card h2 {
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.card h2 .step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #a06a3f, var(--gold-dark));
  color: #fff;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  margin-right: 0.6rem;
}

/* Room selector */
.room {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.room:hover { border-color: var(--gold); }
.room.selected {
  border-color: var(--gold);
  background: #f9f2e6;
  box-shadow: 0 3px 12px rgba(138,90,52,0.16);
}
.room.selected::after {
  content: "✓";
  position: absolute;
  top: -0.55rem; right: -0.55rem;
  width: 1.5rem; height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.room input { margin-top: 0.4rem; accent-color: var(--gold); width: 1.05rem; height: 1.05rem; }
.room .name { font-family: var(--font-head); font-weight: 600; color: var(--dark); }
.room .desc { font-size: 0.88rem; color: var(--muted); }
.room .price { margin-left: auto; text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 700; color: var(--dark); }
.room .price small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); }

/* Form fields */
label { display: block; font-weight: 600; color: var(--dark); margin: 0.9rem 0 0.3rem; font-size: 0.93rem; }
input[type="date"], input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #ddcdb6;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(138,90,52,0.18);
}
textarea { resize: vertical; min-height: 4.5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

/* Summary */
.summary {
  background: #f9f2e6;
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.97rem;
}
.summary .breakdown { color: var(--muted); font-size: 0.88rem; }
.summary .total { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--dark); }
.summary .note { font-size: 0.84rem; color: var(--muted); }
.actions { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.actions .btn { width: 100%; }
.policy { font-size: 0.84rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }

/* Booking sticky total bar (mobile) */
.bk-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 246, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--line);
  color: var(--dark);
  box-shadow: 0 -6px 20px rgba(62,47,35,0.08);
}
.bk-sticky .lbl { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.bk-sticky .lbl b { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); }
@media (max-width: 899px) { .bk-sticky { display: flex; } }

/* ── Hero highlights strip ── */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  list-style: none;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--line);
  font-size: 0.9rem;
  color: #7a6a58;
}
.highlights li { display: inline-flex; align-items: center; gap: 0.45rem; }
.highlights .ico { font-size: 1rem; }

/* ── Reviews ── */
.review-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.score-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(150deg, #4e3a2c, #6b4f38);
  border-radius: calc(var(--radius) - 4px);
  color: #fff;
}
.score-badge .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: #f5d9b8;
  line-height: 1;
}
.score-badge .meta { font-size: 0.88rem; color: #e4d5c3; line-height: 1.5; }
.score-badge .meta b { display: block; color: #fff; font-family: var(--font-head); font-size: 1rem; }
.review-chips { flex: 1 1 18rem; }
.review-chips p { font-weight: 600; color: var(--dark); margin-bottom: 0.6rem; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--dark);
}
.review-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
}
.review-link:hover { text-decoration: underline; }

/* ── Nearby attractions ── */
.near-head { color: var(--dark); font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 0.9rem; }
.nearby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0.7rem;
  list-style: none;
}
.nearby li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-sm);
}
.nearby .ico {
  flex: 0 0 auto;
  width: 2.1rem; height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1rem;
}
.nearby .nm { font-weight: 500; color: var(--dark); }
.nearby .dist { margin-left: auto; font-size: 0.84rem; color: var(--muted); white-space: nowrap; }

/* ── Booking: quick picks & nights badge ── */
.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.chip-btn {
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-btn:hover { border-color: var(--gold); }
.chip-btn.active { border-color: var(--gold); background: var(--gold-soft); font-weight: 700; color: var(--dark); }
.nights-badge {
  margin-left: auto;
  padding: 0.3rem 0.85rem;
  background: #e8f7ec;
  border: 1px solid #bfe5c8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e7e3a;
}

/* ── Booking: hint & trust ── */
.hint {
  font-size: 0.86rem;
  color: var(--gold-dark);
  background: #f6ecdd;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  text-align: center;
}
.trust {
  list-style: none;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text);
}

/* ── Copy button & map link ── */
.btn-copy {
  background: #fff;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
}
.btn-copy:hover { background: var(--gold-soft); }
.map-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Lightbox ── */
.gallery img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(46, 35, 26, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── 404 page ── */
.nf-wrap { text-align: center; padding: clamp(4rem, 12vw, 8rem) 1.5rem; }
.nf-wrap .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; color: var(--gold); line-height: 1; }
.nf-wrap p { margin: 1rem auto 2rem; max-width: 30rem; color: var(--muted); }

::selection { background: var(--gold); color: var(--dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .room-card, .gallery img { transition: none; }
}

/* ── กล่องเช็คห้องว่างใน hero ── */
.hero-book {
  display: flex; align-items: flex-end; gap: 0.7rem; flex-wrap: wrap; justify-content: center;
  background: rgba(255,252,246,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 0.9rem 1.1rem; margin: 1.6rem auto 0; max-width: 620px;
  box-shadow: 0 14px 40px rgba(62,47,35,0.10);
}
.hero-book .hb-field { display: flex; flex-direction: column; gap: 0.25rem; text-align: left; flex: 1; min-width: 120px; }
.hero-book label { font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); letter-spacing: 0.04em; }
.hero-book input, .hero-book select {
  padding: 0.55rem 0.6rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 0.9rem; color: var(--text); width: 100%;
}
.hero-book input:focus, .hero-book select:focus { outline: none; border-color: var(--gold); }
.hero-book .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .hero-book { flex-direction: column; align-items: stretch; }
  .hero-book .btn { width: 100%; }
}

/* ── ทำไมต้องจองตรง ── */
.wbd-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.wbd-row { display: grid; grid-template-columns: 130px 1fr 1fr; border-top: 1px solid var(--line); }
.wbd-row:first-child { border-top: none; background: var(--gold-soft); }
.wbd-row > div { padding: 0.85rem 1rem; font-size: 0.9rem; line-height: 1.55; }
.wbd-row .lbl { font-family: "Prompt", sans-serif; font-weight: 600; color: var(--gold-dark); font-size: 0.84rem; }
.wbd-row .good { border-left: 1px solid var(--line); background: #f6faf3; }
.wbd-row .good::before { content: "✓ "; color: #3e7d4f; font-weight: 700; }
.wbd-row .meh { border-left: 1px solid var(--line); color: var(--muted); }
.wbd-row .meh::before { content: "✕ "; color: #b9a08c; font-weight: 700; }
.wbd-head .good, .wbd-head .meh { font-family: "Prompt", sans-serif; font-weight: 700; color: var(--dark); background: none; }
.wbd-head .good::before, .wbd-head .meh::before { content: ""; }
.wbd-cta { text-align: center; margin-top: 1.6rem; }
@media (max-width: 640px) {
  .wbd-row { grid-template-columns: 1fr; }
  .wbd-row .lbl { background: var(--gold-soft); padding-bottom: 0.5rem; }
  .wbd-row .good, .wbd-row .meh { border-left: none; }
  .wbd-head { display: none; }
}

/* ── การเดินทางมาที่พัก ── */
.gh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gh-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; box-shadow: 0 4px 16px rgba(62,47,35,0.05);
}
.gh-card .ico { font-size: 1.5rem; }
.gh-card h3 { font-family: "Prompt", sans-serif; font-size: 0.98rem; color: var(--dark); margin: 0.45rem 0 0.35rem; }
.gh-card p { font-size: 0.86rem; color: var(--text); line-height: 1.65; }
.gh-note { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* ── ปุ่มติดต่อลอย ── */
.fab-wrap { position: fixed; right: 1rem; bottom: 4.6rem; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; }
@media (min-width: 761px) { .fab-wrap { bottom: 1.2rem; } }
.fab-main {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff;
  font-size: 1.45rem; box-shadow: 0 10px 26px rgba(107,66,38,0.4);
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease;
}
.fab-main:hover { transform: scale(1.06); }
.fab-item {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--card); color: var(--dark); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; box-shadow: 0 8px 22px rgba(62,47,35,0.18);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: all 0.18s ease;
}
.fab-wrap.open .fab-item { opacity: 1; transform: none; pointer-events: auto; }

/* ═══════════ World-class polish layer ═══════════ */

/* เกรนละเอียดทั้งหน้า — ให้ผิวงานดู "แพง" แบบกระดาษอาร์ต */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Hero: สูงโปร่งขึ้น + ซุ้มโค้งจาง ๆ สองข้าง + จังหวะโผล่ทีละชั้น ── */
.hero { padding: clamp(5rem, 12vw, 8.5rem) 1.5rem clamp(4rem, 9vw, 6.5rem); }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: clamp(180px, 24vw, 340px);
  aspect-ratio: 1 / 1.9;
  border: 1.5px solid rgba(138, 90, 52, 0.16);
  border-radius: 999px 999px 0 0;
  bottom: -12%;
  pointer-events: none;
}
.hero::before { left: max(-60px, -6vw); transform: rotate(-4deg); }
.hero::after { right: max(-60px, -6vw); transform: rotate(4deg); border-color: rgba(138, 90, 52, 0.10); bottom: -22%; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 1rem;
}
.hero .kicker::before, .hero .kicker::after {
  content: ""; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero .kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); letter-spacing: 0; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero > * { animation: heroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero > *:nth-child(2) { animation-delay: 0.08s; }
.hero > *:nth-child(3) { animation-delay: 0.16s; }
.hero > *:nth-child(4) { animation-delay: 0.22s; }
.hero > *:nth-child(5) { animation-delay: 0.28s; }
.hero > *:nth-child(6) { animation-delay: 0.34s; }
.hero > *:nth-child(7) { animation-delay: 0.42s; }
.hero > *:nth-child(8) { animation-delay: 0.5s; }
.hero > *:nth-child(9) { animation-delay: 0.58s; }

/* ── จังหวะพื้นที่ว่างแบบ editorial ── */
main.site { max-width: 66rem; padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; }
section { margin-bottom: clamp(4.5rem, 11vw, 7.5rem); }
.sec-head { margin-bottom: 2.6rem; }
.sec-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }

/* ── Nav: ตัวเล็ก อักษรห่าง แบบแบรนด์หรู ── */
.navlinks a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── ปุ่ม: สัดส่วนหรูขึ้น ── */
.btn { font-weight: 600; letter-spacing: 0.03em; }
.btn-gold:hover { filter: brightness(1.05); }

/* ── Amenities: ตารางเส้นบางแบบ editorial แทนกล่องลอย ── */
.amenities { gap: 0 2.2rem; }
.amenities li {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1rem 0.2rem;
}
.amenities li .ico {
  background: transparent;
  border: 1.5px solid var(--line);
  width: 2.5rem; height: 2.5rem;
}

/* ── FAQ: เส้นบางโปร่ง ๆ ── */
#faq details {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.1rem 0.2rem;
  margin-bottom: 0;
}
#faq details:first-of-type { border-top: 1px solid var(--line); }
#faq details[open] summary { color: var(--gold-dark); }
#faq details summary::after { background: transparent; border: 1.5px solid var(--line); }

/* ── Gallery: การ์ดว่างโชว์ไอคอนกลางซุ้ม (ก่อนมีรูปจริง) ── */
.gallery figure { position: relative; }
.gallery figure::after {
  content: attr(data-icon);
  position: absolute;
  inset: 0 0 2.4rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  opacity: 0.45;
  z-index: 0;
}
.gallery img { position: relative; z-index: 1; }

/* ── CTA strip: โปร่งขึ้น + ซุ้มโค้งจาง ── */
.cta-strip {
  position: relative; overflow: hidden;
  padding: clamp(3.6rem, 9vw, 5.5rem) 1.5rem;
  border-top: 3px solid var(--gold);
}
.cta-strip::before {
  content: "";
  position: absolute;
  width: clamp(200px, 26vw, 380px);
  aspect-ratio: 1 / 1.8;
  border: 1.5px solid rgba(245, 217, 184, 0.14);
  border-radius: 999px 999px 0 0;
  right: -4vw; bottom: -30%;
  pointer-events: none;
}

/* ── รายละเอียดเล็ก ๆ ── */
.rating-pill { margin-top: 1.9rem; }
.hero-book { margin-top: 1.9rem; }
.map-embed iframe { filter: sepia(0.14) saturate(0.92); }
@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
}

/* ═══════════ Density pass — เติมชีวิตหน้าแรก ═══════════ */

/* hero มีภาพบรรยากาศริมเจ้าพระยาใต้ overlay ครีม (รูปจาก build, ไม่มีรูปก็ยังสวยด้วย gradient เดิม) */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(138,90,52,0.10), transparent 60%),
    linear-gradient(160deg, rgba(251,247,239,0.90) 0%, rgba(247,241,230,0.86) 55%, rgba(241,230,212,0.90) 100%),
    url("../images/attractions/riverboat.jpg") center 65% / cover no-repeat,
    linear-gradient(160deg, #fbf7ef 0%, var(--cream) 60%, #f1e6d4 100%);
}

/* แถบตัวเลขแบรนด์ */
.numband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.9rem 0.5rem;
  text-align: center;
}
.numband .n {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.1;
}
.numband .l { font-size: 0.84rem; color: var(--muted); margin-top: 0.25rem; }

/* ลิสต์จุดเด่นใน about */
.about-feats {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.55rem 2rem;
  text-align: left;
  max-width: 42rem;
  margin-left: auto; margin-right: auto;
}
.about-feats li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; }
.about-feats li::before { content: "✓"; color: var(--gold); font-weight: 700; }
#about { text-align: center; }
#about > p { max-width: 42rem; margin-left: auto; margin-right: auto; }

/* แถวการ์ดรูปสถานที่เด่น (หน้าแรก → ลิงก์ไปหน้าเที่ยว) */
.near-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 1.8rem;
}
.near-photos a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #efe2cc, #dcc49e);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.near-photos a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.near-photos img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.near-photos a:hover img { transform: scale(1.06); }
.near-photos .np-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.5rem 0.75rem 0.5rem;
  background: linear-gradient(transparent, rgba(46,35,26,0.82));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.foot-credit { font-size: 0.74rem; margin-top: 0.6rem; }
.foot-credit a { color: inherit; }

/* ═══════════ Booking trust pass ═══════════ */

/* หน้าจอง: hero มีภาพเดียวกับหน้าแรก (แคชซ้ำ โหลดฟรี) */
.bk-hero {
  background:
    linear-gradient(160deg, rgba(251,247,239,0.92) 0%, rgba(247,241,230,0.89) 55%, rgba(241,230,212,0.92) 100%),
    url("../images/attractions/riverboat.jpg") center 65% / cover no-repeat,
    linear-gradient(160deg, #fbf7ef 0%, var(--cream) 60%, #f1e6d4 100%);
}

/* ขั้นตอนการจอง 3 สเต็ป */
.bk-steps {
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 0;
}
.bk-steps h2 {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.bk-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; }
.bk-step-card {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.95rem 1.05rem; box-shadow: var(--shadow-sm);
}
.bk-step-card .num {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft); border: 1.5px solid var(--gold);
  color: var(--gold-dark); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
}
.bk-step-card b { display: block; font-family: var(--font-head); font-size: 0.93rem; color: var(--dark); }
.bk-step-card span { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* หน้าเที่ยว: hero มีภาพสวนลอยฟ้า */
.atr-hero {
  background:
    linear-gradient(160deg, rgba(251,247,239,0.92) 0%, rgba(247,241,230,0.88) 55%, rgba(241,230,212,0.92) 100%),
    url("../images/attractions/skypark.jpg") center 40% / cover no-repeat,
    linear-gradient(160deg, #fbf7ef 0%, var(--cream) 60%, #f1e6d4 100%);
  border-bottom: 1.5px solid var(--line);
}

/* ── ป้ายเช็คห้องว่างเรียลไทม์ (หน้าจอง) ── */
.avail-badge {
  margin-top: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}
.avail-badge small { display: block; font-weight: 400; font-size: 0.76rem; opacity: 0.75; }
.avail-badge.checking { background: var(--gold-soft); color: var(--muted); border: 1px dashed var(--line); }
.avail-badge.ok { background: #e8f7ec; color: #1e7e3a; border: 1px solid #bfe5c8; }
.avail-badge.low { background: #fdf3dc; color: #9a6b12; border: 1px solid #f0dcae; }
.avail-badge.full { background: #fdeceb; color: #b3362a; border: 1px solid #f3cdc8; }
.avail-badge.uncertain { background: var(--gold-soft, #f6efe6); color: var(--ink, #40342a); border: 1px solid var(--line, #e4d9c8); }
