/* ============================================================
   base.css — Reset + nền tảng MOBILE-FIRST + kiểu chữ chung
   Viết cho điện thoại trước, phóng to dần lên máy tính.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Khung nội dung: mobile-first, canh giữa, lề co giãn theo màn hình */
.container {
  width: 100%;
  max-width: calc(var(--page-max) + 96px);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px)  { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

/* Thang kiểu chữ (mobile nhỏ hơn → desktop lớn hơn) */
.t-display { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.t-heading { font-size: 20px; font-weight: 700; line-height: 1.2; }
.t-title   { font-size: 16px; font-weight: 600; line-height: 1.3; }
.t-body    { font-size: 15px; font-weight: 400; line-height: 1.5; }
.t-caption { font-size: 13px; font-weight: 500; color: var(--muted-fg); }
@media (min-width: 768px) {
  .t-display { font-size: 32px; }
  .t-heading { font-size: 24px; }
  .t-title   { font-size: 18px; }
}

/* Tiện ích nhỏ */
.text-muted { color: var(--muted-fg); }
.text-gold  { color: var(--gold-fg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }

/* Icon inline (lucide) căn theo dòng chữ */
.ic { flex-shrink: 0; vertical-align: middle; }

/* Lưới thẻ phòng: 1 cột (mobile) → 2 → 3 → 4 cột */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px)  { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .room-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .room-grid { grid-template-columns: repeat(4, 1fr); } }
