/* ==========================================================================
   Royal Beach View — Site styles
   Bootstrap 5.3 does most of the work. This file only holds:
   1. Brand colours / fonts (Bootstrap CSS variables)
   2. A few components Bootstrap does not have (hero, split image, mobile bar)
   ========================================================================== */

/* 1. Brand tokens ---------------------------------------------------------- */
:root {
  --rbv-navy: #061923;
  --rbv-navy-dark: #04161f;
  --rbv-ocean: #175f70;
  --rbv-tide: #78aeb5;
  --rbv-mist: #e9f0ef;
  --rbv-sand: #ece7dc;
  --rbv-shell: #f6f4ee;
  --rbv-ink: #10272f;
  --rbv-serif: "Newsreader", Georgia, serif;

  --bs-primary: #175f70;
  --bs-primary-rgb: 23, 95, 112;
  --bs-success: #06c755;
  --bs-success-rgb: 6, 199, 85;
  --bs-body-font-family: "DM Sans", "Noto Sans Thai", Arial, sans-serif;
  --bs-body-color: #10272f;
  --bs-body-bg: #f6f4ee;
  --bs-secondary-color: #5c6c70;
  --bs-link-color: #175f70;
  --bs-link-color-rgb: 23, 95, 112;
  --bs-link-hover-color: #0f5060;
  --bs-border-radius: .25rem;
}

body { line-height: 1.7; }

@keyframes rbv-page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.is-page-entering { animation: rbv-page-fade-in .45s ease both; }
body.is-page-exiting { opacity: 0; transition: opacity .3s ease; }

.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Headings use the serif font */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-3, .display-4 {
  font-family: var(--rbv-serif);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.05;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 2.75rem); }

