@font-face{font-family:'Be Vietnam Pro';font-weight:400;font-display:swap;src:url(./fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-weight:500;font-display:swap;src:url(./fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Cormorant Garamond';font-weight:600;font-display:swap;src:url(./fonts/cormorant-garamond-vietnamese-600-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-weight:400;font-display:swap;src:url(./fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-weight:500;font-display:swap;src:url(./fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-weight:600;font-display:swap;src:url(./fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-weight:400;font-display:swap;src:url(./fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-weight:500;font-display:swap;src:url(./fonts/be-vietnam-pro-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant Garamond';font-weight:600;font-display:swap;src:url(./fonts/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ===== Giao diện App: khung dọc 10:16 (Galaxy Tab S7 dọc ≈ 800×1280) đặt giữa màn hình ===== */
html:not(.app-mode) #appRoot { display: none; }
html.app-mode #siteRoot { display: none; }
html.app-mode { --w: min(100vw, 62.5dvh); font-size: calc(var(--w) / 50 * var(--fs, 1)); } /* 800px => 16px: toàn bộ rem co giãn theo khung */
html.app-mode body { background: var(--letterbox); margin: 0; overflow: hidden; font-family: var(--font-body); }

#appRoot {
  --menu: 3.5rem;
  height: 100dvh; display: grid; place-items: center; color: var(--bone); -webkit-tap-highlight-color: transparent;
}
#appRoot button { font: inherit; cursor: pointer; }
#appRoot .frame { position: relative; width: var(--w); height: calc(var(--w) / .625); overflow: hidden; background: var(--ink);
  transform: translateZ(0); /* để lớp parallax position:fixed bám theo khung, không bám theo cả màn hình */ }
#appRoot .scroller { height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y proximity; scroll-padding-top: var(--menu);
  scrollbar-width: none; overscroll-behavior: contain; }
#appRoot .scroller::-webkit-scrollbar { display: none; }

#appRoot h1, #appRoot h2, #appRoot h3, #appRoot .display { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
#appRoot p { font-size: 1.0625rem; line-height: 1.7; }
#appRoot .muted { color: rgb(var(--bone-rgb) / .74); }
#appRoot .rule { width: 3.5rem; height: 2px; background: var(--brass); margin: 0 0 1.5rem; }

/* Hero + dải parallax (parallax thuần CSS: nền fixed theo khung, section cắt bằng clip-path) */
#appRoot .plx { position: relative; display: grid; place-items: center; text-align: center; clip-path: inset(0); padding: 4.5rem 3rem; color: var(--on-photo); }
#appRoot .plx::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(rgb(var(--plx-rgb) / var(--plx-a1)), rgb(var(--plx-rgb) / var(--plx-a2))), var(--bg) center / cover no-repeat; }
#appRoot .plx .display { font-size: 2.5rem; line-height: 1.15; margin: 0; text-shadow: 0 .125rem 1.5rem #0008; }
#appRoot .hero { min-height: calc(100% - var(--menu)); padding: 0 3rem; scroll-snap-align: start; }
#appRoot .hero .display { font-size: 5.5rem; line-height: 1; }
#appRoot .hero p { margin: 1.25rem auto 0; font-size: 1.375rem; max-width: 30rem; }

/* Menu: nằm dưới hero, dính đầu khung khi cuộn */
#appRoot #menu { position: sticky; top: 0; z-index: 10; height: var(--menu); display: flex; flex-wrap: nowrap; align-items: center; gap: .25rem;
  padding: 0 .75rem; overflow-x: auto; scrollbar-width: none; background: rgb(var(--ink-rgb) / .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgb(var(--brass-rgb) / .45); }
#appRoot #menu::-webkit-scrollbar { display: none; }
#appRoot #menu .nav-link { flex: 0 0 auto; color: var(--bone); padding: .5rem .85rem; font-size: .9375rem; border-bottom: 2px solid transparent; border-radius: 0; }
#appRoot #menu .nav-link.active { color: var(--strong); border-bottom-color: var(--brass); }

/* Section nội dung: tối thiểu bằng phần nhìn thấy dưới menu */
#appRoot .panel { min-height: calc(100% - var(--menu)); display: flex; align-items: center; padding: 3.5rem 0; scroll-snap-align: start; }
#appRoot .panel.alt { background: var(--ink2); }
#appRoot .panel .container-fluid { padding-inline: 3rem; }
#appRoot .panel h2 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 1rem; }
#appRoot .photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .25rem; display: block; background: #0006; }
#appRoot .fact { border-left: 2px solid var(--brass); padding: .25rem 0 .25rem 1rem; }
#appRoot .fact b { display: block; font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; line-height: 1; }
#appRoot .fact span { font-size: .9375rem; opacity: .75; }
#appRoot .policy { background: rgb(var(--bone-rgb) / .06); border-top: 2px solid var(--brass); padding: 1.5rem; }
#appRoot .policy h3 { font-size: 1.75rem; margin-bottom: .5rem; }
#appRoot .policy p { margin: 0; font-size: 1rem; }
#appRoot .nav-pills .nav-link { color: var(--bone); border-radius: 0; border-bottom: 2px solid transparent; padding: .5rem 1rem; }
#appRoot .nav-pills .nav-link.active { background: none; border-bottom-color: var(--brass); color: var(--strong); }
#appRoot .form-control, #appRoot .form-select { background: rgb(var(--bone-rgb) / .08); border: 0; border-bottom: 1px solid rgb(var(--bone-rgb) / .4); border-radius: 0; color: var(--strong); font-size: 1rem; padding: .75rem .5rem; }
#appRoot .form-control:focus, #appRoot .form-select:focus { background: rgb(var(--bone-rgb) / .12); color: var(--strong); box-shadow: none; border-bottom-color: var(--brass); }
#appRoot .form-control::placeholder { color: rgb(var(--bone-rgb) / .5); }
#appRoot .form-select option { color: #000; }
#appRoot .btn-brass { background: var(--brass); color: var(--ink); border: 0; border-radius: 0; padding: .875rem 2.5rem; font-weight: 500; }
#appRoot :focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Nội dung của chương trình: danh sách tour / cảnh */
#appRoot .ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#appRoot .ap-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: .25rem; overflow: hidden; color: inherit; background: rgb(var(--bone-rgb) / .07); transition: transform .15s ease; }
#appRoot .ap-card:active { transform: scale(.98); }
#appRoot .ap-card:disabled { opacity: .45; cursor: not-allowed; }
#appRoot .ap-thumb { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: #0006; }
#appRoot .ap-thumb.ph { position: relative; }
#appRoot .ap-thumb.ph::after { content: "◉"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: rgb(var(--bone-rgb) / .25); }
#appRoot .ap-card-body { padding: .75rem .85rem .9rem; flex: 1; }
#appRoot .ap-card-body h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
#appRoot .ap-card-body span { display: block; margin-top: .25rem; font-size: .875rem; opacity: .7; }
#appRoot .ap-tourhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
#appRoot .ap-tourhead h3 { margin: 0; font-size: 1.75rem; }
#appRoot .ap-back { border: 0; background: none; color: var(--brass); padding: .25rem 0 .75rem; font-size: 1rem; }
#appRoot .ap-primary { border: 0; border-radius: 0; padding: .75rem 1.5rem; background: var(--brass); color: var(--ink); font-weight: 500; white-space: nowrap; }
#appRoot .ap-empty { opacity: .7; }

/* Thông báo + màn hình chuẩn bị lần đầu (cỡ px cố định vì nằm ngoài khung) */
#appRoot .ap-toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); z-index: 1070;
  background: rgb(var(--ink-rgb) / .95); color: var(--strong); padding: 10px 16px; border-radius: 999px; font-size: 14px; transition: transform .25s ease; max-width: 90vw; }
