/* ─────────────────────────────────────────────────────────────
   components.css — Airbnb-inspired public site
   Deduped từ nhaso7-home.html + nhaso7-redesign.html.
   Chỉ dùng biến trong tokens.css. Không hex raw ngoài whitelist.
   ───────────────────────────────────────────────────────────── */

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { object-fit: cover; }
a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); }

/* container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter-desktop);
}
@media (max-width: 1023px) { .container { padding: 0 var(--container-gutter-tablet); } }
@media (max-width: 549px)  { .container { padding: 0 var(--container-gutter-phone); } }

/* ── Top nav (shared) ────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topnav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: var(--space-6);
  position: relative;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px; letter-spacing: -0.02em;
  color: var(--accent);
}
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; }
.topnav__tabs {
  display: flex; gap: var(--space-6);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.topnav__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 4px; border: 0; background: none;
  font-size: var(--text-base); font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
  text-decoration: none;
}
.topnav__tab[aria-current="page"] {
  color: var(--fg); border-bottom-color: var(--fg);
}
.topnav__tab:hover { color: var(--fg); text-decoration: none; }
.topnav__tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.topnav__right { display: flex; align-items: center; gap: var(--space-2); }
.link-cta {
  padding: 12px 16px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 500; color: var(--fg);
  transition: background var(--motion-fast) var(--ease-standard);
}
.link-cta:hover { background: var(--surface-warm); text-decoration: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.icon-btn:hover { background: var(--surface-warm); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--fg); fill: none; stroke-width: 1.6; }

/* ── Hero (home) ─────────────────────────────────────────────── */
.hero { padding-top: 24px; padding-bottom: 24px; }
.hero__frame {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-warm);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86); }
.hero__meta {
  position: absolute; left: 24px; top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  color: var(--fg); font-size: var(--text-sm); font-weight: 600;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero__meta .dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(0,138,5,0.16);
}
.hero__inner {
  position: absolute; left: 48px; right: 48px; bottom: 48px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; color: #ffffff;
}
@media (max-width: 799px) {
  .hero { padding-top: 16px; padding-bottom: 16px; }
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__inner { left: 20px; right: 20px; bottom: 20px; flex-direction: column; align-items: flex-start; }
}
.hero__eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(4px);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: #ffffff; margin: 0 0 12px 0;
  max-width: 720px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.24);
}
.hero__sub {
  font-size: var(--text-base); color: #ffffff;
  margin: 0; max-width: 560px; opacity: 0.94;
  text-shadow: 0 1px 12px rgba(0,0,0,0.32);
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-on);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-base);
  border: 0;
  transition: background var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard);
  text-decoration: none;
}
.hero__cta:hover { background: var(--accent-hover); text-decoration: none; color: var(--accent-on); }
.hero__cta:active { transform: scale(0.98); background: var(--accent-active); }
.hero__cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero__ctas { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 799px) { .hero__ctas { align-items: flex-start; } }
.hero__ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ffffff; font-size: var(--text-sm); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  padding: 4px 2px; border-radius: 4px;
}
.hero__ghost:hover { color: #ffffff; text-decoration: underline; opacity: 0.85; }
.hero__ghost svg { stroke: currentColor; fill: none; }

/* hero stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 32px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
}
@media (max-width: 799px) { .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }
.stat { padding: 8px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 799px) { .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-3xl); line-height: 1;
  letter-spacing: -0.02em; margin: 0 0 6px 0;
}
.stat__label { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.stat--danger .stat__value { color: var(--fg); }
.stat--danger .stat__value strong { color: var(--accent); }

/* ── Section headings ────────────────────────────────────────── */
.section {
  padding: var(--section-y-desktop) 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1023px) { .section { padding: var(--section-y-tablet) 0; } }
@media (max-width: 549px)  { .section { padding: var(--section-y-phone) 0; } }
.section--nb { border-bottom: 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); line-height: var(--leading-tight);
  letter-spacing: -0.02em; margin: 0 0 4px 0;
}
.section-head p { margin: 0; color: var(--muted); font-size: var(--text-base); max-width: 640px; }
.section-head__link {
  font-size: var(--text-sm); font-weight: 600; color: var(--fg);
  text-decoration: underline; text-underline-offset: 3px;
}
.section-head__link:hover { color: var(--accent-hover); }