/* Small label above headings */
.eyebrow {
  color: var(--rbv-ocean);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.bg-navy .eyebrow { color: var(--rbv-tide); }

/* 2. Background helpers ---------------------------------------------------- */
.bg-navy      { background-color: var(--rbv-navy) !important; }
.bg-navy-dark { background-color: var(--rbv-navy-dark) !important; }
.bg-mist      { background-color: var(--rbv-mist) !important; }
.bg-sand      { background-color: var(--rbv-sand) !important; }

/* 3. Section spacing ------------------------------------------------------- */
.section    { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }
.page-top   { padding-top: 9rem; }
.min-vh-75  { min-height: 75vh; }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: .8rem;
  --bs-btn-font-size: .75rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: .125rem;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.btn-sm { --bs-btn-padding-y: .45rem; }
.btn-primary {
  --bs-btn-bg: #175f70; --bs-btn-border-color: #175f70;
  --bs-btn-hover-bg: #0f5060; --bs-btn-hover-border-color: #0f5060;
  --bs-btn-active-bg: #0b2834; --bs-btn-active-border-color: #0b2834;
}
.btn-outline-primary {
  --bs-btn-color: #175f70; --bs-btn-border-color: #175f70;
  --bs-btn-hover-bg: #175f70; --bs-btn-hover-border-color: #175f70;
  --bs-btn-active-bg: #175f70; --bs-btn-active-border-color: #175f70;
}
.btn-success {
  --bs-btn-bg: #06c755; --bs-btn-border-color: #06c755;
  --bs-btn-hover-bg: #05a948; --bs-btn-hover-border-color: #05a948;
}

/* Text link with arrow */
.link-arrow {
  color: var(--rbv-ocean);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: #0f5060; }

/* 5. Navbar ---------------------------------------------------------------- */
.site-nav {
  background-color: rgba(6, 25, 35, .35);
  transition: background-color .25s ease;
  min-height: 80px;
}
.site-nav.scrolled,
.site-nav:has(.navbar-collapse.show) { background-color: rgba(6, 25, 35, .96); }
.site-nav .nav-link {
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .8);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active { text-decoration: underline; text-decoration-color: var(--rbv-tide); text-underline-offset: 8px; }
.brand-logo { width: 168px; height: 52px; object-fit: contain; object-position: left center; }

@media (max-width: 991.98px) {
  .site-nav { background-color: rgba(6, 25, 35, .96); min-height: 68px; }
  .brand-logo { width: 122px; height: 44px; }
  .navbar-collapse { padding-bottom: 1rem; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 720px;
  height: 92vh;
  max-height: 960px;
  overflow: hidden;
}
.hero-sm { min-height: 560px; height: 72vh; max-height: 760px; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,25,35,.82) 0%, rgba(6,25,35,.4) 50%, rgba(6,25,35,.05) 80%),
    linear-gradient(0deg, rgba(6,25,35,.6), transparent 50%);
}
.hero .container { z-index: 1; }
.hero .eyebrow { color: #c6e2e5; }
.hero .lead { color: rgba(255, 255, 255, .85); max-width: 620px; margin-top: 1.5rem; }
.hero .display-3 { font-size: clamp(2.8rem, 7vw, 4rem); line-height: .95; }

/* Booking bar overlaps the bottom of the hero */
.booking-bar { position: relative; z-index: 2; margin-top: -3rem; }

/* 7. Cards ----------------------------------------------------------------- */
.card { background-color: rgba(255, 255, 255, .85); }
.card-img-top img { transition: transform .6s ease; }
.card:hover .card-img-top img { transform: scale(1.03); }
.card-tag {
  color: var(--rbv-ocean);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.facts .list-inline-item::before { content: "•"; color: var(--rbv-tide); margin-right: .4rem; }

/* Gallery images open in a full-size preview */
.gallery-image-trigger { cursor: zoom-in; }
.gallery-image-trigger:focus-visible { outline: 3px solid var(--rbv-ocean); outline-offset: 3px; }
.gallery-lightbox-image { max-height: calc(100vh - 5rem); object-fit: contain; }

/* 8. Split image + text sections ------------------------------------------ */
.split-img { min-height: 420px; max-height: 720px; }
.split-copy { max-width: 600px; }
.split-copy h2 { margin-bottom: 1.25rem; }
@media (min-width: 992px) {
  .split-copy { padding: 5rem !important; }
}

/* Map placeholder on the location page */
.map-placeholder {
  min-height: 420px;
  background:
    radial-gradient(circle, transparent 0 70px, rgba(18,101,122,.12) 71px 72px, transparent 73px 145px, rgba(18,101,122,.12) 146px 147px, transparent 148px),
    linear-gradient(135deg, #e7f1f1, #d5e7e8);
}
.map-pin { width: 100px; height: 100px; font-family: var(--rbv-serif); font-size: 1.4rem; }

/* 9. Stats band ------------------------------------------------------------ */
.stat-value { font-family: var(--rbv-serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.2; }

/* 10. FAQ accordion -------------------------------------------------------- */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--rbv-ink);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(23, 95, 112, .25);
}
.accordion-button { font-family: var(--rbv-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); padding-left: 0; padding-right: 0; }
.accordion-body { padding-left: 0; max-width: 820px; }

/* 11. Forms ---------------------------------------------------------------- */
.form-label { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bs-secondary-color); }
.form-control, .form-select { min-height: 52px; border-radius: .125rem; }
textarea.form-control { min-height: 140px; }
.form-control:focus, .form-select:focus { border-color: var(--rbv-ocean); box-shadow: 0 0 0 .2rem rgba(23, 95, 112, .2); }

/* 12. Footer --------------------------------------------------------------- */
.footer-logo { width: 190px; height: 64px; object-fit: contain; object-position: left center; }
.footer-heading { font-family: var(--bs-body-font-family); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .5rem; }

/* 13. Mobile booking bar --------------------------------------------------- */
.mobile-bar { z-index: 1040; padding-bottom: max(.5rem, env(safe-area-inset-bottom)) !important; box-shadow: 0 -10px 30px rgba(6, 25, 35, .2); }
@media (max-width: 991.98px) {
  body { padding-bottom: 64px; }
}

/* 14. Small screens -------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero, .hero-sm { height: auto; min-height: 600px; }
  .booking-bar { margin-top: 0; padding: 0; }
  .booking-bar .card { border-radius: 0; }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   15. Mobile optimisation (ปรับการแสดงผลสำหรับมือถือ)
   ========================================================================== */

/* กันการเลื่อนแนวนอน (horizontal scroll) ทั้งเว็บ */
html, body { overflow-x: clip; }
/* footer ใช้ gutter g-5 ต้องให้ padding ของ container เท่ากัน ไม่ให้ล้นขอบ */
.site-footer .container { --bs-gutter-x: 3rem; }

/* ---- จอแท็บเล็ตลงไป (<992px) ---- */
@media (max-width: 991.98px) {
  /* ระยะห่าง section กระชับขึ้นเล็กน้อยบนจอเล็ก */
  .section    { padding: clamp(3rem, 8vw, 5rem) 0; }
  .section-sm { padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
  .page-top   { padding-top: 6.5rem; }

  /* รูปภาพฝั่งซ้าย/ขวาของ section แบบ 2 คอลัมน์ ไม่สูงเกินไป */
  .split-img  { min-height: 240px; max-height: 320px; }
  .split-copy { padding: 2.5rem 1.25rem !important; }

  /* วงกลมแผนที่หน้า Location ไม่ให้กินพื้นที่มากเกินบนมือถือ */
  .map-placeholder { min-height: 220px; }
  .map-pin { width: 76px; height: 76px; font-size: 1.1rem; }
}

/* ---- จอมือถือ (<768px) ---- */
@media (max-width: 767.98px) {
  /* hero พอดีจอ ไม่สูงล้น และเนื้อหามีระยะหายใจ */
  .hero, .hero-sm { height: auto; min-height: 78svh; }
  .hero .container { padding-top: 6rem; padding-bottom: 2.5rem; }
  .hero .display-3 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .hero .lead { font-size: 1rem; }

  /* ปุ่มใน hero และ actions กดง่ายเต็มความกว้าง */
  .hero .d-flex.flex-wrap .btn,
  .section .d-flex.flex-wrap .btn { flex: 1 1 100%; }

  /* booking bar: ชิดขอบจอ อ่านง่าย */
  .booking-bar { margin-top: 0; padding: 0; }
  .booking-bar .card { border-radius: 0; }

  /* หัวข้อ section ไม่ใหญ่เกินไป */
  h2 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .accordion-button { font-size: 1.1rem; }

  /* ---- ตารางเปรียบเทียบห้องพัก → แสดงเป็นการ์ดต่อแถวบนมือถือ ---- */
  /* ยกเลิกการ scroll แนวนอน แล้วเรนเดอร์เป็นการ์ดแทน */
  .table-responsive:has(.comparison-table) { overflow: visible; }
  .comparison-table thead { display: none; }
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .comparison-table tr {
    border: 1px solid var(--bs-border-color);
    border-radius: .25rem;
    padding: .25rem;
    margin-bottom: 1rem;
    background: #fff;
  }
  /* ยกเลิก padding เดิมของ Bootstrap ที่ทำให้ cell ล้นขอบ */
  .comparison-table > :not(caption) > * > * { padding: 0; box-shadow: none; }
  .comparison-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    padding: .6rem .75rem;
    text-align: right;
  }
  .comparison-table td:last-child { border-bottom: 0; }
  /* ป้ายชื่อคอลัมน์หน้าแต่ละค่า */
  .comparison-table td::before {
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    text-align: left;
  }
  /* แถวชื่อห้อง (คอลัมน์แรก) เด่นกว่าแถวอื่น */
  .comparison-table td[data-label="Suite"] {
    background: var(--rbv-mist);
    border-radius: .2rem;
    margin-bottom: .25rem;
  }
  .comparison-table td[data-label="Suite"]::before { display: none; }
  .comparison-table td[data-label="Suite"] a { font-size: 1.05rem; }
  /* ไม่ต้องมีกรอบ/เงาซ้อนจาก wrapper เดิม */
  .table-responsive:has(.comparison-table) {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* footer: จัดเป็น 2 คอลัมน์สมดุลบนมือถือ */
  .site-footer .row { --bs-gutter-x: 1.5rem; }
}

/* ---- จอมือถือเล็ก (<576px) ---- */
@media (max-width: 575.98px) {
  .stat-value { font-size: 1.35rem; }
  /* booking bar: ปุ่มสลับ Hotel/Monthly เต็มกว้าง กดง่าย */
  .booking-bar .btn-group { width: 100%; }
}

/* ==========================================================================
   16. Visual refinement (ปรับความสวยงาม — คงสีและโครงเดิม)
   ทุกอย่างในหมวดนี้เป็น CSS ล้วน ไม่แตะโครง HTML
   ลบทั้งหมวดนี้ออกได้ถ้าอยากกลับไปหน้าตาเดิม
   ========================================================================== */
:root {
  --rbv-line: rgba(6, 25, 35, .1);
  --rbv-shadow: 0 1px 2px rgba(6, 25, 35, .04), 0 18px 40px -18px rgba(6, 25, 35, .22);
  --rbv-radius: 6px;
  --rbv-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- 16.1 Typography ---------------------------------------------------- */
body { font-size: 1.0625rem; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .h1, .h2, .h3, .display-3, .card-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); line-height: 1.04; letter-spacing: -.035em; }
.h4, h3.h4 { font-size: 1.6rem; line-height: 1.15; }
.h5, h3.h5 { font-size: 1.3rem; line-height: 1.2; }
.lead { font-weight: 400; line-height: 1.6; }
.text-body-secondary { line-height: 1.7; }
::selection { background: var(--rbv-tide); color: var(--rbv-navy); }

/* eyebrow: เพิ่มเส้นสั้นสี tide นำหน้า ให้ดูเป็นงานพิมพ์มากขึ้น */
.eyebrow { display: flex; align-items: center; gap: .85rem; font-size: .68rem; letter-spacing: .24em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.text-center .eyebrow, .mx-auto > .eyebrow { justify-content: center; }
.text-center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; flex: none; }

/* ---- 16.2 Navbar --------------------------------------------------------- */
.site-nav {
  background-color: rgba(6, 25, 35, .18);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .35s ease, min-height .35s var(--rbv-ease), box-shadow .35s ease;
}
.site-nav.scrolled { background-color: rgba(6, 25, 35, .94); border-bottom-color: transparent; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-nav .nav-link { position: relative; padding-inline: .85rem !important; transition: color .2s ease; }
.site-nav .nav-link.active { text-decoration: none; }
@media (min-width: 992px) {
  .site-nav.scrolled { min-height: 68px; }
  .site-nav .brand-logo { transition: height .35s var(--rbv-ease); }
  .site-nav.scrolled .brand-logo { height: 44px; }
  .site-nav .nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 1px;
    background: var(--rbv-tide); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--rbv-ease);
  }
  .site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
}

/* ---- 16.3 Buttons & links ------------------------------------------------ */
.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .9rem;
  --bs-btn-font-size: .72rem;
  --bs-btn-border-radius: 2px;
  letter-spacing: .12em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-primary:hover { box-shadow: 0 10px 22px -12px rgba(23, 95, 112, .9); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--rbv-navy); --bs-btn-hover-bg: var(--rbv-mist); --bs-btn-hover-border-color: var(--rbv-mist); }
.btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .55); --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.btn:focus-visible, a:focus-visible, .form-control:focus-visible { outline: 2px solid var(--rbv-tide); outline-offset: 3px; box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .1rem; letter-spacing: .14em; border-bottom-color: rgba(23, 95, 112, .35); transition: border-color .25s ease, color .25s ease; }
.link-arrow::after { display: inline-block; transition: transform .3s var(--rbv-ease); }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- 16.4 Hero ----------------------------------------------------------- */
.hero-bg { transform: scale(1.04); animation: rbv-hero-settle 2.2s var(--rbv-ease) both; }
@keyframes rbv-hero-settle { from { transform: scale(1.1); } to { transform: scale(1.04); } }
.hero::after {
  background:
    linear-gradient(90deg, rgba(6,25,35,.86) 0%, rgba(6,25,35,.5) 42%, rgba(6,25,35,.08) 78%),
    linear-gradient(0deg, rgba(6,25,35,.72) 0%, rgba(6,25,35,0) 55%),
    linear-gradient(180deg, rgba(6,25,35,.45) 0%, rgba(6,25,35,0) 22%);
}
.hero .display-3 { font-size: clamp(3rem, 6.2vw, 5.4rem); line-height: .96; letter-spacing: -.04em; }
.hero-sm .display-3 { font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1; }
.hero .lead { font-size: 1.15rem; max-width: 560px; }
.hero .eyebrow { color: #c6e2e5; }
.hero > .container .col-lg-8 > * { animation: rbv-rise .9s var(--rbv-ease) both; }
.hero > .container .col-lg-8 > :nth-child(2) { animation-delay: .08s; }
.hero > .container .col-lg-8 > :nth-child(3) { animation-delay: .16s; }
.hero > .container .col-lg-8 > :nth-child(4) { animation-delay: .24s; }
@keyframes rbv-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 992px) { .hero:not(.hero-sm) > .container { padding-bottom: 7rem !important; } }