#appRoot .ap-toast.show { transform: translate(-50%, 0); }
#appRoot .ap-splash { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 24px; font-size: 16px; background: var(--ink); }
#appRoot .ap-splash.d-none { display: none; }
#appRoot .ap-splash-card { width: min(420px, 100%); background: var(--card-bg); color: var(--card-ink); border-radius: 20px; padding: 32px 24px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
#appRoot .ap-splash-card h2 { margin: 0 0 16px; font-size: 22px; }
#appRoot .ap-splash-card p { color: var(--card-muted); font-size: 14px; margin: 14px 0 0; }
#appRoot .ap-logo.big { font-size: 48px; line-height: 1; margin-bottom: 8px; color: var(--brass); }
#appRoot .ap-bar { height: 10px; background: var(--card-track); border-radius: 999px; overflow: hidden; }
#appRoot .ap-bar > div { height: 100%; width: 0; background: var(--brass); transition: width .25s ease; }
#appRoot .ap-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
#appRoot .ap-splash .ap-primary { border-radius: 999px; }
#appRoot .ap-ghost { border: 1px solid var(--card-line); background: transparent; color: var(--card-accent); border-radius: 999px; padding: 11px 19px; }

/* Modal 360: full màn hình, không header/footer, chỉ có nút đóng */
#viewerModal { font-size: 16px; }
#viewerModal .modal-dialog { height: 100dvh; max-height: 100dvh; }
#viewerModal .modal-content { height: 100%; background: #000; border: 0; border-radius: 0; }
#viewerModal .modal-body { position: relative; padding: 0; overflow: hidden; }
#appPanorama { position: absolute; inset: 0; }
#viewerModal .ap-x { position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; line-height: 1; padding: 0 0 3px; backdrop-filter: blur(6px); }

