/* Tông màu và chữ theo mẫu A */
:root {
  --bg: #faf7f1;
  --green: #1f3d33;
  --ink: #1d1d1b;
  --muted: #6b675e;
  --line: #e3ded2;
  --serif: Cambria, "Noto Serif", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
a:focus-visible, video:focus-visible { outline: 3px solid #c8891a; outline-offset: 2px; }

header, main, footer { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
header a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand { font-weight: 700; font-size: 15px; }
.back { font-size: 14px; }

main { flex: 1; display: flex; flex-direction: column; padding-top: 16px; padding-bottom: 32px; }
h1 { font: 400 34px/1.2 var(--serif); margin-bottom: 12px; outline: none; }
.lead { color: var(--muted); margin-bottom: 24px; }

.home { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; }
.home h1 { font-size: 44px; line-height: 1.15; }
.home .lead { margin-bottom: 32px; }
.btn {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 20px; margin-bottom: 14px;
  border: 1.5px solid var(--green); border-radius: 14px;
  font-weight: 600; text-decoration: none;
}
.dark { background: var(--green); color: #fff; }
.line { color: var(--green); }

.rooms { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.gallery { position: relative; }
.photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.photos > * { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; scroll-snap-align: start; }
.slide { position: relative; border: 0; padding: 0; background: #2a2a27; cursor: pointer; overflow: hidden; }
.slide img, .slide video { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide:focus-visible { outline: 3px solid #c8891a; outline-offset: -3px; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--green); font-size: 22px; line-height: 60px; text-align: center; }
.count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; border-radius: 20px; padding: 3px 10px; pointer-events: none; }
.ready { position: absolute; left: 10px; top: 10px; background: #188038; color: #fff; font-size: 14px; font-weight: 600; border-radius: 20px; padding: 4px 12px; pointer-events: none; }
.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #d9c3a3, #a98a66); font-size: 14px; }
.placeholder span { background: rgba(255,255,255,.85); border-radius: 20px; padding: 4px 12px; }

.viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 0; background: #141413; color: #fff; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-top, .viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; }
.viewer-nav { justify-content: center; gap: 28px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.viewer-nav.single { visibility: hidden; }
.viewer button { min-width: 48px; min-height: 48px; border: 1px solid #55554f; border-radius: 14px; background: transparent; color: #fff; font: 600 15px var(--sans); padding: 0 14px; cursor: pointer; }
.viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
body:has(.viewer[open]) { overflow: hidden; }

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font: 400 22px/1.25 var(--serif); }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.card dt { color: var(--muted); }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.amenities li { font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; }
.note { font-size: 13px; color: var(--muted); }
.services { list-style: none; counter-reset: s; margin-bottom: 24px; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.services li { counter-increment: s; position: relative; padding: 18px 0 18px 48px; border-top: 1px solid var(--line); }
.services li::before { content: counter(s); position: absolute; left: 0; top: 14px; font: 400 28px/1.2 var(--serif); color: var(--green); }
.services h2 { font-size: 17px; }
.services p { color: var(--muted); font-size: 15px; }

footer {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border-top: 1px solid var(--line);
  padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
footer a { display: inline-flex; align-items: center; min-height: 48px; }
.tiktok { text-underline-offset: 3px; font-size: 15px; }
.zalo { background: var(--green); color: #fff; border-radius: 14px; padding: 0 18px; font-weight: 600; font-size: 15px; text-decoration: none; }

@media (min-width: 760px) {
  h1 { font-size: 42px; }
  .home h1 { font-size: 56px; }
}