/* ---- 16.5 Booking bar ---------------------------------------------------- */
.booking-bar { margin-top: -4.5rem; }
.booking-bar .card { background: #fff; border-radius: var(--rbv-radius); box-shadow: 0 30px 60px -30px rgba(6, 25, 35, .45), 0 2px 6px rgba(6, 25, 35, .05) !important; }
.booking-bar .card-body { padding: 1.75rem 2rem !important; }
.booking-bar .btn-group .btn { --bs-btn-padding-y: 1.05rem; --bs-btn-padding-x: .75rem; letter-spacing: .08em; white-space: nowrap; }
.booking-bar .form-control, .booking-bar .form-select { background-color: var(--rbv-shell); border-color: transparent; }

/* ---- 16.6 Cards ---------------------------------------------------------- */
/* การ์ดที่มีรูป: สไตล์ editorial — รูปโค้งมน ข้อความวางบนพื้นหลังหน้าเว็บ ไม่มีกล่อง/เงา */
.card:has(> .card-img-top) { background: transparent; box-shadow: none !important; border-radius: 0; }
.card:has(> .card-img-top) > .card-img-top { border-radius: var(--rbv-radius); box-shadow: var(--rbv-shadow); }
.card:has(> .card-img-top) > .card-body { padding: 1.5rem .25rem 0 !important; }
.card:has(> .card-img-top) .card-title { font-size: 1.75rem; margin-bottom: .6rem; }
.card-img-top img { transition: transform 1.1s var(--rbv-ease); }
.card:hover .card-img-top img { transform: scale(1.045); }
.card-img-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,25,35,.18), transparent 40%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.card:hover .card-img-top::after { opacity: 1; }

/* การ์ดตัวอักษรล้วน: แผ่นสีขาว เส้นขอบบาง เส้นบนสี ocean เมื่อ hover */
.card:not(:has(> .card-img-top)) {
  background: #fff; border-radius: var(--rbv-radius); box-shadow: none !important;
  border: 1px solid var(--rbv-line) !important; position: relative; overflow: hidden;
  transition: border-color .3s ease, transform .4s var(--rbv-ease), box-shadow .4s ease;
}
.card:not(:has(> .card-img-top))::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--rbv-ocean); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--rbv-ease); }
.card:not(:has(> .card-img-top)):hover { box-shadow: var(--rbv-shadow) !important; }
.card:not(:has(> .card-img-top)):hover::before { transform: scaleX(1); }
.booking-bar .card::before { display: none; }
.card-tag { font-size: .66rem; letter-spacing: .2em; }

/* ข้อมูลห้อง (1 bedroom · 2 bathrooms) เป็นป้ายเล็ก */
.facts { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.facts .list-inline-item { margin: 0; padding: .3rem .7rem; border: 1px solid var(--rbv-line); border-radius: 100px; font-size: .78rem; color: var(--rbv-ink); background: rgba(255, 255, 255, .6); }
.facts .list-inline-item::before { content: none; }

/* ---- 16.7 Highlights row (หน้าแรก 4 จุดเด่น) --------------------------- */
.border-top.pt-3 { border-top: 1px solid var(--rbv-line) !important; position: relative; padding-top: 1.4rem !important; }
.border-top.pt-3::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--rbv-ocean); }
.border-top.pt-3 .h5 { font-size: 1.45rem; }

/* ---- 16.8 Split section -------------------------------------------------- */
.split-copy h2 { margin-bottom: 1.5rem; }
@media (min-width: 992px) { .split-copy { padding: 6rem 5.5rem !important; } }

/* ---- 16.9 Navy bands ----------------------------------------------------- */
/* CTA ท้ายหน้า: เพิ่มภาพสระว่ายน้ำจาง ๆ ใต้สี navy ให้มีมิติ */
main > section.section.bg-navy.text-center {
  position: relative; isolation: isolate; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(6,25,35,.93), rgba(6,25,35,.84) 50%, rgba(6,25,35,.95)), url("../img/pool-wide-960.webp");
  background-size: cover; background-position: center;
}
main > section.section.bg-navy.text-center h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
main > section.section.bg-navy.text-center .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .75) !important; }

/* แถบตัวเลข (หน้ารายละเอียดห้อง) มีเส้นแบ่งคอลัมน์ */
.bg-navy.text-white.py-4 { padding-block: 2.25rem !important; }
.bg-navy.text-white.py-4 .row > [class*="col"] + [class*="col"] { border-left: 1px solid rgba(120, 174, 181, .22); }
@media (max-width: 991.98px) { .bg-navy.text-white.py-4 .row > [class*="col"]:nth-child(odd) { border-left: 0; } }
.stat-value { letter-spacing: -.02em; margin-bottom: .2rem; }