/* Tablet/điện thoại có tỷ lệ gần 10:16 (đã trừ thanh hệ thống): lấp đầy màn hình, không còn viền đen */
@media (min-aspect-ratio: 11/20) and (max-aspect-ratio: 4/5) {
  html.app-mode { --w: 100vw; }
  #appRoot .frame { height: 100dvh; }
}

/* Hero: nút Bắt đầu góc dưới bên phải */
#appRoot .btn-start { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: transparent; font-size: 0; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; } /* nút trong suốt phủ kín màn hình hero: chạm đâu cũng là "Bắt đầu" */
#appRoot .btn-start:focus-visible { outline-offset: -4px; }
/* Hero: ảnh hiển thị rõ nét, không phủ lớp tối */
#appRoot .hero::before { background: var(--bg) center / cover no-repeat; }

/* Menu + nhóm nút cỡ chữ */
#appRoot #menu { overflow: visible; padding: 0 .5rem 0 0; gap: .25rem; }
#appRoot .menu-links { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
#appRoot .menu-links::-webkit-scrollbar { display: none; }
#appRoot .fs-ctl { flex: 0 0 auto; display: flex; gap: 4px; padding-left: 6px; border-left: 1px solid rgb(var(--brass-rgb) / .45); }
#appRoot .fs-ctl button { height: 38px; min-width: 40px; padding: 0 6px; border: 1px solid rgb(var(--brass-rgb) / .6); background: transparent; color: var(--bone); font-size: 14px; line-height: 1; }
#appRoot .fs-ctl #fsReset { min-width: 54px; font-size: 13px; }
#appRoot .fs-ctl button:disabled { opacity: .35; }

/* Nút về đầu trang */
#appRoot .to-top { position: absolute; z-index: 20; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--brass); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
#appRoot .to-top.show { opacity: 1; pointer-events: auto; }

/* Form đăng ký */
#appRoot .phone-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; }
#appRoot .phone-row .form-control { flex: 1; }
#appRoot .rm-phone { border: 0; background: none; color: var(--bone); font-size: 1.75rem; width: 2.5rem; line-height: 1; }
#appRoot .link-btn { border: 0; background: none; color: var(--brass); padding: .25rem 0; font-size: 1rem; }
#appRoot .form-check-input { width: 1.25rem; height: 1.25rem; background-color: transparent; border-color: rgb(var(--bone-rgb) / .6); }
#appRoot .form-check-input:checked { background-color: var(--brass); border-color: var(--brass); }
#appRoot .form-check-label { margin-left: .25rem; }
#appRoot .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Danh sách cảnh trong khung xem 360: chuyển nhanh giữa các cảnh mà không phải quay lại đầu tour */
#viewerModal .ap-scenes-btn { position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 96px); height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 22px;
  background: rgba(0,0,0,.55); color: #fff; font: 500 15px/1 var(--font-body); backdrop-filter: blur(6px); }
#viewerModal .ap-scenes-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#viewerModal .ap-backdrop { position: absolute; inset: 0; z-index: 6; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#viewerModal .ap-drawer { position: absolute; z-index: 7; top: 0; bottom: 0; left: 0; width: min(86%, 360px); display: flex; flex-direction: column;
  background: rgb(var(--ink-rgb) / .96); color: var(--bone); transform: translateX(-102%); transition: transform .28s ease; visibility: hidden;
  padding-left: env(safe-area-inset-left); box-shadow: 0 0 30px rgba(0,0,0,.5); }