.section-h {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 20px 0;
}

/* ── Filter chips ────────────────────────────────────────────── */
.chips {
  display: flex; gap: 8px; margin-bottom: 24px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: var(--text-sm); font-weight: 500; color: var(--fg);
  white-space: nowrap; min-height: 44px;
  transition: background var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.chip:hover { background: var(--surface-warm); }
.chip[aria-pressed="true"] { background: var(--fg); color: #ffffff; border-color: var(--fg); }
.chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Rooms grid + card-room (shared) ─────────────────────────── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
[data-od-id="page-room-detail"] .rooms-grid { gap: 24px 24px; padding-top: 8px; }
@media (max-width: 1127px) { .rooms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px)  { .rooms-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
@media (max-width: 549px)  { .rooms-grid { grid-template-columns: 1fr; gap: 24px; } }

.card-room { display: block; text-decoration: none; color: inherit; }
.card-room__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-warm);
}
.card-room__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-standard);
}
.card-room:hover .card-room__media img { transform: scale(1.03); }
.card-room:hover { text-decoration: none; }
.card-room__heart {
  position: absolute; right: 12px; top: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
}
.card-room__heart svg { width: 24px; height: 24px; fill: rgba(0,0,0,0.5); stroke: #fff; stroke-width: 2; }
.card-room__heart--fav svg { fill: var(--accent); stroke: #fff; }
.card-room__badge {
  position: absolute; left: 12px; top: 12px;
  background: var(--surface); color: var(--fg);
  font-size: var(--text-xs); font-weight: 600;
  padding: 6px 10px; border-radius: var(--radius-pill);
}
.card-room__meta { padding-top: 12px; display: grid; gap: 4px; }
.card-room__title { font-weight: 600; font-size: var(--text-base); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-room__loc { color: var(--muted); font-size: var(--text-sm); }
.card-room__price { font-size: var(--text-sm); margin-top: 4px; }
.card-room__price strong { font-weight: 700; }
.card-room__status {
  font-size: var(--text-xs); font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-warm); color: var(--fg-2);
}
.card-room__status--free { background: #e6f5e6; color: var(--success); }
.card-room__status--booked { background: var(--surface-warm); color: var(--muted); }
.card-room__status--maint { background: #fff4e0; color: var(--warn); }

/* ── Features / trust bar (home) ─────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 549px)  { .features { grid-template-columns: 1fr; gap: 24px; } }
.feature { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.feature svg { width: 32px; height: 32px; stroke: var(--fg); fill: none; stroke-width: 1.4; }
.feature strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); margin-bottom: 4px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* ── Two-column: home transparency + owner ───────────────────── */
[data-od-id="page-home"] .two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
  align-items: start;
}
@media (max-width: 1023px) { [data-od-id="page-home"] .two-col { grid-template-columns: 1fr; gap: 48px; } }

/* ── Two-column: detail main + booking ───────────────────────── */
[data-od-id="page-room-detail"] .two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 96px;
  padding-top: 40px;
  padding-bottom: var(--section-y-desktop);
  align-items: start;
}
@media (max-width: 1023px) {
  [data-od-id="page-room-detail"] .two-col { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
}
@media (max-width: 799px) {
  [data-od-id="page-room-detail"] .two-col { padding-top: 24px; padding-bottom: 32px; }
}

/* ── Cost table (shared, merged) ─────────────────────────────── */
.cost-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: var(--text-base); }
.cost-table th, .cost-table td { padding: 14px 0; border-bottom: 1px solid var(--border); text-align: left; }
.cost-table th { color: var(--muted); font-weight: 500; font-size: var(--text-sm); }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-table tfoot td { font-weight: 700; border-bottom: 0; padding-top: 18px; }
.cost-note { color: var(--muted); font-size: var(--text-sm); margin-top: 8px; }

/* ── Owner card (home) ───────────────────────────────────────── */
.owner { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
@media (max-width: 549px) { .owner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.owner__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.owner__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); margin: 0 0 4px 0; letter-spacing: -0.01em; }
.owner__role { color: var(--muted); font-size: var(--text-sm); margin: 0 0 12px 0; }
.owner__quote {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-base); line-height: 1.5;
  margin: 0 0 16px 0; color: var(--fg);
  border-left: 2px solid var(--fg); padding-left: 16px;
}
@media (max-width: 549px) { .owner__quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--fg); padding-top: 12px; } }
.owner__contact { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 549px) { .owner__contact { justify-content: center; } }
.owner__phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--fg); background: var(--surface);
  font-weight: 600; font-size: var(--text-sm); color: var(--fg); min-height: 44px;
}
.owner__phone:hover { background: var(--fg); color: var(--surface); text-decoration: none; }
.owner__phone svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.owner__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: transparent; color: var(--fg);
  font-weight: 600; font-size: var(--text-sm);
  text-decoration: underline; text-underline-offset: 3px; min-height: 44px;
}
.owner__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Location strip (home) ───────────────────────────────────── */
.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 1023px) { .location { grid-template-columns: 1fr; gap: 32px; } }
.location__map {
  position: relative;
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.location__map img { width: 100%; height: 100%; object-fit: cover; }
.location__body h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -0.02em; margin: 0 0 12px 0; }
.location__addr { font-weight: 600; font-size: var(--text-base); margin: 0 0 4px 0; }
.location__area { color: var(--muted); font-size: var(--text-sm); margin: 0 0 20px 0; }
.location__list { padding: 0; margin: 0; list-style: none; display: grid; gap: 0; }
.location__list li {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
}
.location__list li:last-child { border-bottom: 0; }
.location__list svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.6; }
.location__list .dist { color: var(--muted); font-variant-numeric: tabular-nums; }

