/* NAMO Villa Hội An — kiểu dáng chung cho /, /en, /dai-ly (bản làm lại 25/10/2026)
   Bảng màu Brand Brief V3. Chữ terra trên nền sáng dùng --terra-ink (đạt tương phản),
   nền/viền/hoạ tiết giữ #C4855A. Không #000 / #fff thuần. */
:root {
  --slate: #2D3A3A;
  --slate-2: #3A4949;
  --ink: #1F2A2A;
  --terra: #C4855A;
  --terra-ink: #8E5129;
  --terra-light: #E8B894;
  --parchment: #F2EDE8;
  --linen: #E8E2D6;
  --paper: #FAF7F3;
  --muted: #5C6868;
  --line: #D9D1C4;
  --radius: 4px;
  --wrap: 1120px;
  --gutter: 20px;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --label: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; width: 100%; height: auto; }
a { color: var(--terra-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.label {
  font-family: var(--label);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra-ink);
  margin: 0 0 .9rem;
}
.display { font-family: var(--display); }
.h2, .hero h1, .hero .intro, .point .num, .room h3, .footer .tag, .figure figcaption { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.bg-linen { background: var(--linen); }
.bg-paper { background: var(--paper); }
.bg-slate { background: var(--slate); color: var(--linen); }
.bg-slate .label { color: var(--terra-light); }
.bg-slate a { color: var(--terra-light); }
.bg-slate .btn, .hero .btn { color: var(--ink); }
.h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); color: var(--slate); margin-bottom: 1rem; }
.bg-slate .h2 { color: var(--parchment); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.bg-slate .lede { color: var(--linen); }
.note { font-size: .92rem; color: var(--muted); }
.src { font-size: .78rem; color: var(--muted); margin-top: .8rem; }

/* ── Nút ───────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.35rem;
  font-family: var(--label); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; text-align: center; line-height: 1.25;
  border: 1px solid var(--terra); border-radius: var(--radius);
  background: var(--terra); color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #B5764C; border-color: #B5764C; }
.btn.ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn.ghost:hover { background: var(--slate); color: var(--parchment); }
.bg-slate .btn.ghost, .hero .btn.ghost { color: var(--parchment); border-color: rgba(242,237,232,.7); }
.bg-slate .btn.ghost:hover, .hero .btn.ghost:hover { background: var(--parchment); color: var(--slate); }
.btn.is-placeholder { opacity: .55; border-style: dashed; cursor: default; pointer-events: none; }
@media (max-width: 520px) { .btns .btn { flex: 1 1 100%; } }

/* ── Đầu trang ─────────────────────────── */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; color: var(--parchment); background: var(--slate); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,42,42,.55) 0%, rgba(31,42,42,.15) 22%, rgba(31,42,42,.5) 48%, rgba(31,42,42,.9) 100%); }
@media (min-width: 860px) { .hero::after { background: linear-gradient(90deg, rgba(31,42,42,.82) 0%, rgba(31,42,42,.55) 45%, rgba(31,42,42,.08) 75%), linear-gradient(180deg, rgba(31,42,42,.45) 0%, rgba(31,42,42,0) 25%); } }
.hero-inner, .nav { text-shadow: 0 1px 12px rgba(20,28,28,.55); }
.hero .btn { text-shadow: none; }
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--parchment); text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: .06em; }
.lang { font-family: var(--label); font-size: .8rem; letter-spacing: .18em; }
.lang a { color: var(--parchment); opacity: .7; text-decoration: none; }
.lang b { font-weight: 600; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; padding-top: 120px; }
.hero .label { color: var(--parchment); opacity: .92; }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 400; color: var(--parchment); }
.hero h1 small { display: block; font-family: var(--label); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; margin-top: .6rem; opacity: .92; }
.hero .intro { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 3.2vw, 1.5rem); margin: 1rem 0 0; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; padding: 0; list-style: none; }
.chips li { font-family: var(--label); font-size: .82rem; padding: .35rem .7rem; border: 1px solid rgba(242,237,232,.45); border-radius: 999px; background: rgba(31,42,42,.35); }
.hero .call { margin-top: .9rem; font-family: var(--label); font-size: .88rem; }
.hero .call a { color: var(--parchment); }