#viewerModal.drawer-open .ap-backdrop { opacity: 1; pointer-events: auto; }
#viewerModal.drawer-open .ap-drawer { transform: none; visibility: visible; }
#viewerModal .ap-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 12px 12px 18px; border-bottom: 1px solid rgb(var(--brass-rgb) / .4); }
#viewerModal .ap-drawer-head small { display: block; font-size: 12px; opacity: .65; margin-bottom: 2px; }
#viewerModal .ap-drawer-head b { font: 600 24px/1.1 var(--font-display); }
#viewerModal .ap-drawer-head button { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(var(--bone-rgb) / .1); color: var(--strong); font-size: 24px; line-height: 1; padding: 0 0 3px; }
#viewerModal .ap-drawer-list { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
#viewerModal .ap-scene { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border: 2px solid transparent; border-radius: 6px; background: rgb(var(--bone-rgb) / .07); color: inherit; text-align: left; font: 400 15px/1.3 var(--font-body); }
#viewerModal .ap-scene:active { background: rgb(var(--bone-rgb) / .16); }
#viewerModal .ap-scene.on { border-color: var(--brass); background: rgb(var(--brass-rgb) / .18); }
#viewerModal .ap-scene i { flex: 0 0 96px; aspect-ratio: 16 / 10; border-radius: 3px; background: #0006 center / cover no-repeat; }

/* Nhiều tab bóc mái: cuộn ngang thay vì xuống dòng */
#appRoot #bmTabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#appRoot #bmTabs::-webkit-scrollbar { display: none; }
#appRoot #bmTabs .nav-link { white-space: nowrap; }

/* Carousel các mục (Chủ đầu tư, Tiện ích): cuộn ngang snap, vuốt được trên điện thoại */
#appRoot .cx { margin-top: 2.5rem; }
#appRoot .cx-wrap { position: relative; }
#appRoot .cx-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
#appRoot .cx-track::-webkit-scrollbar { display: none; }
#appRoot .cx-slide { flex: 0 0 100%; scroll-snap-align: start; background: rgb(var(--bone-rgb) / .06); border-bottom: 2px solid var(--brass); }
#appRoot .cx-slide .photo { aspect-ratio: 4 / 3; border-radius: 0; }
#appRoot .cx-body { padding: 1.1rem 1.25rem 1.1rem; min-height: 6rem; }
#appRoot .cx-body h3 { font-size: 1.6rem; line-height: 1.15; margin: .25rem 0 .5rem; }
#appRoot .cx-body p { margin: 0; font-size: 1rem; }
#appRoot .cx-body .tag { color: var(--brass); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
#appRoot .cx-nav { position: absolute; top: calc(var(--bh, 9.5rem) + (100% - var(--bh, 9.5rem)) / 2 - 1.375rem); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--strong); background: rgb(var(--ink-rgb) / .6); backdrop-filter: blur(6px); }
#appRoot .cx-nav.prev { left: .6rem; } #appRoot .cx-nav.next { right: .6rem; }
#appRoot .cx-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
#appRoot .cx-dot { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 50%; background: rgb(var(--bone-rgb) / .3); transition: all .2s; }
#appRoot .cx-dot.on { background: var(--brass); width: 1.6rem; border-radius: 1rem; }

/* Phóng to ảnh trong khung (bóc mái, mặt bằng) */
#appRoot .zm { position: relative; overflow: hidden; border-radius: .25rem; background: #0006; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
#appRoot .zm.zoomed { touch-action: none; cursor: grab; }
#appRoot .zm img { width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; will-change: transform; -webkit-user-drag: none; pointer-events: none; border-radius: 0; }
#appRoot .zm-btn { position: absolute; right: .6rem; bottom: .6rem; border: 0; border-radius: 999px; padding: .4rem .9rem; font-size: .8125rem; color: var(--strong); background: rgb(var(--ink-rgb) / .72); backdrop-filter: blur(6px); }