/* ---- 16.10 Comparison table --------------------------------------------- */
.table-responsive:has(.comparison-table) { border-radius: var(--rbv-radius) !important; box-shadow: var(--rbv-shadow) !important; border: 1px solid var(--rbv-line); }
.comparison-table { --bs-table-bg: #fff; --bs-table-hover-bg: var(--rbv-shell); }
.comparison-table thead th { background: var(--rbv-navy); color: #c6e2e5 !important; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 1rem 1.1rem; border: 0; }
.comparison-table td { padding: 1.05rem 1.1rem; border-color: var(--rbv-line); }
.comparison-table td a { font-family: var(--rbv-serif); font-size: 1.15rem; text-decoration: none; color: var(--rbv-ink); }
.comparison-table td a:hover { color: var(--rbv-ocean); }

/* ---- 16.11 Forms --------------------------------------------------------- */
.form-control, .form-select { background-color: #fff; border-color: rgba(6, 25, 35, .14); border-radius: 3px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:hover, .form-select:hover { border-color: rgba(6, 25, 35, .3); }
.form-label { letter-spacing: .14em; margin-bottom: .55rem; }
form.needs-validation { background: #fff; border: 1px solid var(--rbv-line); border-radius: var(--rbv-radius); padding: clamp(1.25rem, 3vw, 2.5rem); }
form.needs-validation .form-control, form.needs-validation .form-select { background-color: var(--rbv-shell); border-color: transparent; }
form.needs-validation .form-control:focus, form.needs-validation .form-select:focus { background-color: #fff; border-color: var(--rbv-ocean); }

/* ---- 16.12 FAQ accordion ------------------------------------------------- */
.accordion { --bs-accordion-border-color: var(--rbv-line); --bs-accordion-btn-padding-y: 1.6rem; }
.accordion-item { border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
.accordion-button { transition: color .2s ease; }
.accordion-button:hover, .accordion-button:not(.collapsed) { color: var(--rbv-ocean); }
.accordion-button:focus { box-shadow: none; }
.accordion-button:focus-visible { outline: 2px solid var(--rbv-tide); outline-offset: 2px; }

/* ---- 16.13 Gallery ------------------------------------------------------- */
[data-gallery] figure { border-radius: var(--rbv-radius); overflow: hidden; box-shadow: var(--rbv-shadow); }
[data-gallery] figure img { transition: transform 1s var(--rbv-ease), filter .4s ease; }
[data-gallery] figure:hover img { transform: scale(1.05); }
[data-filter] { border-radius: 100px !important; }
.gallery-lightbox-image { border-radius: 4px; }

/* ---- 16.14 Footer -------------------------------------------------------- */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 174, 181, .45), transparent); }
.footer-heading { color: var(--rbv-tide); }
.site-footer a { transition: color .2s ease; }
.site-footer .border-top { border-color: rgba(255, 255, 255, .1) !important; }

/* ---- 16.15 Alerts / misc ------------------------------------------------- */
.alert { border-radius: var(--rbv-radius); }
.breadcrumb { font-size: .78rem; letter-spacing: .06em; }

.split-img { display: block; }

/* reveal: เคลื่อนไหวนุ่มขึ้น ระยะสั้นลง */
.motion-reveal { transform: translateY(12px); transition: opacity .8s var(--rbv-ease), transform .8s var(--rbv-ease); }

/* ---- 16.16 Mobile -------------------------------------------------------- */
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .hero .display-3 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-sm .display-3 { font-size: clamp(2.1rem, 8.6vw, 2.7rem); }
  .hero .lead { font-size: 1.02rem; }
  .booking-bar { margin-top: 0; }
  .booking-bar .card { border-radius: 0; box-shadow: 0 20px 40px -24px rgba(6, 25, 35, .35) !important; }
  .booking-bar .card-body { padding: 1.25rem 1rem !important; }
  .card:has(> .card-img-top) .card-title { font-size: 1.5rem; }
  .comparison-table thead th { display: none; }
  .comparison-table tr { border-radius: var(--rbv-radius); border-color: var(--rbv-line); }
  .table-responsive:has(.comparison-table) { border: 0; }
  .comparison-table td { padding: .55rem .85rem; }
  .comparison-table td[data-label="Suite"] { justify-content: flex-start; text-align: left; padding: .8rem .85rem; }
  .comparison-table td[data-label="Suite"] a { font-size: 1.2rem; }
  form.needs-validation { padding: 1.25rem; }
  .mobile-bar { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background-color: rgba(6, 25, 35, .94) !important; }
  .eyebrow::before, .text-center .eyebrow::after { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { transform: none; }
}

/* 17. Room page gallery (หน้า rooms/one-bedroom-suite) */
.room-gallery [data-gallery] figure { border-radius: var(--rbv-radius); }
@media (min-width: 992px) {
  /* รูปแรกใหญ่ 2 แถว ให้ดูเป็น mosaic */
  .room-gallery .row.g-2 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .5rem; margin: 0; }
  .room-gallery .row.g-2 > [data-gallery] { width: auto; padding: 0; margin: 0; max-width: none; }
  .room-gallery .row.g-2 > [data-gallery]:first-child { grid-row: span 2; }
  .room-gallery .row.g-2 > [data-gallery]:first-child figure { height: 100%; --bs-aspect-ratio: auto; }
  .room-gallery .row.g-2 > [data-gallery]:first-child figure::before { display: none; }
  .room-gallery .row.g-2 > [data-gallery]:first-child figure > img { position: absolute; inset: 0; }
}
@media (max-width: 991.98px) {
  /* มือถือ/แท็บเล็ต: รูปแรกเต็มความกว้าง ที่เหลือ 2 คอลัมน์ */
  .room-gallery .row.g-2 > [data-gallery]:first-child { flex: 0 0 100%; max-width: 100%; }
}

/* ==========================================================================
   18. Contemporary (ปรับให้ทันสมัย — สไตล์ Swiss / architectural)
   - หัวข้อเปลี่ยนเป็น DM Sans ตัวใหญ่ ระยะตัวอักษรแน่น (แทน serif)
   - มุมเหลี่ยม พื้นผิวเรียบ ไม่มีเงา, เมนูเปลี่ยนเป็นพื้นสว่างเมื่อเลื่อน
   - สีเดิมทั้งหมด (navy / ocean / tide / mist / sand / shell)
   ลบหมวดนี้ + เปลี่ยนลิงก์ Google Fonts กลับ = กลับเป็นเวอร์ชันก่อนหน้า
   ========================================================================== */
:root {
  --rbv-serif: "DM Sans", "Noto Sans Thai", Arial, sans-serif;  /* หัวข้อใช้ sans */
  --rbv-radius: 0px;
  --rbv-line: rgba(6, 25, 35, .12);
  --rbv-shadow: none;
}

/* ---- 18.1 Type scale ----------------------------------------------------- */
body { font-size: 1.0625rem; font-weight: 400; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .display-3, .display-4, .card-title {
  font-family: var(--rbv-serif); font-weight: 500; font-optical-sizing: auto;
}
h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.045em; }
.h4, h3.h4 { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.15; }
.h5, h3.h5 { font-size: 1.2rem; letter-spacing: -.02em; }
.lead { font-weight: 300; }

/* eyebrow: ข้อความเล็กเรียบ ๆ สี ocean ไม่มีเส้นนำ */
.eyebrow { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .14em; margin-bottom: 1.25rem; }
.eyebrow::before, .text-center .eyebrow::after { content: none; }

/* ---- 18.2 Navbar: โปร่งบน hero → พื้นสว่างเมื่อเลื่อน ------------------- */
.site-nav {
  background-color: transparent; border-bottom: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.site-nav .nav-link { font-size: .92rem; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .86); }
.site-nav .nav-link::after { bottom: .1rem; background: currentColor; }
.site-nav .btn-light { --bs-btn-padding-y: .7rem; }
.site-nav.scrolled,
.site-nav:has(.navbar-collapse.show) {
  background-color: rgba(246, 244, 238, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--rbv-line); box-shadow: none;
}
.site-nav.scrolled .brand-logo,
.site-nav:has(.navbar-collapse.show) .brand-logo { filter: brightness(0) saturate(100%); opacity: .88; }
.site-nav.scrolled .nav-link,
.site-nav:has(.navbar-collapse.show) .nav-link { color: var(--rbv-ink); }
.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.active,
.site-nav:has(.navbar-collapse.show) .nav-link.active { color: var(--rbv-ocean); }
.site-nav.scrolled .btn-light,
.site-nav:has(.navbar-collapse.show) .btn-light {
  --bs-btn-bg: var(--rbv-navy); --bs-btn-border-color: var(--rbv-navy); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--rbv-ocean); --bs-btn-hover-border-color: var(--rbv-ocean); --bs-btn-hover-color: #fff;
}
.site-nav.scrolled .navbar-toggler-icon,
.site-nav:has(.navbar-collapse.show) .navbar-toggler-icon { filter: invert(1) brightness(.2); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--rbv-tide); }
@media (max-width: 991.98px) {
  .site-nav { background-color: rgba(6, 25, 35, .35); }
  .navbar-collapse .nav-link { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; padding-block: .6rem !important; border-bottom: 1px solid var(--rbv-line); }
  .navbar-collapse .btn { width: 100%; margin-top: .75rem; }
}

/* ---- 18.3 Buttons & links ----------------------------------------------- */
.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .95rem;
  --bs-btn-font-size: .95rem;
  --bs-btn-font-weight: 500;
  --bs-btn-border-radius: 0;
  text-transform: none; letter-spacing: -.005em;
}
.btn-sm { --bs-btn-padding-y: .5rem; --bs-btn-font-size: .85rem; }
.btn-primary:hover { box-shadow: none; }
.btn-primary { --bs-btn-hover-bg: var(--rbv-navy); --bs-btn-hover-border-color: var(--rbv-navy); }

.link-arrow {
  font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--rbv-ink); border-bottom: 1px solid var(--rbv-ink); padding-bottom: .15rem; gap: .35rem;
}
.link-arrow:hover { color: var(--rbv-ocean); border-bottom-color: var(--rbv-ocean); }

/* ---- 18.4 Hero ----------------------------------------------------------- */
.hero::after {
  background:
    linear-gradient(0deg, rgba(6,25,35,.88) 0%, rgba(6,25,35,.35) 45%, rgba(6,25,35,0) 70%),
    linear-gradient(180deg, rgba(6,25,35,.5) 0%, rgba(6,25,35,0) 25%);
}
.hero .display-3 { font-size: clamp(3.2rem, 8.4vw, 8rem); font-weight: 500; line-height: .9; letter-spacing: -.055em; }
.hero-sm .display-3 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .95; letter-spacing: -.045em; }
.hero > .container > .col-lg-8 { width: 100%; max-width: 1100px; }
.hero-sm > .container > .col-lg-8 { max-width: 920px; }
.hero .lead { font-size: 1.2rem; font-weight: 300; max-width: 540px; color: rgba(255, 255, 255, .88); }
.hero .eyebrow { color: #fff; font-weight: 600; text-shadow: 0 1px 12px rgba(6,25,35,.45); }
@media (min-width: 992px) { .hero:not(.hero-sm) > .container { padding-bottom: 8rem !important; } }

/* ---- 18.5 Booking bar: แผงขาวเหลี่ยม ช่องกรอกแบบเส้นใต้ ---------------- */
.booking-bar { margin-top: -4rem; }
.booking-bar .card { border-radius: 0; box-shadow: 0 40px 80px -40px rgba(6, 25, 35, .5) !important; }
.booking-bar .card-body { padding: 1.75rem 2rem !important; }
.booking-bar .form-label.text-uppercase { text-transform: none !important; }
.booking-bar .form-label { font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--bs-secondary-color); margin-bottom: .25rem; }
.booking-bar .form-control, .booking-bar .form-select {
  background-color: transparent; border: 0; border-bottom: 1px solid rgba(6, 25, 35, .25);
  border-radius: 0; padding-left: 0; font-size: 1.05rem; font-weight: 500; min-height: 48px;
}
.booking-bar .form-select { background-position: right 0 center; }
.booking-bar .form-control:focus, .booking-bar .form-select:focus { box-shadow: none; border-bottom-color: var(--rbv-ocean); }
/* Hotel / Monthly เป็นแท็บเส้นใต้ */
.booking-bar .btn-group { gap: 1.5rem; }
.booking-bar .btn-group .btn {
  flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; border-radius: 0 !important;
  padding: .75rem 0; background: transparent; color: var(--bs-secondary-color);
  font-size: 1rem; letter-spacing: 0;
}
.booking-bar .btn-group .btn:hover { color: var(--rbv-ink); background: transparent; }
.booking-bar .btn-group .btn.active { background: transparent; color: var(--rbv-ink); border-bottom-color: var(--rbv-ocean); }
.booking-bar .btn-primary { --bs-btn-padding-y: 1.05rem; }

