/* Du Nhiên Homestay — "Lịch bloc": bìa cứng xanh rêu, tờ lịch giấy báo, mực đen, mực sen cho tầng đang chọn và nút đặt phòng. */

:root {
  --board: #2C5B43;
  --board-2: #24503A;
  --board-3: #3A7254;
  --paper: #F3F2EC;
  --paper-2: #E4E2D8;
  --paper-3: #D6D3C6;
  --ink: #1D2621;
  --ink-2: #44514A;
  --lotus: #C2622E;
  --lotus-deep: #A84E22;
  --lotus-ink: #8A3E1A;
  --wood: #A8743F;
  --wood-2: #C99660;
  --wood-3: #7E5530;
  --mist: #DCE6E2;
  --on-board: #F3F2EC;
  --on-board-2: #C9D9CF;
  --focus: #F3F2EC;
  --fog: var(--board);
  --display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--on-board);
  background-color: var(--board);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  scrollbar-color: var(--board-3) var(--board-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lotus-deep); color: #fff; }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Thanh trên ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding: 12px clamp(16px, 4vw, 44px);
  background: var(--board);
  transition: box-shadow .3s;
}
.bar.sc { box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .55); }

.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-name { font: 700 25px/1 var(--display); letter-spacing: -.025em; }
.brand-sub { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-board-2); }

.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--on-board-2); padding: 6px 0; }
.nav a:hover { color: var(--on-board); text-decoration: underline; }

