/* =====================================================================
   NÂNG CẤP GIAO DIỆN trang Mặt bằng – "champagne & rêu sẫm":
   viền chỉ vàng, kính mờ, chuyển động nhỏ khi rê chuột.
   Chữ: một họ Be Vietnam Pro duy nhất, theo thang chữ ở cuối tệp.
   ===================================================================== */
:root { --champ: #e9d4a6; --champ2: #c9a46a; --champ3: #9c7a3f; --ease: cubic-bezier(.2,.7,.2,1);
  --hair: rgba(201,164,106,.32); --glow: 0 0 0 1px rgba(201,164,106,.45), 0 10px 28px -10px rgba(156,122,63,.55); }
body { background: radial-gradient(1400px 700px at 85% -10%, #fbf8f1 0%, rgba(251,248,241,0) 60%), radial-gradient(900px 600px at -10% 40%, #f1ead9 0%, rgba(241,234,217,0) 60%), #ede6d6; }

/* dải đầu trang: hoa văn kẻ chéo rất mờ + chỉ vàng dưới đáy */
.mb-head { position: relative; border-bottom: 1px solid var(--hair); }
.mb-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(233,212,166,.035) 0 1px, transparent 1px 22px); }
.mb-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--champ2), transparent); opacity: .7; }

.mb-filters { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); position: relative; }