/* ===== Thành phần nội dung (chữ, thẻ, bảng, tab chính sách) ===== */
#appRoot .sub { font-size: 1.625rem; line-height: 1.2; margin: 2.5rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid rgb(var(--brass-rgb) / .4); }
#appRoot .lead-line { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.35; color: var(--strong); margin-bottom: 1rem; }
#appRoot .quote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--brass); font-family: var(--font-display); font-size: 1.75rem; line-height: 1.3; font-style: italic; color: var(--strong); }
#appRoot .note { font-size: .8125rem; line-height: 1.5; opacity: .62; font-style: italic; margin: 1.5rem 0 0; }
#appRoot .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
#appRoot .chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border: 1px solid rgb(var(--brass-rgb) / .5); font-size: .9375rem; line-height: 1.3; background: rgb(var(--bone-rgb) / .04); }
#appRoot .chip i { font-style: normal; font-weight: 600; color: var(--brass); }
#appRoot ul.dots { list-style: none; padding: 0; margin: 0 0 1rem; }
#appRoot ul.dots li { position: relative; padding-left: 1.4rem; margin-bottom: .65rem; font-size: 1rem; line-height: 1.6; }
#appRoot ul.dots li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: .45rem; height: .45rem; background: var(--brass); transform: rotate(45deg); }
#appRoot ul.dots b { color: var(--bone); }
#appRoot .bldg .tag { display: block; color: var(--brass); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-bottom: .25rem; }
#appRoot .bldg h3 { font-size: 1.75rem; line-height: 1.15; margin-bottom: .75rem; }

/* Bảng */
#appRoot .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.25rem; }
#appRoot .tbl-kv { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; background: rgb(var(--bone-rgb) / .05); border: 1px solid rgb(var(--brass-rgb) / .4); }
#appRoot .tbl-kv caption { caption-side: top; text-align: left; padding: .6rem .9rem; font-weight: 600; color: var(--ink); background: var(--brass); }
#appRoot .tbl-kv th, #appRoot .tbl-kv td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(var(--bone-rgb) / .14); }
#appRoot .tbl-kv tr:last-child > th, #appRoot .tbl-kv tr:last-child > td { border-bottom: 0; }
#appRoot .tbl-kv tbody th { width: 40%; font-weight: 600; color: var(--bone); background: rgb(var(--bone-rgb) / .07); border-right: 1px solid rgb(var(--bone-rgb) / .14); }
#appRoot .tbl-kv td { color: var(--bone); font-weight: 400; }
#appRoot .tbl-kv td small { display: block; margin-top: .2rem; font-size: .8125rem; opacity: .65; }
#appRoot .tbl-kv td b { font-weight: 600; color: var(--strong); }
#appRoot .tbl-kv.tbl-3 thead th { background: rgb(var(--brass-rgb) / .22); color: var(--strong); font-weight: 600; border-bottom: 1px solid rgb(var(--brass-rgb) / .5); }
#appRoot .tbl-kv.tbl-3 td { border-right: 1px solid rgb(var(--bone-rgb) / .1); }
#appRoot .tbl-kv.tbl-3 td:last-child { border-right: 0; }
#appRoot .tbl-kv.tbl-3 td:first-child { font-weight: 600; color: var(--strong); }
#appRoot .tbl-kv.tbl-sched td:first-child, #appRoot .tbl-kv.tbl-sched thead th:first-child { white-space: nowrap; }
#appRoot .tbl-kv tr.hl > td { background: rgb(var(--brass-rgb) / .16); }

/* Tab chính sách bán hàng */
#appRoot .pol-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 1.25rem 0 1.5rem; border-bottom: 1px solid rgb(var(--bone-rgb) / .2); }
#appRoot .pol-tabs::-webkit-scrollbar { display: none; }
#appRoot .pol-tab { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: none; color: rgb(var(--bone-rgb) / .7); padding: .7rem 1rem; font-size: 1rem; white-space: nowrap; }
#appRoot .pol-tab[aria-selected="true"] { color: var(--strong); border-bottom-color: var(--brass); font-weight: 500; }
#appRoot .pol-pane { display: none; }
#appRoot .pol-pane.on { display: block; }
#appRoot .pol-pane h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--brass); margin: 1.75rem 0 .75rem; }
#appRoot .pol-pane > h4:first-child { margin-top: 0; }
#appRoot .pol-pane .big { background: rgb(var(--bone-rgb) / .06); border-left: 3px solid var(--brass); padding: 1rem 1.25rem; margin-bottom: 1rem; line-height: 1.6; }
#appRoot .pol-pane .big b { color: var(--brass); font-weight: 600; }
#appRoot .pol-pane ul.pl { padding-left: 1.25rem; margin-bottom: 1rem; }
#appRoot .pol-pane ul.pl li { margin-bottom: .5rem; line-height: 1.6; font-size: 1rem; }

