/* ============================================================
   X STAY — STYLE
   Viết theo hướng mobile-first: mặc định là giao diện điện thoại,
   các khối @media ở cuối file mở rộng cho tablet và máy tính.
   ============================================================ */

/* ---------- 1. BIẾN MÀU — đổi màu thương hiệu tại đây ---------- */
:root {
  --gold:        #D4A537;   /* vàng đồng chủ đạo */
  --gold-soft:   #E8C468;   /* vàng nhạt cho chữ trên nền đen */
  --gold-deep:   #412402;   /* chữ đặt trên nền vàng */
  --gold-tint:   #FAF3E2;   /* nền vàng rất nhạt */

  --black:       #0E0E0E;
  --black-soft:  #161616;
  --line-dark:   #2A2A2A;

  --bg:          #FFFFFF;
  --bg-alt:      #F7F5F0;
  --border:      #E5E2DA;

  --text:        #1A1A18;
  --text-2:      #5F5E5A;
  --text-3:      #8C8B85;

  --radius:      12px;
  --radius-lg:   18px;
  --wrap:        1180px;
  --header-h:    64px;
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* chừa chỗ cho thanh liên hệ cố định ở đáy màn hình điện thoại */
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.gold { color: var(--gold); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 3. NÚT BẤM ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--gold    { background: var(--gold); color: var(--gold-deep); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--dark    { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--black-soft); }
.btn--ghost   { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline { border: 1.5px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--black); }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- 4. HEADER ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: rgba(14,14,14,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line-dark); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--gold); color: var(--gold-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.logo__text { color: #F5E7C4; font-weight: 700; font-size: 17px; letter-spacing: .09em; }

.nav { display: none; }
.header__cta { display: none; }

.burger { width: 40px; height: 40px; display: grid; place-items: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu thả xuống trên điện thoại */
.nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--black); border-bottom: 1px solid var(--line-dark);
  padding: 8px 20px 18px;
}
.nav.is-open a { color: #E9E7E2; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.nav.is-open a:last-child { border-bottom: 0; }

/* ---------- 5. HERO ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 64px; background: var(--black); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  /* THAY ẢNH NỀN HERO Ở ĐÂY: đổi images/hero.jpg thành ảnh phòng đẹp nhất */
  background: url('../images/hero.jpg') center/cover no-repeat, #1C1A16;
  opacity: .42;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.8) 70%, var(--black) 100%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.hero__title { font-size: clamp(30px, 8vw, 56px); color: #fff; margin-bottom: 16px; }
.hero__sub { color: #C9C6BE; font-size: 15px; max-width: 560px; margin: 0 auto 28px; }
.hero__sub strong { color: var(--gold-soft); }
.hero__actions { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }

/* ---------- 6. THANH SỐ LIỆU ---------- */
.stats { background: var(--black-soft); border-top: 1px solid var(--line-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 20px 12px; text-align: center; border-bottom: 1px solid var(--line-dark); }
.stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.stat:nth-child(n+3) { border-bottom: 0; }
.stat__num { color: var(--gold); font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat__label { color: #8C8B85; font-size: 12px; line-height: 1.4; }

/* ---------- 7. KHUNG SECTION CHUNG ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 620px; margin-bottom: 28px; }
.section__desc { color: var(--text-2); margin-top: 8px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow--gold { color: var(--gold); }
.lead { color: var(--text-2); margin-bottom: 14px; }
.link-arrow { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- 8. GIỚI THIỆU ---------- */
.about { display: grid; gap: 28px; }
.about__media {
  border-radius: var(--radius-lg); min-height: 240px;
  background: var(--gold-tint) center/cover no-repeat;
  border: 1px solid var(--border);
}

/* ---------- 9. BỘ LỌC + LƯỚI CƠ SỞ ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--text-3); }
.chip.is-active { background: var(--black); border-color: var(--black); color: var(--gold); font-weight: 600; }

.grid { display: grid; gap: 18px; }
.grid__empty { text-align: center; color: var(--text-3); padding: 32px 0; }

.card-p {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-p:hover { transform: translateY(-3px); border-color: #D6D2C7; box-shadow: 0 12px 28px rgba(20,18,12,.09); }
.card-p__media { position: relative; aspect-ratio: 4 / 3; background: var(--gold-tint); overflow: hidden; }
/* Ảnh nằm đè lên khối placeholder. Nếu file ảnh chưa có, JS gỡ thẻ img
   và placeholder màu vàng nhạt bên dưới sẽ lộ ra. */
.card-p__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-p__ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px; color: #B9A876; font-size: 12px; text-align: center; }
.card-p__ph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.card-p__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--black); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
}
.card-p__body { padding: 14px 16px 16px; }
.card-p__name { font-size: 16px; font-weight: 700; }
.card-p__area { color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.card-p__meta { color: var(--text-2); font-size: 13px; margin-top: 8px; }
.card-p__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-p__price { font-size: 17px; font-weight: 700; }
.card-p__price span { font-size: 13px; font-weight: 400; color: var(--text-3); }
.card-p__more { color: #8A6410; font-size: 14px; font-weight: 600; }

/* ---------- 10. USP ---------- */
.usp { display: grid; gap: 16px; }
.usp__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.usp__ico { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.usp__item h3 { margin-bottom: 6px; }
.usp__item p { color: var(--text-2); font-size: 15px; }

/* ---------- 11. BĂNG NGANG ĐƯA ĐÓN ---------- */
.banner { background: var(--black); color: #fff; padding: 52px 0; }
.banner__inner { display: grid; gap: 24px; }
.banner__title { font-size: clamp(24px, 6vw, 34px); margin-bottom: 12px; }
.banner__text { color: #B4B1A8; }
.banner__actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 12. NHÓM KHÁCH ---------- */
.audience { display: grid; gap: 14px; }
.aud { background: #fff; border-radius: var(--radius); padding: 18px 20px; border-left: 3px solid var(--gold); }
.aud h3 { font-size: 16px; margin-bottom: 4px; }
.aud p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 13. FORM ĐẶT PHÒNG ---------- */
.booking { display: grid; gap: 28px; }
.ticks { margin: 16px 0 20px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 15px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.booking__contact { display: flex; gap: 10px; flex-wrap: wrap; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form { padding: 22px 20px 24px; }
.form__title { font-size: 19px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F5E5A' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; padding-right: 34px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,165,55,.18); }
.field.has-err input, .field.has-err select { border-color: #C0392B; }
.err { color: #C0392B; font-size: 13px; margin-top: 5px; display: none; }
.field.has-err .err { display: block; }

.summary { background: var(--gold-tint); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 16px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text-2); }
.summary__row--total { margin-top: 6px; padding-top: 8px; border-top: 1px solid #EADCB8; color: var(--text); font-weight: 600; }
.summary__note { font-size: 12.5px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }

.form__msg { margin-top: 12px; font-size: 14.5px; text-align: center; display: none; }
.form__msg.is-ok  { display: block; color: #1F7A4C; }
.form__msg.is-err { display: block; color: #C0392B; }

/* ---------- 14. ĐÁNH GIÁ ---------- */
.reviews { display: grid; gap: 14px; }
.review { background: #fff; border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.review blockquote { color: var(--text); font-size: 15px; margin-bottom: 10px; }
.review figcaption { color: var(--text-3); font-size: 13.5px; font-weight: 500; }

/* ---------- 15. FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 24px;
  width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq p { color: var(--text-2); font-size: 15px; padding-bottom: 16px; }

/* ---------- 16. FOOTER ---------- */
.footer { background: var(--black); color: #B4B1A8; padding: 44px 0 20px; }
.footer__grid { display: grid; gap: 30px; }
.logo--light .logo__text { color: #F5E7C4; }
.footer__slogan { color: var(--gold); font-weight: 600; margin: 14px 0 8px; line-height: 1.5; }
.footer__note { font-size: 14px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__phone { display: block; color: var(--gold); font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.footer__col p { font-size: 14px; margin-top: 2px; }
.footer__btns { display: flex; gap: 10px; margin-top: 14px; }
.footer__list li { padding: 5px 0; font-size: 14.5px; }
.footer__list b { color: #E9E7E2; font-weight: 600; }
.footer__map iframe { width: 100%; height: 190px; border: 0; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 6px; text-align: center;
  border-top: 1px solid var(--line-dark); margin-top: 32px; padding-top: 18px;
  font-size: 13px; color: #6E6D68;
}

/* ---------- 17. THANH LIÊN HỆ CỐ ĐỊNH (mobile) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(14,14,14,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
}
.sticky-bar__btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.3); color: #F5E7C4;
}
.sticky-bar__btn--gold { background: var(--gold); border-color: var(--gold); color: var(--gold-deep); }

/* ---------- 18. POPUP CHI TIẾT CƠ SỞ ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
/* Bắt buộc: display:flex ở trên sẽ đè thuộc tính hidden của HTML,
   nếu thiếu dòng này lớp nền mờ sẽ phủ kín trang ngay khi mới mở. */
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(2px); }
.modal__box {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 20px 20px 0 0;
  animation: slideUp .28s ease;
}
@keyframes slideUp { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14,14,14,.75); color: #fff; font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}
.modal__gallery { display: grid; grid-template-columns: 1fr; gap: 3px; }
.modal__gallery > div { aspect-ratio: 16 / 10; background: var(--gold-tint) center/cover no-repeat; display: grid; place-items: center; }
.modal__gallery > div span { color: #B9A876; font-size: 12px; text-align: center; padding: 12px; }
.modal__gallery > div:not(:first-child) { display: none; }
.modal__body { padding: 20px; }
.modal__tag { display: inline-block; background: var(--black); color: var(--gold); font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.modal__body h3 { font-size: 22px; margin-bottom: 4px; }
.modal__addr { color: var(--text-3); font-size: 14px; margin-bottom: 14px; }
.modal__desc { color: var(--text-2); margin-bottom: 18px; }
.modal__facts { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; font-size: 14.5px; color: var(--text-2); }
.modal__amen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 20px; }
.modal__amen li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.modal__amen li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.modal__price { font-size: 22px; font-weight: 700; }
.modal__price span { font-size: 14px; font-weight: 400; color: var(--text-3); }
body.is-locked { overflow: hidden; }

/* ============================================================
   19. TABLET — từ 640px
   ============================================================ */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0 !important; border-right: 1px solid var(--line-dark); }
  .stat:last-child { border-right: 0; }
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
  .banner__actions { flex-direction: row; }
  .modal { align-items: center; padding: 24px; }
  .modal__box { max-width: 640px; border-radius: 20px; }
  .modal__gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 300px; }
  .modal__gallery > div { aspect-ratio: auto; }
  .modal__gallery > div:not(:first-child) { display: grid; }
  .modal__gallery > div:first-child { grid-row: span 2; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================
   20. MÁY TÍNH — từ 980px
   ============================================================ */
@media (min-width: 980px) {
  h2 { font-size: 34px; }
  .section { padding: 84px 0; }
  .section--tight { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }

  /* menu ngang, ẩn nút hamburger và thanh cố định dưới đáy */
  .nav { display: flex; gap: 28px; margin-right: 28px; }
  .nav a { color: #C9C6BE; font-size: 15px; font-weight: 500; transition: color .2s ease; }
  .nav a:hover { color: var(--gold); }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }

  .hero { padding: calc(var(--header-h) + 120px) 0 110px; }
  .hero__sub { font-size: 17px; }

  .about { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .about__media { min-height: 380px; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .usp { grid-template-columns: repeat(4, 1fr); }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .banner { padding: 76px 0; }
  .banner__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
  .banner__actions { flex-direction: column; align-items: stretch; }

  .booking { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .form { padding: 30px 28px 32px; }

  .footer { padding: 64px 0 22px; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; }
}

/* Tôn trọng cài đặt giảm chuyển động của người dùng */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