/* chip lọc */
.fchip { transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s, color .18s; }
.fchip:hover { transform: translateY(-1px); background: rgba(233,212,166,.12); border-color: var(--champ); box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.fchip:active { transform: translateY(0) scale(.98); }
.fchip.on { background: linear-gradient(135deg, #f6e6c2 0%, #d7b57a 100%); border-color: #f0dcb0; color: #0f3a31; box-shadow: 0 6px 18px -8px rgba(215,181,122,.8), inset 0 1px 0 rgba(255,255,255,.6); }
.fclear { transition: color .18s; } .fclear:hover { color: #fff; }
.range input::-webkit-slider-thumb { transition: transform .15s; } .range input::-webkit-slider-thumb:hover { transform: scale(1.18); }
.range i { background: linear-gradient(90deg, var(--champ2), var(--champ)); box-shadow: 0 0 8px rgba(233,212,166,.5); }

/* khung panel: nền ngà, viền chỉ vàng, bóng nhiều lớp */
.mb-stage, .mb-list, .mb-side > * { background: linear-gradient(180deg, #fffdf8, #fff); border: 1px solid var(--hair); border-radius: 20px;
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(15,58,49,.04), 0 22px 44px -22px rgba(15,58,49,.28); }
.viewer { border-radius: 0 0 19px 19px; }
.mb-ft b { font-size: 30px; color: #0f3a31; }

/* thang tầng */
.mb-floors { background: linear-gradient(180deg, #164338 0%, #0d3128 100%); border: 1px solid rgba(233,212,166,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -20px rgba(6,30,24,.7); }
.mb-floors button { transition: background .18s, color .18s, transform .18s var(--ease), box-shadow .18s; }
.mb-floors button:not(:disabled):hover { background: rgba(233,212,166,.22); color: #fff; transform: scale(1.06); }
.mb-floors button.on { background: linear-gradient(135deg, #f6e6c2, #cfa968); color: #0f3a31; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(243,223,179,.85); }

/* nút công cụ */
.tbtn { transition: transform .18s var(--ease), box-shadow .18s, border-color .18s, background .18s, color .18s; background: #faf6ec; border-color: var(--hair); }
.tbtn:hover { transform: translateY(-1px); border-color: var(--champ2); box-shadow: var(--glow); background: #fff; }
.tbtn.on { background: linear-gradient(135deg, #1b5144, #0f3a31); border-color: #0f3a31; color: var(--champ); }
.tbtn.on:hover { color: #fff; }

/* nút phóng to – kính mờ */
.zoom button { background: rgba(255,255,255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.7); transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s; }
.zoom button:hover { background: #0f3a31; color: var(--champ); transform: translateX(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.north circle { fill: rgba(255,255,255,.85); }
.legend span { background: rgba(255,255,255,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* đa giác căn: viền mảnh, chuyển màu mượt; căn chọn viền vàng sáng + nhịp sáng */
.u path { transition: fill-opacity .2s, stroke .2s, stroke-width .2s; stroke: rgba(255,255,255,.55); stroke-width: .12; }
.u:hover path, .u.hov path { fill: #0f3a31; fill-opacity: .16; stroke: #0f3a31; stroke-width: .28; }
.u.sel path { fill: #f3d58c; fill-opacity: .55; stroke: #b0832f; stroke-width: .42; }
@keyframes selPulse { 50% { filter: drop-shadow(0 0 1.4px #ffe3a0); } }

/* thẻ ngoài tòa – kính trắng, rê chuột nổi lên */
.tg { background: rgba(255,255,255,.93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(15,58,49,.08); transition: box-shadow .18s, background .18s; }
.tg b { letter-spacing: .03em; }
.tg:hover { box-shadow: 0 0 0 1.5px #0f3a31, 0 10px 22px -8px rgba(0,0,0,.45); background: #fff; }
.tg.sel { background: linear-gradient(135deg, #fffaf0, #fbeed2); box-shadow: 0 0 0 2px #c9a46a, 0 0 18px rgba(233,200,130,.7), 0 8px 20px -8px rgba(0,0,0,.4); }
.leaders g.sel line { stroke: #b0832f; }

/* thẻ rê chuột */
.tipbox { background: linear-gradient(160deg, rgba(20,66,54,.96), rgba(10,44,36,.97)); border: 1px solid rgba(233,212,166,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tipbox .th b { color: var(--champ); }
.tipbox dd.pr { color: var(--champ); }

/* bảng thông tin căn */
.uc-h h2 { font-size: 42px; letter-spacing: .02em; color: #0f3a31; }
.uc-h .ey { color: var(--champ3); }
.uc-tags span { background: #f6f0e2; border: 1px solid #ece0c6; }
.uc-nav button { transition: all .18s var(--ease); } .uc-nav button:hover { background: #0f3a31; color: var(--champ); border-color: #0f3a31; transform: scale(1.06); }
.uc-img { background: radial-gradient(circle at 50% 40%, #fff 0%, #f5efe2 100%); border: 1px solid #efe5cf; }
.uc-img img { transition: transform .35s var(--ease); } .uc-img img:hover { transform: scale(1.04); }
.uc-img .sw button { transition: all .18s; } .uc-img .sw button:hover { background: #fff; box-shadow: 0 0 0 1px var(--champ2); }
.uc-price { position: relative; overflow: hidden; background: linear-gradient(150deg, #18493d 0%, #0e3229 70%); border: 1px solid rgba(233,212,166,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.uc-price::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(233,212,166,.22), transparent 70%); pointer-events: none; }
.uc-price .big { color: var(--champ); text-shadow: 0 0 24px rgba(233,212,166,.25); }
.uc-price .lbl button { transition: all .18s; } .uc-price .lbl button:hover { background: var(--champ); color: #0f3a31; border-color: var(--champ); }
.hist span.me { background: linear-gradient(180deg, #fff1cc, var(--champ2)); box-shadow: 0 0 10px rgba(233,212,166,.6); }
.uc-facts > div { background: linear-gradient(180deg, #fff, #fcf9f2); border-color: #efe5cf; transition: border-color .18s, box-shadow .18s; }
.uc-facts > div:hover { border-color: var(--champ2); box-shadow: 0 8px 20px -14px rgba(156,122,63,.6); }
.uc-facts .k { color: var(--champ3); }

/* nút hành động: lướt sáng + nổi khi rê chuột */
.uc-acts button, .uc-acts a { position: relative; overflow: hidden; border-color: #eadfc6; background: linear-gradient(180deg, #fff, #fbf7ee); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, color .2s, background .2s; }
.uc-acts .ic { width: 17px; height: 17px; flex: none; transition: transform .25s var(--ease); }
.uc-acts button:hover, .uc-acts a:hover { transform: translateY(-2px); border-color: var(--champ2); box-shadow: var(--glow); color: #0b3328; }
.uc-acts button:hover .ic, .uc-acts a:hover .ic { transform: scale(1.12) rotate(-4deg); }
.uc-acts button:active, .uc-acts a:active { transform: translateY(0) scale(.98); }
.uc-acts button::after, .uc-acts a::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transition: left .55s var(--ease); pointer-events: none; }
.uc-acts button:hover::after, .uc-acts a:hover::after { left: 130%; }
.uc-acts .main { background: linear-gradient(135deg, #1e5a4b 0%, #0f3a31 60%, #0b2e26 100%); color: var(--champ); border: 1px solid #c9a46a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px -12px rgba(15,58,49,.8); letter-spacing: .02em; }
.uc-acts .main:hover { color: #fff3d6; border-color: #e9d4a6; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 0 3px rgba(233,212,166,.25), 0 16px 30px -12px rgba(15,58,49,.9); }
.uc-acts .main::after { background: linear-gradient(90deg, transparent, rgba(233,212,166,.45), transparent); }
.uc-acts .gold { background: linear-gradient(135deg, #fbf0d6, #ecd3a0); border-color: #dcc08a; color: #3d2f12; }

/* danh sách */
.lt th { transition: color .15s; } .lt th:hover { color: #0f3a31; }
.lt tr[data-u] td { transition: background .15s; }
.lt tr[data-u]:hover td { background: #fbf5e6; }
.lt tr.on td { background: linear-gradient(90deg, #fbefd2, #fdf8ec); }
.lt td b { font-size: 14.5px; }
.lt .pr { color: #0f3a31; }
.lt .act button { transition: all .18s var(--ease); }
.lt .act button:hover { background: #0f3a31; color: var(--champ); border-color: #0f3a31; transform: translateY(-1px); }
:focus-visible { outline: 2px solid var(--champ2); outline-offset: 2px; }

/* =====================================================================
   QUY CHUẨN CHỮ – một họ duy nhất Be Vietnam Pro, 4 độ đậm có sẵn: 300 · 400 · 600 · 700
   Thang cỡ:  D1 40  ·  D2 30  ·  H 17  ·  B 14  ·  S 12.5  ·  XS 11.5  ·  L 10.5 (nhãn in hoa)
   Vai trò:   số lớn (mã căn, giá, số tầng) = mảnh 300, số thẳng hàng
              nhãn nhỏ in hoa = 600, giãn chữ .14em, màu vàng đồng
              nội dung = 400 · nhấn mạnh / con số trong bảng = 600 · nút = 600
   ===================================================================== */
:root { --f-d1: 40px; --f-d2: 30px; --f-h: 17px; --f-b: 14px; --f-s: 12.5px; --f-xs: 11.5px; --f-l: 10.5px; --trk: .14em; }
body { font-feature-settings: "tnum" 1, "lnum" 1; }

/* nhãn in hoa (eyebrow, tiêu đề cột, nhãn ô thông tin, nhãn bộ lọc) */
.b-eyebrow, .fl, .mb-sum span, .mb-floors .cap, .uc-h .ey, .uc-price .lbl, .uc-facts .k, .lt th
  { font-size: var(--f-l); font-weight: 600; letter-spacing: var(--trk); text-transform: uppercase; }
.fl b { font-size: var(--f-s); font-weight: 600; letter-spacing: 0; }
.uc-price .lbl button { font-size: var(--f-xs); font-weight: 600; letter-spacing: 0; }

/* số lớn – mảnh */
.mb-title h1 { font-size: var(--f-d2); font-weight: 300; }
.mb-sum div { font-size: 22px; font-weight: 300; letter-spacing: 0; }
.uc-h h2 { font-size: var(--f-d1); font-weight: 300; letter-spacing: 0; line-height: 1; }
.uc-price .big { font-size: 36px; font-weight: 300; letter-spacing: 0; }
.uc-price .big small { font-size: var(--f-b); font-weight: 400; }
.mb-ft { font-size: var(--f-b); font-weight: 400; }
.mb-ft b { font-size: var(--f-d2); font-weight: 300; margin: 0 6px 0 4px; vertical-align: -4px; }
.tipbox .th b { font-size: 24px; font-weight: 300; letter-spacing: 0; }
.tipbox .th span { font-size: var(--f-s); font-weight: 400; }
.tipbox dl { font-size: 13px; } .tipbox dd { font-weight: 600; } .tipbox dd.pr { font-size: var(--f-h); font-weight: 600; }

/* tiêu đề khối + giá trị ô thông tin */
.mb-lhead b, .mb-empty b { font-size: var(--f-h); font-weight: 600; }
.uc-facts .v { font-size: var(--f-h); font-weight: 600; } .uc-facts .wide .v { font-size: 15px; }
.uc-facts .s, .uc-note, .hist-x, .lt .dk { font-size: var(--f-xs); font-weight: 400; }

/* nội dung */
.uc-price .sub, .uc-price .axis, .uc-price .rank { font-size: var(--f-s); font-weight: 400; }
.uc-price .axis b, .uc-price .rank b { font-weight: 600; }
.mb-empty, .lt { font-size: 13.5px; font-weight: 400; }
.lt td b { font-size: var(--f-b); font-weight: 600; letter-spacing: .01em; }
.lt .pr { font-weight: 600; }

/* nút, chip, thẻ – cùng một kiểu: 600 */
.tbtn, .fchip, .fclear, .uc-acts button, .uc-acts a, .lt .act button, .uc-img .sw button, .uc-tags span, .legend span, .mb-ftoggle { font-weight: 600; }
.tbtn, .fchip, .fclear, .uc-tags span { font-size: var(--f-s); }
.uc-acts button, .uc-acts a { font-size: 13px; } .uc-acts .main { font-size: 15px; letter-spacing: .01em; }
.lt .act button, .uc-img .sw button { font-size: var(--f-xs); }
.legend span { font-size: var(--f-xs); }
.fchip small { font-weight: 400; }
.mb-floors button { font-size: var(--f-s); font-weight: 600; }
.mb-floors button.on { font-weight: 700; }
.mb-floors button:disabled { font-weight: 400; }
.hint { font-size: 12px; font-weight: 400; }

/* thẻ trên mặt bằng: mã 700 · thông số 400 · giá 700 */
.tg b { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.tg .d { font-size: 10.5px; font-weight: 400; color: #46544c; }
.tg .p { font-size: 13px; font-weight: 700; }

@media (max-width: 700px) {
  :root { --f-d1: 32px; --f-d2: 24px; }
  .mb-sum div { font-size: 18px; }
  .uc-price .big { font-size: 30px; }
  .lt { font-size: 13px; }
  .mb-floors button { font-size: 13px; }
  .tbtn { font-size: 12px; }
  .hint { font-size: 11px; }
  .legend span { font-size: 10px; }
  .tg b { font-size: 11px; } .tg .p { font-size: 10.5px; }
}
/* danh sách nằm cạnh thang tầng: cột View xuống dòng để đủ chỗ cho nút */
@media (min-width: 701px) { .lt td, .lt th { padding-left: 8px; padding-right: 8px; } .lt td:nth-child(6) { white-space: normal; min-width: 120px; line-height: 1.35; } }