/* ── Khối ảnh + chữ ────────────────────── */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.15fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.bg-slate .figure figcaption { color: var(--linen); opacity: .8; }

/* ── Điểm bán ──────────────────────────── */
.points { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
@media (min-width: 700px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { background: var(--paper); padding: 22px 20px; }
.point .num { font-family: var(--display); font-size: 2rem; color: var(--terra-ink); line-height: 1; }
.point h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: .5rem 0 .3rem; color: var(--slate); }
.point p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ── Bảng khoảng cách ──────────────────── */
.dist { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .98rem; }
.dist th, .dist td { padding: .7rem .4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dist th { font-family: var(--label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dist td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dist th.n { text-align: right; }

/* ── Phòng ngủ ─────────────────────────── */
.rooms { display: grid; gap: 22px; margin-top: 2rem; }
@media (min-width: 700px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
.room { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.room img { aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.room .noimg { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: var(--linen); color: var(--muted); font-family: var(--display); font-style: italic; font-size: 1.2rem; padding: 1rem; text-align: center; }
.room .body { padding: 16px 18px 18px; }
.room h3 { font-family: var(--display); font-size: 1.55rem; color: var(--slate); }
.room .meta { font-family: var(--label); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin: .3rem 0 .5rem; }
.room p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ── Lưới ảnh ──────────────────────────── */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; height: auto; border-radius: var(--radius); }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; line-height: 1.4; }

/* ── Danh sách tiện ích, quy định ──────── */
.cols { display: grid; gap: 28px; margin-top: 1.8rem; }
@media (min-width: 860px) { .cols { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--slate); margin-bottom: .7rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding: .45rem 0 .45rem 1.3rem; border-bottom: 1px solid var(--line); font-size: .96rem; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ''; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.list.no li::before { background: transparent; border: 1px solid var(--muted); }
.list b { color: var(--slate); }

/* ── Hỏi đáp ───────────────────────────── */
.faq { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 500; color: var(--slate); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .3rem; top: .9rem; color: var(--terra-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .a { padding: 0 0 1.1rem; color: var(--muted); font-size: .97rem; }

/* ── Liên hệ ───────────────────────────── */
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; font-size: 1rem; }
.contact-list li { line-height: 1.5; }
.contact-list span { display: block; min-width: 0; font-family: var(--label); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-light); }

/* ── Chân trang ────────────────────────── */
.footer { background: var(--ink); color: var(--linen); padding: 40px 0 96px; font-size: .88rem; }
.footer .row { display: grid; gap: 22px; }
@media (min-width: 860px) { .footer .row { grid-template-columns: 1fr 1.4fr; } }
.footer a { color: var(--linen); }
.footer .tag { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--terra-light); }

/* ── Nút Zalo nổi ──────────────────────── */
.float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.2rem;
  background: var(--terra); color: var(--ink); border-radius: 999px; text-decoration: none;
  font-family: var(--label); font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 20px rgba(45,58,58,.28);
  transition: opacity .25s ease, transform .25s ease;
}
.float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

@media (min-width: 700px) { .contact-list span { display: inline-block; min-width: 9.5rem; } }

/* ── Bảng giá (khối do gia.mjs ghi) ────── */
.hero .from { margin: 1.1rem 0 0; font-family: var(--label); font-size: .98rem; }
.hero .from a { color: var(--parchment); text-decoration: none; border-bottom: 1px solid var(--terra-light); padding-bottom: 2px; }
.prices-wrap { margin-top: 1.6rem; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.prices th, .prices td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prices thead th { font-family: var(--label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--slate); }
.prices tbody th { font-weight: 500; color: var(--slate); font-size: .98rem; }
.prices tbody th small { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: .15rem; }
.prices td b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--slate); line-height: 1.1; }
.prices td span { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.price-notes { list-style: none; padding: 0; margin: 1.3rem 0 0; font-size: .9rem; color: var(--muted); }
.price-notes li { padding: .32rem 0; }
.call-dark { margin-top: 1.1rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 599px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .prices tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 .5rem; }
  .prices td { border: 0; padding: 0; }
  .prices td[colspan] { grid-column: 1 / -1; }
  .prices td::before { content: attr(data-label); display: block; font-family: var(--label); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
}

/* Phòng chưa có ảnh: khối chữ thay ảnh, không hứa gì */
.room .noimg { flex-direction: column; gap: .3rem; background: var(--slate); color: var(--parchment); font-size: 2rem; }
.room .noimg small { font-family: var(--label); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-light); }

/* Vòng 3: đầu trang gọn hơn — một dòng thông tin thay cho các viên */
.hero .facts { margin: .9rem 0 0; font-family: var(--label); font-size: .9rem; letter-spacing: .02em; opacity: .95; }
.point .num { font-style: normal; }
/* Ô một giá (Đèn lồng, Noel, Tết): luôn ghi "Mọi đêm" để khỏi hiểu là giá riêng đêm CN–T5 */
.prices td[colspan]::before { content: attr(data-label); display: block; font-family: var(--label); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }

/* ── Bản 25/10 tối: phòng dạng chữ, lưới ảnh có ảnh lớn đầu, câu khẩu hiệu ── */
.room-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .room-list { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.room-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.room-list h3 { font-family: var(--display); font-size: 1.7rem; color: var(--slate); font-weight: 500; }
.room-list .meta { font-family: var(--label); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin: .35rem 0 .4rem; }
.room-list p { margin: 0; color: var(--muted); font-size: .96rem; }
.gallery { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 9; }
@media (min-width: 860px) { .gallery .wide img { aspect-ratio: 21 / 9; } }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery a img { transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.02); }
.trust { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--slate); }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(2rem, 6vw, 3rem); color: var(--terra-light); margin: 0 0 1.4rem; line-height: 1.1; }
.owner { margin-top: 1.2rem; font-size: 1rem; }
/* Nút nổi gọn hơn; tự ẩn ở đầu trang, mục Giá, mục Liên hệ, chân trang */
.float { min-height: 44px; padding: .6rem 1.1rem; font-size: .88rem; right: 14px; bottom: 14px; }

.owner-dark { margin-top: .8rem; font-size: .95rem; color: var(--slate); }

/* Ảnh rộng chen giữa nửa dưới trang */
.band { margin: 0; position: relative; }
.band img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 860px) { .band img { aspect-ratio: 21 / 8; } }
.band figcaption { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--muted); padding-top: .6rem; padding-bottom: .4rem; }
/* Nút nổi: hình tròn, chỉ biểu tượng, chiếm ít chỗ */
.float { width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; font-size: 0; }
.float svg { width: 24px; height: 24px; }