.lang { display: flex; gap: 4px; }
.lang button {
  font: 700 13px/1 var(--body); letter-spacing: .06em;
  min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  color: var(--on-board-2); background: transparent; border: 1.5px solid rgba(243, 242, 236, .32);
}
.lang button:hover { color: var(--on-board); border-color: var(--on-board); }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--board); border-color: var(--paper); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: 700 15px/1.1 var(--body); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; background: transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-act { background: var(--lotus-deep); color: #fff; }
.btn-act:hover { background: var(--lotus-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ghost { border-color: rgba(243, 242, 236, .5); color: var(--on-board); }
.btn-ghost:hover { border-color: var(--on-board); background: rgba(243, 242, 236, .08); }
.bar-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Sân khấu: nhà + lịch ---------- */
.stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
  max-width: 1280px; margin: 0 auto;
  min-height: calc(100svh - 64px);
  padding: 8px clamp(16px, 4vw, 44px) 40px;
}
#top { position: absolute; top: 0; }

.house-col {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  align-items: center; column-gap: 8px;
}
html:not(.js) .house-col { display: none; }

.findex { display: flex; flex-direction: column; grid-row: 1; grid-column: 1; position: relative; z-index: 2; }
.findex button {
  font: 400 26px/1 var(--display); width: 58px; height: 54px; cursor: pointer;
  color: var(--on-board-2); background: transparent;
  border: 0; border-top: 1px solid rgba(243, 242, 236, .2);
  transition: background-color .25s, color .25s;
}
.findex button:last-child { border-bottom: 1px solid rgba(243, 242, 236, .2); }
.findex button:hover { color: var(--on-board); background: rgba(243, 242, 236, .07); }
.findex button[aria-pressed="true"] { background: var(--lotus-deep); color: #fff; border-color: var(--lotus-deep); }

.hint { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 13px; color: var(--on-board-2); }

.scene {
  position: relative; height: 620px; grid-row: 1; grid-column: 2;
  perspective: 2000px; perspective-origin: 50% 40%;
}
.house {
  --k: 1; --tx: 0deg; --ty: 0deg;
  position: absolute; left: 44%; top: 84%;
  transform-style: preserve-3d;
  transform: scale3d(var(--k), var(--k), var(--k)) rotateX(calc(-15deg + var(--ty))) rotateY(calc(-32deg + var(--tx)));
  transition: transform .9s var(--ease);
}
.house .fl, .house .g, .house .rm { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.house .fl { cursor: pointer; transform: translate3d(0, var(--y), 0); transition: transform .55s var(--ease); }
.house .fl.on { transform: translate3d(0, var(--y), 34px); }

.house .f {
  position: absolute; left: 0; top: 0; display: block; overflow: hidden;
  background-color: color-mix(in oklab, var(--c), var(--fog) var(--dim, 0%));
  transition: background-color .4s;
}
.house.focus .fl:not(.on) { --dim: 52%; }
.house .fl.on:has(.rm.on) .rm:not(.on) { --dim: 34%; }
.house .ground { cursor: default; }

/* Hoa văn trên mặt phẳng */
.house .tiles { background-image: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 25%, transparent 0 50%); background-size: 24px 24px; }
.house .planks { background-image: repeating-linear-gradient(90deg, transparent 0 21px, rgba(60, 35, 10, .16) 21px 22px); }
.house .grass { background-image: radial-gradient(rgba(46, 94, 67, .35) 22%, transparent 26%); background-size: 13px 13px; }
.house .deck { background-image: repeating-linear-gradient(0deg, transparent 0 13px, rgba(0, 0, 0, .09) 13px 14px); }
.house .rug { background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, .35) 10px 14px); border-radius: 4px; }
.house .rail { background: repeating-linear-gradient(90deg, #FBFBF8 0 2px, transparent 2px 11px); border-top: 3px solid #FBFBF8; }
.house .part { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.house .edge { overflow: visible; }

.house b { position: absolute; display: block; }
.house .win { background: #BFD9E6; border: 3px solid #FBFBF8; }
.house .win::before, .house .win::after { content: ''; position: absolute; background: #FBFBF8; }
.house .win::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.house .win::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.house .board { background: #24302A; border: 3px solid #A8743F; }
.house .board::before { content: ''; position: absolute; inset: 6px 8px; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(243, 242, 236, .55) 5px 6px); }
.house .shelf { background: repeating-linear-gradient(0deg, transparent 0 12px, #A8743F 12px 15px); }
.house .shelf::before { content: ''; position: absolute; left: 6px; right: 6px; top: 3px; height: 9px; background: repeating-linear-gradient(90deg, #C2622E 0 6px, transparent 6px 10px, #3E7A57 10px 16px, transparent 16px 20px); }
.house .cab { background: #C9965D; border: 2px solid #8C6036; }
.house .cab::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 26px, #8C6036 26px 28px); }
.house .frame { background: #C2622E; border: 3px solid #FBFBF8; }
.house .frame::before { content: ''; position: absolute; left: 20%; right: 20%; bottom: 18%; height: 40%; background: #3E7A57; border-radius: 50% 50% 0 0; }
.house .door { background: #A8743F; border-radius: 8px 8px 0 0; }
.house .road { background: #6F7E76; }
.house .road::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: repeating-linear-gradient(90deg, #F3F2EC 0 24px, transparent 24px 46px); }
.house .sign { color: #fff; font: 400 13px/20px var(--display); text-align: center; letter-spacing: .06em; text-transform: uppercase; }
.house .fnum {
  position: absolute; right: 10px; top: -3px; font: 400 12px/16px var(--display);
  color: var(--ink-2); transition: color .3s;
}
.house .fl.on .fnum { color: var(--lotus); }

/* ---------- Xấp lịch ---------- */
.pad-col { display: flex; justify-content: center; padding-top: 56px; }
.pad { position: relative; width: min(440px, 100%); transform: rotate(.6deg); }
.hanger { position: absolute; left: 50%; top: -46px; width: 120px; transform: translateX(-50%); color: var(--on-board-2); }
.binding {
  position: relative; z-index: 3; height: 36px; border-radius: 5px 5px 2px 2px;
  background: var(--wood); box-shadow: inset 0 3px 0 var(--wood-2), inset 0 -3px 0 var(--wood-3);
}
.binding i { position: absolute; bottom: -6px; width: 26px; height: 12px; border: 3px solid #8D958F; border-bottom: 0; border-radius: 2px 2px 0 0; }
.binding i:first-child { left: 26%; }
.binding i:last-child { right: 26%; }

.leaves {
  position: relative; perspective: 1100px; color: var(--ink); --focus: var(--lotus-ink);
  background: var(--paper);
  box-shadow: 0 3px 0 -1px var(--paper-2), 0 6px 0 -2px var(--paper-3), 0 9px 0 -3px var(--paper-2), 0 26px 40px -18px rgba(0, 0, 0, .5);
}
.leaf {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  min-height: min(560px, calc(100svh - 190px)); padding: 16px 28px 26px; background: var(--paper);
}
.leaf::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: radial-gradient(circle, var(--paper-3) 1.6px, transparent 2px) 0 0 / 9px 6px repeat-x;
}
.leaf-band {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.leaf-num {
  margin: 10px 0 0; text-align: center;
  font: 600 clamp(40px, min(4.4vw, 7svh), 52px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: lining-nums;
  color: var(--lotus);
}
.leaf-num.is-intro { color: var(--ink); }
.leaf-name { margin: 4px 0 6px; text-align: center; font: 700 25px/1.2 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.leaf-lead { margin: 0 auto 14px; max-width: 34ch; text-align: center; color: var(--ink-2); text-wrap: pretty; }
.leaf-addr { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 0 auto 6px; max-width: 34ch; text-align: center; font-weight: 500; font-size: 15px; }
.leaf-addr svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--board-3); }
.leaf-hint { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.leaf-sub { margin: 4px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-align: center; }

.rooms { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 0; }
.rooms.two { grid-template-columns: 1fr 1fr; }
.room { padding: 12px 14px; border-top: 1px dashed var(--paper-3); border-radius: 6px; transition: background-color .25s; }
.rooms.two .room + .room { border-left: 1px dashed var(--paper-3); border-radius: 0 6px 6px 0; }
.room.on { background: var(--mist); }
.room h2 { margin: 0 0 4px; font: 700 19px/1.2 var(--display); letter-spacing: -.015em; }
.room ul { margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.room li { margin: 2px 0; }
.price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.price span { font-weight: 400; color: var(--ink-2); font-size: 13px; }

.amen { list-style: none; margin: 0 auto 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; width: 100%; max-width: 360px; }
.amen li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.amen svg { width: 13px; height: 13px; flex: none; margin-top: 4px; color: var(--board-3); }

.leaf .actions { margin-top: auto; padding-top: 14px; justify-content: center; }
.leaf-back {
  align-self: center; margin-top: 10px; padding: 6px 10px; border: 0; background: none; cursor: pointer;
  font: 500 13px var(--body); color: var(--ink-2); text-decoration: underline; text-underline-offset: .25em;
}
.leaf-back:hover { color: var(--ink); }
.leaf-say {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--paper-3);
  text-align: center; font-size: 14px; font-weight: 500; color: var(--ink-2);
}

.leaf.tear {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  transform-origin: 50% 0;
  animation: tear .62s cubic-bezier(.5, 0, .75, .4) forwards;
}
@keyframes tear {
  0% { transform: none; }
  25% { transform: rotateX(-8deg) rotate(calc(var(--tw) * .3)); }
  100% { transform: translate3d(0, -70px, 0) rotateX(-82deg) rotate(var(--tw)); opacity: 0; }
}

.sample {
  border-bottom: 1.5px dashed var(--wood-3);
  white-space: normal;
}
.sample::after {
  content: attr(data-tag); margin-left: 4px; vertical-align: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--wood-3);
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Dịch vụ ---------- */
.services { padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 44px); }
.sheet {
  max-width: 1040px; margin: 0 auto; color: var(--ink); --focus: var(--lotus-ink);
  background: var(--paper); padding: clamp(24px, 5vw, 60px);
  border-radius: 4px;
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .55);
}
.sheet h2 { margin: 0; font: 700 clamp(32px, 4.4vw, 50px)/1.12 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sheet-lead { margin: 10px 0 30px; color: var(--ink-2); font-size: 17px; max-width: 52ch; text-wrap: pretty; }

.svc { border-top: 1px dashed var(--paper-3); }
.svc:first-child { border-top: 2px solid var(--ink); }
.svc:last-child { border-bottom: 2px solid var(--ink); }
.svc summary {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
  padding: 18px 4px; cursor: pointer; list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc-name { font: 700 21px/1.2 var(--display); letter-spacing: -.015em; }
.svc-short { color: var(--ink-2); }
.chev { width: 26px; height: 26px; transition: transform .35s var(--ease); }
.svc[open] .chev { transform: rotate(180deg); }
.svc summary:hover .svc-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px 32px; padding: 0 4px 24px; align-items: start; }
.svc-body h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.svc-body ul { margin: 0; padding-left: 18px; }
.svc-body table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.svc-body th, .svc-body td { padding: 5px 0; border-bottom: 1px dotted var(--paper-3); text-align: left; font-weight: 400; }
.svc-body td { text-align: right; font-weight: 700; padding-left: 12px; }
.svc-body .actions { flex-direction: column; align-items: stretch; }

/* ---------- Liên hệ ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(24px, 5vw, 64px);
  max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 44px) clamp(70px, 9vw, 120px);
}
.contact-num { display: none; }
.contact h2 { margin: 0 0 12px; font: 700 clamp(32px, 4.4vw, 50px)/1.12 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.contact p { margin: 0 0 16px; color: var(--on-board-2); max-width: 46ch; }
.contact address { font-style: normal; font-weight: 700; font-size: 18px; margin-bottom: 22px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 20px clamp(16px, 4vw, 44px); font-size: 13px; color: var(--on-board-2);
  border-top: 1px solid rgba(243, 242, 236, .16);
}

.mbar { display: none; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1080px) {
  .scene { height: 540px; }
  .house { --k: .84; }
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; min-height: 0; padding-top: 0; }
  .house-col { grid-template-columns: 1fr; }
  .scene { height: 520px; }
  .house { --k: .8; left: 42%; }
  .scene { grid-column: 1; overflow: hidden; }
  .findex { grid-row: 2; grid-column: 1; flex-direction: row; justify-content: center; }
  .findex button { border-top: 0; border-left: 1px solid rgba(243, 242, 236, .2); width: 54px; height: 48px; }
  .findex button:last-child { border-bottom: 0; border-right: 1px solid rgba(243, 242, 236, .2); }
  .hint { margin-top: 8px; }
  .pad-col { padding-top: 48px; }
  .pad { width: min(480px, 100%); }
  .contact { grid-template-columns: 1fr; }
  .contact-num { text-align: left; }
}

@media (max-width: 760px) {
  .bar-cta, .nav a[href="#floors"] { display: none; }
  .bar { gap: 14px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .brand-name { font-size: 24px; }
  .svc summary { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-short { grid-column: 1; grid-row: 2; font-size: 15px; }
  .chev { grid-column: 2; grid-row: 1 / 3; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-body .actions { flex-direction: row; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--board); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .6);
  }
  body { padding-bottom: 72px; }
}

@media (max-width: 520px) {
  .scene { height: 400px; }
  .house { --k: .6; left: 40%; top: 86%; }
  .findex button { width: 48px; font-size: 22px; }
  .leaf { min-height: 0; padding: 14px 18px 22px; }
  .leaf-num { font-size: 40px; }
  .rooms.two { grid-template-columns: 1fr; }
  .rooms.two .room + .room { border-left: 0; border-radius: 6px; }
  .amen { grid-template-columns: 1fr; max-width: 260px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Nút liên hệ khi chủ nhà chưa điền số: không bấm được, có dấu "mẫu" */
.btn.is-unset { cursor: not-allowed; opacity: .78; }
.btn.is-unset:hover { transform: none; }
.unset-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; border: 1.5px dashed currentColor;
}

/* ---------- Nhà 3D (three.js) ---------- */
.scene.has-3d { perspective: none; }
.scene.has-3d .house { display: none; }
.house3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.scene.has-3d { height: min(680px, calc(100svh - 120px)); min-height: 520px; }

/* ---------- Lịch phòng trống trên tờ lịch ---------- */
.leaf.has-cal .leaf-num { font-size: clamp(36px, min(4vw, 6svh), 46px); }
.room[tabindex] { cursor: pointer; }
.room[tabindex]:hover { background: var(--paper-2); }
.room.on, .room.on:hover { background: var(--mist); }

.cal { margin: 10px 0 0; padding-top: 12px; border-top: 2px solid var(--ink); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-month { display: inline-block; min-width: 9.5em; text-align: center; font-weight: 700; font-size: 14px; }
.cal-month::first-letter { text-transform: uppercase; }
.cal-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--paper-3); background: transparent; color: var(--ink);
}
.cal-btn svg { width: 18px; height: 18px; }
.cal-btn:hover:not(:disabled) { border-color: var(--ink); }
.cal-btn:disabled { opacity: .35; cursor: default; }

.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; }
.cal-wd span { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; padding: 2px 0; }
.cal-day {
  width: 100%; aspect-ratio: 1 / .86; min-height: 34px; border-radius: 6px; cursor: pointer;
  font: 500 14px/1 var(--body); font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--paper-3); background: #fff; color: var(--ink);
  transition: background-color .15s, border-color .15s;
}
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day.past { background: transparent; border-color: transparent; color: var(--paper-3); cursor: default; }
.cal-day.busy {
  background: var(--paper-2); border-color: transparent; color: var(--ink-2);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.cal-day.busy:disabled { cursor: not-allowed; }
.cal-day.sel { background: #F3DCC8; border-color: #F3DCC8; color: var(--ink); text-decoration: none; }
.cal-day.start, .cal-day.end { background: var(--lotus-deep); border-color: var(--lotus-deep); color: #fff; font-weight: 700; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-free { background: #fff; border: 1.5px solid var(--paper-3); }
.lg-busy { background: var(--paper-2); }
.lg-sel { background: var(--lotus-deep); }
.cal-note { margin: 10px 0 0; font-size: 15px; text-align: center; }
.cal-clear { margin-left: 6px; border: 0; background: none; padding: 4px; cursor: pointer; font: 500 13px var(--body); color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; }
.cal-src { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); text-align: center; }
.cal-src.is-off { color: var(--wood-3); }

/* Tờ lịch dài (có lịch tháng): nhà đứng yên bên trái khi cuộn */
@media (min-width: 901px) {
  .stage { align-items: start; }
  .house-col { position: sticky; top: 64px; }
}

@media (max-width: 900px) {
  .scene.has-3d { height: min(560px, 62svh); min-height: 380px; }
}
.mbar .btn { min-width: 0; padding: 0 12px; }
.mbar .unset-tag { display: none; }

/* ---------- Nền trời đổi màu theo giờ Hà Nội ---------- */
/* app.js đặt html[data-sky] = dawn | day | dusk | night. Các quầng màu chỉ là ánh sáng sau bìa, không đè lên chữ. */
:root { --bg: var(--board); }
:root[data-sky="night"] { --bg: #183229; }
body { background-color: var(--bg); background-image: none; transition: background-color 1.2s; }
.bar { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }

.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); transition: background-color 1.2s;
  --c1: #F4C66A; --c2: #E8956A; --c3: #7CCB7A; --c4: #6FC1C9; --leaf: #9FD27F; --petal: #E8A27A;
}
:root[data-sky="dawn"] .sky { --c1: #F6A57A; --c2: #EE9A7A; --c3: #B7D98B; --c4: #8FB8D8; }
:root[data-sky="dusk"] .sky { --c1: #F08A4B; --c2: #D9703F; --c3: #E9B65F; --c4: #8C7BC4; }
:root[data-sky="night"] .sky { --c1: #E9A84F; --c2: #4B5FA6; --c3: #2E8A6C; --c4: #7A4E9A; }
.sky::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: absolute; border-radius: 50%; opacity: .42; will-change: transform; mix-blend-mode: screen;
  animation: glow var(--gd, 24s) ease-in-out infinite alternate;
}
/* g1: quầng nắng sau ngôi nhà · g2: sen góc trên phải · g3: lá dưới trái · g4: trời dưới phải */
.g1 { width: 76vmin; height: 76vmin; left: calc(31vw - 38vmin); top: calc(50vh - 36vmin); background: radial-gradient(closest-side, var(--c1), transparent); --gd: 22s; opacity: .9; }
.g2 { width: 60vmax; height: 60vmax; right: -24vmax; top: -26vmax; background: radial-gradient(closest-side, var(--c2), transparent); --gd: 31s; opacity: .8; }
.g3 { width: 64vmax; height: 64vmax; left: -26vmax; bottom: -32vmax; background: radial-gradient(closest-side, var(--c3), transparent); --gd: 29s; opacity: .8; }
.g4 { width: 50vmax; height: 50vmax; right: -10vmax; bottom: -22vmax; background: radial-gradient(closest-side, var(--c4), transparent); --gd: 35s; opacity: .75; }
:root[data-sky="night"] .glow { opacity: .55; }
:root[data-sky="night"] .g1 { opacity: .6; }
@media (max-width: 900px) { .g1 { left: calc(50vw - 38vmin); top: calc(38vh - 38vmin); } }
@keyframes glow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3vw, 3vh, 0) scale(1.1); }
}

/* Lá rơi ban ngày, đom đóm ban đêm */
.drift {
  position: absolute; left: var(--x); top: -40px;
  width: calc(16px * var(--s)); height: calc(16px * var(--s));
  background: var(--leaf); border-radius: 0 100% 0 100%; opacity: .5;
  animation: fall var(--d) linear var(--w) infinite;
}
.drift:nth-child(3n) { background: var(--petal); border-radius: 60% 0 60% 0; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(6vw, 55vh, 0) rotate(260deg); }
  100% { transform: translate3d(-2vw, 112vh, 0) rotate(560deg); }
}
:root[data-sky="night"] .drift {
  top: calc(30% + var(--s) * 45%); width: 5px; height: 5px; border-radius: 50%;
  background: #FFE59A; box-shadow: 0 0 12px 4px rgba(255, 214, 110, .55); opacity: 0;
  animation: firefly calc(var(--d) * .5) ease-in-out var(--w) infinite;
}
@keyframes firefly {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: .9; }
  45% { transform: translate3d(5vw, -8vh, 0); opacity: .2; }
  70% { transform: translate3d(-3vw, -14vh, 0); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) { .drift { display: none; } }

/* ---------- Nút "Xem ảnh và chi tiết" trên tờ lịch ---------- */
.leaf-more {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 14px/1 var(--body); transition: background-color .2s, color .2s;
}
.leaf-more svg { width: 18px; height: 18px; }
.leaf-more:hover { background: var(--ink); color: var(--paper); }
.leaf .leaf-more + .actions { margin-top: 0; }

/* ---------- Khung chi tiết tầng / phòng ---------- */
html:has(.detail[open]) { overflow: hidden; }
.detail {
  padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  width: min(1120px, calc(100vw - 40px)); max-width: none; max-height: calc(100svh - 40px);
  background: var(--paper); color: var(--ink); --focus: var(--lotus-ink);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .65);
}
.detail[open] { animation: dt-in .5s var(--ease); }
.detail::backdrop { background: rgba(14, 30, 22, .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@keyframes dt-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }

.dt-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5);
}
.dt-close svg { width: 20px; height: 20px; }
.dt-close:hover { background: #fff; }

.dt-body {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(90deg, var(--board) calc(100% * 1.2 / 2.2), var(--paper) 0);
}
.dt-gal {
  position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 14px;
  min-height: min(640px, calc(100svh - 40px)); padding: 26px 24px;
  background: var(--board); color: var(--on-board); --focus: var(--paper);
}
.dt-stage { position: relative; }
.dt-photo {
  position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--board-2); border: 7px solid var(--paper); border-radius: 3px;
  transform: rotate(-.7deg); box-shadow: 0 24px 36px -22px rgba(0, 0, 0, .7);
}
.dt-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dt-photo.is-empty {
  display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center;
  background: transparent; border: 2px dashed rgba(243, 242, 236, .4); color: var(--on-board-2); transform: none; box-shadow: none;
}
.dt-photo.is-empty svg { width: 40px; height: 40px; }
.dt-photo.is-empty p { margin: 0; max-width: 30ch; font-size: 14px; }
.dt-model {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  padding: 4px 10px; border-radius: 999px; border: 1.5px dashed var(--wood-3);
  background: rgba(243, 242, 236, .93); color: var(--wood-3);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.dt-step {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; z-index: 1;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(243, 242, 236, .92); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6);
}
.dt-step svg { width: 20px; height: 20px; }
.dt-step.prev { left: -8px; }
.dt-step.next { right: -8px; }
.dt-step:hover { background: #fff; }
.dt-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-thumbs button {
  width: 76px; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: 3px; background: var(--board-2); opacity: .62;
  transition: opacity .2s, border-color .2s;
}
.dt-thumbs button:hover { opacity: .9; }
.dt-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--paper); }
.dt-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dt-hint { margin: auto 0 0; font-size: 13px; color: var(--on-board-2); }

.dt-info { display: flex; flex-direction: column; padding: 22px 30px 28px; }
.dt-info .leaf-band { margin-right: 46px; }
.dt-head { display: flex; align-items: center; gap: 18px; margin: 14px 0 12px; }
.dt-num { margin: 0; font: 600 44px/1 var(--display); letter-spacing: -.03em; color: var(--lotus); }
.dt-head h2 { margin: 0; font: 700 clamp(28px, 3vw, 38px)/1.12 var(--display); letter-spacing: -.025em; }
.dt-lead { margin: 6px 0 0; color: var(--ink-2); text-wrap: pretty; }
.dt-tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.dt-tabs button {
  min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--paper-3); background: transparent; color: var(--ink); font: 700 14px/1 var(--body);
}
.dt-tabs button:hover { border-color: var(--ink); }
.dt-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dt-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.dt-facts li { padding: 4px 12px; border-radius: 999px; background: var(--mist); font-size: 14px; }
.dt-price { margin: 0 0 6px; font-size: 19px; }
.dt-sub { margin: 14px 0 8px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.dt-amen { margin: 0 0 6px; max-width: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dt-info .cal { margin-top: 14px; }
.dt-info .actions { margin-top: 16px; }
.dt-link { align-self: flex-start; margin-top: 12px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.dt-link:hover { color: var(--ink); }
.dt-info .leaf-say { margin-top: auto; padding-top: 14px; }
.dt-info .actions + .leaf-say, .dt-info .dt-link + .leaf-say { margin-top: 18px; }

@media (max-width: 860px) {
  .detail { width: 100vw; max-height: 100svh; height: 100svh; margin: 0; border-radius: 0; }
  .dt-body { grid-template-columns: 1fr; max-height: 100svh; background: var(--paper); }
  .dt-gal { position: relative; min-height: 0; padding: 18px 16px 16px; }
  .dt-info { padding: 18px 18px calc(28px + env(safe-area-inset-bottom)); }
  .dt-num { font-size: 38px; }
  .dt-step.prev { left: 4px; }
  .dt-step.next { right: 4px; }
  .dt-thumbs button { width: 64px; }
}

/* ---------- Hỏi đáp ---------- */
.faq { padding: 0 clamp(16px, 4vw, 44px) clamp(40px, 6vw, 72px); }
.sheet-faq { max-width: 820px; }

.qa { border-top: 1px dashed var(--paper-3); }
.qa:first-child { border-top: 2px solid var(--ink); }
.qa:last-child { border-bottom: 2px solid var(--ink); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 4px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover span { text-decoration: underline; text-underline-offset: .2em; }
.qa .chev { flex: none; width: 22px; height: 22px; }
.qa[open] .chev { transform: rotate(180deg); }
.qa p { margin: 0; padding: 0 4px 18px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Đường vào nhà (trong phần Liên hệ) ---------- */
.way { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(243, 242, 236, .22); }
.way h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-board-2); }
.way ol { margin: 0 0 16px; padding-left: 22px; }
.way li { margin: 4px 0; }
.way li::marker { font-weight: 700; color: var(--on-board-2); }
.way .sample { border-bottom-color: #E6C49A; }
.way .sample::after { color: #E6C49A; }
.way-note { margin: 8px 0 0 !important; font-size: 13px; }
.way-map { display: block; width: 100%; height: 300px; border: 0; border-radius: 4px; background: var(--board-2); }

/* Nhà 3D đang tải: chưa hiện nhà CSS để khỏi nháy */
.scene.wait .house { visibility: hidden; }
.scene.wait::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 3px solid rgba(243, 242, 236, .25); border-top-color: var(--paper);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Thanh trên cùng trên điện thoại: chữ không xuống dòng; màn hẹp bỏ "Liên hệ" vì thanh dưới đã có nút nhắn */
@media (max-width: 760px) {
  .brand-name, .nav a { white-space: nowrap; }
}
@media (max-width: 440px) {
  .nav a[href="#contact"] { display: none; }
  .bar { gap: 10px; }
  .nav { gap: 12px; }
}

/* Nhãn tên phòng trên nhà 3D (chạm được trên điện thoại) */
.h3-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.h3-tag {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px 0 9px;
  border: 0; border-radius: 999px; background: rgba(243, 242, 236, .94); color: var(--ink);
  font: 700 13px/1 var(--body); white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .45);
  transition: opacity .25s, background-color .25s, color .25s;
}
.h3-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lotus); }
.h3-tag:hover { background: #fff; }
.h3-tag.on { background: var(--lotus-deep); color: #fff; }
.h3-tag.on::before { background: #fff; }
.h3-tag.dim { opacity: .45; }
.h3-tag.off { visibility: hidden; }

/* ---------- Mục lục tầng có tên (khách biết tầng nào có gì) ---------- */
.findex button {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px;
  width: 138px; height: 50px; padding: 0 12px 0 10px; text-align: left;
  font: 600 20px/1 var(--display); letter-spacing: -.02em;
}
.findex button span { font: 500 13px/1.25 var(--body); letter-spacing: 0; color: var(--on-board-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.findex button:hover span { color: var(--on-board); }
.findex button[aria-pressed="true"] span { color: #fff; }

@media (max-width: 900px) {
  .findex {
    justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(16px, 4vw, 44px)); padding: 0 clamp(16px, 4vw, 44px);
  }
  .findex::-webkit-scrollbar { display: none; }
  .findex button { flex: none; width: auto; height: 46px; grid-template-columns: auto auto; gap: 6px; padding: 0 14px; font-size: 18px; }
  .findex button span { font-size: 13px; }
}
@media (min-width: 640px) and (max-width: 900px) { .findex { justify-content: center; } }

/* ---------- Chọn phòng nhanh trên tờ đầu ---------- */
.pick { margin: 6px 0 4px; padding-top: 14px; border-top: 1px solid var(--paper-3); }
.pick-title { margin: 0 0 10px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pick-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pick-btn {
  display: grid; justify-items: center; gap: 3px; padding: 10px 2px 9px; cursor: pointer;
  border: 1.5px solid var(--paper-3); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.pick-btn b { font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.pick-btn span { font-size: 11px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.pick-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.leaf .pick + .actions { margin-top: 16px; }

/* ---------- Danh sách phòng ---------- */
.roomsec { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 44px) 0; }
.services { padding-top: clamp(40px, 5vw, 64px); }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8px 40px; margin-bottom: 28px; }
.sheet-head .sheet-lead { margin: 0; }

.rlist { list-style: none; margin: 0; padding: 0; }
.rrow {
  position: relative; display: grid; align-items: center; gap: 8px 28px;
  grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.1fr) auto auto;
  padding: 16px 8px; border-top: 1px dashed var(--paper-3);
  transition: background-color .2s;
}
.rrow:first-child { border-top: 2px solid var(--ink); }
.rrow:last-child { border-bottom: 2px solid var(--ink); }
.rrow:hover { background: #F8F7F2; }
.rrow-hit { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.rrow-pic { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--mist); }
.rrow-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rrow-pic figcaption {
  position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 999px;
  background: rgba(243, 242, 236, .92); color: var(--wood-3); border: 1px dashed var(--wood-3);
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
.rrow-name h3 { margin: 0; font: 700 22px/1.15 var(--display); letter-spacing: -.02em; }
.rrow-name p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.rrow-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.rrow-facts li { padding: 3px 10px; border-radius: 999px; background: var(--mist); font-size: 13px; line-height: 1.4; }
.rrow-price { white-space: nowrap; }
.rrow-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.rrow-go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.rrow:hover .rrow-go svg { transform: translateX(3px); }
.rrow:hover .rrow-name h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.rrow:has(.rrow-hit:focus-visible) { outline: 3px solid var(--lotus-ink); outline-offset: 2px; border-radius: 4px; }
.rrow-hit:focus-visible { outline: 0; }

@media (max-width: 1000px) {
  .rrow { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .rrow-facts { grid-column: 2 / -1; grid-row: 2; }
  .rrow-pic { grid-row: 1 / 3; }
  .rrow-go { display: none; }
}
@media (max-width: 760px) {
  .sheet-head { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 14px; padding: 14px 2px; align-items: start; }
  .rrow-pic { grid-row: 1 / 4; }
  .rrow-name h3 { font-size: 19px; }
  .rrow-facts { grid-column: 2; grid-row: 2; }
  .rrow-price { grid-column: 2; grid-row: 3; }
}
@media (max-width: 400px) {
  .pick-btn b { font-size: 17px; }
  .pick-btn span { font-size: 10px; }
}

/* Thanh trên cùng trên điện thoại hẹp: chữ Bricolage rộng hơn Anton nên thu nhỏ cho vừa */
@media (max-width: 440px) {
  .brand-name { font-size: 21px; }
  .bar { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .nav { gap: 11px; }
  .nav a { font-size: 13.5px; }
  .lang button { min-width: 34px; height: 32px; padding: 0 7px; font-size: 12px; }
}
@media (max-width: 360px) {
  .nav a[href="#faq"] { display: none; }
}

/* ---------- Phần giới thiệu: trang nhất báo giấy xưa ---------- */
/* Giấy báo ngả vàng, mực đen, mực đỏ cho mục đặt phòng; chữ Old Standard TT (kiểu chữ báo thế kỷ 19), măng-sét Chonburi */
.cover {
  --np: #EFE5CC; --np-2: #E2D5B4; --np-ink: #221E18; --np-ink-2: #4B4337; --np-red: #A8302B;
  --serif: 'Old Standard TT', 'Times New Roman', serif;
  max-width: 1220px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 44px) 12px;
  display: grid; justify-items: center; gap: 18px;
}
.news {
  position: relative; width: 100%; color: var(--np-ink); --focus: var(--np-red);
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 3vw, 38px) clamp(22px, 3vw, 36px);
  font-family: var(--serif);
  background:
    linear-gradient(180deg, transparent 49.6%, rgba(90, 70, 30, .10) 50%, rgba(255, 255, 255, .18) 50.4%, transparent 51%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 40%, var(--np), #E7DABB 120%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 30px 50px -26px rgba(0, 0, 0, .6);
}
.news ::selection { background: var(--np-ink); color: var(--np); }

/* Măng-sét */
.news-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0 20px; }
.news-ear {
  margin: 0; justify-self: start; max-width: 13em; padding: 6px 12px; text-align: center;
  border: 1px solid var(--np-ink); outline: 1px solid var(--np-ink); outline-offset: 3px;
  font-size: 13px; line-height: 1.35; font-style: italic;
}
.news-ear-r { justify-self: end; }
.news-ear-r::first-letter { text-transform: uppercase; }
.news-mast {
  margin: 0; text-align: center; white-space: nowrap;
  font: 400 clamp(46px, 8vw, 108px)/1.2 'Chonburi', var(--serif); letter-spacing: .01em;
}
.news-strip {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px;
  margin: 8px 0 0; padding: 6px 2px 5px; border-top: 4px double var(--np-ink); border-bottom: 1px solid var(--np-ink);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* Ba cột */
.news-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, .8fr); margin-top: 22px; }
.news-body > * { min-width: 0; }
.news-main, .news-side { padding-left: clamp(18px, 2.2vw, 28px); margin-left: clamp(18px, 2.2vw, 28px); border-left: 1px solid var(--np-ink); }

.news-h1 { margin: 0 0 14px; font: 700 clamp(34px, 3.4vw, 50px)/1.1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.news-deck { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--np-ink); font-size: 19px; line-height: 1.45; font-style: italic; color: var(--np-ink-2); text-wrap: pretty; }
.news-story { margin: 0 0 20px; font-size: 17px; line-height: 1.6; text-align: justify; hyphens: auto; }
.news .sample { border-bottom-color: #8A5A2B; }
.news .sample::after { color: #8A5A2B; }

/* Ô quảng cáo đặt phòng, viền kép như rao vặt */
.news-ad {
  padding: 14px 16px 16px; text-align: center;
  border: 2px solid var(--np-ink); outline: 1px solid var(--np-ink); outline-offset: -6px;
}
.news-ad-t { margin: 4px 0 4px; font: 700 18px/1.2 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--np-red); }
.news-ad p { margin: 0 0 12px; font-size: 16px; font-style: italic; line-height: 1.45; }
.news-ad .actions { justify-content: center; }
.news .btn { border-radius: 3px; font-family: var(--body); }
.news .btn-act { background: var(--lotus-deep); }
.news .btn-act:hover { background: var(--lotus-ink); }
.news .btn-line { border-color: var(--np-ink); color: var(--np-ink); }
.news .btn-line:hover { background: var(--np-ink); color: var(--np); }

/* Ảnh in lưới chấm */
.news-pic { margin: 0; }
.news-frame {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--np-ink); background-color: var(--np-2);
}
.news-pic.big .news-frame { aspect-ratio: 4 / 4.4; }
.news-pic.small .news-frame { aspect-ratio: 4 / 3; }
.news-pic.is-wait .news-frame { background-image: radial-gradient(rgba(34, 30, 24, .3) 1px, transparent 1.6px); background-size: 5px 5px; }
.news-frame > svg { width: 38px; height: 38px; color: var(--np-ink-2); opacity: .55; }
.news-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.35) contrast(1.06); }
.news-frame:has(img)::after {
  content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .35;
  background: radial-gradient(rgba(34, 30, 24, .5) .8px, transparent 1.3px) 0 0 / 4px 4px;
}
.news-pic figcaption { margin-top: 7px; padding-bottom: 8px; border-bottom: 1px solid var(--np-ink); font-size: 14px; line-height: 1.35; font-style: italic; }
.news-pic figcaption em { color: var(--np-ink-2); }

/* Mục lục "Trong số này" */
.news-side-t {
  margin: 0 0 6px; padding: 6px 0 5px; border-top: 4px double var(--np-ink); border-bottom: 1px solid var(--np-ink);
  font: 700 14px/1.2 var(--serif); letter-spacing: .18em; text-transform: uppercase; text-align: center;
}
.news-index { list-style: none; margin: 0 0 18px; padding: 0; }
.news-index li { border-bottom: 1px dotted rgba(34, 30, 24, .45); }
.news-index button, .news-index a {
  display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 8px 0 7px;
  border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer;
  font: 400 15.5px/1.3 var(--serif);
}
.news-index i { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--np-ink-2); transform: translateY(-4px); }
.news-index b { font-weight: 700; font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.news-index button:hover span, .news-index a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.news-small { display: grid; gap: 14px; }

.cover-down {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--on-board-2); text-decoration: none;
}
.cover-down svg { width: 22px; height: 22px; animation: nudge 2.4s var(--ease) infinite; }
.cover-down:hover { color: var(--on-board); }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }

@media (max-width: 1000px) {
  .news-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .news-side { grid-column: 1 / -1; margin: 22px 0 0; padding: 0; border-left: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
  .news-side-t { grid-column: 1 / -1; }
  .news-small { grid-template-columns: 1fr 1fr; align-content: start; }
}
@media (max-width: 680px) {
  .news-head { grid-template-columns: 1fr; }
  .news-ear { display: none; }
  .news-body { grid-template-columns: 1fr; margin-top: 16px; }
  .news-main { margin: 20px 0 0; padding: 0; border-left: 0; }
  .news-side { grid-template-columns: 1fr; }
  .news-strip { justify-content: center; text-align: center; font-size: 11.5px; letter-spacing: .1em; }
  .news-h1 { font-size: 34px; }
  .news-deck { font-size: 18px; }
  .news-story { text-align: left; }
}

/* Ảnh trên trang báo in màu nâu cũ; rê chuột (hoặc chạm) thì hiện màu thật */
.news-frame img { transition: filter .6s var(--ease); }
.news-frame::after { transition: opacity .6s var(--ease); }
.news-pic:hover .news-frame img, .news-pic:focus-within .news-frame img { filter: none; }
.news-pic:hover .news-frame::after { opacity: 0; }

.news-pic.big .news-frame { aspect-ratio: 3 / 4; }

/* Bản đồ ở phần Liên hệ: khung giấy như tấm ảnh dán trên bảng, dưới có link chỉ đường */
.contact { align-items: start; }
.contact-map { margin: 8px 0 0; width: 100%; }
.map-frame {
  overflow: hidden; border: 8px solid var(--paper); border-radius: 3px; background: var(--paper-2);
  transform: rotate(-.6deg); box-shadow: 0 26px 40px -24px rgba(0, 0, 0, .7);
}
.map-frame iframe { display: block; width: 100%; height: clamp(340px, 42vw, 500px); border: 0; }
.contact-map figcaption { margin: 16px 2px 0; }
.map-dir { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--on-board); text-decoration: underline; text-underline-offset: .25em; }
.map-dir svg { width: 18px; height: 18px; flex: none; }
.map-dir:hover { color: #fff; }
@media (max-width: 900px) { .map-frame iframe { height: 320px; } }

/* Ảnh trên trang báo để màu thật, chỉ ngả ấm nhẹ cho hợp giấy báo (chủ nhà thấy đen trắng lạnh lẽo, 2026-11-02) */
.news-frame img, .news-pic:hover .news-frame img, .news-pic:focus-within .news-frame img { filter: sepia(.12) saturate(1.05); }
.news-frame:has(img)::after, .news-pic:hover .news-frame::after { opacity: .12; }

/* Ô "Khách nói gì" dưới ảnh mặt tiền: điểm Booking.com in như mục điểm tin */
.news-review { margin-top: 18px; padding: 12px 4px 14px; text-align: center; border-top: 4px double var(--np-ink); border-bottom: 1px solid var(--np-ink); }
.news-review-t { margin: 0 0 4px; font: 700 14px/1.2 var(--serif); letter-spacing: .18em; text-transform: uppercase; }
.news-score { margin: 0; line-height: 1; }
.news-score b { font: 700 clamp(48px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; color: var(--lotus-deep); }
.news-score span { font: 400 20px/1 var(--serif); margin-left: 2px; }
.news-review-src { margin: 4px 0 10px; font-size: 15px; font-style: italic; }
.news-review-parts { list-style: none; margin: 0 auto 10px; padding: 0; max-width: 260px; }
.news-review-parts li { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: 15px; }
.news-review-parts i { flex: 1; border-bottom: 1.5px dotted var(--np-ink-2); transform: translateY(-4px); }
.news-review-link { font-size: 15px; font-weight: 700; color: var(--np-ink); text-underline-offset: .2em; }
.news-review-link:hover { color: var(--lotus-deep); }
.news-review-note { margin: 6px 0 0; font-size: 12px; color: var(--np-ink-2); }