@media (max-width: 575px) {
  #appRoot .tbl-kv { font-size: .875rem; }
  #appRoot .tbl-kv th, #appRoot .tbl-kv td { padding: .5rem .6rem; }
}

/* Carousel: khi chưa phóng to vẫn vuốt ngang để chuyển mục; pinch/chạm đúp do script xử lý */
#appRoot .cx-slide .zm:not(.zoomed) { touch-action: pan-x pan-y; }

/* ===== Khảo sát khách hàng ===== */
#appRoot .panel[hidden] { display: none; }
#appRoot .sv-tag { display: block; color: var(--brass); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-bottom: .35rem; }
#appRoot .sv-hint { font-size: .9375rem; margin: -.25rem 0 1rem; }
#appRoot .sv-opts { display: grid; gap: .6rem; }
#appRoot .sv-opt { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid rgb(var(--bone-rgb) / .25); background: rgb(var(--bone-rgb) / .05); cursor: pointer; font-size: 1.0625rem; line-height: 1.4; transition: background .15s, border-color .15s; }
#appRoot .sv-opt input { flex: 0 0 auto; margin: 0; }
#appRoot .sv-opt.on { border-color: var(--brass); background: rgb(var(--brass-rgb) / .16); color: var(--strong); }
#appRoot .sv-opt.off { opacity: .38; cursor: not-allowed; }
#appRoot #svOther { font-size: 1.0625rem; }
#appRoot .sv-rank { display: grid; gap: .6rem; }
#appRoot .sv-rk { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; padding: .9rem 1rem; border: 1px solid rgb(var(--bone-rgb) / .25); background: rgb(var(--bone-rgb) / .05); color: inherit; font-size: 1.0625rem; line-height: 1.4; }
#appRoot .sv-rk .n { flex: 0 0 auto; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgb(var(--bone-rgb) / .4); font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
#appRoot .sv-rk[data-rk] { border-color: rgb(var(--brass-rgb) / .6); background: rgb(var(--brass-rgb) / .1); color: var(--strong); }
#appRoot .sv-rk[data-rk] .n { border-color: var(--brass); color: var(--brass); }
#appRoot .sv-rk[data-rk="1"] { border-color: var(--brass); background: rgb(var(--brass-rgb) / .2); }
#appRoot .sv-rk[data-rk="1"] .n { background: var(--brass); color: var(--ink); }
@media (min-width: 576px) { #appRoot .sv-opts { grid-template-columns: 1fr 1fr; } #appRoot .sv-opt[data-wide], #appRoot .sv-opts .sv-opt:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ===== Tiêu chuẩn bàn giao ===== */
#appRoot .bg-grp { margin-bottom: .75rem; border: 1px solid rgb(var(--brass-rgb) / .4); background: rgb(var(--bone-rgb) / .03); }
#appRoot .bg-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; font-weight: 600; font-size: 1.0625rem; background: rgb(var(--bone-rgb) / .07); border-left: 3px solid var(--brass); }
#appRoot .bg-grp > summary::-webkit-details-marker { display: none; }
#appRoot .bg-grp > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brass); font-weight: 400; }
#appRoot .bg-grp[open] > summary::after { content: "\2212"; }
#appRoot .bg-grp > .tbl-wrap { margin: 0; }
#appRoot .bg-grp .tbl-kv { border: 0; border-top: 1px solid rgb(var(--brass-rgb) / .3); }
#appRoot .bg-none { margin: 0; padding: .9rem 1rem; font-size: 1rem; }
#appRoot .tbl-kv.tbl-bg { font-size: .875rem; }
#appRoot .tbl-kv.tbl-bg td { font-weight: 400; }
#appRoot .tbl-kv.tbl-bg { table-layout: fixed; }
#appRoot .tbl-kv.tbl-bg th:nth-child(1), #appRoot .tbl-kv.tbl-bg td:nth-child(1) { width: 24%; }
#appRoot .tbl-kv.tbl-bg th:nth-child(2), #appRoot .tbl-kv.tbl-bg td:nth-child(2) { width: 36%; }
#appRoot .tbl-kv.tbl-bg td { overflow-wrap: anywhere; }
#appRoot .tbl-kv tr.grp > th { width: auto; background: rgb(var(--brass-rgb) / .14); color: var(--brass); font-weight: 600; border-right: 0; text-align: left; }

/* Tiêu đề section có dòng phụ (vd. Tổng quan: tên dự án + địa chỉ) */
#appRoot .h2-sub { display: block; margin-top: .35rem; font-family: var(--font-body); font-weight: 400; font-size: 1.125rem; letter-spacing: .04em; color: var(--brass); }
#appRoot .pol-pane .bldg h3 { font-size: 1.75rem; }

/* ===== Menu thu gọn: thanh gọn + danh sách thả xuống ===== */
#appRoot #menu { padding: 0 .5rem 0 0; gap: .5rem; }
#appRoot .menu-toggle { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .75rem; height: 100%; padding: 0 1rem; border: 0; background: none; color: var(--strong); font-size: 1.0625rem; text-align: left; }
#appRoot .menu-toggle span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
#appRoot .menu-toggle .chev { flex: 0 0 auto; color: var(--brass); transition: transform .2s; }
#appRoot #menu.open .menu-toggle .chev { transform: rotate(180deg); }
#appRoot .menu-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; overflow-x: visible; overflow-y: auto; max-height: calc(100dvh - var(--menu) - 2rem);
  background: rgb(var(--ink-rgb) / .98); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(var(--brass-rgb) / .6); box-shadow: 0 1rem 2rem rgba(0,0,0,.45); }