/* ---- 18.6 Highlights: กริดเส้นแบ่งแนวตั้ง ------------------------------ */
.border-top.pt-3 { border-top: 0 !important; border-left: 1px solid var(--rbv-line); padding: .25rem 0 .25rem 1.5rem !important; }
.border-top.pt-3::before { content: none; }
.border-top.pt-3 .h5 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.025em; }
@media (max-width: 575.98px) {
  .border-top.pt-3 { border-left: 0; border-top: 1px solid var(--rbv-line) !important; padding: 1.25rem 0 0 !important; }
}

/* ---- 18.7 Cards ---------------------------------------------------------- */
.card:has(> .card-img-top) > .card-img-top { border-radius: 0; box-shadow: none; }
.card:has(> .card-img-top) > .card-body { padding: 1.4rem 0 0 !important; }
.card:has(> .card-img-top) .card-title { font-size: 1.6rem; font-weight: 500; letter-spacing: -.035em; }
.card-img-top::after { display: none; }
.card-tag { font-size: .85rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bs-secondary-color); }
/* ข้อมูลห้อง: ตัวอักษรคั่นด้วยเส้นตั้ง */
.facts { gap: 0; }
.facts .list-inline-item { border: 0; border-radius: 0; background: none; padding: 0 .75rem; font-size: .88rem; font-weight: 500; }
.facts .list-inline-item:first-child { padding-left: 0; }
.facts .list-inline-item + .list-inline-item { border-left: 1px solid var(--rbv-line); }

.card:not(:has(> .card-img-top)) { border-radius: 0; border: 0 !important; background: #fff; }
.card:not(:has(> .card-img-top))::before { height: 3px; }
.card:not(:has(> .card-img-top)):hover { box-shadow: none !important; }
.card:not(:has(> .card-img-top)) .card-body { padding: 2rem !important; }
.booking-bar .card { background: #fff; }

/* ---- 18.8 Navy bands ----------------------------------------------------- */
main > section.section.bg-navy.text-center h2 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: .95; letter-spacing: -.05em; }
main > section.section.bg-navy.text-center .lead { font-weight: 300; }
.stat-value { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; }

/* ---- 18.9 Table / forms / misc ----------------------------------------- */
.table-responsive:has(.comparison-table) { border-radius: 0 !important; box-shadow: none !important; }
.comparison-table thead th { text-transform: none !important; letter-spacing: 0; font-size: .85rem; font-weight: 500; }
.comparison-table td a { font-family: var(--rbv-serif); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.form-label { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; color: var(--rbv-ink); }
.form-control, .form-select { border-radius: 0; }
form.needs-validation { border-radius: 0; border: 0; }
.accordion-button { font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
[data-gallery] figure, .gallery-lightbox-image, .alert { border-radius: 0; }
[data-gallery] figure { box-shadow: none; }
[data-filter] { border-radius: 0 !important; }
.object-fit-cover.rounded-1 { border-radius: 0 !important; }
.room-gallery [data-gallery] figure { border-radius: 0; }

/* ---- 18.10 Footer: wordmark ใหญ่ด้านล่าง -------------------------------- */
.site-footer { overflow: hidden; }
.site-footer::before { content: none; }
.site-footer::after {
  content: "Royal Beach View"; display: block; white-space: nowrap;
  font-family: var(--rbv-serif); font-weight: 500; letter-spacing: -.06em; line-height: .78;
  font-size: 13.2vw; color: rgba(120, 174, 181, .1);
  margin: 2rem 0 0 -.04em; padding-bottom: .02em; pointer-events: none; user-select: none;
}
.footer-heading { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .5); }
.site-footer .small { font-size: .92rem; }

/* ---- 18.11 Mobile -------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero .display-3 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero-sm .display-3 { font-size: clamp(2.2rem, 9.5vw, 2.8rem); }
  .booking-bar { margin-top: 0; }
  .booking-bar .card { box-shadow: none !important; border-bottom: 1px solid var(--rbv-line) !important; }
  .booking-bar .card-body { padding: 1.25rem 1rem 1.5rem !important; }
  .booking-bar .btn-group { width: auto !important; }
  h2 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .comparison-table tr { border-radius: 0; }
  .comparison-table td::before { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; }
  .card:not(:has(> .card-img-top)) .card-body { padding: 1.5rem !important; }
  .section .d-flex.flex-wrap .btn[data-filter] { flex: 0 0 auto; }
}
/* 18.12 fine-tuning */
.hero::after {
  background:
    linear-gradient(0deg, rgba(6,25,35,.85) 0%, rgba(6,25,35,.3) 45%, rgba(6,25,35,0) 70%),
    linear-gradient(90deg, rgba(6,25,35,.6) 0%, rgba(6,25,35,.2) 45%, rgba(6,25,35,0) 70%),
    linear-gradient(180deg, rgba(6,25,35,.45) 0%, rgba(6,25,35,0) 25%);
}
.split-copy h2 { font-size: clamp(2.1rem, 3.4vw, 3.3rem); }
@media (max-width: 767.98px) { .hero:not(.hero-sm) .display-3 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); } }

/* ==========================================================================
   19. Motion & detail (เพิ่มลูกเล่นแบบเว็บสมัยใหม่ — ไม่เปลี่ยนโครงหน้า)
   ========================================================================== */

/* 19.1 เมนูซ่อนเมื่อเลื่อนลง / แสดงเมื่อเลื่อนขึ้น (ทำงานร่วมกับ main.js) */
.site-nav { transition: transform .45s var(--rbv-ease), background-color .35s ease, border-color .35s ease; }
.site-nav.nav-hidden { transform: translateY(-100%); }

/* 19.2 แถบความคืบหน้าการอ่าน (เส้นสี ocean ใต้เมนู) — CSS scroll-driven */
@supports (animation-timeline: scroll()) {
  .site-nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--rbv-ocean); transform-origin: left; transform: scaleX(0);
    animation: rbv-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes rbv-progress { to { transform: scaleX(1); } }

  /* 19.3 Hero: ภาพพื้นหลังเลื่อนช้ากว่าเนื้อหา (parallax) */
  .hero-bg {
    animation: rbv-hero-settle 2.2s var(--rbv-ease) both, rbv-parallax linear both;
    animation-timeline: auto, scroll(root);
    animation-range: normal, 0 100vh;
  }
  @keyframes rbv-parallax { to { translate: 0 14%; } }

  /* ภาพใน split section ขยับเล็กน้อยตามการเลื่อน */
  .split-img { animation: rbv-drift linear both; animation-timeline: view(); }
  @keyframes rbv-drift { from { object-position: 50% 35%; } to { object-position: 50% 65%; } }
}

/* 19.4 รูปภาพ "เปิดม่าน" เมื่อเลื่อนมาเห็น (ใช้คลาส motion-reveal เดิมจาก main.js) */
.card.motion-reveal .card-img-top,
[data-gallery].motion-reveal figure {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--rbv-ease);
}
.card.motion-reveal.is-visible .card-img-top,
[data-gallery].motion-reveal.is-visible figure { clip-path: inset(0 0 0 0); }
.card.motion-reveal .card-img-top img { scale: 1.12; transition: scale 1.4s var(--rbv-ease), transform 1.1s var(--rbv-ease); }
.card.motion-reveal.is-visible .card-img-top img { scale: 1; }
/* ไล่จังหวะทีละการ์ด */
.row > .col:nth-child(3n+2) .card.motion-reveal .card-img-top { transition-delay: .08s; }
.row > .col:nth-child(3n+3) .card.motion-reveal .card-img-top { transition-delay: .16s; }

/* 19.5 การ์ดห้อง: hover ชื่อห้องเปลี่ยนสี + ลิงก์ขยับ */
.card:has(> .card-img-top) .card-title { transition: color .3s ease; }
.card:has(> .card-img-top):hover .card-title { color: var(--rbv-ocean); }
.card:has(> .card-img-top):hover .link-arrow::after { transform: translateX(4px); }
.card:has(> .card-img-top) { cursor: default; }

