/* ============================================================
   Ngàn Lẻ Một Đêm — hệ thống thiết kế
   Bảng màu: nâu cacao + vàng champagne, nền có ánh đèn hắt sáng
   ============================================================ */

:root {
  /* Nền */
  --ink:        #140D09;   /* nền sâu nhất */
  --cocoa:      #241A13;   /* nền trang */
  --surface:    #2D1F16;   /* thẻ, panel */
  --surface-2:  #3A2819;   /* hover / lớp nổi */
  --line:       #46331F;   /* đường viền */
  --line-soft:  #35251799;

  /* Champagne */
  --gold:       #C9A46A;
  --gold-lt:    #E4C489;
  --gold-warm:  #E2B770;   /* ánh đèn hắt */
  --gold-dim:   rgba(201, 164, 106, .24);

  /* Chữ */
  --ivory:      #F7F1EB;
  --ivory-soft: #D8C7B9;
  --mute:       #A78F7D;

  /* Chữ trên nền ảnh */
  --on-img:     #FFFFFF;
  --on-img-2:   #F0DCBE;

  /* Chữ */
  --f-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --f-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  /* Đổ bóng có viền sáng mảnh phía trên + quầng vàng ấm */
  --shadow: 0 1px 0 rgba(255, 236, 210, .05) inset, 0 10px 30px -18px rgba(0, 0, 0, .9);
  --shadow-lg: 0 1px 0 rgba(255, 236, 210, .09) inset, 0 20px 50px -22px rgba(0, 0, 0, .95),
               0 0 40px -12px rgba(201, 164, 106, .28);

  /* Viền vàng gradient dùng chung cho nút */
  --edge: linear-gradient(140deg,
            rgba(244, 222, 182, .95) 0%,
            rgba(201, 164, 106, .45) 32%,
            rgba(201, 164, 106, .08) 52%,
            rgba(226, 183, 112, .55) 78%,
            rgba(248, 231, 197, .9) 100%);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  color: var(--ivory-soft);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* clip chứ KHÔNG dùng hidden: hidden biến body thành vùng cuộn riêng,
     khiến position:sticky (thanh điều hướng, tiêu đề bảng giá) mất tác dụng.
     clip cắt tràn y hệt nhưng không tạo vùng cuộn. */
  overflow-x: clip;

  /* Ba quầng đèn vàng hắt từ góc trên trái, phải và dưới đáy,
     phủ lên nền nâu chuyển sắc. Cố định để ánh sáng không trôi khi cuộn. */
  background-color: var(--cocoa);
  background-image:
    radial-gradient(46rem 32rem at 8% 2%, rgba(226, 183, 112, .16), transparent 60%),
    radial-gradient(40rem 30rem at 100% 26%, rgba(201, 164, 106, .12), transparent 58%),
    radial-gradient(60rem 42rem at 50% 104%, rgba(140, 92, 52, .16), transparent 62%),
    linear-gradient(180deg, #3A2A1E 0%, var(--cocoa) 38%, #1D140E 100%);
  background-attachment: fixed;
}

/* Lớp hạt mịn — khử dải màu (banding) trên vùng chuyển sắc rộng */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Quầng sáng trôi rất chậm — như đèn hắt tường đổi hướng */
body::after {
  content: '';
  position: fixed;
  inset: -25% -45%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background: radial-gradient(42% 55%, rgba(233, 195, 130, .13), rgba(201, 164, 106, .05) 45%, transparent 72%);
  animation: light-drift 48s ease-in-out infinite alternate;
}
@keyframes light-drift {
  from { transform: translate(-28%, -4%); }
  to   { transform: translate(28%, 4%); }
}

/* Dải sáng vàng quét qua quét lại toàn trang — rất nhạt, chỉ đủ thấy chuyển động */
.sweep {
  position: fixed;
  inset: -20% -60%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background: linear-gradient(
    104deg,
    transparent 34%,
    rgba(233, 196, 132, .05) 44%,
    rgba(245, 219, 172, .10) 50%,
    rgba(233, 196, 132, .05) 56%,
    transparent 66%);
  animation: sweep-across 26s ease-in-out infinite alternate;
}
@keyframes sweep-across {
  from { transform: translateX(-32%); }
  to   { transform: translateX(32%); }
}

/* Nội dung nằm trên các lớp ánh sáng */
body > * { position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.005em;
}

/* Playfair có dấu tiếng Việt hơi cao — nới line-height cho tiêu đề lớn */
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); line-height: 1.16; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); line-height: 1.22; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }

p { margin: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1240px, 100% - 32px); } }

.section { padding: clamp(64px, 8vw, 118px) 0; }
.section--tight { padding: clamp(48px, 5vw, 76px) 0; }

/* ---------- Chữ trang trí ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--center::after {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(270deg, transparent, var(--gold));
}

.lead { color: var(--mute); max-width: 58ch; }
.head-c { text-align: center; }
.head-c .lead { margin-inline: auto; }

/* ============================================================
   Nền cụm thông tin — nâu chuyển sắc + quầng vàng hắt từ góc trên trái,
   để mỗi cụm nổi khỏi nền trang thay vì chìm thành một mảng nâu phẳng.
   ============================================================ */
.pgroup, .feat, .bcard, .rcard, .rule-item, .faq-item, .spec {
  background-image:
    radial-gradient(120% 120% at 0% 0%, rgba(226, 183, 112, .15), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(140, 92, 52, .18), transparent 62%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
/* Rê chuột thì quầng vàng sáng hơn */
.pgroup:hover, .feat:hover, .bcard:hover, .rcard:hover, .rule-item:hover, .faq-item:hover, .spec:hover {
  background-image:
    radial-gradient(120% 120% at 0% 0%, rgba(226, 183, 112, .24), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(140, 92, 52, .2), transparent 62%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

/* Vệt sáng vàng mảnh chạy dọc mép trên panel — như đèn hắt viền bàn lễ tân */
.edge-light { position: relative; }
.edge-light::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 12%;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(226, 183, 112, .7), transparent);
}

/* Đường vàng mảnh trang trí */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 20%, var(--gold-dim) 80%, transparent);
  border: 0;
  margin: 0;
}