#appRoot #menu.open .menu-links { display: flex; }
#appRoot #menu .menu-links .nav-link { padding: .95rem 1.25rem; font-size: 1.0625rem; border-bottom: 1px solid rgb(var(--bone-rgb) / .12); border-left: 3px solid transparent; }
#appRoot #menu .menu-links .nav-link.active { border-bottom-color: rgb(var(--bone-rgb) / .12); border-left-color: var(--brass); background: rgb(var(--brass-rgb) / .14); }

/* ===== Mức độ ưu tiên: kéo thả ===== */
#appRoot .sv-rk { cursor: default; user-select: none; -webkit-user-select: none; position: relative; }
#appRoot .sv-rk span { flex: 1 1 auto; min-width: 0; }
#appRoot .sv-rk .grip { flex: 0 0 auto; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: -1rem -1rem -1rem 0; font-style: normal; font-size: 1.75rem; color: var(--brass); cursor: grab; touch-action: none; }
#appRoot .sv-rk.drag { z-index: 5; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.5); background: rgb(var(--brass-rgb) / .28); border-color: var(--brass); transition: none; }
#appRoot .sv-rk.drag .grip { cursor: grabbing; }
#appRoot .sv-rank:not(.touched) .sv-rk .n { opacity: .55; }

/* Section gập (Bàn giao, Chính sách) + dấu +/− trên menu */
#appRoot [hidden] { display: none !important; }
#appRoot #menu .menu-links .nav-link[data-fold]::before { content: "+"; display: inline-block; width: 1.4rem; color: var(--brass); font-size: 1.3rem; line-height: 1; font-weight: 600; }
#appRoot #menu .menu-links .nav-link[data-fold].fold-open::before { content: "\2212"; }

/* Tab con trong mỗi tòa (Thông số / Diện tích điển hình) */
#appRoot .pol-tabs.sub-tabs { margin: 1rem 0 1.1rem; }
#appRoot .pol-tabs.sub-tabs .pol-tab { padding: .55rem .9rem; font-size: .9375rem; }