/* 19.6 ปุ่ม: hover แบบเติมสีจากซ้าย */
.btn-primary, .btn-light, .btn-outline-light, .btn-outline-primary {
  position: relative; isolation: isolate; overflow: hidden;
}
.btn-primary::before, .btn-light::before, .btn-outline-light::before, .btn-outline-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--rbv-ease);
}
.btn-primary::before { background: var(--rbv-navy); }
.btn-light::before { background: var(--rbv-mist); }
.btn-outline-light::before { background: #fff; }
.btn-outline-primary::before { background: var(--rbv-ocean); }
.btn-primary:hover::before, .btn-light:hover::before, .btn-outline-light:hover::before, .btn-outline-primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary:hover { --bs-btn-hover-bg: var(--rbv-ocean); }
.btn-light:hover { --bs-btn-hover-bg: #fff; }
.btn-outline-light:hover { --bs-btn-hover-bg: transparent; --bs-btn-hover-color: var(--rbv-navy); }
.btn-outline-primary:hover { --bs-btn-hover-bg: transparent; --bs-btn-hover-color: #fff; }
.site-nav.scrolled .btn-light::before { background: var(--rbv-ocean); }
.site-nav.scrolled .btn-light:hover { --bs-btn-hover-bg: var(--rbv-navy); }

/* 19.7 มือถือ: การ์ดห้อง (3 ใบขึ้นไป) เป็นแถบปัดซ้าย-ขวา */
@media (max-width: 767.98px) {
  .row.g-4:has(> .col:nth-child(3) .card-img-top) {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--bs-gutter-x) * .5);
    padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--rbv-tide) transparent;
    -webkit-overflow-scrolling: touch;
  }
  .row.g-4:has(> .col:nth-child(3) .card-img-top) > .col { flex: 0 0 84%; max-width: 84%; scroll-snap-align: start; }
  .row.g-4:has(> .col:nth-child(3) .card-img-top) .card.motion-reveal .card-img-top { clip-path: none; }
  .row.g-4:has(> .col:nth-child(3) .card-img-top) .card.motion-reveal .card-img-top img { scale: 1; }
}

/* 19.8 รายละเอียดเล็ก ๆ */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* แถบเลื่อนเฉพาะการ์ดห้องแบบปัด (ไม่แตะแถบเลื่อนของทั้งหน้า) */
.row.g-4::-webkit-scrollbar { height: 4px; }
.row.g-4::-webkit-scrollbar-thumb { background: rgba(23, 95, 112, .35); }
.row.g-4::-webkit-scrollbar-track { background: transparent; }
.accordion-button::after { transition: transform .35s var(--rbv-ease); }

@media (prefers-reduced-motion: reduce) {
  .site-nav.nav-hidden { transform: none; }
  .card.motion-reveal .card-img-top, [data-gallery].motion-reveal figure { clip-path: none !important; }
  .card.motion-reveal .card-img-top img { scale: 1 !important; }
  .btn::before { display: none; }
  html { scroll-behavior: auto; }
}

/* 19.9 Booking bar: แท็บ Hotel / Monthly และเลย์เอาต์โหมด Monthly */
/* แท็บไม่ใช้เอฟเฟกต์เติมสี — เป็นตัวอักษร + เส้นใต้เท่านั้น ทุกสถานะ */
.booking-bar .btn-group .btn::before { content: none; }
.booking-bar .btn-group .btn,
.booking-bar .btn-group .btn:hover,
.booking-bar .btn-group .btn:focus,
.booking-bar .btn-group .btn:active,
.booking-bar .btn-group .btn.active {
  background: transparent !important; box-shadow: none !important;
}
.booking-bar .btn-group .btn { color: var(--bs-secondary-color); transition: color .2s ease, border-color .25s ease; }
.booking-bar .btn-group .btn:hover { color: var(--rbv-ink); border-bottom-color: rgba(23, 95, 112, .3); }
.booking-bar .btn-group .btn.active,
.booking-bar .btn-group .btn.active:hover { color: var(--rbv-ink); border-bottom-color: var(--rbv-ocean); }
.booking-bar .btn-group .btn:focus-visible { outline: 2px solid var(--rbv-tide); outline-offset: 4px; }

/* โหมด Monthly (ช่อง Check out ถูกซ่อน): กระจาย 4 ส่วนเต็มแถบ ไม่เหลือช่องว่างขวา */
@media (min-width: 992px) {
  .booking-bar .row:has([data-checkout][hidden]) > [class*="col-lg-"] { flex: 0 0 auto; width: 25%; }
}
@media (max-width: 991.98px) {
  .booking-bar .row:has([data-checkout][hidden]) > .col-6 { width: 100%; }
}

/* 19.10 ไอคอนจุดเด่น (หน้าแรก + Monthly Living) */
.feature-icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 1.1rem;
  color: var(--rbv-ocean); background: rgba(23, 95, 112, .08);
  transition: background-color .3s ease, color .3s ease;
}
.feature-icon svg { width: 24px; height: 24px; }
.border-top.pt-3:hover .feature-icon { background: var(--rbv-ocean); color: #fff; }
.bg-sand .feature-icon { background: rgba(255, 255, 255, .6); }
.bg-sand .border-top.pt-3:hover .feature-icon { background: var(--rbv-ocean); }
@media (max-width: 575.98px) {
  /* มือถือ: ไอคอนอยู่ซ้าย ข้อความอยู่ขวา ประหยัดความสูง */
  .border-top.pt-3:has(.feature-icon) { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start; }
  .border-top.pt-3 .feature-icon { grid-row: span 2; width: 44px; height: 44px; margin: .1rem 0 0; }
}

/* ==========================================================================
   20. Room cards & heading refinement
   ========================================================================== */
/* หัวข้อใหญ่: คลายระยะตัวอักษร อ่านง่ายขึ้นกับฟอนต์จริง */
h2 { letter-spacing: -.03em; line-height: 1.02; }
.hero .display-3 { letter-spacing: -.04em; }
.hero-sm .display-3 { letter-spacing: -.035em; }
main > section.section.bg-navy.text-center h2 { letter-spacing: -.035em; }

/* หัวข้อ section: เส้นแบ่งบาง ๆ ใต้ส่วนหัว */
.section .row.g-4.align-items-end.mb-5 { padding-bottom: 2.5rem; border-bottom: 1px solid var(--rbv-line); margin-bottom: 3rem !important; }
.bg-navy .row.g-4.align-items-end.mb-5 { border-bottom-color: rgba(255,255,255,.12); }

/* การ์ดที่มีรูป */
.card:has(> .card-img-top) { position: relative; }
/* ป้ายขนาด/จำนวนผู้เข้าพัก ลอยบนรูป */
.card:has(> .card-img-top) .card-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; margin: 0 !important;
  padding: .45rem .75rem; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--rbv-ink); font-size: .8rem; font-weight: 500; line-height: 1.2;
}
.card:has(> .card-img-top) > .card-body { padding-top: 1.5rem !important; }
.card:has(> .card-img-top) .card-title { font-size: 1.55rem; margin-bottom: .5rem; letter-spacing: -.025em; }
.card:has(> .card-img-top) .card-text { font-size: .98rem; line-height: 1.6; }