/* ---------- Nút ---------- */
.btn {
  --fg: #2A1A0C;
  --glow: 0 0 0 rgba(226, 183, 112, 0);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  color: var(--fg);
  border: 0;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  background-image: linear-gradient(177deg, #E6CCA0 0%, #D2AC74 46%, #B98F57 100%);
  box-shadow:
    inset 0 1px rgba(255, 250, 240, .6),
    inset 0 -1px rgba(84, 57, 24, .28),
    0 12px 26px -16px rgba(0, 0, 0, .9);
  transition: transform .3s var(--ease), box-shadow .35s var(--ease),
              background-image .35s var(--ease), color .3s, filter .3s;
}

/* Icon trong nút phải có kích thước cố định — SVG không đặt width sẽ
   tự giãn hết chỗ trống và phình to bất thường. */
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--sm svg { width: 15px; height: 15px; }

/* Vòng viền vàng gradient — vẽ bằng lớp phủ có mask,
   z-index:-1 để nằm trên nền nút nhưng dưới phần chữ. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .5;
  transition: opacity .35s var(--ease), filter .35s var(--ease);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  background-image: linear-gradient(177deg, #EFD8B0 0%, #DCB887 46%, #C39A60 100%);
  box-shadow:
    inset 0 1px rgba(255, 252, 246, .7),
    inset 0 -1px rgba(84, 57, 24, .25),
    0 18px 34px -18px rgba(0, 0, 0, .9),
    0 0 30px -14px rgba(226, 183, 112, .75);
}
.btn:hover::before { opacity: 1; }

/* Nhấn xuống: viền gradient sáng hẳn lên và toả quầng vàng */
.btn:active {
  transform: translateY(1px) scale(.995);
  filter: brightness(.98);
}
.btn:active::before,
.btn:focus-visible::before {
  opacity: 1;
  filter: brightness(1.35) saturate(1.15) drop-shadow(0 0 5px rgba(226, 183, 112, .8));
}
.btn:active {
  box-shadow:
    inset 0 2px 5px rgba(84, 57, 24, .4),
    0 0 0 1px rgba(226, 183, 112, .35),
    0 0 26px -6px rgba(226, 183, 112, .55);
}

/* Nút nền trong suốt */
.btn--ghost {
  --fg: var(--ivory);
  background-image: none;
  background-color: rgba(247, 241, 235, .04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px rgba(255, 240, 220, .06);
}
.btn--ghost::before { opacity: .62; }
.btn--ghost:hover {
  background-image: none;
  background-color: rgba(201, 164, 106, .12);
  color: var(--gold-lt);
  box-shadow: inset 0 1px rgba(255, 240, 220, .1), 0 0 28px -14px rgba(226, 183, 112, .8);
}

.btn--outline-gold {
  --fg: var(--gold-lt);
  background-image: none;
  background-color: transparent;
  box-shadow: none;
}
.btn--outline-gold::before { opacity: .7; }
.btn--outline-gold:hover {
  background-image: none;
  background-color: rgba(201, 164, 106, .1);
  color: var(--gold-lt);
  box-shadow: 0 0 26px -14px rgba(226, 183, 112, .8);
}

.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled::before { opacity: .3; filter: none; }

/* Liên kết gạch chân chạy */
.link-u {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-lt);
  font-weight: 600;
  font-size: .9rem;
  position: relative;
}
.link-u::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Thanh điều hướng ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(29, 20, 14, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 164, 106, .18);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

/* Vệt sáng vàng chạy dọc mép dưới — đậm dần khi cuộn xuống */
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent, rgba(226, 183, 112, .25) 18%, rgba(244, 222, 182, .85) 50%,
    rgba(226, 183, 112, .25) 82%, transparent);
  opacity: .55;
  transition: opacity .4s var(--ease);
}

.nav.is-stuck {
  background: rgba(26, 18, 12, .96);
  border-bottom-color: rgba(201, 164, 106, .4);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .95), 0 0 30px -18px rgba(226, 183, 112, .55);
}
.nav.is-stuck::after { opacity: 1; }
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}
.nav__logo img { height: 46px; width: auto; }
.nav__logo .mark { display: none; height: 38px; }
@media (max-width: 520px) {
  .nav__logo .wide { display: none; }
  .nav__logo .mark { display: block; }
}

.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ivory-soft);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current] { color: var(--gold-lt); }
.nav__menu a:hover::after, .nav__menu a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 14px; }
@media (max-width: 1000px) { .nav__menu { display: none; } }

/* ---------- Popup "Đặt phòng" ---------- */
.bookmenu { position: relative; }
.bookmenu__caret { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.bookmenu.is-open .bookmenu__caret { transform: rotate(180deg); }

.bookmenu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: max(268px, 100%);
  padding: 8px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  animation: pick-in .22s var(--ease);
}
.bookmenu__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: var(--ivory-soft);
  transition: .22s var(--ease);
}
.bookmenu__item:hover {
  background: rgba(201, 164, 106, .13);
  border-color: rgba(201, 164, 106, .45);
  color: var(--gold-lt);
  transform: translateX(2px);
}
.bookmenu__ico {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-lt);
  background: rgba(201, 164, 106, .12);
  border: 1px solid rgba(201, 164, 106, .3);
}
.bookmenu__ico svg { width: 17px; height: 17px; }
.bookmenu__txt { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.bookmenu__note {
  display: block;
  margin-top: 2px;
  font-size: .74rem;
  font-weight: 400;
  color: var(--mute);
}
.bookmenu__item:hover .bookmenu__ico {
  background: rgba(201, 164, 106, .24);
  border-color: rgba(201, 164, 106, .6);
}

/* Màn hình hẹp: neo theo khung nhìn thay vì theo nút,
   nếu neo theo nút thì panel rộng hơn sẽ thò ra ngoài mép trái. */
@media (max-width: 560px) {
  .bookmenu__panel {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 14px;
    right: 14px;
    width: auto;
  }
}

.burger {
  display: none;
  position: relative;
  isolation: isolate;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(201, 164, 106, .07);
  cursor: pointer;
  place-items: center;
  transition: background .3s var(--ease), transform .25s var(--ease);
}
/* Viền vàng gradient giống nút, cho đồng bộ toàn trang */
.burger::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .7;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.burger:hover { background: rgba(201, 164, 106, .16); }
.burger:hover::before { opacity: 1; filter: brightness(1.2); }
.burger:active { transform: scale(.94); }

/* Ba vạch dài ngắn khác nhau — nhìn cân và tinh hơn ba vạch bằng nhau */
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-lt), var(--gold));
  /* Ba vạch căn giữa, khoảng cách hẹp cho gọn — trước đây lệch phải và bè ra */
  margin: 2.5px auto;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

/* Mở menu thì ba vạch gộp thành dấu X */
.nav .burger[aria-expanded=true] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav .burger[aria-expanded=true] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav .burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1000px) { .burger { display: grid; } }

