/* Room viewer (ảnh phòng + thẻ tóm tắt các phòng). Dùng biến màu của home-v2.css. */
.rv {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: clamp(16px, 2.2vw, 32px);
  align-items: start;
  color: var(--v2-ink, #201d1a);
}
.rv-stage { min-width: 0; }
.rv-figure {
  position: relative;
  border-radius: var(--v2-radius-lg, 20px);
  overflow: hidden;
  background: var(--v2-forest, #183126);
  aspect-ratio: 3 / 2;
}
.rv-img { width: 100%; height: 100%; object-fit: contain; background: #12241c; }
.rv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255, 253, 248, 0.92); color: var(--v2-ink, #201d1a);
  font-size: 28px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.rv-prev { left: 12px; }
.rv-next { right: 12px; }
.rv-nav:hover { background: #fff; }
.rv-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(24, 49, 38, 0.82); color: #f6f1e7;
  font-size: 13px; padding: 4px 10px; border-radius: 999px;
}
.rv-cap { margin: 8px 2px 0; font-size: 14px; color: var(--v2-ink-soft, #595249); min-height: 1.4em; }
.rv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 6px; scrollbar-width: thin; }
.rv-thumb {
  flex: 0 0 auto; width: 84px; height: 60px; border-radius: 10px; overflow: hidden;
  opacity: 0.62; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s;
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumb[aria-current="true"], .rv-thumb:hover { opacity: 1; outline-color: var(--v2-terracotta, #b45334); }
.rv-info { margin-top: 14px; }
.rv-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-terracotta, #b45334); margin: 0 0 6px; }
.rv-title { font-size: clamp(24px, 2.4vw, 34px); margin: 0 0 12px; }
.rv-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: 15px; }
.rv-facts dt { color: var(--v2-ink-soft, #595249); }
.rv-facts dd { margin: 0; font-weight: 500; }
.rv-summary { margin: 0 0 10px; }
.rv-feats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.rv-feats li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--v2-warm, #efe8da); }
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rv-price { font-size: 14px; color: var(--v2-ink-soft, #595249); }

.rv-side { min-width: 0; }
.rv-side-head { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--v2-ink-soft, #595249); margin: 0 0 10px; }
.rv-list { display: grid; gap: 12px; max-height: min(78vh, 760px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.rv-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px;
  border-radius: var(--v2-radius-md, 14px); background: var(--v2-surface, #fffdf8);
  border: 1px solid var(--v2-line, rgba(32,29,26,.12)); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rv-card:hover { box-shadow: 0 10px 26px rgba(32, 29, 26, 0.1); transform: translateY(-1px); }
.rv-card.is-active { border-color: var(--v2-terracotta, #b45334); box-shadow: inset 0 0 0 1px var(--v2-terracotta, #b45334); }
.rv-card-img { width: 128px; height: 100%; min-height: 104px; border-radius: 10px; object-fit: cover; }
.rv-card-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rv-card-kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-terracotta, #b45334); margin: 0; }
.rv-card-title { font-family: var(--v2-serif, Georgia, serif); font-size: 19px; font-weight: 500; margin: 0; }
.rv-card-meta { font-size: 13px; font-weight: 500; margin: 0; }
.rv-card-sum { font-size: 13px; color: var(--v2-ink-soft, #595249); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card-more { align-self: flex-start; margin-top: auto; font-size: 13px; font-weight: 600; color: var(--v2-forest, #183126); min-height: 32px; }
.rv-card.is-active .rv-card-more { color: var(--v2-terracotta, #b45334); }

/* Dialog */
.rv-lock { overflow: hidden; }
.rv-dialog {
  width: min(1320px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--v2-radius-lg, 20px);
  background: var(--v2-bg, #f7f3eb); overflow: auto;
}
.rv-dialog::backdrop { background: rgba(16, 26, 21, 0.72); backdrop-filter: blur(3px); }
.rv-dialog-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 14px 10px 22px; background: rgba(247, 243, 235, 0.95);
  border-bottom: 1px solid var(--v2-line, rgba(32,29,26,.12));
}
.rv-dialog-link { font-size: 14px; font-weight: 600; color: var(--v2-forest, #183126); text-decoration: underline; text-underline-offset: 3px; }
.rv-close { width: 44px; height: 44px; border-radius: 999px; font-size: 28px; line-height: 1; background: var(--v2-warm, #efe8da); }
.rv-dialog-body { padding: clamp(14px, 2vw, 26px); }

/* Tiêu đề phòng bấm được trên trang chủ */
[data-room-open] { cursor: pointer; }
h5[data-room-open], .v2-room-title-btn { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
h5[data-room-open]:hover, .v2-room-title-btn:hover { text-decoration-color: currentColor; }

@media (max-width: 960px) {
  .rv { grid-template-columns: 1fr; }
  .rv-list { max-height: none; overflow: visible; }
}
@media (max-width: 520px) {
  .rv-figure { aspect-ratio: 4 / 3; }
  .rv-nav { width: 44px; height: 44px; }
  .rv-card { grid-template-columns: 104px 1fr; }
  .rv-card-img { width: 104px; }
  .rv-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .rv-book { width: 100%; }
}

/* Nút trong thẻ phòng trang chủ */
.v2-room-title-btn { font: inherit; color: inherit; text-align: left; padding: 0; min-height: 32px; }
.v2-room-more {
  margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--v2-terracotta, #b45334);
  min-height: 36px; text-align: left;
}
.v2-room-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-room-slide img[data-room-open] { cursor: zoom-in; }

/* Form gửi yêu cầu tư vấn (request-form.js) */
.rq-h { font-size: clamp(24px, 2.8vw, 34px); padding-right: 48px; }
.rq-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.rq-alt { font-size: 13.5px; color: var(--v2-ink-soft, #595249); }
.rq-alt a { color: var(--v2-forest, #183126); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rq-inline .v2-dialog-box { width: 100%; max-height: none; box-shadow: 0 18px 50px rgba(32, 29, 26, 0.12); }
#toheRequestDialog .v2-field input, #toheRequestDialog .v2-field select { width: 100%; min-width: 0; }
#rqSend[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 560px) {
  #toheRequestDialog .v2-form-grid { grid-template-columns: 1fr; }
  #rqSend { width: 100%; }
}

/* Nút chuyển ngôn ngữ VI/EN */
.v2-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .08em; border: 1px solid currentColor; opacity: .9; }
.v2-lang:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