/* ข้อมูลห้อง: ไอคอน + ตัวอักษร ในกรอบเส้นบน-ล่าง */
.card .facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin: 1.25rem 0 0 !important; padding: .9rem 0; list-style: none;
  border-top: 1px solid var(--rbv-line); border-bottom: 1px solid var(--rbv-line);
}
.card .facts .list-inline-item {
  display: inline-flex; align-items: center; gap: .4rem; padding: 0 !important; border: 0 !important;
  font-size: .9rem; font-weight: 500; color: var(--rbv-ink);
}
.card .facts .list-inline-item::before {
  content: ""; display: block; width: 18px; height: 18px; margin: 0; flex: none;
  background: var(--rbv-ocean);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.card .facts .list-inline-item:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v17'/%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M14.5 12.5h.01' stroke-width='2.4'/%3E%3C/svg%3E"); }
.card .facts .list-inline-item:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18v2a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5z'/%3E%3Cpath d='M6 12V5.5A2.5 2.5 0 0 1 8.5 3c1.2 0 2.2.8 2.4 2'/%3E%3Cpath d='M7 19l-1 2'/%3E%3Cpath d='M17 19l1 2'/%3E%3C/svg%3E"); }
.card .facts .list-inline-item:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19v-7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7'/%3E%3Cpath d='M3 15h18'/%3E%3Cpath d='M6 10V7.5A1.5 1.5 0 0 1 7.5 6h3A1.5 1.5 0 0 1 12 7.5V10'/%3E%3Cpath d='M12 10V7.5A1.5 1.5 0 0 1 13.5 6h3A1.5 1.5 0 0 1 18 7.5V10'/%3E%3C/svg%3E"); }
.card .facts + .mt-auto { padding-top: 1.1rem !important; }

/* คลิกได้ทั้งการ์ด (ลิงก์ View room ครอบทั้งการ์ด) */
.card:has(> .card-img-top) .link-arrow::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(> .card-img-top):has(.link-arrow) { cursor: pointer; }
.card:has(> .card-img-top):hover .link-arrow { color: var(--rbv-ocean); border-bottom-color: var(--rbv-ocean); }
.card:has(> .card-img-top) .link-arrow:focus-visible { outline: none; }
.card:has(> .card-img-top):has(.link-arrow:focus-visible) { outline: 2px solid var(--rbv-tide); outline-offset: 6px; }

@media (max-width: 767.98px) {
  .section .row.g-4.align-items-end.mb-5 { padding-bottom: 1.75rem; margin-bottom: 2rem !important; }
  .card:has(> .card-img-top) .card-title { font-size: 1.4rem; }
  .card .facts { gap: .5rem 1rem; }
}

/* ==========================================================================
   21. Rooms comparison table (หน้า rooms) + heading tracking fix
   ========================================================================== */
/* หัวข้อใหญ่: ฟอนต์ DM Sans แบบ variable บีบตัวเองที่ขนาดใหญ่อยู่แล้ว ไม่ต้องบีบเพิ่มมาก */
h2 { letter-spacing: -.018em; }
.hero .display-3 { letter-spacing: -.028em; }
.hero-sm .display-3 { letter-spacing: -.022em; }
main > section.section.bg-navy.text-center h2 { letter-spacing: -.022em; }
.split-copy h2 { letter-spacing: -.015em; }

.comparison-wrap { background: #fff !important; border: 0 !important; box-shadow: 0 1px 0 var(--rbv-line), 0 30px 60px -40px rgba(6,25,35,.35) !important; }
.comparison-table { --bs-table-bg: transparent; --bs-table-hover-bg: transparent; }
.comparison-table thead th {
  background: #fff !important; color: var(--bs-secondary-color) !important;
  font-size: .8rem !important; font-weight: 500; padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--rbv-ink) !important;
}
.comparison-table tbody tr { position: relative; transition: background-color .25s ease; }
.comparison-table tbody tr:hover { background: var(--rbv-shell); }
.comparison-table tbody tr::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rbv-ocean); transform: scaleY(0); transition: transform .3s var(--rbv-ease);
}
.comparison-table tbody tr:hover::after { transform: scaleY(1); }
.comparison-table td { padding: 1rem 1.25rem; border-color: var(--rbv-line); color: var(--rbv-ink); font-size: .95rem; }

/* ชื่อห้อง + รูปย่อ, คลิกได้ทั้งแถว */
.comparison-table .room-link {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  font-family: var(--rbv-serif); font-size: 1.02rem !important; font-weight: 500; color: var(--rbv-ink);
}
.comparison-table .room-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.comparison-table .room-link::after {
  content: ""; width: 18px; height: 18px; margin-left: auto; flex: none; opacity: 0;
  background: var(--rbv-ocean); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translateX(-6px); transition: opacity .25s ease, transform .3s var(--rbv-ease);
}
.comparison-table tr:hover .room-link { color: var(--rbv-ocean); }
.comparison-table tr:hover .room-link::after { opacity: 1; transform: none; }
.room-thumb { width: 72px; height: 54px; object-fit: cover; flex: none; }

/* ขนาดห้อง + แถบเปรียบเทียบ (เต็ม = 120 sq.m.) */
.size-value { display: block; font-weight: 500; white-space: nowrap; }
.size-bar { display: block; width: 88px; height: 4px; margin-top: .45rem; background: var(--rbv-mist); }
.size-bar > span { display: block; height: 100%; background: var(--rbv-tide); width: 50%; }
[data-size="70"] .size-bar > span { width: 58%; }
[data-size="80"] .size-bar > span { width: 67%; }
[data-size="90"] .size-bar > span { width: 75%; }
[data-size="100"] .size-bar > span { width: 83%; }
[data-size="120"] .size-bar > span { width: 100%; background: var(--rbv-ocean); }

/* ผู้เข้าพัก: ไอคอนคน */
.guest-icons { display: flex; gap: 1px; color: var(--rbv-ocean); margin-bottom: .2rem; }
.guest-text { display: block; font-size: .85rem; color: var(--bs-secondary-color); white-space: nowrap; }