/* Ngăn kéo menu di động */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__veil {
  position: absolute; inset: 0;
  background: rgba(16, 10, 7, .72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  /* Chỉ chiếm một nửa màn hình — vẫn nhìn thấy nửa trang phía sau */
  width: 50%;
  background-image:
    radial-gradient(120% 60% at 100% 0%, rgba(226, 183, 112, .16), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-left: 0;
  box-shadow: -22px 0 46px -26px rgba(0, 0, 0, .95);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel a.d-link {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__panel a.d-link:hover { color: var(--gold-lt); }
.drawer__close {
  align-self: flex-end;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--ivory);
  margin-bottom: 8px;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(94vh, 900px); display: grid; align-items: end; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  animation: kb 18s ease-out infinite alternate;
}
.hero__bg img.is-on { opacity: 1; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.13); } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 13, 9, .82) 0%, rgba(20, 13, 9, .3) 32%, rgba(20, 13, 9, .72) 72%, var(--ink) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(20, 13, 9, .8), transparent 60%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 2; padding: 150px 0 56px; }
.hero h1 { color: var(--on-img); text-shadow: 0 4px 40px rgba(0, 0, 0, .55); }
.hero__sub {
  color: var(--on-img-2);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem);
  margin-top: 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.hero__eyebrow { color: var(--on-img-2); }
.hero__dots { position: absolute; right: 26px; bottom: 40%; z-index: 3; display: grid; gap: 10px; }
.hero__dots button {
  width: 7px; height: 7px; padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: .4s var(--ease);
}
.hero__dots button[data-on] { height: 24px; background: var(--gold); }
@media (max-width: 720px) { .hero__dots { display: none; } }

/* ---------- Ô đặt phòng (day / hour) ---------- */
.bookbar {
  position: relative;
  border: 1px solid rgba(201, 164, 106, .28);
  background: rgba(45, 31, 22, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.bookbar--page { background: var(--surface); backdrop-filter: none; }

/* Chuyển đổi Ngày / Giờ */
.modeswitch {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(26, 18, 12, .35);
  /* Ô đặt phòng không còn cắt tràn (để panel chọn ngày/giờ thả xuống được),
     nên phần đầu tự bo góc cho khớp khung ngoài. */
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}
.modeswitch button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--mute);
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  position: relative;
  transition: color .3s, background .3s;
}
.modeswitch button svg { width: 17px; height: 17px; opacity: .85; }
.modeswitch button:hover { color: var(--ivory); }
.modeswitch button[aria-selected="true"] {
  color: var(--gold-lt);
  background: var(--surface);
}
.modeswitch button[aria-selected="true"]::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}
.modeswitch__hint {
  display: none;
  font-size: .78rem;
  color: var(--mute);
  padding: 0 0 0 8px;
}

.bookform { padding: 14px; }
.bookgrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}
/* Chế độ ngày có thêm ô "Giờ nhận" nên cần 5 cột */
.bookgrid--day { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }

@media (max-width: 1180px) {
  .bookgrid, .bookgrid--day { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bookgrid .field--submit { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .bookgrid, .bookgrid--day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .bookgrid, .bookgrid--day { grid-template-columns: 1fr; }
}

.field {
  border: 1px solid var(--line);
  background: rgba(26, 18, 12, .5);
  border-radius: 14px;
  padding: 10px 14px;
  transition: border-color .3s, background .3s;
  min-width: 0;
}
.field:focus-within { border-color: var(--gold); background: rgba(201, 164, 106, .06); }
.field--submit { border: 0; background: transparent; padding: 0; }
.field__label {
  display: block;
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2px;
}
.field__ctl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field input, .field select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: .98rem;
  font-weight: 500;
  padding: 2px 0;
  outline: none;
  min-width: 0;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--surface); color: var(--ivory); }
.field input::-webkit-calendar-picker-indicator {
  filter: invert(78%) sepia(24%) saturate(560%) hue-rotate(2deg) brightness(94%);
  cursor: pointer;
}
.field__caret { width: 15px; height: 15px; color: var(--gold); flex: none; pointer-events: none; }