/* map pin (shared) */
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-on);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.map-pin svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── FAQ (home) ──────────────────────────────────────────────── */
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-base); color: var(--fg);
  list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'><path d='M12 5v14M5 12h14'/></svg>") no-repeat center;
  background-size: contain;
  transition: transform var(--motion-base) var(--ease-standard);
  flex-shrink: 0;
}
.faq details[open] summary::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'><path d='M5 12h14'/></svg>") no-repeat center;
  background-size: contain;
}
.faq p { margin: 12px 0 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; max-width: 640px; }

/* ── CTA band (home) ─────────────────────────────────────────── */
.cta-band {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 32px;
  padding: 40px 48px; border-radius: var(--radius-lg);
  background: var(--fg); color: #ffffff;
}
@media (max-width: 799px) { .cta-band { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; text-align: left; } }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -0.02em; margin: 0 0 8px 0; color: #ffffff; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.75); font-size: var(--text-base); }
.cta-band__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  border: 0;
  transition: background var(--motion-fast) var(--ease-standard);
  text-decoration: none;
}
.cta-band__btn:hover { background: var(--surface-warm); text-decoration: none; }
.cta-band__btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Detail: title strip ─────────────────────────────────────── */
.title-strip { padding-top: 28px; padding-bottom: 16px; }
.title-strip h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--text-2xl);
  line-height: var(--leading-tight); letter-spacing: var(--tracking-display);
  margin: 0 0 8px 0;
}
.title-strip__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: var(--text-sm); color: var(--fg);
}
.title-strip__meta .dot { color: var(--meta); }
.title-strip__meta a { text-decoration: underline; text-underline-offset: 3px; }
.title-strip__actions { display: flex; gap: 8px; }
.title-strip__row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
}
.text-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 600; color: var(--fg);
  background: transparent; border: 0;
  text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px;
  transition: background var(--motion-fast) var(--ease-standard);
}
.text-btn:hover { background: var(--surface-warm); text-decoration: underline; }
.text-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ── Detail: photo grid hero ─────────────────────────────────── */
.photo-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px; height: 460px;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
}
.photo-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter var(--motion-fast) var(--ease-standard);
}
.photo-grid img:hover { filter: brightness(0.94); cursor: pointer; }
.photo-grid > *:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
.photo-grid > *:nth-child(2) { grid-row: 1; grid-column: 2; }
.photo-grid > *:nth-child(3) { grid-row: 1; grid-column: 3; }
.photo-grid > *:nth-child(4) { grid-row: 2; grid-column: 2; }
.photo-grid > *:nth-child(5) { grid-row: 2; grid-column: 3; position: relative; }
.show-all-btn {
  position: absolute; right: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--fg);
  font-size: var(--text-sm); font-weight: 600; color: var(--fg);
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform var(--motion-fast) var(--ease-standard);
}
.show-all-btn:hover { transform: translateY(-1px); }
.show-all-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 799px) {
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: 300px; height: 300px; }
  .photo-grid > *:not(:first-child) { display: none; }
  .photo-grid > *:nth-child(1) { grid-row: 1; grid-column: 1; }
}