/* ห้องนอน / ห้องน้ำ: ไอคอนนำหน้า */
.cell-ico { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.cell-ico::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--rbv-ocean);
  -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.ico-bedroom { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v17'/%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M14.5 12.5h.01' stroke-width='2.4'/%3E%3C/svg%3E"); }
.ico-bath { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18v2a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5z'/%3E%3Cpath d='M6 12V5.5A2.5 2.5 0 0 1 8.5 3c1.2 0 2.2.8 2.4 2'/%3E%3Cpath d='M7 19l-1 2'/%3E%3Cpath d='M17 19l1 2'/%3E%3C/svg%3E"); }

/* วิว: ป้าย, panoramic เด่นกว่า */
.view-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; font-size: .82rem; font-weight: 500;
  background: var(--rbv-mist); color: var(--rbv-ink); white-space: nowrap; }
.view-tag::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10c1.7 0 1.7-1.5 3.3-1.5s1.7 1.5 3.4 1.5 1.6-1.5 3.3-1.5 1.7 1.5 3.3 1.5 1.7-1.5 3.4-1.5 1.6 1.5 3.3 1.5'/%3E%3Cpath d='M2 16c1.7 0 1.7-1.5 3.3-1.5s1.7 1.5 3.4 1.5 1.6-1.5 3.3-1.5 1.7 1.5 3.3 1.5 1.7-1.5 3.4-1.5 1.6 1.5 3.3 1.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10c1.7 0 1.7-1.5 3.3-1.5s1.7 1.5 3.4 1.5 1.6-1.5 3.3-1.5 1.7 1.5 3.3 1.5 1.7-1.5 3.4-1.5 1.6 1.5 3.3 1.5'/%3E%3Cpath d='M2 16c1.7 0 1.7-1.5 3.3-1.5s1.7 1.5 3.4 1.5 1.6-1.5 3.3-1.5 1.7 1.5 3.3 1.5 1.7-1.5 3.4-1.5 1.6 1.5 3.3 1.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.view-tag.is-panoramic { background: var(--rbv-ocean); color: #fff; }
.view-tag.is-partial { background: transparent; box-shadow: inset 0 0 0 1px var(--rbv-line); color: var(--bs-secondary-color); }

/* มือถือ: แต่ละห้องเป็นการ์ด หัวการ์ดมีรูปย่อ */
@media (max-width: 767.98px) {
  .comparison-wrap { box-shadow: none !important; background: transparent !important; }
  .comparison-table tbody tr { border: 0 !important; background: #fff; padding: 0 !important; margin-bottom: 1rem; overflow: hidden; }
  .comparison-table tbody tr:hover { background: #fff; }
  .comparison-table td[data-label="Suite"] { background: #fff !important; padding: 0 !important; margin: 0 !important; border-bottom: 1px solid var(--rbv-line) !important; }
  .comparison-table .room-link { padding: .75rem; font-size: 1.05rem !important; }
  .comparison-table .room-link::after { opacity: 1; transform: none; }
  .room-thumb { width: 84px; height: 63px; }
  .comparison-table td { align-items: center !important; padding: .7rem .9rem !important; }
  .comparison-table td[data-label="Size"] .size-bar { margin: .35rem 0 0 auto; }
  .comparison-table td[data-label="Guests"] > span { justify-content: flex-end; text-align: right; }
  .comparison-table td[data-label="Size"] > span, .comparison-table td[data-label="Guests"] > span { margin-left: auto; }
}
h2 { letter-spacing: -.01em; }
@media (max-width: 767.98px) {
  .comparison-table .room-link { flex: 1 1 auto; }
  .comparison-table td[data-label="Size"],
  .comparison-table td[data-label="Guests"] {
    display: grid !important; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .2rem; align-items: center;
  }
  .comparison-table td[data-label="Size"]::before,
  .comparison-table td[data-label="Guests"]::before { grid-row: 1 / span 2; }
  .comparison-table td[data-label="Size"] > span,
  .comparison-table td[data-label="Guests"] > span { grid-column: 2; justify-self: end; margin: 0 !important; }
}

/* ==========================================================================
   22. Room detail page (rooms/one-bedroom-suite) — icons & polish
   ========================================================================== */
/* แถบตัวเลข: ไอคอนซ้าย ตัวเลข + คำอธิบายขวา */
.stat-item { display: grid !important; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: center; }
.stat-item .stat-icon {
  grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--rbv-tide); box-shadow: inset 0 0 0 1px rgba(120, 174, 181, .35);
}
.stat-item .stat-value { letter-spacing: -.01em; line-height: 1.1; }
.bg-navy.text-white.py-4 { padding-block: 2rem !important; }

/* การ์ด About the suite: ไอคอนบนหัวการ์ด */
.card:not(:has(> .card-img-top)) .feature-icon { margin-bottom: 1.25rem; }
.card:not(:has(> .card-img-top)):hover .feature-icon { background: var(--rbv-ocean); color: #fff; }

/* รายการสิ่งอำนวยความสะดวกในส่วน split */
.amenity-list {
  list-style: none; padding: 0; margin: 2rem 0 .5rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem;
}
.amenity-list li { display: flex; align-items: flex-start; gap: .85rem; }
.amenity-icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: #fff; color: var(--rbv-ocean);
}
.amenity-list strong { display: block; font-weight: 500; font-size: .95rem; color: var(--rbv-ink); line-height: 1.3; }
.amenity-list small { display: block; font-size: .82rem; color: var(--bs-secondary-color); line-height: 1.4; margin-top: .1rem; }
.split-copy .amenity-list + .d-flex { margin-top: 2rem !important; }

@media (max-width: 991.98px) {
  .stat-item { grid-template-columns: 38px 1fr; column-gap: .75rem; }
  .stat-item .stat-icon { width: 38px; height: 38px; }
  .stat-item .stat-icon svg { width: 20px; height: 20px; }
}
@media (max-width: 575.98px) {
  .amenity-list { grid-template-columns: 1fr; gap: 1rem; }
}
.hero .display-3, .hero-sm .display-3 { letter-spacing: -.018em; }
main > section.section.bg-navy.text-center h2 { letter-spacing: -.015em; }
@media (max-width: 767.98px) {
  /* มือถือ: ไอคอนอยู่บน ตัวเลข/คำอธิบายอยู่ล่าง */
  .stat-item { grid-template-columns: 1fr; row-gap: .15rem; align-items: start; }
  .stat-item .stat-icon { grid-row: auto; width: 34px; height: 34px; margin-bottom: .5rem; }
  .stat-item .stat-icon svg { width: 18px; height: 18px; }
  .stat-item .stat-value { font-size: 1.35rem; }
  .bg-navy.text-white.py-4 .row > [class*="col"] { padding-left: calc(var(--bs-gutter-x) * .5) !important; }
}
.hero .display-3 + .lead { margin-top: 2.25rem; }
.hero-sm .display-3 { line-height: 1; }

/* ==========================================================================
   23. Mobile booking bar — compact (แถบ Book now / LINE บนมือถือ)
   ========================================================================== */
@media (max-width: 991.98px) {
  body { padding-bottom: 48px; }
  .mobile-bar {
    left: 0; right: 0; bottom: 0; border-radius: 0;
    padding: .4rem .75rem calc(.4rem + env(safe-area-inset-bottom)) !important;
    background-color: rgba(246, 244, 238, .92) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid var(--rbv-line); box-shadow: 0 -8px 24px -16px rgba(6, 25, 35, .35);
  }
  .mobile-bar .row { --bs-gutter-x: .5rem; flex-wrap: nowrap; }
  .mobile-bar .btn {
    --bs-btn-padding-y: 0; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .82rem; --bs-btn-font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    line-height: 1; height: 30px; min-height: 30px; overflow: visible;
  }
  .mobile-bar .btn::before { content: none !important; }
  .mobile-bar .btn::after {
    content: ""; order: -1; width: 14px; height: 14px; flex: none; background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  }
  .mobile-bar .btn-primary {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='1.5'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 3v4M16 3v4'/%3E%3C/svg%3E");
    --bs-btn-bg: var(--rbv-navy); --bs-btn-border-color: var(--rbv-navy);
    --bs-btn-hover-bg: var(--rbv-ocean); --bs-btn-hover-border-color: var(--rbv-ocean);
    --bs-btn-active-bg: var(--rbv-ocean); --bs-btn-active-border-color: var(--rbv-ocean);
  }
  .mobile-bar .btn-success { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.6 1.1-.5 6-3.5 8.2-6.1C21.6 14.1 22 12.6 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }
  /* ซ่อนแถบเมื่อเมนูมือถือเปิดอยู่ */
  body:has(.site-nav .navbar-collapse.show) .mobile-bar { transform: translateY(110%); }
  .mobile-bar { transition: transform .35s var(--rbv-ease); }
}

/* ==========================================================================
   24. Hero background video (หน้าแรก — assets/vdo/vdo.mp4)
   ========================================================================== */
.hero-video { z-index: 0; pointer-events: none; }
.hero > .container { z-index: 2; }
.hero-video-toggle {
  position: absolute; z-index: 3; right: clamp(1rem, 3vw, 2.5rem); bottom: 6rem;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  color: #fff; background: rgba(6, 25, 35, .35); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.hero-video-toggle:hover { background: rgba(6, 25, 35, .6); border-color: #fff; }
.hero-video-toggle:focus-visible { outline: 2px solid var(--rbv-tide); outline-offset: 3px; }
.hero-video-toggle .icon-play { display: none; }
.hero-video-toggle.is-paused .icon-play { display: block; margin-left: 2px; }
.hero-video-toggle.is-paused .icon-pause { display: none; }
@media (max-width: 767.98px) { .hero-video-toggle { bottom: 1rem; width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .hero-video { transition: none; } }

/* 24.1 หน้าแรก: hero ไม่มีข้อความ → ลด overlay ให้วิดีโอเห็นชัด (เหลือเฉพาะไล่เข้มด้านบนให้อ่านเมนูได้) */
.hero:has(> .hero-video)::after {
  background: linear-gradient(180deg, rgba(6,25,35,.5) 0%, rgba(6,25,35,0) 28%),
              linear-gradient(0deg, rgba(6,25,35,.25) 0%, rgba(6,25,35,0) 30%);
}

/* 24.2 หน้าแรก: วิดีโอ hero เต็มจอ (สูงเท่าหน้าจอพอดี ทุกขนาดจอ)
   แถบจองห้องย้ายลงมาใต้วิดีโอ ไม่ทับวิดีโอ */
.hero:has(> .hero-video) {
  height: 100vh; height: 100svh;
  min-height: 0; max-height: none;
  margin: 0; border-radius: 0;
}
.hero:has(> .hero-video) > .container { padding: 0 !important; }
.hero:has(> .hero-video) .hero-video-toggle { bottom: 1.5rem; }
.hero:has(> .hero-video) + .booking-bar { margin-top: 2.5rem; }
@media (max-width: 767.98px) {
  .hero:has(> .hero-video) { height: 100vh; height: 100svh; min-height: 0; }
  .hero:has(> .hero-video) + .booking-bar { margin-top: 0; }
  .hero:has(> .hero-video) .hero-video-toggle { bottom: 1rem; }
}
/* มือถือ: ไม่ให้แถบ Book now/LINE บังวิดีโอตอนอยู่บนสุด — ซ่อนจนกว่าจะเลื่อนลง */
@media (max-width: 991.98px) {
  body:has(.hero > .hero-video) .mobile-bar { transform: translateY(110%); }
  body:has(.hero > .hero-video):has(.site-nav.scrolled) .mobile-bar { transform: none; }
  body:has(.hero > .hero-video):has(.site-nav .navbar-collapse.show) .mobile-bar { transform: translateY(110%); }
}

/* 24.3 Hero YouTube: ขยาย iframe 16:9 ให้เต็ม hero แบบ cover และซ่อนขอบ/โลโก้ YouTube */
.hero-youtube { overflow: hidden; opacity: 0; transition: opacity 1s ease; background: transparent; }
.hero-youtube.is-playing { opacity: 1; }
.hero-youtube iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;          /* 16:9 ตามความกว้าง */
  min-height: 100%; min-width: 177.78vh;  /* 16:9 ตามความสูง */
  min-width: 177.78svh;
  transform: translate(-50%, -50%) scale(1.15); /* ขยายเล็กน้อยเพื่อตัดขอบ UI ของ YouTube */
  border: 0; pointer-events: none;
}