/* ---------- Bộ đếm tăng/giảm (số giờ, số khách) ---------- */
.field--step { display: flex; flex-direction: column; justify-content: center; }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
.stepper button {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(58, 40, 25, .9), rgba(38, 26, 19, .9));
  color: var(--gold-lt);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .25s var(--ease);
  flex: none;
  box-shadow: inset 0 1px rgba(255, 236, 210, .08);
}
.stepper button svg { width: 14px; height: 14px; }
.stepper button:hover:not(:disabled) {
  border-color: rgba(201, 164, 106, .75);
  background: linear-gradient(180deg, rgba(201, 164, 106, .22), rgba(201, 164, 106, .1));
  box-shadow: 0 0 16px -6px rgba(226, 183, 112, .8);
  transform: translateY(-1px);
}
.stepper button:active:not(:disabled) { transform: translateY(0) scale(.94); }
.stepper button:disabled { opacity: .28; cursor: not-allowed; }
.stepper__val {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--ivory);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ---------- Bộ chọn giờ (giờ ở trên, phút ở dưới) ---------- */
.field--pick { position: relative; }
.pick__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.pick__val {
  color: var(--ivory);
  font-weight: 600;
  font-size: .98rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.field--pick.is-open { border-color: var(--gold); background: rgba(201, 164, 106, .06); }
.field--pick.is-open .field__caret { transform: rotate(180deg); }
.field__caret { transition: transform .3s var(--ease); }

.pick__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: max(264px, 100%);
  max-width: calc(100vw - 24px);
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  animation: pick-in .22s var(--ease);
}
@keyframes pick-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Thiếu chỗ bên dưới thì panel lật lên phía trên ô */
.pick__panel.is-up {
  top: auto;
  bottom: calc(100% + 10px);
  animation-name: pick-in-up;
}
@keyframes pick-in-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.pick__head {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.pick__head + .pick__grid, .pick__head + .pick__mins { margin-bottom: 14px; }

/* Ngày tương ứng của từng nhóm giờ (trong ngày / rạng sáng hôm sau) */
.pick__hint {
  margin-left: 7px;
  color: var(--mute);
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 500;
}

/* Nhãn "rạng sáng" cạnh giờ đã chọn */
.pick__tagnext {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 106, .45);
  background: rgba(201, 164, 106, .14);
  color: var(--gold-lt);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.pick__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.pick__mins {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pick__opt {
  padding: 8px 4px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .03);
  color: var(--ivory-soft);
  font-size: .85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: .2s var(--ease);
}
.pick__opt--m { padding: 10px 4px; font-size: .92rem; }
.pick__opt:hover {
  border-color: rgba(201, 164, 106, .6);
  color: var(--gold-lt);
  background: rgba(201, 164, 106, .12);
}
.pick__opt[data-on] {
  background-image: linear-gradient(177deg, #E6CCA0, #C39A60);
  color: #2A1A0C;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 18px -6px rgba(226, 183, 112, .9), inset 0 1px rgba(255, 250, 240, .5);
}
.pick__opt:disabled {
  opacity: .26;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
  text-decoration: line-through;
  text-decoration-color: rgba(201, 164, 106, .5);
}
.pick__opt:disabled:hover { color: var(--ivory-soft); background: transparent; border-color: transparent; }

.pick__note {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: .76rem;
  color: var(--mute);
  line-height: 1.5;
}
.pick__note:empty { display: none; }
.pick__note b { color: var(--gold-lt); font-weight: 600; }

/* ---------- Lịch chọn ngày ---------- */
.pick__panel.cal { width: max(300px, 100%); }

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cal__title {
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: .01em;
}
.cal__nav {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(58, 40, 25, .9), rgba(38, 26, 19, .9));
  color: var(--gold-lt);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .25s var(--ease);
  flex: none;
}
.cal__nav svg { width: 15px; height: 15px; }
.cal__nav:hover:not(:disabled) {
  border-color: rgba(201, 164, 106, .75);
  background: rgba(201, 164, 106, .16);
  box-shadow: 0 0 14px -6px rgba(226, 183, 112, .8);
}
.cal__nav:disabled { opacity: .25; cursor: not-allowed; }

.cal__dow, .cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal__dow {
  margin-bottom: 5px;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}
.cal__pad { aspect-ratio: 1; }
.cal__day {
  aspect-ratio: 1;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ivory-soft);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: .2s var(--ease);
}
.cal__day:hover:not(:disabled) {
  border-color: rgba(201, 164, 106, .6);
  color: var(--gold-lt);
  background: rgba(201, 164, 106, .12);
}
.cal__day:disabled { opacity: .22; cursor: not-allowed; }
.cal__day[data-on] {
  background-image: linear-gradient(177deg, #E6CCA0, #C39A60);
  color: #2A1A0C;
  font-weight: 700;
  box-shadow: 0 0 18px -6px rgba(226, 183, 112, .9), inset 0 1px rgba(255, 250, 240, .5);
}

/* ---------- Ô chỉ đọc (giờ trả phòng) ---------- */
.field--read { display: flex; flex-direction: column; justify-content: center; }
.readout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.readout span {
  color: var(--gold-lt);
  font-weight: 600;
  font-size: .98rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.field--read { background: rgba(201, 164, 106, .07); border-color: rgba(201, 164, 106, .3); }

/* Dải ghi chú dưới ô đặt phòng */
.booknote {
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(26, 18, 12, .4);
  font-size: .83rem;
  color: var(--mute);
}
.booknote b { color: var(--gold-lt); font-weight: 600; }
.booknote__item { display: inline-flex; align-items: center; gap: 8px; }
.booknote__item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- Nảy lên + quầng sáng viền khi rê chuột ---------- */
.rcard, .bcard, .feat, .gal a, .spec {
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.rcard:hover, .bcard:hover, .feat:hover, .spec:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 106, .55);
  box-shadow:
    0 1px 0 rgba(255, 236, 210, .12) inset,
    0 26px 56px -24px rgba(0, 0, 0, .95),
    0 0 46px -14px rgba(226, 183, 112, .45);
}
.gal a:hover { transform: translateY(-4px); box-shadow: 0 0 34px -12px rgba(226, 183, 112, .55); }

@media (prefers-reduced-motion: reduce) {
  .rcard:hover, .bcard:hover, .feat:hover, .spec:hover, .gal a:hover { transform: none; }
  .sweep { animation: none; }
}

/* ---------- Thẻ phòng ---------- */
.grid-rooms {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.rcard {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.rcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.rcard__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 8s var(--ease);
}
.rcard__media img.is-on { opacity: 1; }
.rcard:hover .rcard__media img.is-on { transform: scale(1.07); }
.rcard__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(26, 18, 12, .72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 164, 106, .4);
  color: var(--gold-lt);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}
.rcard__brand {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  z-index: 2;
  color: var(--on-img-2);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.rcard__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 13, 9, .35), transparent 40%, rgba(20, 13, 9, .75));
  z-index: 1;
}
.rcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--mute); }
.rcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.rcard__meta svg { width: 14px; height: 14px; color: var(--gold); }
.rcard__desc { font-size: .9rem; color: var(--mute); line-height: 1.66; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .76rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ivory-soft);
  background: rgba(51, 35, 26, .6);
}
.chip--more { color: var(--gold-lt); border-color: rgba(201, 164, 106, .38); }

.rcard__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.price__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: block; }
.price__val { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-lt); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.price__unit { font-size: .8rem; color: var(--mute); font-family: var(--f-sans); }
.price__alt { display: block; font-size: .78rem; color: var(--mute); margin-top: 3px; line-height: 1.5; }
.price__alt b { color: var(--ivory-soft); font-weight: 600; }

/* ---------- Bộ lọc ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.fchip {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory-soft);
  font-size: .87rem;
  cursor: pointer;
  transition: .3s var(--ease);
}
.fchip:hover { border-color: var(--gold); color: var(--gold-lt); }
.fchip[data-on] { background: var(--gold); border-color: var(--gold); color: #2A1A0C; font-weight: 600; }

/* ---------- Chi nhánh ---------- */
.bcard {
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bcard:nth-child(even) .bcard__media { order: 2; }
@media (max-width: 900px) { .bcard { grid-template-columns: 1fr; } .bcard:nth-child(even) .bcard__media { order: 0; } }
.bcard__media { position: relative; min-height: 320px; overflow: hidden; }
.bcard__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.bcard__media img.is-on { opacity: 1; }
.bcard__body { padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.bcard__addr { display: flex; gap: 10px; color: var(--mute); font-size: .92rem; }
.bcard__addr svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 4px; }

/* ---------- Tiện ích / lợi ích ---------- */
.feat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feat {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.feat__ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(201, 164, 106, .12);
  border: 1px solid rgba(201, 164, 106, .28);
  color: var(--gold-lt);
  margin-bottom: 14px;
}
.feat__ico svg { width: 21px; height: 21px; }
.feat h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feat p { font-size: .88rem; color: var(--mute); }

/* ---------- Bảng giá ---------- */
/* Khung ngoài chỉ còn là vùng xếp các khối chi nhánh */
.tscroll { display: grid; gap: 22px; }

/* ---- Một chi nhánh = một khối, có tiêu đề cột riêng ---- */
.pgroup {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  /* Không đặt overflow:hidden — sẽ vô hiệu hoá position:sticky của dòng tiêu đề */
}
.pgroup__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 22px 24px 18px;
}
.pgroup__name {
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  color: var(--ivory);
}
.pgroup__area {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  font-size: .84rem;
  color: var(--mute);
}
.pgroup__area svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 3px; }
.pgroup__from { text-align: right; }
.pgroup__from .price__val { font-size: 1.35rem; }
@media (max-width: 560px) {
  .pgroup__head { padding: 18px 16px 14px; }
  .pgroup__from { text-align: left; }
}