/* Chế độ không khảo sát (Admin bật/tắt bằng cách nhấn giữ nút menu 3 giây) */
html.no-survey #khao-sat, html.no-survey #khao-sat-2, html.no-survey #menu .nav-survey { display: none !important; }
#appRoot .menu-toggle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Màn hình chờ: vòng xoay + thanh chạy liên tục để khách đỡ sốt ruột */
#appRoot .ap-spin { position: relative; width: 64px; height: 64px; margin: 0 auto 14px; }
#appRoot .ap-spin i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--brass); animation: ap-rot 1.1s linear infinite; }
#appRoot .ap-spin i:nth-child(2) { inset: 9px; border-top-color: var(--card-accent); animation-duration: 1.6s; animation-direction: reverse; }
#appRoot .ap-spin i:nth-child(3) { inset: 18px; border-top-color: var(--brass); animation-duration: .8s; }
@keyframes ap-rot { to { transform: rotate(360deg); } }
#appRoot .ap-bar > div.indet { width: 40% !important; transition: none; animation: ap-slide 1.3s ease-in-out infinite; }
@keyframes ap-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
#appRoot .ap-splash-card p { min-height: 2.6em; }
@media (prefers-reduced-motion: reduce) { #appRoot .ap-spin i, #appRoot .ap-bar > div.indet { animation-duration: 3s; } }

/* ===== Menu nhô lên ở đáy màn hình đầu tiên (hero thấp hơn khung đúng bằng chiều cao menu), cuộn xuống thì dính đầu khung ===== */
#appRoot #menu { border-top: 1px solid rgb(var(--brass-rgb) / .45); padding-bottom: env(safe-area-inset-bottom); }
#appRoot #menu.up .menu-links { top: auto; bottom: 100%; border-bottom: 0; border-top: 1px solid rgb(var(--brass-rgb) / .6); box-shadow: 0 -1rem 2rem rgba(0,0,0,.45); }

/* ===== Form đăng ký: ô tick Zalo cho từng số điện thoại + ô ghi chú cao ===== */
#appRoot .zalo-chk { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; align-self: stretch; padding: 0 .75rem; margin: 0; cursor: pointer; user-select: none; -webkit-user-select: none;
  background: rgb(var(--bone-rgb) / .08); border-bottom: 1px solid rgb(var(--bone-rgb) / .4); color: var(--strong); font-size: 1rem; }
#appRoot .zalo-chk input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brass); cursor: pointer; }
#appRoot .zalo-chk:has(input:checked) { border-bottom-color: var(--brass); background: rgb(var(--brass-rgb) / .16); }
#appRoot .rm-spacer { flex: 0 0 2.5rem; }
#appRoot .note-box { min-height: 9rem; resize: none; line-height: 1.6; }

/* Nút 100% (nhấn giữ 5 giây = tạo bản offline): không bôi chọn / không hiện menu giữ */
#appRoot .fs-ctl #fsReset { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Carousel nằm ngay đầu một thẻ (tab): bỏ khoảng trống phía trên (thanh tab đã có lề), chừa khoảng cách phía dưới trước nội dung */
#appRoot .pol-pane > .cx:first-child { margin-top: 0; margin-bottom: 2rem; }

/* ===== r36: vòng quay khi ảnh đang tải ===== */
#appRoot .zm-spin { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
#appRoot .zm.loading .zm-spin { display: flex; }
#appRoot .zm-spin::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgb(var(--bone-rgb) / .18); border-top-color: var(--brass); animation: ap-rot .9s linear infinite; }
#appRoot .zm-spin i { display: none; }
#appRoot .zm.loading .zm-btn { display: none; }
@media (prefers-reduced-motion: reduce) { #appRoot .zm-spin::before { animation-duration: 2.4s; } }

/* ===== r36: accordion Mặt bằng (SM2 / SM3) ===== */
#appRoot .acc { margin-top: 1.25rem; border-top: 1px solid rgb(var(--bone-rgb) / .2); }
#appRoot .acc-item { border-bottom: 1px solid rgb(var(--bone-rgb) / .2); }
#appRoot .acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; border: 0; background: none; color: var(--strong); padding: 1.1rem .25rem; }
#appRoot .acc-head .tag { display: block; color: var(--brass); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-bottom: .2rem; }
#appRoot .acc-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
#appRoot .acc-chev { flex: 0 0 auto; color: var(--brass); transition: transform .25s; }
#appRoot .acc-item.on .acc-chev { transform: rotate(180deg); }
#appRoot .acc-body { display: none; padding: .5rem 0 1.5rem; }
#appRoot .acc-item.on .acc-body { display: block; }
#appRoot .acc-body .cx { margin: 1.5rem 0; }