/* ── Detail: section blocks ──────────────────────────────────── */
.section-block { padding: 32px 0; border-bottom: 1px solid var(--border); }
.section-block:last-child { border-bottom: 0; }
.section-block h2 {
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--text-xl);
  line-height: var(--leading-tight); letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}
.body-muted { color: var(--muted); }

/* summary row */
.summary-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.summary-row h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 8px 0;
}
.summary-row p { margin: 4px 0; font-size: var(--text-base); color: var(--fg); }
.summary-row p.muted { color: var(--muted); }
.summary-avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); }

/* highlights */
.highlights { display: grid; gap: 24px; padding: 16px 0 0 0; }
.highlight { display: grid; grid-template-columns: 24px 1fr; gap: 18px; align-items: start; }
.highlight svg { width: 24px; height: 24px; stroke: var(--fg); fill: none; stroke-width: 1.5; }
.highlight strong { font-weight: 600; font-size: var(--text-base); display: block; margin-bottom: 2px; }
.highlight p { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* ── Amenities (detail nội thất) ─────────────────────────────── */
.amenity-group { padding-top: 20px; }
.amenity-group + .amenity-group { margin-top: 8px; border-top: 1px solid var(--border-soft); }
.amenity-group__title {
  font-size: var(--text-base); font-weight: 600; color: var(--fg);
  margin: 0 0 4px; letter-spacing: 0;
}
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 549px) { .amenities { grid-template-columns: 1fr; } }
.amenity,
.amenities__item {
  display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 16px;
  padding: 12px 0;
}
.amenity svg,
.amenities__icon svg { width: 22px; height: 22px; stroke: var(--fg); fill: none; stroke-width: 1.6; }
.amenities__icon { display: inline-flex; align-items: center; justify-content: center; }
.amenities__count { color: var(--muted); font-weight: 500; }

/* ── Buttons: outline + primary ──────────────────────────────── */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--fg); background: var(--surface);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  color: var(--fg); min-height: 44px;
  transition: background var(--motion-fast) var(--ease-standard);
}
.btn-outline:hover { background: var(--surface-warm); text-decoration: none; }
.btn-outline:active { transform: scale(0.98); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-on);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-base);
  text-decoration: none; cursor: pointer; min-height: 44px;
  transition: background var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard);
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: var(--accent-on); }
.btn-primary:active { transform: scale(0.98); background: var(--accent-active); }
.btn-primary svg { flex: 0 0 auto; }