.ptable {
  width: 100%;
  /* separate + border-spacing 0: sticky trên <th> hoạt động ổn định,
     collapse khiến viền của ô dính bị vẽ sai ở một số trình duyệt. */
  border-collapse: separate;
  border-spacing: 0;
  font-size: .93rem;
}
.ptable th, .ptable td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
}

/* Canh phải cho CẢ tiêu đề lẫn ô số — thiếu th.num là lệch cột ngay */
.ptable .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Dòng tiêu đề cột — mỗi chi nhánh đã có bảng riêng nên không cần dính theo trang */
.ptable thead th {
  padding-block: 13px;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  background: #1C130D;
  border-block: 1px solid var(--line);
}

.ptable__row { transition: background .3s var(--ease); }
.ptable__row + .ptable__row td { border-top: 1px solid var(--line-soft); }
.ptable__row:hover { background: rgba(201, 164, 106, .06); }

.ptable .rname {
  color: var(--ivory);
  font-weight: 600;
  transition: color .25s;
}
.ptable__row:hover .rname { color: var(--gold-lt); }
.ptable .rbranch {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: var(--mute);
  font-weight: 400;
}
.ptable .gold { color: var(--gold-lt); font-weight: 600; }

/* Nút đặt phòng cuối hàng — hiện rõ khi rê chuột vào hàng */
.ptable__go { text-align: right; width: 1%; }
.ptable__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 106, .32);
  color: var(--gold-lt);
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: .72;
  transition: .3s var(--ease);
}
.ptable__btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.ptable__row:hover .ptable__btn { opacity: 1; border-color: rgba(201, 164, 106, .7); background: rgba(201, 164, 106, .1); }
.ptable__btn:hover svg { transform: translateX(3px); }

.ptable__foot {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
  background: rgba(20, 13, 9, .35);
  font-size: .82rem;
  color: var(--mute);
  line-height: 1.6;
}
.ptable__foot svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 4px; }
.ptable__foot b { color: var(--gold-lt); font-weight: 600; }

/* Màn hình hẹp: bảng gãy thành thẻ, khỏi phải cuộn ngang */
@media (max-width: 760px) {
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable th { display: block; }
  .ptable thead { display: none; }

  .pgroup__head { border-bottom: 1px solid var(--line-soft); }
  .ptable__row {
    margin: 0 14px 12px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    background: rgba(255, 255, 255, .02);
  }
  .ptable__row + .ptable__row td { border-top: 0; }
  .ptable__row td { padding: 5px 0; }

  .ptable__name { padding-bottom: 10px !important; border-bottom: 1px solid var(--line-soft) !important; margin-bottom: 6px; }

  /* Ô số hiện kèm nhãn cột vì đã bỏ phần đầu bảng */
  .ptable td.num {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
  }
  .ptable td.num::before {
    content: attr(data-l);
    font-size: .78rem;
    color: var(--mute);
    font-weight: 400;
    letter-spacing: .02em;
  }
  .ptable__go { text-align: left; width: auto; padding-top: 12px !important; }
  .ptable__btn { width: 100%; justify-content: center; opacity: 1; }
}

/* ---------- Bảng tính giá theo giờ (chi tiết phòng) ---------- */
.calc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(26, 18, 12, .45);
  padding: 18px;
}
.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: .92rem;
  color: var(--ivory-soft);
}
.calc__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__row--muted { color: var(--mute); font-size: .85rem; }
.calc__row--total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
  font-size: 1.02rem;
  color: var(--ivory);
  font-weight: 600;
}
.calc__row--total span:last-child { font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-lt); }
.calc__row--save { color: #8FD3A8; font-size: .85rem; }
.calc__note {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(201, 164, 106, .09);
  border: 1px solid rgba(201, 164, 106, .22);
  font-size: .82rem;
  color: var(--on-img-2);
  display: flex;
  gap: 9px;
}
.calc__note svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; }


/* Dòng thời gian nghỉ giờ */
.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 2px;
}
.timeline__pt { text-align: center; flex: none; }
.timeline__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ink);
  margin: 0 auto 7px;
}
.timeline__pt:last-child .timeline__dot { background: var(--gold); }
.timeline__t { font-weight: 600; color: var(--ivory); font-size: 1rem; font-variant-numeric: tabular-nums; }
.timeline__l { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.timeline__bar {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 164, 106, .35));
  position: relative;
  margin: 0 12px 30px;
  border-radius: 2px;
}
.timeline__bar span {
  position: absolute;
  left: 50%; top: -11px;
  transform: translate(-50%, -100%);
  font-size: .78rem;
  color: var(--gold-lt);
  white-space: nowrap;
  background: var(--surface);
  padding: 0 9px;
  font-weight: 600;
}

/* ---------- Trang chi tiết phòng ---------- */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; gap: 28px; } }

.gal { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); }
.gal a { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; background: var(--surface-2); }
.gal a:first-child { grid-row: span 2; grid-column: span 1; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal a:hover img { transform: scale(1.06); }
.gal a.more::after {
  content: attr(data-more);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(26, 18, 12, .68);
  color: var(--ivory);
  font-weight: 600;
  font-size: .95rem;
  backdrop-filter: blur(2px);
}
@media (max-width: 760px) {
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gal a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .gal a:nth-child(n+4) { display: none; }
}

.bookpanel {
  position: sticky;
  isolation: isolate;
  top: calc(var(--nav-h) + 18px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bookpanel__head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); }
.bookpanel__body { padding: 18px 22px 22px; display: grid; gap: 12px; }

/* Hai khối "theo ngày" / "theo giờ" — dùng class thay vì style nội tuyến,
   vì display nội tuyến sẽ đè mất thuộc tính [hidden] và làm hiện cả hai loại giá. */
.ppane { display: grid; gap: 12px; }
.ppane[hidden] { display: none; }
@media (max-width: 980px) { .bookpanel { position: static; } }

.speclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.spec {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 14px;
  background: rgba(255, 255, 255, .015);
}
.spec__l { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.spec__v { font-weight: 600; color: var(--ivory); margin-top: 3px; }

.amenlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; }
.amen { display: flex; align-items: center; gap: 11px; font-size: .93rem; color: var(--ivory-soft); }
.amen i {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(201, 164, 106, .13);
  color: var(--gold-lt);
  display: grid; place-items: center;
  flex: none;
}
.amen svg { width: 13px; height: 13px; }

.policy { display: grid; gap: 10px; }
.policy li { display: flex; gap: 11px; font-size: .92rem; color: var(--mute); }
.policy svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 6px; }
ul.policy { list-style: none; padding: 0; margin: 0; }