/* Trang đại lý: 6 ảnh, 3 cột trên máy tính */
@media (min-width: 860px) { .gallery.g3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Mẫu A/B 25/10: nhãn đặt trực tiếp, dải lòng tin, 3 lợi ích ── */
.direct-badge { display: inline-block; margin: 1rem 0 0; padding: .35rem .8rem; border: 1px solid var(--terra-light); border-radius: 999px; font-family: var(--label); font-size: .85rem; color: var(--parchment); }
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-strip .wrap { display: grid; gap: 10px; padding-top: 18px; padding-bottom: 18px; font-size: .92rem; }
@media (min-width: 860px) { .trust-strip .wrap { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.trust-strip p { margin: 0; color: var(--slate); }
.trust-strip b { display: block; font-family: var(--label); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); font-weight: 600; margin-bottom: .15rem; }
.perks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.6rem; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks > div { background: var(--parchment); padding: 20px; }
.perks .num { font-family: var(--display); font-size: 2rem; color: var(--terra-ink); line-height: 1; font-variant-numeric: lining-nums; }
.perks h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--slate); margin: .5rem 0 .3rem; }
.perks p { margin: 0; font-size: .93rem; color: var(--muted); }
.from-dark { font-family: var(--display); font-size: 1.4rem; color: var(--slate); margin: 0 0 .6rem; font-variant-numeric: lining-nums; }

/* Bản EN: 2 cách đặt (trực tiếp · qua Airbnb trả thẻ) */
.ways { display: grid; gap: 16px; margin-top: 1.4rem; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(2, 1fr); } }
.ways .card p { margin: 0 0 .2rem; font-size: .95rem; color: var(--muted); }
.ways .btns { margin-top: 1rem; }