/* ── Detail: host card ───────────────────────────────────────── */
.host { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 16px 0; align-items: center; }
@media (max-width: 549px) { .host { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.host__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.host__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); margin: 0; letter-spacing: -0.01em; }
.host__role { color: var(--muted); font-size: var(--text-sm); margin: 4px 0 12px 0; }
.host__stats { display: flex; gap: 32px; }
@media (max-width: 549px) { .host__stats { justify-content: center; } }
.host__stat strong { display: block; font-size: var(--text-lg); font-weight: 700; }
.host__stat span { display: block; font-size: var(--text-xs); color: var(--muted); }
.host__contact { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 549px) { .host__contact { justify-content: center; } }
.host__phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: var(--text-sm); color: var(--fg); min-height: 44px;
}
.host__phone svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Detail: location + nearby ───────────────────────────────── */
.map-frame {
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; }
.address-line { margin-top: 16px; }
.address-line strong { display: block; font-weight: 600; font-size: var(--text-base); }
.address-line p { margin: 4px 0 0 0; color: var(--muted); font-size: var(--text-sm); }
.nearby { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 20px; }
@media (max-width: 549px) { .nearby { grid-template-columns: 1fr; } }
.nearby li {
  list-style: none; display: grid; grid-template-columns: 20px 1fr auto; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
}
.nearby ul { padding: 0; margin: 0; }
.nearby svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.6; }
.nearby .dist { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Detail: sticky booking card ─────────────────────────────── */
.booking-wrap { position: sticky; top: 104px; display: block; }
.booking {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--elev-raised);
  padding: 24px;
}
.booking__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.booking__price .val { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.booking__price .unit { color: var(--muted); font-size: var(--text-sm); }
.booking__grid { border: 1px solid var(--fg-2); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.booking__cell { padding: 10px 14px; display: block; border-bottom: 1px solid var(--border); }
.booking__cell:last-child { border-bottom: 0; }
.booking__cell.two { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.booking__cell.two > div { padding: 10px 14px; border-right: 1px solid var(--border); }
.booking__cell.two > div:last-child { border-right: 0; }
.booking__cell label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg);
  margin-bottom: 2px;
}
.booking__cell input,
.booking__cell select {
  width: 100%; border: 0; padding: 0; background: transparent;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  color: var(--fg);
}
.booking__cell input::placeholder { color: var(--muted); }
.booking__cell select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; background-size: 14px; }
.booking__note { text-align: center; color: var(--muted); font-size: var(--text-sm); margin: 10px 0 20px 0; }
.booking__break { display: grid; gap: 8px; }
.booking__break-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); color: var(--fg); }
.booking__break-row.total { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; font-weight: 700; font-size: var(--text-base); }
.booking__break-row span:first-child { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.booking__break-row.total span:first-child { text-decoration: none; }
.booking__break-row .val { font-variant-numeric: tabular-nums; }
.report-link { display: block; text-align: center; margin-top: 20px; font-size: var(--text-sm); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ── Detail: rules strip ─────────────────────────────────────── */
.rules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
@media (max-width: 799px) { .rules { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; } }
.rule h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; margin: 0 0 12px 0; }
.rule ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; }
.rule li { color: var(--fg); font-size: var(--text-sm); }
.rule .show-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: var(--text-sm); color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer (shared) ─────────────────────────────────────────── */
.footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px 0;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 799px) { .footer__cols { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; margin: 0 0 16px 0; }
.footer ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.footer li, .footer a { font-size: var(--text-sm); color: var(--fg); }
.footer__qr { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.footer__qr img { width: 96px; height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.footer__qr-cap { font-size: var(--text-xs); color: var(--muted); }
.footer__bar {
  border-top: 1px solid var(--border);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: var(--text-xs); color: var(--muted);
}
.footer__bar a { font-size: var(--text-xs); color: var(--muted); }

/* ── Utilities ───────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }
@media (max-width: 799px) {
  .topnav__tabs { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .booking-wrap { display: none; }
}

/* placeholder badge */
.ph {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  color: var(--warn); background: #fff4e0;
  letter-spacing: 0.04em; text-transform: uppercase;
  vertical-align: 2px;
}

/* ── Mobile bottom reserve bar (detail) ──────────────────────── */
.mobile-reserve { display: none; }
@media (max-width: 799px) {
  .mobile-reserve {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  }
  .mobile-reserve__price { display: grid; gap: 2px; }
  .mobile-reserve__price .v { font-weight: 700; font-size: var(--text-base); }
  .mobile-reserve__price .u { color: var(--muted); font-size: var(--text-xs); text-decoration: underline; }
  .mobile-reserve .btn-primary { width: auto; padding: 12px 22px; }
  [data-od-id="page-room-detail"] main { padding-bottom: 80px; }
}

/* placeholder media (khi chưa có ảnh thật) */
.media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-warm); color: var(--meta);
  font-size: var(--text-sm); font-weight: 600; text-align: center; padding: 12px;
}