/* ---------- Đèn chiếu ảnh ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 120;
  background: rgba(16, 10, 7, .95);
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 96vw); max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox__cap { text-align: center; color: var(--ivory-soft); margin-top: 14px; font-size: .9rem; }
.lightbox__x, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(45, 31, 22, .8);
  color: var(--ivory);
  cursor: pointer;
  display: grid; place-items: center;
  transition: .3s var(--ease);
}
.lightbox__x:hover, .lightbox__nav:hover { border-color: var(--gold); color: var(--gold-lt); }
.lightbox__x { top: 22px; right: 22px; }
.lightbox__nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 20px; height: 20px; }

/* ---------- Nội quy khách sạn ---------- */
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: rule; }
.rule-item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.rule-item:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 164, 106, .45);
  box-shadow: var(--shadow-lg);
}
.rule-item__no {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-lt);
  background: rgba(201, 164, 106, .12);
  border: 1px solid rgba(201, 164, 106, .35);
}
.rule-item__vi { color: var(--ivory); font-weight: 500; }
.rule-item__en {
  margin-top: 6px;
  font-size: .86rem;
  font-style: italic;
  color: var(--mute);
  line-height: 1.6;
}
@media (max-width: 560px) {
  .rule-item { padding: 18px; gap: 14px; }
  .rule-item__no { width: 32px; height: 32px; font-size: .95rem; }
}

/* ---------- Câu hỏi thường gặp ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .4s var(--ease);
}
.faq-item[open], .faq-item:hover { border-color: rgba(201, 164, 106, .45); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem);
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-lt); }
.faq-item__ico {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-lt);
  background: rgba(201, 164, 106, .12);
  border: 1px solid rgba(201, 164, 106, .32);
  transition: transform .4s var(--ease), background .3s;
}
.faq-item__ico svg { width: 14px; height: 14px; }
.faq-item[open] .faq-item__ico { transform: rotate(135deg); background: rgba(201, 164, 106, .24); }
.faq-item__body {
  padding: 0 24px 22px;
  color: var(--ivory-soft);
  font-size: .95rem;
  line-height: 1.75;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  margin: 0 24px;
  padding-inline: 0;
}
.faq-item__body b { color: var(--gold-lt); font-weight: 600; }
ul.faq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.faq-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .faq-item summary { padding: 17px 18px; gap: 12px; }
  .faq-item__body { margin-inline: 18px; padding-bottom: 18px; }
}

/* ---------- Dải CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; z-index: -1; }
.cta__in { padding: clamp(38px, 5vw, 68px); text-align: center; background: linear-gradient(180deg, rgba(29, 20, 14, .5), rgba(29, 20, 14, .82)); }

/* ---------- Chân trang ---------- */
.foot { border-top: 1px solid var(--line-soft); background: #1B120C; padding: 58px 0 30px; margin-top: 20px; }
.foot__grid { display: grid; gap: 34px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h4 { font-family: var(--f-sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--mute); }
.foot a:hover { color: var(--gold-lt); }
.foot__bar {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--mute);
}
/* ---------- Icon mạng xã hội ---------- */
.soc { display: flex; gap: 12px; }
.soc a {
  position: relative;
  isolation: isolate;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  color: var(--ivory-soft);
  background-color: rgba(255, 255, 255, .02);
  transition: transform .3s var(--ease), color .3s, background-color .3s, box-shadow .35s var(--ease);
}
/* Viền vàng gradient — cùng cách vẽ với nút, nhưng đậm hơn cho rõ */
.soc a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  padding: 1.5px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .85;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.soc a:hover {
  color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 0 22px -8px rgba(226, 183, 112, .8);
}
.soc a:hover::before { opacity: 1; filter: brightness(1.2); }

/* Bấm vào thì nền chuyển thành gradient vàng */
.soc a:active,
.soc a:focus-visible {
  color: #2A1A0C;
  background-color: transparent;
  background-image: linear-gradient(177deg, #E6CCA0 0%, #D2AC74 46%, #B98F57 100%);
  box-shadow: inset 0 1px rgba(255, 250, 240, .6), 0 0 26px -8px rgba(226, 183, 112, .9);
}
.soc a:active::before, .soc a:focus-visible::before { opacity: 1; filter: brightness(1.35); }
.soc svg { width: 18px; height: 18px; }

/* ---------- Ba nút liên hệ nổi: nền trong, viền vàng ---------- */
.fabs {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  gap: 14px;
}
.fab {
  position: relative;
  isolation: isolate;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* Nền trong, chỉ tối nhẹ để icon nổi trên ảnh sáng */
  background: rgba(20, 13, 9, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-lt);
  transition: transform .3s var(--ease), color .3s, box-shadow .35s var(--ease), background-color .3s;
}
/* Viền vàng gradient */
.fab::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  padding: 1.5px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .9;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.fab svg { width: 25px; height: 25px; }
.fab:hover {
  transform: translateY(-2px);
  color: #F3E2C2;
  background: rgba(201, 164, 106, .2);
  box-shadow: 0 0 26px -6px rgba(226, 183, 112, .85);
}
.fab:hover::before { opacity: 1; filter: brightness(1.25); }
.fab:active { transform: scale(.94); }
.fab:active::before, .fab:focus-visible::before { opacity: 1; filter: brightness(1.4); }

@media (max-width: 560px) {
  .fabs { right: 14px; bottom: 14px; gap: 11px; }
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 22px; height: 22px; }
}

/* ---------- Hiệu ứng xuất hiện ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tiện ích ---------- */
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 22px; } .mt-6 { margin-top: 28px; } .mt-8 { margin-top: 40px; } .mt-10 { margin-top: 52px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.gold { color: var(--gold-lt); }
.mute { color: var(--mute); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #2A1A0C; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Từng phòng cụ thể trong một hạng ---------- */
.grid-units {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.ucard {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(120% 120% at 0% 0%, rgba(226, 183, 112, .15), transparent 58%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ucard:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 164, 106, .5);
  box-shadow: var(--shadow-lg);
}
.ucard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.ucard__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.ucard__media img.is-on { opacity: 1; }
.ucard__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 13, 9, .8));
}
.ucard__code {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--on-img);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .85);
}
.ucard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ucard__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.ucard .price__val { font-size: 1.2rem; }

/* ---------- Album gợi ý: mỗi chi nhánh một thẻ, lật qua từng hạng phòng ---------- */
.alb {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(120% 120% at 0% 0%, rgba(226, 183, 112, .15), transparent 58%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.alb:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 164, 106, .5);
  box-shadow: var(--shadow-lg);
}

.alb__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.alb__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease);
}
.alb__slide.is-on { opacity: 1; pointer-events: auto; }
.alb__slide img { width: 100%; height: 100%; object-fit: cover; }
.alb__media::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 13, 9, .45), transparent 38%, rgba(20, 13, 9, .78));
}

/* Nhãn chi nhánh + số hạng phòng */
.alb__branch {
  position: absolute;
  left: 15px; bottom: 13px;
  z-index: 3;
  max-width: calc(100% - 30px);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-img-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.alb__count {
  position: absolute;
  top: 13px; left: 15px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 106, .45);
  background: rgba(20, 13, 9, .68);
  backdrop-filter: blur(5px);
  color: var(--gold-lt);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Mũi tên lật hạng phòng */
.alb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 106, .5);
  background: rgba(20, 13, 9, .68);
  backdrop-filter: blur(6px);
  color: var(--gold-lt);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s var(--ease), background .3s, border-color .3s, transform .25s var(--ease);
}
.alb__nav.prev { left: 12px; }
.alb__nav.next { right: 12px; }
.alb__nav svg { width: 17px; height: 17px; }
.alb:hover .alb__nav, .alb__nav:focus-visible { opacity: 1; }
.alb__nav:hover {
  background: rgba(201, 164, 106, .28);
  border-color: var(--gold);
  box-shadow: 0 0 20px -6px rgba(226, 183, 112, .9);
}
.alb__nav:active { transform: translateY(-50%) scale(.92); }
/* Trên cảm ứng không có rê chuột nên luôn hiện mũi tên */
@media (hover: none) { .alb__nav { opacity: 1; } }

.alb__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.alb__body h3 { font-size: 1.12rem; }
.alb__body h3 a { transition: color .25s; }
.alb__body h3 a:hover { color: var(--gold-lt); }
.alb__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.alb .price__val { font-size: 1.3rem; }

/* Chấm chỉ vị trí — bấm được để nhảy thẳng tới hạng phòng */
.alb__dots { display: flex; gap: 7px; padding-top: 4px; }
.alb__dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 199, 185, .3);
  cursor: pointer;
  transition: .3s var(--ease);
}
.alb__dots button[data-on] { width: 22px; background: var(--gold); }
.alb__dots button:hover { background: var(--gold-lt); }

/* ============================================================
   Viền vàng thống nhất cho mọi module và album.
   Đặt cuối file để đè lên các luật viền nâu mờ khai báo trước đó.
   ============================================================ */
.rcard, .bcard, .feat, .pgroup, .ucard, .alb,
.rule-item, .faq-item, .spec, .cta,
.bookbar, .bookpanel, .tscroll > .pgroup {
  border: 1px solid rgba(201, 164, 106, .38);
}

/* Rê chuột thì viền đậm lên, giữ cảm giác ánh kim */
.rcard:hover, .bcard:hover, .feat:hover, .pgroup:hover, .ucard:hover, .alb:hover,
.rule-item:hover, .faq-item:hover, .spec:hover, .faq-item[open] {
  border-color: rgba(201, 164, 106, .62);
}

/* Đường kẻ bên trong các module cũng ngả vàng cho đồng bộ */
.rcard__foot, .ucard__foot, .alb__foot, .obranch__foot,
.bookpanel__head, .booknote, .ptable__foot, .pgroup__head {
  border-color: rgba(201, 164, 106, .22);
}
.ptable__row + .ptable__row td { border-top-color: rgba(201, 164, 106, .18); }
.ptable thead th { border-block-color: rgba(201, 164, 106, .3); }

/* ---------- Sửa lỗi hiển thị trên màn hình hẹp ---------- */

/* Trang đặt phòng: hai cột ở desktop, một cột ở mobile.
   Trước đây đặt bằng style nội tuyến nên media query không đè được. */
.detail--book { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 980px) { .detail--book { grid-template-columns: 1fr; } }

/* Dải ghi chú: icon và chữ là hai ô, chữ luôn nằm trong một khối
   để không bị tách rời rồi giãn cách lộn xộn khi xuống dòng. */
.booknote__item { align-items: flex-start; }
.booknote__item svg { margin-top: 3px; }
.booknote__item > span { min-width: 0; }

/* Tiêu đề mục trên màn hình hẹp: thu cỡ chữ để tiêu đề dài nhất
   ("Những căn phòng được yêu thích nhất") nằm gọn một hàng ở 375px.
   text-wrap: balance để nếu sau này có tiêu đề dài hơn thì chia đều hai hàng
   thay vì bỏ lại một chữ lạc lõng ở dòng dưới. */
@media (max-width: 560px) {
  h2 { font-size: 1.2rem; line-height: 1.32; }
  .head-c h2, .head-c .lead { text-wrap: balance; }
  .head-c .lead { font-size: .92rem; }
}

/* Thông số phòng trên mobile: chia đều 2 khung trên, 2 khung dưới
   thay vì 3 khung một hàng rồi bỏ lại 1 khung lẻ ở dưới. */
@media (max-width: 620px) {
  .speclist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Giá trong thẻ phòng cụ thể: dòng giá giờ nằm ngay dưới giá ngày */
.ucard__foot { align-items: flex-start; gap: 14px; }
.ucard__foot .btn { flex: none; margin-top: 2px; }

/* ---------- Ngăn kéo menu: viền gradient + cỡ chữ vừa nửa màn hình ---------- */

/* Dải vàng gradient chạy dọc mép trái, đậm ở trên nhạt dần xuống dưới */
.drawer__panel::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(248, 231, 197, .95) 0%,
    rgba(226, 183, 112, .7) 22%,
    rgba(201, 164, 106, .3) 60%,
    rgba(201, 164, 106, .08) 100%);
  box-shadow: -1px 0 16px -2px rgba(226, 183, 112, .5);
}

.drawer__panel a.d-link {
  padding: 13px 2px;
  /* Menu chỉ rộng một nửa màn hình nên cỡ chữ phải vừa,
     để mục dài nhất không bị gãy làm hai hàng. */
  font-size: .86rem;
  gap: 8px;
  border-bottom-color: rgba(201, 164, 106, .18);
}
.drawer__panel a.d-link .gold { flex: none; font-size: .8rem; }
.drawer__panel .btn { padding-inline: 14px; font-size: .88rem; }
.drawer__close { width: 38px; height: 38px; border-color: rgba(201, 164, 106, .4); }

/* Máy rất hẹp: nửa màn hình quá chật thì nới thêm chút cho chữ khỏi gãy */
@media (max-width: 360px) {
  .drawer__panel { width: 62%; }
}

/* ---------- Bảng giá hạng phòng: giữ 3 cột trên một hàng ---------- */
.speclist--rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) {
  /* Đè luật 2 cột chung của .speclist — bảng giá phải đủ 3 mức trên một hàng */
  .speclist--rates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .speclist--rates .spec { padding: 11px 9px; }
  .speclist--rates .spec__l { font-size: .58rem; letter-spacing: .06em; }
  .speclist--rates .spec__v { font-size: 1rem !important; }
  .speclist--rates .tiny { font-size: .68rem; line-height: 1.45; }
}

/* Nhãn thông số nằm gọn một dòng, không gãy đôi ("Số phòng trong hạng") */
.spec__l {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 620px) {
  .spec__l { font-size: .6rem; letter-spacing: .07em; }
}
.speclist--rates .spec__l { white-space: normal; }

/* ---------- Nút lọc chi nhánh: viền vàng rõ hơn ---------- */
.fchip {
  border-width: 2px;
  border-color: rgba(201, 164, 106, .8);
  background: rgba(201, 164, 106, .08);
  transition: border-color .3s var(--ease), background .3s var(--ease),
              color .3s, box-shadow .3s var(--ease), transform .25s var(--ease);
}
.fchip:hover {
  border-color: var(--gold-lt);
  background: rgba(201, 164, 106, .14);
  box-shadow: 0 0 18px -8px rgba(226, 183, 112, .85);
  transform: translateY(-1px);
}
.fchip[data-on] {
  border-color: transparent;
  box-shadow: inset 0 1px rgba(255, 250, 240, .5), 0 0 20px -8px rgba(226, 183, 112, .9);
}

/* ---------- Nút đổi ngôn ngữ VI / EN ---------- */
.langsw {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 106, .5);
  background: rgba(201, 164, 106, .07);
}
.langsw__opt {
  display: grid;
  place-items: center;
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ivory-soft);
  transition: .25s var(--ease);
}
.langsw__opt:hover { color: var(--gold-lt); }
.langsw__opt.is-on {
  background-image: linear-gradient(177deg, #E6CCA0, #C39A60);
  color: #2A1A0C;
  box-shadow: inset 0 1px rgba(255, 250, 240, .5), 0 0 14px -6px rgba(226, 183, 112, .9);
}

/* Popup đặt phòng: trên thanh điều hướng ở desktop, chuyển vào menu ở mobile */
@media (max-width: 1000px) { .bookmenu--nav { display: none; } }
@media (min-width: 1001px) { .drawer__book { display: none; } }

.drawer__book .bookmenu { display: block; }
.drawer__book .bookmenu > .btn { width: 100%; }
/* Popup trong menu bung ra ngoài khung menu, rộng gần hết bề ngang màn hình.
   Neo theo khung nhìn nên không bị nửa bề ngang của menu cắt mất — menu có
   "overflow-y: auto" nên panel nằm bên trong sẽ bị xén. JS đặt "top". */
.drawer__book .bookmenu__panel {
  position: fixed;
  left: 14px;
  right: 14px;
  width: auto;
  max-width: none;
  margin-top: 0;
  z-index: 95;
}
.drawer__book .bookmenu__item { padding: 10px; }
.drawer__book .bookmenu__ico { width: 30px; height: 30px; }
.drawer__book .bookmenu__txt { font-size: .86rem; }

/* ---------- Bảng giá hạng phòng: hai cột (trọn ngày · giá giờ) ---------- */
.speclist--rates { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 620px) {
  .speclist--rates { gap: 10px; }
  .speclist--rates .spec { padding: 13px 12px; }
  .speclist--rates .spec__l { font-size: .62rem; }
  /* Giá và đơn vị phải nằm trọn một dòng trong ô hẹp, nên cỡ chữ co theo bề ngang */
  .speclist--rates .spec__v { font-size: clamp(.86rem, .3rem + 2.4vw, 1.18rem) !important; }
  .speclist--rates .spec__u { font-size: clamp(.56rem, .26rem + 1.3vw, .72rem); }
  .speclist--rates .tiny { font-size: .7rem; }
}
/* Đơn vị đi kèm giá: nằm cùng dòng với con số, chỉ nhỏ và mảnh hơn */
.spec__u {
  display: inline;
  white-space: nowrap;
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ivory-soft);
  opacity: .75;
}
.speclist--rates .spec__v { white-space: nowrap; }

/* ---------- Nút chi nhánh đang chọn: nền vàng gradient ---------- */
.fchip[data-on] {
  background: linear-gradient(177deg, #E6CCA0, #C39A60) !important;
  border-color: rgba(230, 204, 160, .9) !important;
  color: #2A1A0C !important;
  font-weight: 600;
  box-shadow: inset 0 1px rgba(255, 250, 240, .55), 0 0 22px -8px rgba(226, 183, 112, .95);
}
.fchip[data-on]:hover {
  background: linear-gradient(177deg, #F0D9B4, #CFA669) !important;
  color: #2A1A0C !important;
}

/* ---------- Tiêu đề "Bước 2": số phòng cùng hạng ---------- */
/* Mặc định hàng này là flex nên ô đếm bị kéo cao bằng cả cụm tiêu đề,
   chữ dạt lên ngang dòng "Bước 2". Căn theo đáy để nó thẳng với tiêu đề. */
.uhead { align-items: flex-end; gap: 12px; }
.uhead > span { flex: none; text-align: right; }
@media (max-width: 700px) {
  /* Màn hình hẹp thì xuống hẳn dưới tiêu đề cho dễ đọc */
  .uhead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .uhead > span { text-align: left; }
}
