/* ===== FROM trangchu-duanbatdongsan.html ===== */

:root{
  --red-50:#FDECEC;  --red-100:#FBD2D3; --red-200:#F5A6A8; --red-300:#EE797C;
  --red-400:#E85559; --red-500:#E4383D; --red-600:#D4282D; --red-700:#A81F23; --red-800:#7C171A;
  --ink:#0F1B3D; --slate:#3E4A63; --muted:#6C7690;
  --line:#E3E7F0; --paper:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7;
  --action:var(--red-600); --ok:#0F8A5F; --warn:#B7791F;
  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-pill:999px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Be Vietnam Pro',-apple-system,sans-serif;color:var(--ink);background:var(--paper);line-height:1.55}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.mono{font-family:'JetBrains Mono',monospace}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.btn{font-weight:600;font-size:14px;border:none;border-radius:var(--r-sm);padding:12px 22px;
  cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.15s;font-family:inherit}
.btn-primary{background:var(--action);color:#fff}
.btn-primary:hover{background:var(--red-700)}
.btn-outline-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.5)}
.btn-outline-light:hover{background:rgba(255,255,255,.12)}
.btn-dark{background:var(--ink);color:#fff}

/* ===== HEADER ===== */
header{position:fixed;top:0;left:0;right:0;z-index:100;background:transparent;
  border-bottom:1px solid transparent;transition:background .25s ease,border-color .25s ease,box-shadow .25s ease}
header.scrolled{background:#fff;border-bottom-color:var(--line);box-shadow:0 2px 16px rgba(15,27,61,.06)}
header .hd-row{display:flex;align-items:center;justify-content:space-between;padding-top:16px;padding-bottom:16px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo .mark{width:42px;height:42px;border-radius:10px;background:var(--action);color:#fff;
  position:relative;overflow:hidden;
  display:grid;place-items:center;font-weight:800;font-size:15px;letter-spacing:-.02em}
.logo .mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.logo .nm{font-weight:800;font-size:16px;line-height:1.15;color:#fff;transition:color .25s ease}
.logo .nm small{display:block;font-weight:500;font-size:10.5px;color:rgba(255,255,255,.72);letter-spacing:.06em;text-transform:uppercase;transition:color .25s ease}
header.scrolled .logo .nm{color:var(--ink)}
header.scrolled .logo .nm small{color:var(--muted)}
nav{display:flex;gap:1px;flex:1;justify-content:center;flex-wrap:wrap}
.nav-item{position:relative}
nav a{display:flex;align-items:center;gap:2px;padding:9px 8px;border-radius:var(--r-sm);font-size:13.5px;font-weight:500;color:rgba(255,255,255,.85);transition:color .25s ease,background .15s ease;text-decoration:none;white-space:nowrap}
nav a:hover{background:rgba(255,255,255,.12);color:#fff}
nav a.active{color:var(--red-300);font-weight:600}
header.scrolled nav a{color:var(--slate)}
header.scrolled nav a:hover{background:var(--surface-2);color:var(--ink)}
header.scrolled nav a.active{color:var(--action)}
nav a .chev{width:12px;height:12px;stroke:currentColor;stroke-width:2;fill:none;transition:transform .18s ease;flex:none}
.nav-item.has-mega:hover .chev{transform:rotate(180deg)}

.mega-panel{position:absolute;top:100%;left:0;margin-top:8px;background:#fff;border-radius:var(--r-md);
  box-shadow:0 18px 40px rgba(15,27,61,.18);padding:8px;min-width:220px;display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:200}
.nav-item.has-mega:hover .mega-panel{opacity:1;visibility:visible;transform:translateY(0)}
.mega-panel a{display:block;padding:9px 12px;font-size:13.5px;font-weight:500;color:var(--slate);border-radius:6px;white-space:nowrap}
.mega-panel a:hover{background:var(--surface-2);color:var(--action)}
.mega-panel a.mega-all{color:var(--action);font-weight:600;margin-top:4px;border-top:1px solid var(--line);padding-top:11px;border-radius:0}

.hd-cta{display:flex;align-items:center;gap:10px;flex:none}

.hamburger{display:none;background:none;border:none;color:#fff;cursor:pointer;
  padding:8px;width:38px;height:38px;align-items:center;justify-content:center;border-radius:var(--r-sm);transition:color .25s ease,background .15s ease}
.hamburger:hover{background:rgba(255,255,255,.12)}
.hamburger svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none}
header.scrolled .hamburger{color:var(--ink)}
header.scrolled .hamburger:hover{background:var(--surface-2)}

.mobile-drawer-overlay{position:fixed;inset:0;background:rgba(15,27,61,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.mobile-drawer-overlay.open{opacity:1;visibility:visible}

.mobile-drawer{position:fixed;top:0;right:0;bottom:0;width:min(340px,85vw);background:#fff;z-index:151;
  transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column;
  box-shadow:-10px 0 32px rgba(15,27,61,.22)}
.mobile-drawer.open{transform:translateX(0)}
.md-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);flex:none}
.md-head .logo .nm{color:var(--ink);font-size:14px}
.md-head .logo .nm small{color:var(--muted);display:none}
.md-close{background:var(--surface-2);border:none;border-radius:50%;width:34px;height:34px;
  display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none}
.md-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.md-body{flex:1;overflow-y:auto;padding:10px 10px 20px}
.md-link{display:block;padding:14px 14px;font-size:15px;font-weight:600;color:var(--ink);
  border-radius:var(--r-sm);text-decoration:none}
.md-link.active{color:var(--action)}
.md-link:active,.md-link:hover{background:var(--surface-2);color:var(--ink)}
.md-link.active:hover,.md-link.active:active{color:var(--action)}
.md-accordion{border-radius:var(--r-sm);overflow:hidden}
.md-acc-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px;background:none;border:none;font-family:inherit;font-size:15px;font-weight:600;
  color:var(--ink);cursor:pointer;border-radius:var(--r-sm);text-align:left}
.md-acc-trigger:hover{background:var(--surface-2)}
.md-acc-trigger svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;
  transition:transform .2s ease;flex:none;color:var(--muted)}
.md-accordion.open .md-acc-trigger svg{transform:rotate(180deg)}
.md-acc-panel{max-height:0;overflow:hidden;transition:max-height .25s ease}
.md-accordion.open .md-acc-panel{max-height:260px}
.md-acc-panel a{display:block;padding:11px 14px 11px 28px;font-size:13.5px;font-weight:500;
  color:var(--slate);text-decoration:none}
.md-acc-panel a:hover{color:var(--action)}
.md-foot{padding:16px 18px;border-top:1px solid var(--line);flex:none}
@media(min-width:1024px){.mobile-drawer,.mobile-drawer-overlay{display:none}}
@media(max-width:1023px){.hamburger{display:flex}}

/* ===== HERO ===== */
.hero{position:relative;background:linear-gradient(135deg,var(--ink) 0%,#1B2A54 55%,#2B3B6B 100%);
  padding:150px 0 110px;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1}
.hero-bg .bld{position:absolute;bottom:0;background:linear-gradient(180deg,#2C3D6E,#161F3E)}
.hero-bg .bld.glow{box-shadow:0 -8px 32px rgba(228,56,61,.16)}
.hero-bg .win{position:absolute;background:rgba(238,121,124,.4);border-radius:1px}
.hero::after{content:"";position:absolute;inset:0;z-index:0;
  background:
    linear-gradient(0deg, var(--ink) 0%, rgba(15,27,61,.75) 38%, rgba(15,27,61,.35) 65%, rgba(15,27,61,.55) 100%),
    radial-gradient(ellipse at 80% 20%,rgba(228,56,61,.24),transparent 55%)}
.hero-inner{position:relative;z-index:1;max-width:640px;margin:0 0 80px;text-align:left}
.badge-float{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.94);
  border-radius:var(--r-pill);padding:6px 12px 6px 6px;font-size:12px;font-weight:600;color:var(--ink);margin-bottom:18px}
.badge-float .dot{width:22px;height:22px;border-radius:50%;background:var(--action);color:#fff;display:grid;place-items:center;font-size:10px;flex:none}
.eyebrow{font-family:'JetBrains Mono';font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--red-300);font-weight:500;margin-bottom:14px}
.hero h1{color:#fff;font-size:46px;font-weight:800;line-height:1.08;letter-spacing:-.01em;text-transform:uppercase}
.hero h1 .accent{color:var(--red-400)}
.hero p{color:#AEB7CE;font-size:16px;margin:18px 0 28px;max-width:460px}
.hero-actions{display:flex;gap:12px}

/* floating search bar */
.searchbar{background:#fff;border-radius:var(--r-lg);box-shadow:0 20px 48px rgba(15,27,61,.28);
  padding:18px;display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;max-width:860px;
  position:relative;z-index:2;margin:-48px 0 0}
.sb-field{border-right:1px solid var(--line);padding:2px 16px 2px 4px}
.sb-field:last-of-type{border-right:none}
.sb-field label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);font-weight:600;
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}
.sb-field label svg{width:14px;height:14px;stroke:var(--action);stroke-width:2;fill:none}
.sb-field select{border:none;font-family:inherit;font-size:14.5px;font-weight:500;color:var(--ink);
  background:transparent;width:100%;cursor:pointer}
.sb-search-btn{background:var(--action);color:#fff;border:none;border-radius:var(--r-sm);
  padding:0 26px;font-weight:700;font-size:14.5px;display:flex;align-items:center;gap:8px;cursor:pointer}

/* ===== CATEGORY TILES ===== */
.categories{padding:70px 0 10px}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px;gap:16px;flex-wrap:wrap}
.sec-head .kicker{font-family:'JetBrains Mono';font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--action);font-weight:600;margin-bottom:8px}
.sec-head h2{font-size:26px;font-weight:800}
.sec-head .see-all{font-size:14px;font-weight:600;color:var(--action);display:flex;align-items:center;gap:5px}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cat-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:26px 22px;background:var(--surface);
  transition:.18s;position:relative;overflow:hidden}
.cat-card:hover{border-color:var(--red-300);box-shadow:0 12px 28px rgba(15,27,61,.08);transform:translateY(-2px)}
.cat-card .ic{width:48px;height:48px;border-radius:12px;background:var(--red-50);display:grid;place-items:center;margin-bottom:16px}
.cat-card .ic svg{width:24px;height:24px;stroke:var(--action);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.cat-card h3{font-size:17px;font-weight:700;margin-bottom:6px}
.cat-card p{font-size:13px;color:var(--muted)}
.cat-card .cnt{margin-top:14px;font-family:'JetBrains Mono';font-size:12px;color:var(--action);font-weight:500}

/* ===== PROPERTY LISTING ===== */
.projects{padding:70px 0}
.tabs{display:flex;gap:8px;margin-bottom:26px;flex-wrap:wrap}
.tabs-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px;flex-wrap:wrap}
.tabs-row .tabs{margin-bottom:0}
.pj-nav{display:flex;gap:8px;flex:none}
.pjn-btn{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);
  color:var(--ink);cursor:pointer;display:grid;place-items:center;transition:.15s}
.pjn-btn:hover{background:var(--action);border-color:var(--action);color:#fff}
.pjn-btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.pj-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding-bottom:6px;scrollbar-width:none}
.pj-track::-webkit-scrollbar{display:none}
.pj-dots{display:none;justify-content:center;gap:7px;margin-top:16px}
.pj-dots span{width:7px;height:7px;border-radius:50%;background:var(--line);cursor:pointer;transition:.15s}
.pj-dots span.active{background:var(--action);width:20px;border-radius:4px}
.pj-empty{display:none;text-align:center;padding:48px 20px;color:var(--muted);font-size:14px;
  border:1px dashed var(--line);border-radius:var(--r-md)}
.pj-empty a{color:var(--action);font-weight:600}

/* ===== Dropdown chọn tỉnh/thành (đầy đủ 34 tỉnh, nhóm theo miền) ===== */
.region-dropdown{position:relative;display:inline-block;flex:none}
.region-trigger{display:flex;align-items:center;gap:6px}
.region-trigger .chev{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;transition:transform .18s ease}
.region-trigger[aria-expanded="true"] .chev{transform:rotate(180deg)}
.region-trigger[aria-expanded="true"]{background:var(--action);border-color:var(--action);color:#fff}
.region-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:120;background:#fff;border-radius:var(--r-md);
  box-shadow:0 18px 44px rgba(15,27,61,.2);padding:16px;width:min(560px,84vw);
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s}
.region-panel.open{opacity:1;visibility:visible;transform:translateY(0)}
.region-search{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:var(--r-sm);
  padding:9px 12px;margin-bottom:14px}
.region-search svg{width:15px;height:15px;stroke:var(--muted);stroke-width:2;fill:none;flex:none}
.region-search input{border:none;outline:none;font-family:inherit;font-size:13.5px;width:100%;color:var(--ink)}
.region-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-height:340px;overflow-y:auto}
.region-col-title{font-family:'JetBrains Mono';font-size:10.5px;font-weight:600;color:var(--action);
  text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.region-col a{display:block;padding:6px 0;font-size:13px;color:var(--slate);text-decoration:none;border-radius:4px}
.region-col a:hover{color:var(--action)}
.region-col a.hidden{display:none}
.region-col.empty-col{display:none}
.region-empty{display:none;text-align:center;padding:20px;color:var(--muted);font-size:13px}
.tab{padding:9px 18px;border-radius:var(--r-pill);font-size:13.5px;font-weight:600;border:1px solid var(--line);
  color:var(--slate);cursor:pointer;background:var(--surface);font-family:inherit;white-space:nowrap;flex:none}
.tab.active{background:var(--action);border-color:var(--action);color:#fff}
.pj-card{scroll-snap-align:start;flex:0 0 calc((100% - 60px)/4);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--surface);transition:.18s}
.pj-card:hover{box-shadow:0 14px 30px rgba(15,27,61,.1);transform:translateY(-3px)}
.pj-thumb{aspect-ratio:4/3;position:relative;background:linear-gradient(135deg,#2A3A66,#0F1B3D);overflow:hidden}
.pj-thumb-link{position:absolute;inset:0;z-index:0;display:block}
.pj-thumb-link img{width:100%;height:100%;object-fit:cover;display:block}
.pj-thumb .buildings{position:absolute;inset:0}
.pj-thumb .b{position:absolute;bottom:0;background:rgba(255,255,255,.14)}
.pj-thumb .bdg{position:absolute;top:10px;left:10px;z-index:1;font-size:10.5px;font-weight:700;padding:4px 10px;
  border-radius:var(--r-pill);text-transform:uppercase;letter-spacing:.03em}
.bdg.hot{background:var(--action);color:#fff}
.bdg.new{background:#fff;color:var(--ink)}
.bdg.soon{background:var(--warn);color:#fff}
.bdg.out{background:var(--line);color:var(--ink)}

/* =========================================================
   QUY ƯỚC ĐẶT TÊN TRẠNG THÁI (.bdg / .stt) THEO LOẠI HÌNH
   ---------------------------------------------------------
   Badge biên tập (mặc định): .bdg.hot "Nổi bật" / .bdg.new "Mới"
   → Đẩy lên thay thế bằng badge trạng thái (.bdg.soon / .bdg.out)
     CHỈ khi trạng thái đó cấp thiết hơn (sắp hết / đã hết).
   Dòng .stt (cạnh giá) LUÔN hiển thị trạng thái giao dịch thật,
   không phụ thuộc badge góc trên. Tên gọi tuỳ theo loại hình + giao dịch:

   ┌─────────────┬──────────────┬─────────────────────────────┬──────────────────────────┐
   │ Loại hình   │ Giao dịch    │ Đang còn (dot .g / .a)       │ Đã hết (dot .x, badge .out)│
   ├─────────────┼──────────────┼─────────────────────────────┼──────────────────────────┤
   │ Nhà ở       │ Bán          │ Đang mở bán / Sắp mở bán     │ Đã bán hết                │
   │ Nhà ở       │ Cho thuê     │ Còn trống / Sắp có           │ Đã cho thuê hết           │
   │ Thương mại  │ Cho thuê VP  │ Còn diện tích / Sắp trống    │ Hết diện tích cho thuê    │
   │ Thương mại  │ Bán condotel │ Đang mở bán                  │ Đã bán hết                │
   │ Công nghiệp │ Cho thuê kho │ Còn chỗ trống                │ Hết diện tích kho         │
   │ Đất đai     │ Bán nền      │ Đang mở bán / Sắp mở bán     │ Hết quỹ đất / Đã bán hết nền│
   └─────────────┴──────────────┴─────────────────────────────┴──────────────────────────┘
   Nguyên tắc: KHÔNG dùng "Hết hàng" (ngôn ngữ bán lẻ) cho bất kỳ loại hình BĐS nào.
   ========================================================= */
.pj-thumb .fav{position:absolute;top:10px;right:10px;z-index:1;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;border:none;padding:0;cursor:pointer}
.pj-thumb .fav svg{width:14px;height:14px;stroke:var(--action);fill:none;stroke-width:2}
.pj-body{padding:16px}
.pj-body h3{font-size:15px;font-weight:700;margin-bottom:5px}
.pj-body .loc{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-bottom:2px}
.pj-body .dev{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:5px;margin-bottom:10px}
.pj-body .stt{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:6px;margin-bottom:10px}
.pj-body .stt .dot{width:7px;height:7px;border-radius:50%;flex:none}
.pj-body .stt .dot.g{background:var(--ok)}
.pj-body .stt .dot.a{background:var(--warn)}
.pj-body .stt .dot.x{background:var(--muted)}
.pj-body .dev svg{width:12px;height:12px;stroke:var(--action);stroke-width:2;fill:none;flex:none}
.pj-body .dev.individual{color:var(--muted);font-style:italic;font-weight:400}
.pj-body .loc svg{width:12px;height:12px;stroke:var(--muted);fill:none;stroke-width:2}
.pj-body .price{font-family:'JetBrains Mono';font-weight:600;color:var(--action);font-size:14.5px;
  display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px dashed var(--line)}
.pj-body .price .typ{font-family:'Be Vietnam Pro';font-size:11px;color:var(--muted);font-weight:500}

/* ===== TRUST STRIP ===== */
.trust{background:var(--ink);padding:52px 0;position:relative;overflow:hidden}
.trust::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 20%,rgba(228,56,61,.18),transparent 45%)}
.trust-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.trust-item{text-align:center;color:#fff}
.trust-item .ic{width:46px;height:46px;border-radius:50%;background:rgba(228,56,61,.18);border:1px solid rgba(228,56,61,.35);
  display:grid;place-items:center;margin:0 auto 12px}
.trust-item .ic svg{width:20px;height:20px;stroke:var(--red-300);fill:none;stroke-width:1.8}
.trust-item b{display:block;font-size:14px;margin-bottom:4px}
.trust-item small{color:#9AA5C4;font-size:12px}

/* ===== NEWS (editorial: nổi bật lớn + danh sách nhỏ) ===== */
.news{padding:70px 0}
.news-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:stretch}

.news-featured{position:relative;display:block;border-radius:var(--r-lg);overflow:hidden;min-height:420px;
  background:linear-gradient(160deg,#2A3A66,#0F1B3D 65%);text-decoration:none}
.news-featured img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.news-featured::after{content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.15) 55%,transparent 80%)}
.nf-cat{position:relative;z-index:1;display:inline-block;margin:22px 0 0 22px;background:var(--action);color:#fff;
  font-family:'JetBrains Mono';font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  padding:5px 12px;border-radius:var(--r-pill)}
.nf-content{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:24px}
.nf-content h3{color:#fff;font-size:23px;font-weight:700;line-height:1.3;margin-bottom:10px}
.nf-content p{color:#C9D0E6;font-size:13.5px;line-height:1.6;max-width:520px;margin-bottom:14px}
.nf-meta{color:#9AA5C4;font-size:12px;display:flex;align-items:center;gap:8px}
.nf-meta .dot{opacity:.6}

.news-list{display:flex;flex-direction:column}
.nli{display:flex;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;transition:.15s}
.nli:first-child{padding-top:0}
.nli:last-child{border-bottom:none;padding-bottom:0}
.nli:hover .nli-body h3{color:var(--action)}
.nli-thumb{width:92px;height:70px;border-radius:var(--r-sm);flex:none;background:linear-gradient(135deg,var(--red-100),var(--red-300));overflow:hidden}
.nli-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nli-body{flex:1;min-width:0}
.nli-body .cat{font-family:'JetBrains Mono';font-size:10px;color:var(--action);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.nli-body h3{font-size:13.5px;font-weight:700;line-height:1.4;margin:4px 0 6px;transition:.15s}
.nli-meta{font-size:11px;color:var(--muted)}

/* ===== CTA BAND ===== */
.cta-section{padding:56px 0 70px}
.cta-band{background:linear-gradient(120deg,var(--red-600),var(--red-800));border-radius:var(--r-lg);
  padding:44px 48px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.cta-band h3{color:#fff;font-size:23px;font-weight:800}
.cta-band p{color:#FBD2D3;font-size:14px;margin-top:6px}
.cta-band .btn{background:#fff;color:var(--action)}

/* ===== FOOTER ===== */
footer{background:var(--ink);color:#B9C0D6;padding:56px 0 24px}
.ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.ft-brand .logo .nm{color:#fff}
.ft-brand p{font-size:13px;margin-top:14px;max-width:280px;color:#8D96B5}
.ft-col h3{color:#fff;font-size:13.5px;font-weight:700;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em}
.ft-col a{display:block;font-size:13.5px;padding:5px 0;color:#AEB7CE}
.ft-col a:hover{color:#fff}
.ft-bottom{padding-top:20px;display:flex;justify-content:space-between;font-size:12.5px;color:#7C87AC;flex-wrap:wrap;gap:8px}

/* ===== STATS STRIP ===== */
.stats-strip{background:var(--surface);border-bottom:1px solid var(--line)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.stats-strip .stats-grid{padding-top:28px;padding-bottom:28px}
.stat-item{text-align:center;border-right:1px solid var(--line)}
.stat-item:last-child{border-right:none}
.stat-item .num{font-family:'JetBrains Mono';font-weight:600;font-size:26px;color:var(--action)}
.stat-item .lbl{font-size:12.5px;color:var(--muted);margin-top:4px}

/* ===== LOAN CALCULATOR ===== */
.calc-sec{padding:70px 0;background:var(--surface-2)}
.calc-wrap{display:grid;grid-template-columns:1fr 1fr;gap:0;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);overflow:hidden}
.calc-form{padding:36px}
.calc-form .field{margin-bottom:18px}
.calc-form label{display:flex;justify-content:space-between;font-size:13px;font-weight:600;color:var(--slate);margin-bottom:8px}
.calc-form label .v{font-family:'JetBrains Mono';color:var(--action)}
.calc-form input[type=range]{width:100%;accent-color:var(--action)}
.calc-form input[type=number]{width:100%;font-family:inherit;font-size:14px;padding:10px 12px;
  border:1.5px solid var(--line);border-radius:var(--r-sm)}
.calc-result{background:linear-gradient(135deg,var(--ink),#1B2A54);padding:36px;color:#fff;
  display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.calc-result::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(228,56,61,.25),transparent 50%)}
.calc-result .lbl{position:relative;z-index:1;font-size:12.5px;color:#AEB7CE;text-transform:uppercase;letter-spacing:.05em}
.calc-result .amt{position:relative;z-index:1;font-family:'JetBrains Mono';font-size:34px;font-weight:600;color:var(--red-300);margin:6px 0 20px}
.calc-result .breakdown{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;font-size:13px;
  border-top:1px solid rgba(255,255,255,.15);padding-top:16px}
.calc-result .breakdown div{display:flex;justify-content:space-between;color:#C7CEE4}
.calc-result .breakdown b{color:#fff;font-family:'JetBrains Mono';font-weight:500}
.calc-note{font-size:11.5px;color:var(--muted);margin-top:16px}

/* ===== TEAM (carousel) ===== */
.team-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding-bottom:6px;scrollbar-width:none}
.team-track::-webkit-scrollbar{display:none}
.agent-card{scroll-snap-align:start;flex:0 0 calc((100% - 60px)/4);
  border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--surface);text-align:center;transition:.18s}
.agent-card:hover{box-shadow:0 14px 30px rgba(15,27,61,.1);transform:translateY(-3px)}
.agent-ava{aspect-ratio:1/1;background:linear-gradient(135deg,#2A3A66,#0F1B3D);position:relative;overflow:hidden}
.agent-ava img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0;z-index:0}
.agent-ava .verified{position:absolute;bottom:8px;right:8px;z-index:1;width:24px;height:24px;border-radius:50%;
  background:var(--ok);border:2px solid #fff;display:grid;place-items:center}
.agent-ava .verified svg{width:12px;height:12px;stroke:#fff;stroke-width:3;fill:none}
.agent-body{padding:16px}
.agent-body h3{font-size:14.5px;font-weight:700}
.agent-body .role{font-size:12px;color:var(--action);font-weight:500;margin:2px 0 10px}
.agent-body .stats{display:flex;justify-content:center;gap:16px;font-size:11.5px;color:var(--muted);
  border-top:1px solid var(--line);padding-top:10px}
.agent-body .stats b{display:block;color:var(--ink);font-family:'JetBrains Mono';font-size:13px}
.agent-actions{display:flex;gap:8px;margin-top:12px}
.aa-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 6px;
  border-radius:var(--r-sm);font-size:12px;font-weight:600;text-decoration:none}
.aa-btn svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;flex:none}
.aa-btn.call{background:var(--action);color:#fff}
.aa-btn.call:hover{background:var(--red-700)}
.aa-btn.msg{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.aa-btn.msg:hover{background:var(--line)}

/* ===== TESTIMONIALS (carousel) ===== */
.testi-sec{padding:70px 0;background:var(--ink);position:relative;overflow:hidden}
.testi-sec::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 12% 85%,rgba(228,56,61,.2),transparent 50%)}
.testi-sec .sec-head{position:relative;z-index:1}
.testi-sec .kicker{color:var(--red-300)}
.testi-sec h2{color:#fff}
.testi-nav{display:flex;gap:8px;position:relative;z-index:1}
.tn-btn{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);
  color:#fff;cursor:pointer;display:grid;place-items:center;transition:.15s}
.tn-btn:hover{background:var(--action);border-color:var(--action)}
.tn-btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.testi-track{position:relative;z-index:1;display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding-bottom:6px;scrollbar-width:none}
.testi-track::-webkit-scrollbar{display:none}
.testi-card{scroll-snap-align:start;flex:0 0 calc((100% - 40px)/3);
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:var(--r-md);padding:24px}
.testi-stars{color:var(--red-400);font-size:13px;letter-spacing:2px;margin-bottom:12px}
.testi-card p{color:#D3D9EC;font-size:13.5px;line-height:1.6;margin-bottom:18px}
.testi-who{display:flex;align-items:center;gap:10px}
.testi-who .av{width:38px;height:38px;border-radius:50%;background:var(--red-500);color:#fff;
  display:grid;place-items:center;font-weight:700;font-size:13px;flex:none;position:relative;overflow:hidden}
.testi-who .av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.testi-who b{color:#fff;font-size:13.5px;display:block}
.testi-who small{color:#9AA5C4;font-size:11.5px}
.testi-dots{display:none;justify-content:center;gap:7px;margin-top:18px;position:relative;z-index:1}
.testi-dots span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.25);cursor:pointer;transition:.15s}
.testi-dots span.active{background:var(--red-400);width:20px;border-radius:4px}

/* ===== BANK PARTNERS (marquee vô hạn) ===== */
.bank-sec{padding:40px 0;background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bank-sec .lbl{text-align:center;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:600;margin-bottom:22px}
.bank-marquee{position:relative;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.bank-track{display:flex;align-items:center;gap:20px;width:max-content;animation:bank-scroll 26s linear infinite}
.bank-track:hover{animation-play-state:paused}
.bank-chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:var(--r-sm);padding:12px 22px;font-family:'JetBrains Mono';
  font-size:13px;font-weight:600;color:var(--slate);background:var(--paper);white-space:nowrap;flex:none}
.bank-chip img{width:18px;height:18px;object-fit:contain;flex:none;display:block}
@keyframes bank-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.bank-track{animation:none;flex-wrap:wrap;justify-content:center}}

/* ===== CHỦ ĐẦU TƯ NỔI BẬT (marquee, chiều ngược lại) ===== */
.dev-sec{padding:36px 0;background:var(--surface-2)}
.dev-sec .lbl{text-align:center;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:600;margin-bottom:20px}
.dev-marquee{position:relative;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.dev-track{display:flex;align-items:center;gap:20px;width:max-content;animation:dev-scroll 30s linear infinite reverse}
.dev-track:hover{animation-play-state:paused}
.dev-chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:var(--r-sm);
  padding:12px 20px;font-family:'Be Vietnam Pro';font-size:13.5px;font-weight:700;color:var(--ink);
  background:var(--surface);white-space:nowrap;flex:none}
.dev-chip img{width:18px;height:18px;object-fit:contain;flex:none;display:block}
@keyframes dev-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.dev-track{animation:none;flex-wrap:wrap;justify-content:center}}

/* ===== mobile: nút tìm kiếm rút gọn + thanh tab dưới (ưu tiên 1 tay) ===== */
.mobile-search-trigger{display:none;width:100%;align-items:center;gap:10px;background:#fff;border:none;
  border-radius:var(--r-pill);box-shadow:0 14px 34px rgba(15,27,61,.28);padding:15px 18px;
  font-family:inherit;font-size:14px;color:var(--muted);font-weight:500;margin-top:20px;position:relative;z-index:2}
.mobile-search-trigger svg{width:18px;height:18px;stroke:var(--action);stroke-width:2;fill:none;flex:none}
.mobile-search-trigger .mp{margin-left:auto;background:var(--action);color:#fff;width:32px;height:32px;
  border-radius:50%;display:grid;place-items:center;flex:none}
.mobile-search-trigger .mp svg{stroke:#fff}

/* ===== mobile search overlay (full-screen) ===== */
.mobile-search-overlay{display:none;position:fixed;inset:0;z-index:160;background:#fff;
  flex-direction:column;transform:translateY(100%);transition:transform .3s ease}
.mobile-search-overlay.open{transform:translateY(0)}
.mso-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;
  border-bottom:1px solid var(--line);flex:none}
.mso-head h2{font-size:17px;font-weight:700;color:var(--ink)}
.mso-body{flex:1;overflow-y:auto;padding:20px}
.mso-body .field{margin-bottom:20px}
.mso-body .field label{display:block;font-size:13px;font-weight:600;color:var(--slate);margin-bottom:8px}
.mso-body .field select{width:100%;font-family:inherit;font-size:15px;padding:13px 14px;
  border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.mso-foot{padding:16px 20px;border-top:1px solid var(--line);flex:none}
@media(max-width:1023px){.mobile-search-overlay{display:flex}}

.bottom-tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(15,27,61,.08);
  padding:8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns:repeat(4,1fr)}
.bottom-tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;
  border-radius:var(--r-sm);color:var(--muted);font-size:10.5px;font-weight:600;min-height:44px;justify-content:center}
.bottom-tabbar a svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
.bottom-tabbar a.active{color:var(--action)}
.bottom-tabbar a.map-btn{position:relative;margin-top:-22px}
.bottom-tabbar a.map-btn .fab{width:46px;height:46px;border-radius:50%;background:var(--action);color:#fff;
  display:grid;place-items:center;box-shadow:0 8px 18px rgba(212,40,45,.4);margin-bottom:2px}
.bottom-tabbar a.map-btn .fab svg{stroke:#fff;width:21px;height:21px}

/* =========================================================
   BREAKPOINT 1 — MOBILE  < 640px
   Ưu tiên: nội dung 1 cột, vùng chạm ≥44px, thao tác trong
   tầm ngón cái (search + tab bar đặt cố định phía dưới),
   toàn bộ trường lọc gộp vào 1 nút mở overlay (không hiển thị
   3 dropdown cùng lúc trên màn hình hẹp).
   ========================================================= */
@media(max-width:639px){
  body{padding-bottom:74px} /* chừa chỗ cho bottom tab bar */
  .wrap{padding:0 16px}
  header .hd-row{padding-top:12px;padding-bottom:12px;gap:8px}
  .logo .nm{font-size:14px}
  .logo .nm small{display:none}
  nav{display:none}
  .region-panel{position:fixed;top:auto;left:16px;right:16px;bottom:16px;width:auto;max-height:80vh;overflow-y:auto}
  .region-cols{grid-template-columns:1fr;max-height:none;gap:16px}
  .hd-cta .btn-primary{padding:10px 14px;font-size:13px}
  .hd-cta{gap:6px}
  .logo{gap:8px}

  .hero{padding:110px 0 40px}
  .hero-inner{margin-bottom:24px}
  .hero h1{font-size:32px}
  .hero p{font-size:14px;max-width:none}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%;justify-content:center}

  .searchbar{display:none}
  .mobile-search-trigger{display:flex}

  .sec-head h2{font-size:20px}
  .categories{padding:44px 0 4px}
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .cat-card{padding:20px 12px;text-align:center}
  .cat-card .ic{margin:0 auto 12px;width:44px;height:44px}
  .cat-card h3{font-size:14.5px}
  .cat-card p{display:none}
  .cat-card .cnt{margin-top:8px;font-size:11px}

  .projects{padding:44px 0}
  .tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .tab{flex:none}
  .pj-track{gap:14px}
  .pj-card{flex:0 0 85%}
  .pj-nav{display:none}
  .pj-dots{display:flex}
  .pj-thumb{aspect-ratio:16/10}

  .trust{padding:36px 0}
  .trust-grid{grid-template-columns:repeat(2,1fr);gap:22px 12px}

  .news{padding:44px 0}
  .news-layout{grid-template-columns:1fr;gap:20px}
  .news-featured{min-height:260px}
  .nf-content h3{font-size:19px}
  .nf-content p{display:none}
  .nli-thumb{width:76px;height:60px}

  .cta-section{padding:36px 0 90px}
  .cta-band{padding:28px 22px;flex-direction:column;align-items:flex-start}
  .cta-band .btn{width:100%;justify-content:center}

  .stats-grid{grid-template-columns:repeat(2,1fr);gap:16px 0}
  .stat-item{border-right:none;border-bottom:1px solid var(--line);padding-bottom:14px}
  .stat-item:nth-child(odd){border-right:1px solid var(--line)}

  .calc-sec{padding:44px 0}
  .calc-wrap{grid-template-columns:1fr}
  .calc-form,.calc-result{padding:24px}

  .team-track{gap:14px}
  .agent-card{flex:0 0 68%}

  .testi-sec{padding:44px 0}
  .testi-card{flex:0 0 88%}
  .testi-nav{display:none}
  .testi-dots{display:flex}

  .bank-chip{padding:9px 14px;font-size:11.5px}
  .dev-chip{padding:9px 14px;font-size:12px}
  .pj-body .dev{font-size:11px}

  .ft-grid{grid-template-columns:1fr;gap:26px}
  footer{padding-bottom:90px}

  .bottom-tabbar{display:grid}
}

/* =========================================================
   BREAKPOINT 2 — TABLET  640px – 1023px
   2 cột nội dung, menu chính rút gọn thành icon, vẫn giữ
   thanh tìm kiếm đầy đủ vì đủ chỗ ngang.
   ========================================================= */
@media(min-width:640px) and (max-width:1023px){
  .wrap{padding:0 28px}
  header .hd-row{padding-top:12px;padding-bottom:12px}
  nav{display:none}
  .region-cols{grid-template-columns:repeat(2,1fr)}

  .hero-inner{text-align:left}
  .hero{padding-top:90px}
  .hero h1{font-size:38px}
  .searchbar{grid-template-columns:repeat(3,1fr);row-gap:14px}
  .sb-search-btn{grid-column:1/-1;justify-content:center;padding:13px}

  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .pj-card{flex:0 0 calc((100% - 20px)/2)}
  .trust-grid{grid-template-columns:repeat(3,1fr);row-gap:24px}
  .news-layout{grid-template-columns:1fr}
  .news-featured{min-height:300px}
  .news-list{display:grid;grid-template-columns:repeat(2,1fr);gap:0 24px}
  .nli:nth-child(3),.nli:nth-child(4){border-bottom:none;padding-bottom:0}
  .ft-grid{grid-template-columns:1fr 1fr}

  .stats-grid{grid-template-columns:repeat(2,1fr);row-gap:20px}
  .stat-item{border-right:1px solid var(--line)}
  .stat-item:nth-child(2n){border-right:none}
  .calc-wrap{grid-template-columns:1fr}
  .agent-card{flex:0 0 calc((100% - 20px)/2)}
  .testi-card{flex:0 0 calc((100% - 20px)/2)}
}

/* =========================================================
   BREAKPOINT 3 — DESKTOP  1024px – 1440px  (mặc định, xem CSS gốc phía trên)
   4 cột property/category, menu đầy đủ — đã là style mặc định
   không cần media query riêng.
   ========================================================= */
@media(min-width:1024px) and (max-width:1199px){
  /* Vùng đệm hẹp: logo + 8 mục nav + nút CTA hơi sát nhau ở đúng
     dải này → ẩn dòng phụ logo để nav không bị tràn xuống 2 hàng. */
  .logo .nm small{display:none}
  .logo{gap:8px}
}

/* =========================================================
   BREAKPOINT 4 — MÀN HÌNH LỚN / ULTRAWIDE  > 1440px
   Container nới rộng có kiểm soát (không kéo giãn full-bleed
   gây khó đọc); tăng thêm 1 cột cho lưới tin đăng để tận
   dụng không gian thay vì phóng to khoảng trắng.
   ========================================================= */
@media(min-width:1441px){
  .wrap{max-width:1440px}
  .hero h1{font-size:52px}
  .pj-card{flex:0 0 calc((100% - 72px)/4)}
}


/* ===== FROM du-an.html ===== */

:root{
  --red-50:#FDECEC;  --red-100:#FBD2D3; --red-200:#F5A6A8; --red-300:#EE797C;
  --red-400:#E85559; --red-500:#E4383D; --red-600:#D4282D; --red-700:#A81F23; --red-800:#7C171A; --red-900:#4F0F11;
  --ink:#0F1B3D; --slate:#3E4A63; --muted:#6C7690;
  --line:#DDE2EC; --paper:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7;
  --action:var(--red-600); --brand:var(--red-500); --ok:#0F8A5F; --warn:#B7791F; --err:#C2451E;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-pill:999px;
  --shadow:0 1px 2px rgba(15,27,61,.06),0 4px 16px rgba(15,27,61,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden} /* chặn tràn ngang ngoài ý muốn (VD: mobile-drawer đóng dùng transform ở ≤320px); không ảnh hưởng các khối cuộn ngang có chủ đích (overflow-x:auto riêng) */
body{font-family:'Be Vietnam Pro',-apple-system,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;font-size:15px}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
.mono{font-family:'JetBrains Mono',monospace}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.btn{font-weight:600;font-size:14px;border:none;border-radius:var(--r-sm);padding:12px 22px;
  cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.15s;text-decoration:none;font-family:inherit}
.btn-primary{background:var(--action);color:#fff}
.btn-primary:hover{background:var(--red-700)}
.btn-outline{background:var(--surface);color:var(--action);border:1.5px solid var(--red-300)}
.btn-outline:hover{background:var(--red-50)}
.btn-ghost{background:transparent;color:var(--slate);border:1.5px solid var(--line)}
.btn-ghost:hover{background:var(--surface-2)}

/* ===== HEADER (giống trang chủ, nhưng luôn nền trắng vì không có hero tối) ===== */
header{position:sticky;top:0;left:0;right:0;z-index:100;background:#fff;
  border-bottom:1px solid var(--line);box-shadow:0 2px 16px rgba(15,27,61,.06)}
header .hd-row{display:flex;align-items:center;justify-content:space-between;padding-top:16px;padding-bottom:16px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo .mark{width:42px;height:42px;border-radius:10px;background:var(--action);color:#fff;
  position:relative;overflow:hidden;display:grid;place-items:center;font-weight:800;font-size:15px;letter-spacing:-.02em}
.logo .mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.logo .nm{font-weight:800;font-size:16px;line-height:1.15;color:var(--ink)}
.logo .nm small{display:block;font-weight:500;font-size:10.5px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.nav-item{position:relative}
nav{display:flex;gap:1px;flex:1;justify-content:center;flex-wrap:wrap}
nav a{display:flex;align-items:center;gap:2px;padding:9px 8px;border-radius:var(--r-sm);font-size:13.5px;font-weight:500;
  color:var(--slate);transition:color .15s ease,background .15s ease;text-decoration:none;white-space:nowrap}
nav a:hover{background:var(--surface-2);color:var(--ink)}
nav a.active{color:var(--action);font-weight:600}
nav a .chev{width:12px;height:12px;stroke:currentColor;stroke-width:1.8;fill:none;transition:transform .18s ease;flex:none}
.nav-item.has-mega:hover .chev{transform:rotate(180deg)}
.mega-panel{position:absolute;top:100%;left:0;margin-top:8px;background:#fff;border-radius:var(--r-md);
  box-shadow:0 18px 40px rgba(15,27,61,.18);padding:8px;min-width:220px;display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:200}
.nav-item.has-mega:hover .mega-panel{opacity:1;visibility:visible;transform:translateY(0)}
.mega-panel a{display:block;padding:9px 12px;font-size:13.5px;font-weight:500;color:var(--slate);border-radius:6px;white-space:nowrap}
.mega-panel a:hover{background:var(--surface-2);color:var(--action)}
.mega-panel a.mega-all{color:var(--action);font-weight:600;margin-top:4px;border-top:1px solid var(--line);padding-top:11px;border-radius:0}
.hd-cta{display:flex;align-items:center;gap:10px;flex:none}
.hamburger{display:none;background:none;border:none;color:var(--ink);cursor:pointer;
  padding:8px;width:38px;height:38px;align-items:center;justify-content:center;border-radius:var(--r-sm)}
.hamburger:hover{background:var(--surface-2)}
.hamburger svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none}
@media(max-width:1023px){.hamburger{display:flex}}
@media(min-width:1024px){.mobile-drawer,.mobile-drawer-overlay{display:none}}

/* ===== BREADCRUMB ===== */
.breadcrumb-strip{background:var(--surface-2);border-bottom:1px solid var(--line)}
.breadcrumb{padding-top:12px;padding-bottom:12px;font-size:13px;color:var(--muted);display:flex;justify-content:flex-start;
  align-items:center;gap:6px;flex-wrap:wrap}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--action)}
.breadcrumb .sep{color:var(--line)}
.breadcrumb .current{color:var(--ink);font-weight:600}

/* ===== PAGE HEADER ===== */
.page-head{padding:8px 0 24px;border-bottom:1px solid var(--line);margin-bottom:28px}
.page-head h1{font-size:38px;font-weight:800;margin-bottom:8px}
.page-head .sub{color:var(--slate);font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-head .sub b{color:var(--action);font-family:'JetBrains Mono'}

/* ===== SUB-CATEGORY CHIPS ===== */
.subcat-row{display:flex;gap:10px;margin-bottom:28px;flex-wrap:wrap}
.subcat-chip{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:var(--r-pill);
  border:1.5px solid var(--line);background:var(--surface);font-size:13.5px;font-weight:600;color:var(--slate);white-space:nowrap}
.subcat-chip:hover{border-color:var(--red-300);color:var(--action)}
.subcat-chip.active{background:var(--action);border-color:var(--action);color:#fff}
.subcat-chip .cnt{font-family:'JetBrains Mono';font-size:11px;font-weight:500;opacity:.75}

/* ===== LAYOUT: filter sidebar + grid ===== */
.listing-layout{display:grid;grid-template-columns:272px 1fr;gap:28px;align-items:start;padding-bottom:70px}

/* ===== FILTER SIDEBAR ===== */
.filter-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:22px;position:sticky;top:90px}
.filter-card .fc-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.filter-card .fc-head h3{font-size:15.5px;font-weight:700}
.filter-count{display:none;background:var(--action);color:#fff;font-family:'JetBrains Mono';font-size:11px;
  font-weight:600;padding:1px 7px;border-radius:var(--r-pill);vertical-align:middle;margin-left:4px}
.filter-count.show{display:inline-block}
.filter-card .fc-head button{background:none;border:none;color:var(--action);font-size:12.5px;font-weight:600;cursor:pointer}
.f-group{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.f-group:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}
.f-group label.f-title{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:12px}
.f-select{width:100%;font-family:inherit;font-size:13.5px;padding:10px 12px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.f-range{display:flex;align-items:center;gap:8px}
.f-range input{width:100%;font-family:inherit;font-size:13px;padding:9px 10px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);color:var(--ink)}
.f-range input.invalid{border-color:var(--action);background:var(--red-50)}
.f-error{display:none;color:var(--action);font-size:11.5px;margin-top:8px;line-height:1.4}
.f-error.show{display:block}
.f-chips-preset{margin-top:10px;gap:6px}
.f-chips-preset .f-chip{padding:5px 11px;font-size:11.5px;font-weight:500;border-radius:6px}
.f-chips-preset .f-chip.active{background:var(--action);border-color:var(--action);color:#fff}
.f-chips{display:flex;flex-wrap:wrap;gap:8px}
.f-chip{padding:7px 13px;border-radius:var(--r-sm);border:1.5px solid var(--line);font-size:12.5px;
  font-weight:600;color:var(--slate);cursor:pointer;background:var(--surface)}
.f-chip.active{background:var(--red-50);border-color:var(--red-300);color:var(--action)}
.f-check{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--slate);margin-bottom:10px;cursor:pointer}
.f-check:last-child{margin-bottom:0}
.f-check input{width:16px;height:16px;accent-color:var(--action)}
.filter-card .apply-btn{width:100%;justify-content:center;margin-top:6px}

/* ===== TOOLBAR (sort + count + mobile filter trigger) ===== */
.listing-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px;flex-wrap:wrap}
.result-count{font-size:13.5px;color:var(--slate)}
.result-count b{color:var(--ink);font-family:'JetBrains Mono'}

/* ===== Thẻ bộ lọc đang chọn (xoá từng cái) ===== */
.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.active-filters:empty{display:none;margin-bottom:0}
.af-tag{display:flex;align-items:center;gap:7px;background:var(--red-50);border:1px solid var(--red-200);
  color:var(--red-700);font-size:12.5px;font-weight:500;padding:6px 8px 6px 12px;border-radius:var(--r-pill)}
.af-tag button{background:rgba(212,40,45,.15);border:none;border-radius:50%;width:17px;height:17px;
  display:grid;place-items:center;cursor:pointer;color:var(--action);flex:none;padding:0}
.af-tag button:hover{background:var(--action);color:#fff}
.af-tag button svg{width:9px;height:9px;stroke:currentColor;stroke-width:3;fill:none}
.af-clear-all{background:none;border:none;color:var(--muted);font-size:12.5px;font-weight:600;
  cursor:pointer;text-decoration:underline;padding:6px 4px}
.toolbar-right{display:flex;align-items:center;gap:10px}
.sort-select{font-family:inherit;font-size:13px;padding:9px 12px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.view-toggle{display:flex;border:1.5px solid var(--line);border-radius:var(--r-sm);overflow:hidden;flex:none}
.vt-btn{width:36px;height:36px;border:none;background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.vt-btn+.vt-btn{border-left:1.5px solid var(--line)}
.vt-btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.vt-btn.active{background:var(--action);color:#fff}

/* ===== List view ===== */
.listing-grid.is-list{display:flex;flex-direction:column;gap:14px}
.listing-grid.is-list .pj-card{display:flex;flex-direction:row;align-items:stretch}
.listing-grid.is-list .pj-card:hover{transform:none}
.listing-grid.is-list .pj-thumb{width:220px;min-height:165px;aspect-ratio:auto;flex:none;align-self:stretch}
.listing-grid.is-list .pj-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding:16px 20px}
.listing-grid.is-list .pj-body .price{border-top:none;padding-top:0;margin-top:8px}
@media(max-width:639px){
  .listing-grid.is-list .pj-card{flex-direction:column}
  .listing-grid.is-list .pj-thumb{width:100%;height:auto;min-height:0;aspect-ratio:16/10}
}
.mobile-filter-btn{display:none;align-items:center;gap:7px;padding:9px 16px;border-radius:var(--r-sm);
  border:1.5px solid var(--line);background:var(--surface);font-size:13px;font-weight:600;color:var(--ink);cursor:pointer}
.mobile-filter-btn svg{width:15px;height:15px;stroke:var(--action);stroke-width:1.8;fill:none}

/* ===== LISTING GRID (tái dùng pj-card) ===== */
.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pj-card{scroll-snap-align:start;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--surface);transition:.18s}
.pj-card:hover{box-shadow:0 14px 30px rgba(15,27,61,.1);transform:translateY(-3px)}
.pj-thumb{aspect-ratio:4/3;position:relative;background:linear-gradient(135deg,#2A3A66,#0F1B3D);overflow:hidden}
.pj-thumb-link{position:absolute;inset:0;z-index:0;display:block}
.pj-thumb-link img{width:100%;height:100%;object-fit:cover;display:block}
.pj-thumb .bdg{position:absolute;top:10px;left:10px;z-index:1;font-size:10.5px;font-weight:700;padding:4px 10px;
  border-radius:var(--r-pill);text-transform:uppercase;letter-spacing:.03em}
.bdg.hot{background:var(--action);color:#fff}
.bdg.new{background:#fff;color:var(--ink)}
.bdg.soon{background:var(--warn);color:#fff}
.bdg.out{background:var(--line);color:var(--ink)}
.pj-thumb .fav{position:absolute;top:10px;right:10px;z-index:1;width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,.92);display:grid;place-items:center;border:none;padding:0;cursor:pointer}
.pj-thumb .fav svg{width:14px;height:14px;stroke:var(--action);fill:none;stroke-width:2}

/* ===== Tooltip dùng chung cho nút tim + nút so sánh (nội dung lấy từ aria-label) ===== */
.pj-thumb .fav::after,
.pj-thumb .cmp-btn::after{
  content:attr(aria-label);position:absolute;top:50%;right:calc(100% + 9px);transform:translateY(-50%) translateX(4px);
  background:var(--ink);color:#fff;font-family:'Be Vietnam Pro';font-size:11px;font-weight:600;
  padding:5px 10px;border-radius:6px;white-space:nowrap;z-index:5;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.pj-thumb .fav::before,
.pj-thumb .cmp-btn::before{
  content:"";position:absolute;top:50%;right:calc(100% + 3px);transform:translateY(-50%);
  border:5px solid transparent;border-left-color:var(--ink);z-index:5;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease}
.pj-thumb .fav:hover::after,.pj-thumb .fav:focus-visible::after,
.pj-thumb .cmp-btn:hover::after,.pj-thumb .cmp-btn:focus-visible::after{
  opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}
.pj-thumb .fav:hover::before,.pj-thumb .fav:focus-visible::before,
.pj-thumb .cmp-btn:hover::before,.pj-thumb .cmp-btn:focus-visible::before{
  opacity:1;visibility:visible}
.pj-body{padding:16px}
.pj-body h3{font-size:15px;font-weight:700;margin-bottom:5px}
.pj-body .loc{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-bottom:2px}
.pj-body .loc svg{width:12px;height:12px;stroke:var(--muted);fill:none;stroke-width:1.8;flex:none}
.pj-body .dev{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:5px;margin-bottom:10px}
.pj-body .dev svg{width:12px;height:12px;stroke:var(--action);stroke-width:1.8;fill:none;flex:none}
.pj-body .stt{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:6px;margin-bottom:10px}
.pj-body .stt .dot{width:7px;height:7px;border-radius:50%;flex:none}
.pj-body .stt .dot.g{background:var(--ok)}
.pj-body .stt .dot.a{background:var(--warn)}
.pj-body .stt .dot.x{background:var(--muted)}
.pj-body .price{font-family:'JetBrains Mono';font-weight:600;color:var(--action);font-size:14.5px;
  display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px dashed var(--line)}
.pj-body .price .typ{font-family:'Be Vietnam Pro';font-size:11px;color:var(--muted);font-weight:500}

/* ===== Riêng cho card DỰ ÁN: hàng tiện ích + hàng CTA ===== */
.pj-body .tienich{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.pj-body .tienich span{font-size:10.5px;background:var(--surface-2);color:var(--slate);padding:3px 8px;border-radius:var(--r-pill);font-weight:600}
.pj-body .cta-row{display:flex;gap:8px;margin-top:12px}
.pj-body .cta-row a{flex:1;text-align:center;font-size:12.5px;font-weight:700;padding:9px 10px;border-radius:var(--r-sm);text-decoration:none;transition:.15s}
.pj-body .cta-row .cta-primary{background:var(--action);color:#fff}
.pj-body .cta-row .cta-primary:hover{background:var(--red-700,#B91C2C)}
.pj-body .cta-row .cta-ghost{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.pj-body .cta-row .cta-ghost:hover{background:var(--surface)}
.pj-thumb .cmp-btn{position:absolute;top:48px;right:10px;z-index:1;width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .15s ease}
.pj-thumb .cmp-btn svg{width:14px;height:14px;stroke:var(--action);stroke-width:1.8;fill:none;transition:stroke .15s ease}
.pj-thumb .cmp-btn:hover{background:#fff}
.pj-thumb .cmp-btn.active{background:var(--action)}
.pj-thumb .cmp-btn.active svg{stroke:#fff}

/* ===== Thanh so sánh nổi ===== */
.compare-bar{position:fixed;left:0;right:0;bottom:0;z-index:140;background:var(--ink);color:#fff;
  padding:14px 24px;display:none;align-items:center;justify-content:center;gap:20px;
  box-shadow:0 -8px 24px rgba(15,27,61,.25);transform:translateY(100%);transition:transform .25s ease}
.compare-bar.show{display:flex;transform:translateY(0)}
.compare-bar .cb-count{font-family:'JetBrains Mono';font-size:13.5px}
.compare-bar .cb-count b{color:var(--red-300)}
.compare-bar .cb-actions{display:flex;gap:10px}
.compare-bar .btn-outline{border-color:rgba(255,255,255,.3);color:#fff;background:transparent}
.compare-bar .btn-outline:hover{background:rgba(255,255,255,.1)}
.pj-empty{display:none;text-align:center;padding:48px 20px;color:var(--muted);font-size:14px;
  border:1px dashed var(--line);border-radius:var(--r-md)}
.pj-empty a{color:var(--action);font-weight:600}

/* ===== PAGINATION ===== */
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:40px}
#pageNumbers{display:flex;align-items:center;gap:6px}
#pageNumbers{display:contents}

/* ===== SEO block (thu gọn mặc định) ===== */
.seo-block{margin:56px 0 56px;padding-top:32px;border-top:1px solid var(--line)}
.seo-block h2{font-size:17px;font-weight:700;margin-bottom:14px}
.seo-content{color:var(--slate);font-size:13.5px;line-height:1.7;max-height:84px;overflow:hidden;position:relative}
.seo-content.expanded{max-height:none}
.seo-content:not(.expanded)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;
  background:linear-gradient(180deg,transparent,var(--paper))}
.seo-content p{margin-bottom:12px}
.seo-content p:last-child{margin-bottom:0}
.seo-toggle{background:none;border:none;color:var(--action);font-size:13px;font-weight:600;cursor:pointer;
  margin-top:10px;padding:0;font-family:inherit}
.seo-toggle:hover{text-decoration:underline}
.page-btn{width:38px;height:38px;border-radius:var(--r-sm);border:1.5px solid var(--line);background:var(--surface);
  display:grid;place-items:center;font-size:13.5px;font-weight:600;color:var(--slate);cursor:pointer}
.page-btn:hover{border-color:var(--red-300);color:var(--action)}
.page-btn.active{background:var(--action);border-color:var(--action);color:#fff}
.page-btn:disabled{cursor:not-allowed}
.page-btn:disabled:hover{border-color:var(--line);color:var(--slate)}
.page-btn.nav-arrow svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none}
.page-dots{color:var(--muted);padding:0 4px}

/* ===== MOBILE FILTER BOTTOM-SHEET ===== */
.filter-sheet-overlay{position:fixed;inset:0;background:rgba(15,27,61,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.filter-sheet-overlay.open{opacity:1;visibility:visible}
.filter-sheet{position:fixed;left:0;right:0;bottom:0;z-index:151;background:#fff;border-radius:20px 20px 0 0;
  max-height:85vh;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s ease}
.filter-sheet.open{transform:translateY(0)}
.fs-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);flex:none}
.fs-head h3{font-size:16px;font-weight:700}
.fs-close{background:var(--surface-2);border:none;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.fs-body{flex:1;overflow-y:auto;padding:20px}
.fs-foot{padding:16px 20px;border-top:1px solid var(--line);flex:none;display:flex;gap:10px}
.fs-foot .btn{flex:1;justify-content:center}

/* ===== BOTTOM TABBAR (mobile, giống trang chủ) ===== */
.bottom-tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(15,27,61,.08);
  padding:8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns:repeat(4,1fr)}
.bottom-tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;
  border-radius:var(--r-sm);color:var(--muted);font-size:10.5px;font-weight:600;min-height:44px;justify-content:center}
.bottom-tabbar a svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
.bottom-tabbar a.active{color:var(--action)}
.bottom-tabbar a.map-btn{position:relative;margin-top:-22px}
.bottom-tabbar a.map-btn .fab{width:46px;height:46px;border-radius:50%;background:var(--action);color:#fff;
  display:grid;place-items:center;box-shadow:0 8px 18px rgba(212,40,45,.4);margin-bottom:2px}
.bottom-tabbar a.map-btn .fab svg{stroke:#fff;width:21px;height:21px}

/* ===== FOOTER (rút gọn, tái dùng token) ===== */
footer{background:var(--ink);color:#B9C0D6;padding:56px 0 24px;margin-top:0}
.ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.ft-brand .logo .nm{color:#fff}
.ft-brand p{font-size:13px;margin-top:14px;max-width:280px;color:#8D96B5}
.ft-col h3{color:#fff;font-size:13.5px;font-weight:700;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em}
.ft-col a{display:block;font-size:13.5px;padding:5px 0;color:#AEB7CE}
.ft-col a:hover{color:#fff}
.ft-bottom{padding-top:20px;display:flex;justify-content:space-between;font-size:12.5px;color:#7C87AC;flex-wrap:wrap;gap:8px}

/* ===== MOBILE DRAWER (giống trang chủ) ===== */
.mobile-drawer-overlay{position:fixed;inset:0;background:rgba(15,27,61,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.mobile-drawer-overlay.open{opacity:1;visibility:visible}
.mobile-drawer{position:fixed;top:0;right:0;bottom:0;width:min(340px,85vw);background:#fff;z-index:151;
  transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column;
  box-shadow:-10px 0 32px rgba(15,27,61,.22)}
.mobile-drawer.open{transform:translateX(0)}
.md-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);flex:none}
.md-head .logo .nm{color:var(--ink);font-size:14px}
.md-head .logo .nm small{display:none}
.md-close{background:var(--surface-2);border:none;border-radius:50%;width:34px;height:34px;
  display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none}
.md-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.md-body{flex:1;overflow-y:auto;padding:10px 10px 20px}
.md-link{display:block;padding:14px 14px;font-size:15px;font-weight:600;color:var(--ink);border-radius:var(--r-sm);text-decoration:none}
.md-link.active{color:var(--action)}
.md-link:active,.md-link:hover{background:var(--surface-2);color:var(--ink)}
.md-link.active:hover,.md-link.active:active{color:var(--action)}
.md-accordion{border-radius:var(--r-sm);overflow:hidden}
.md-acc-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px;background:none;border:none;font-family:inherit;font-size:15px;font-weight:600;
  color:var(--ink);cursor:pointer;border-radius:var(--r-sm);text-align:left}
.md-acc-trigger:hover{background:var(--surface-2)}
.md-acc-trigger svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;transition:transform .2s ease;flex:none;color:var(--muted)}
.md-accordion.open .md-acc-trigger svg{transform:rotate(180deg)}
.md-acc-panel{max-height:0;overflow:hidden;transition:max-height .25s ease}
.md-accordion.open .md-acc-panel{max-height:260px}
.md-acc-panel a{display:block;padding:11px 14px 11px 28px;font-size:13.5px;font-weight:500;color:var(--slate);text-decoration:none}
.md-acc-panel a:hover{color:var(--action)}
.md-foot{padding:16px 18px;border-top:1px solid var(--line);flex:none}

/* ===== RESPONSIVE ===== */
@media(max-width:639px){
  body{padding-bottom:74px} /* chừa chỗ cho bottom tab bar */
  .wrap{padding:0 16px}
  header .hd-row{padding-top:12px;padding-bottom:12px;gap:8px}
  /* Ở màn hình rất hẹp (≤~340px), logo + nút Đăng tin + hamburger cộng lại
     có thể rộng hơn viewport. Cho logo co lại và rút gọn tên bằng "…" thay
     vì để hd-cta (nút Đăng tin/hamburger) bị đẩy tràn ra ngoài mép phải. */
  .logo{flex:1 1 auto;min-width:0}
  .logo .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .hd-cta{flex:none}
  .logo .nm small{display:none}
  nav{display:none}
  .page-head h1{font-size:28px}
  .subcat-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .subcat-chip{flex:none}
  .listing-layout{grid-template-columns:1fr}
  .filter-card{display:none}
  .mobile-filter-btn{display:flex}
  .listing-grid{grid-template-columns:1fr;gap:14px}
  .ft-grid{grid-template-columns:1fr;gap:26px}
  .breadcrumb{font-size:12px}
  .bottom-tabbar{display:grid}
  /* Thanh so sánh phải nằm TRÊN bottom-tabbar khi cả 2 cùng hiện trên mobile,
     nếu không sẽ đè kín 4 nút điều hướng dưới cùng (Tìm kiếm/Bản đồ/Đã lưu/Tài khoản) */
  .compare-bar{bottom:calc(74px + env(safe-area-inset-bottom))}
}
@media(min-width:640px) and (max-width:1023px){
  .wrap{padding:0 28px}
  nav{display:none}
  .listing-layout{grid-template-columns:1fr}
  .filter-card{display:none}
  .mobile-filter-btn{display:flex}
  .listing-grid{grid-template-columns:repeat(2,1fr)}
  .ft-grid{grid-template-columns:1fr 1fr}
}
@media(min-width:1024px) and (max-width:1199px){
  .logo .nm small{display:none}
}
@media(min-width:1441px){
  .wrap{max-width:1440px}
  .listing-grid{grid-template-columns:repeat(4,1fr)}
}


/* ===== FROM du-an-khu-vuc.html ===== */

:root{
  --red-50:#FDECEC;  --red-100:#FBD2D3; --red-200:#F5A6A8; --red-300:#EE797C;
  --red-400:#E85559; --red-500:#E4383D; --red-600:#D4282D; --red-700:#A81F23; --red-800:#7C171A; --red-900:#4F0F11;
  --ink:#0F1B3D; --slate:#3E4A63; --muted:#6C7690;
  --line:#DDE2EC; --paper:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7;
  --action:var(--red-600); --brand:var(--red-500); --ok:#0F8A5F; --warn:#B7791F; --err:#C2451E;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-pill:999px;
  --shadow:0 1px 2px rgba(15,27,61,.06),0 4px 16px rgba(15,27,61,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden} /* chặn tràn ngang ngoài ý muốn (VD: mobile-drawer đóng dùng transform ở ≤320px); không ảnh hưởng các khối cuộn ngang có chủ đích (overflow-x:auto riêng) */
body{font-family:'Be Vietnam Pro',-apple-system,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;font-size:15px}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
.mono{font-family:'JetBrains Mono',monospace}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.btn{font-weight:600;font-size:14px;border:none;border-radius:var(--r-sm);padding:12px 22px;
  cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.15s;text-decoration:none;font-family:inherit}
.btn-primary{background:var(--action);color:#fff}
.btn-primary:hover{background:var(--red-700)}
.btn-outline{background:var(--surface);color:var(--action);border:1.5px solid var(--red-300)}
.btn-outline:hover{background:var(--red-50)}
.btn-ghost{background:transparent;color:var(--slate);border:1.5px solid var(--line)}
.btn-ghost:hover{background:var(--surface-2)}

/* ===== HEADER (giống trang chủ, nhưng luôn nền trắng vì không có hero tối) ===== */
header{position:sticky;top:0;left:0;right:0;z-index:100;background:#fff;
  border-bottom:1px solid var(--line);box-shadow:0 2px 16px rgba(15,27,61,.06)}
header .hd-row{display:flex;align-items:center;justify-content:space-between;padding-top:16px;padding-bottom:16px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo .mark{width:42px;height:42px;border-radius:10px;background:var(--action);color:#fff;
  position:relative;overflow:hidden;display:grid;place-items:center;font-weight:800;font-size:15px;letter-spacing:-.02em}
.logo .mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.logo .nm{font-weight:800;font-size:16px;line-height:1.15;color:var(--ink)}
.logo .nm small{display:block;font-weight:500;font-size:10.5px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.nav-item{position:relative}
nav{display:flex;gap:1px;flex:1;justify-content:center;flex-wrap:wrap}
nav a{display:flex;align-items:center;gap:2px;padding:9px 8px;border-radius:var(--r-sm);font-size:13.5px;font-weight:500;
  color:var(--slate);transition:color .15s ease,background .15s ease;text-decoration:none;white-space:nowrap}
nav a:hover{background:var(--surface-2);color:var(--ink)}
nav a.active{color:var(--action);font-weight:600}
nav a .chev{width:12px;height:12px;stroke:currentColor;stroke-width:1.8;fill:none;transition:transform .18s ease;flex:none}
.nav-item.has-mega:hover .chev{transform:rotate(180deg)}
.mega-panel{position:absolute;top:100%;left:0;margin-top:8px;background:#fff;border-radius:var(--r-md);
  box-shadow:0 18px 40px rgba(15,27,61,.18);padding:8px;min-width:220px;display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:200}
.nav-item.has-mega:hover .mega-panel{opacity:1;visibility:visible;transform:translateY(0)}
.mega-panel a{display:block;padding:9px 12px;font-size:13.5px;font-weight:500;color:var(--slate);border-radius:6px;white-space:nowrap}
.mega-panel a:hover{background:var(--surface-2);color:var(--action)}
.mega-panel a.mega-all{color:var(--action);font-weight:600;margin-top:4px;border-top:1px solid var(--line);padding-top:11px;border-radius:0}
.hd-cta{display:flex;align-items:center;gap:10px;flex:none}
.hamburger{display:none;background:none;border:none;color:var(--ink);cursor:pointer;
  padding:8px;width:38px;height:38px;align-items:center;justify-content:center;border-radius:var(--r-sm)}
.hamburger:hover{background:var(--surface-2)}
.hamburger svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none}
@media(max-width:1023px){.hamburger{display:flex}}
@media(min-width:1024px){.mobile-drawer,.mobile-drawer-overlay{display:none}}

/* ===== BREADCRUMB ===== */
.breadcrumb-strip{background:var(--surface-2);border-bottom:1px solid var(--line)}
.breadcrumb{padding-top:12px;padding-bottom:12px;font-size:13px;color:var(--muted);display:flex;justify-content:flex-start;
  align-items:center;gap:6px;flex-wrap:wrap}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--action)}
.breadcrumb .sep{color:var(--line)}
.breadcrumb .current{color:var(--ink);font-weight:600}

/* ===== PAGE HEADER ===== */
.page-head{padding:8px 0 24px;border-bottom:1px solid var(--line);margin-bottom:28px}
.page-head h1{font-size:38px;font-weight:800;margin-bottom:8px}
.page-head .sub{color:var(--slate);font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-head .sub b{color:var(--action);font-family:'JetBrains Mono'}

/* ===== SUB-CATEGORY CHIPS ===== */
.subcat-row{display:flex;gap:10px;margin-bottom:28px;flex-wrap:wrap}
.subcat-chip{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:var(--r-pill);
  border:1.5px solid var(--line);background:var(--surface);font-size:13.5px;font-weight:600;color:var(--slate);white-space:nowrap}
.subcat-chip:hover{border-color:var(--red-300);color:var(--action)}
.subcat-chip.active{background:var(--action);border-color:var(--action);color:#fff}
.subcat-chip .cnt{font-family:'JetBrains Mono';font-size:11px;font-weight:500;opacity:.75}

/* ===== Hàng "Khu vực khác" (internal link tới các trang /du-an/khu-vuc/{tinh} khác) ===== */
.other-region-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-14px 0 28px;font-size:13px}
.other-region-row .orr-lbl{color:var(--muted);font-weight:600;margin-right:2px}
.other-region-row a{color:var(--slate);font-weight:600;padding:5px 12px;border-radius:var(--r-pill);
  border:1px solid var(--line);text-decoration:none}
.other-region-row a:hover{border-color:var(--red-300);color:var(--action)}
.other-region-row a.orr-all{border:none;color:var(--action);padding-left:4px;margin-left:4px}
.other-region-row a.orr-all:hover{text-decoration:underline}

/* ===== LAYOUT: filter sidebar + grid ===== */
.listing-layout{display:grid;grid-template-columns:272px 1fr;gap:28px;align-items:start;padding-bottom:70px}

/* ===== FILTER SIDEBAR ===== */
.filter-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:22px;position:sticky;top:90px}
.filter-card .fc-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.filter-card .fc-head h3{font-size:15.5px;font-weight:700}
.filter-count{display:none;background:var(--action);color:#fff;font-family:'JetBrains Mono';font-size:11px;
  font-weight:600;padding:1px 7px;border-radius:var(--r-pill);vertical-align:middle;margin-left:4px}
.filter-count.show{display:inline-block}
.filter-card .fc-head button{background:none;border:none;color:var(--action);font-size:12.5px;font-weight:600;cursor:pointer}
.f-group{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.f-group:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}
.f-group label.f-title{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:12px}
.f-select{width:100%;font-family:inherit;font-size:13.5px;padding:10px 12px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.f-range{display:flex;align-items:center;gap:8px}
.f-range input{width:100%;font-family:inherit;font-size:13px;padding:9px 10px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);color:var(--ink)}
.f-range input.invalid{border-color:var(--action);background:var(--red-50)}
.f-error{display:none;color:var(--action);font-size:11.5px;margin-top:8px;line-height:1.4}
.f-error.show{display:block}
.f-chips-preset{margin-top:10px;gap:6px}
.f-chips-preset .f-chip{padding:5px 11px;font-size:11.5px;font-weight:500;border-radius:6px}
.f-chips-preset .f-chip.active{background:var(--action);border-color:var(--action);color:#fff}
.f-chips{display:flex;flex-wrap:wrap;gap:8px}
.f-chip{padding:7px 13px;border-radius:var(--r-sm);border:1.5px solid var(--line);font-size:12.5px;
  font-weight:600;color:var(--slate);cursor:pointer;background:var(--surface)}
.f-chip.active{background:var(--red-50);border-color:var(--red-300);color:var(--action)}
.f-check{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--slate);margin-bottom:10px;cursor:pointer}
.f-check:last-child{margin-bottom:0}
.f-check input{width:16px;height:16px;accent-color:var(--action)}
.filter-card .apply-btn{width:100%;justify-content:center;margin-top:6px}

/* ===== TOOLBAR (sort + count + mobile filter trigger) ===== */
.listing-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px;flex-wrap:wrap}
.result-count{font-size:13.5px;color:var(--slate)}
.result-count b{color:var(--ink);font-family:'JetBrains Mono'}

/* ===== Thẻ bộ lọc đang chọn (xoá từng cái) ===== */
.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.active-filters:empty{display:none;margin-bottom:0}
.af-tag{display:flex;align-items:center;gap:7px;background:var(--red-50);border:1px solid var(--red-200);
  color:var(--red-700);font-size:12.5px;font-weight:500;padding:6px 8px 6px 12px;border-radius:var(--r-pill)}
.af-tag button{background:rgba(212,40,45,.15);border:none;border-radius:50%;width:17px;height:17px;
  display:grid;place-items:center;cursor:pointer;color:var(--action);flex:none;padding:0}
.af-tag button:hover{background:var(--action);color:#fff}
.af-tag button svg{width:9px;height:9px;stroke:currentColor;stroke-width:3;fill:none}
.af-clear-all{background:none;border:none;color:var(--muted);font-size:12.5px;font-weight:600;
  cursor:pointer;text-decoration:underline;padding:6px 4px}
.toolbar-right{display:flex;align-items:center;gap:10px}
.sort-select{font-family:inherit;font-size:13px;padding:9px 12px;border:1.5px solid var(--line);
  border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.view-toggle{display:flex;border:1.5px solid var(--line);border-radius:var(--r-sm);overflow:hidden;flex:none}
.vt-btn{width:36px;height:36px;border:none;background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.vt-btn+.vt-btn{border-left:1.5px solid var(--line)}
.vt-btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.vt-btn.active{background:var(--action);color:#fff}

/* ===== List view ===== */
.listing-grid.is-list{display:flex;flex-direction:column;gap:14px}
.listing-grid.is-list .pj-card{display:flex;flex-direction:row;align-items:stretch}
.listing-grid.is-list .pj-card:hover{transform:none}
.listing-grid.is-list .pj-thumb{width:220px;min-height:165px;aspect-ratio:auto;flex:none;align-self:stretch}
.listing-grid.is-list .pj-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding:16px 20px}
.listing-grid.is-list .pj-body .price{border-top:none;padding-top:0;margin-top:8px}
@media(max-width:639px){
  .listing-grid.is-list .pj-card{flex-direction:column}
  .listing-grid.is-list .pj-thumb{width:100%;height:auto;min-height:0;aspect-ratio:16/10}
}
.mobile-filter-btn{display:none;align-items:center;gap:7px;padding:9px 16px;border-radius:var(--r-sm);
  border:1.5px solid var(--line);background:var(--surface);font-size:13px;font-weight:600;color:var(--ink);cursor:pointer}
.mobile-filter-btn svg{width:15px;height:15px;stroke:var(--action);stroke-width:1.8;fill:none}

/* ===== LISTING GRID (tái dùng pj-card) ===== */
.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pj-card{scroll-snap-align:start;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--surface);transition:.18s}
.pj-card:hover{box-shadow:0 14px 30px rgba(15,27,61,.1);transform:translateY(-3px)}
.pj-thumb{aspect-ratio:4/3;position:relative;background:linear-gradient(135deg,#2A3A66,#0F1B3D);overflow:hidden}
.pj-thumb-link{position:absolute;inset:0;z-index:0;display:block}
.pj-thumb-link img{width:100%;height:100%;object-fit:cover;display:block}
.pj-thumb .bdg{position:absolute;top:10px;left:10px;z-index:1;font-size:10.5px;font-weight:700;padding:4px 10px;
  border-radius:var(--r-pill);text-transform:uppercase;letter-spacing:.03em}
.bdg.hot{background:var(--action);color:#fff}
.bdg.new{background:#fff;color:var(--ink)}
.bdg.soon{background:var(--warn);color:#fff}
.bdg.out{background:var(--line);color:var(--ink)}
.pj-thumb .fav{position:absolute;top:10px;right:10px;z-index:1;width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,.92);display:grid;place-items:center;border:none;padding:0;cursor:pointer}
.pj-thumb .fav svg{width:14px;height:14px;stroke:var(--action);fill:none;stroke-width:2}

/* ===== Tooltip dùng chung cho nút tim + nút so sánh (nội dung lấy từ aria-label) ===== */
.pj-thumb .fav::after,
.pj-thumb .cmp-btn::after{
  content:attr(aria-label);position:absolute;top:50%;right:calc(100% + 9px);transform:translateY(-50%) translateX(4px);
  background:var(--ink);color:#fff;font-family:'Be Vietnam Pro';font-size:11px;font-weight:600;
  padding:5px 10px;border-radius:6px;white-space:nowrap;z-index:5;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.pj-thumb .fav::before,
.pj-thumb .cmp-btn::before{
  content:"";position:absolute;top:50%;right:calc(100% + 3px);transform:translateY(-50%);
  border:5px solid transparent;border-left-color:var(--ink);z-index:5;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease}
.pj-thumb .fav:hover::after,.pj-thumb .fav:focus-visible::after,
.pj-thumb .cmp-btn:hover::after,.pj-thumb .cmp-btn:focus-visible::after{
  opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}
.pj-thumb .fav:hover::before,.pj-thumb .fav:focus-visible::before,
.pj-thumb .cmp-btn:hover::before,.pj-thumb .cmp-btn:focus-visible::before{
  opacity:1;visibility:visible}
.pj-body{padding:16px}
.pj-body h3{font-size:15px;font-weight:700;margin-bottom:5px}
.pj-body .loc{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-bottom:2px}
.pj-body .loc svg{width:12px;height:12px;stroke:var(--muted);fill:none;stroke-width:1.8;flex:none}
.pj-body .dev{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:5px;margin-bottom:10px}
.pj-body .dev svg{width:12px;height:12px;stroke:var(--action);stroke-width:1.8;fill:none;flex:none}
.pj-body .stt{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:6px;margin-bottom:10px}
.pj-body .stt .dot{width:7px;height:7px;border-radius:50%;flex:none}
.pj-body .stt .dot.g{background:var(--ok)}
.pj-body .stt .dot.a{background:var(--warn)}
.pj-body .stt .dot.x{background:var(--muted)}
.pj-body .price{font-family:'JetBrains Mono';font-weight:600;color:var(--action);font-size:14.5px;
  display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px dashed var(--line)}
.pj-body .price .typ{font-family:'Be Vietnam Pro';font-size:11px;color:var(--muted);font-weight:500}

/* ===== Riêng cho card DỰ ÁN: hàng tiện ích + hàng CTA ===== */
.pj-body .tienich{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.pj-body .tienich span{font-size:10.5px;background:var(--surface-2);color:var(--slate);padding:3px 8px;border-radius:var(--r-pill);font-weight:600}
.pj-body .cta-row{display:flex;gap:8px;margin-top:12px}
.pj-body .cta-row a{flex:1;text-align:center;font-size:12.5px;font-weight:700;padding:9px 10px;border-radius:var(--r-sm);text-decoration:none;transition:.15s}
.pj-body .cta-row .cta-primary{background:var(--action);color:#fff}
.pj-body .cta-row .cta-primary:hover{background:var(--red-700,#B91C2C)}
.pj-body .cta-row .cta-ghost{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.pj-body .cta-row .cta-ghost:hover{background:var(--surface)}
.pj-thumb .cmp-btn{position:absolute;top:48px;right:10px;z-index:1;width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .15s ease}
.pj-thumb .cmp-btn svg{width:14px;height:14px;stroke:var(--action);stroke-width:1.8;fill:none;transition:stroke .15s ease}
.pj-thumb .cmp-btn:hover{background:#fff}
.pj-thumb .cmp-btn.active{background:var(--action)}
.pj-thumb .cmp-btn.active svg{stroke:#fff}

/* ===== Thanh so sánh nổi ===== */
.compare-bar{position:fixed;left:0;right:0;bottom:0;z-index:140;background:var(--ink);color:#fff;
  padding:14px 24px;display:none;align-items:center;justify-content:center;gap:20px;
  box-shadow:0 -8px 24px rgba(15,27,61,.25);transform:translateY(100%);transition:transform .25s ease}
.compare-bar.show{display:flex;transform:translateY(0)}
.compare-bar .cb-count{font-family:'JetBrains Mono';font-size:13.5px}
.compare-bar .cb-count b{color:var(--red-300)}
.compare-bar .cb-actions{display:flex;gap:10px}
.compare-bar .btn-outline{border-color:rgba(255,255,255,.3);color:#fff;background:transparent}
.compare-bar .btn-outline:hover{background:rgba(255,255,255,.1)}
.pj-empty{display:none;text-align:center;padding:48px 20px;color:var(--muted);font-size:14px;
  border:1px dashed var(--line);border-radius:var(--r-md)}
.pj-empty a{color:var(--action);font-weight:600}

/* ===== PAGINATION ===== */
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:40px}
#pageNumbers{display:flex;align-items:center;gap:6px}
#pageNumbers{display:contents}

/* ===== SEO block (thu gọn mặc định) ===== */
.seo-block{margin:56px 0 56px;padding-top:32px;border-top:1px solid var(--line)}
.seo-block h2{font-size:17px;font-weight:700;margin-bottom:14px}
.seo-content{color:var(--slate);font-size:13.5px;line-height:1.7;max-height:84px;overflow:hidden;position:relative}
.seo-content.expanded{max-height:none}
.seo-content:not(.expanded)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;
  background:linear-gradient(180deg,transparent,var(--paper))}
.seo-content p{margin-bottom:12px}
.seo-content p:last-child{margin-bottom:0}
.seo-toggle{background:none;border:none;color:var(--action);font-size:13px;font-weight:600;cursor:pointer;
  margin-top:10px;padding:0;font-family:inherit}
.seo-toggle:hover{text-decoration:underline}
.page-btn{width:38px;height:38px;border-radius:var(--r-sm);border:1.5px solid var(--line);background:var(--surface);
  display:grid;place-items:center;font-size:13.5px;font-weight:600;color:var(--slate);cursor:pointer}
.page-btn:hover{border-color:var(--red-300);color:var(--action)}
.page-btn.active{background:var(--action);border-color:var(--action);color:#fff}
.page-btn:disabled{cursor:not-allowed}
.page-btn:disabled:hover{border-color:var(--line);color:var(--slate)}
.page-btn.nav-arrow svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none}
.page-dots{color:var(--muted);padding:0 4px}

/* ===== MOBILE FILTER BOTTOM-SHEET ===== */
.filter-sheet-overlay{position:fixed;inset:0;background:rgba(15,27,61,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.filter-sheet-overlay.open{opacity:1;visibility:visible}
.filter-sheet{position:fixed;left:0;right:0;bottom:0;z-index:151;background:#fff;border-radius:20px 20px 0 0;
  max-height:85vh;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s ease}
.filter-sheet.open{transform:translateY(0)}
.fs-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);flex:none}
.fs-head h3{font-size:16px;font-weight:700}
.fs-close{background:var(--surface-2);border:none;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.fs-body{flex:1;overflow-y:auto;padding:20px}
.fs-foot{padding:16px 20px;border-top:1px solid var(--line);flex:none;display:flex;gap:10px}
.fs-foot .btn{flex:1;justify-content:center}

/* ===== BOTTOM TABBAR (mobile, giống trang chủ) ===== */
.bottom-tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(15,27,61,.08);
  padding:8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns:repeat(4,1fr)}
.bottom-tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;
  border-radius:var(--r-sm);color:var(--muted);font-size:10.5px;font-weight:600;min-height:44px;justify-content:center}
.bottom-tabbar a svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
.bottom-tabbar a.active{color:var(--action)}
.bottom-tabbar a.map-btn{position:relative;margin-top:-22px}
.bottom-tabbar a.map-btn .fab{width:46px;height:46px;border-radius:50%;background:var(--action);color:#fff;
  display:grid;place-items:center;box-shadow:0 8px 18px rgba(212,40,45,.4);margin-bottom:2px}
.bottom-tabbar a.map-btn .fab svg{stroke:#fff;width:21px;height:21px}

/* ===== FOOTER (rút gọn, tái dùng token) ===== */
footer{background:var(--ink);color:#B9C0D6;padding:56px 0 24px;margin-top:0}
.ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.ft-brand .logo .nm{color:#fff}
.ft-brand p{font-size:13px;margin-top:14px;max-width:280px;color:#8D96B5}
.ft-col h3{color:#fff;font-size:13.5px;font-weight:700;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em}
.ft-col a{display:block;font-size:13.5px;padding:5px 0;color:#AEB7CE}
.ft-col a:hover{color:#fff}
.ft-bottom{padding-top:20px;display:flex;justify-content:space-between;font-size:12.5px;color:#7C87AC;flex-wrap:wrap;gap:8px}

/* ===== MOBILE DRAWER (giống trang chủ) ===== */
.mobile-drawer-overlay{position:fixed;inset:0;background:rgba(15,27,61,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.mobile-drawer-overlay.open{opacity:1;visibility:visible}
.mobile-drawer{position:fixed;top:0;right:0;bottom:0;width:min(340px,85vw);background:#fff;z-index:151;
  transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column;
  box-shadow:-10px 0 32px rgba(15,27,61,.22)}
.mobile-drawer.open{transform:translateX(0)}
.md-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);flex:none}
.md-head .logo .nm{color:var(--ink);font-size:14px}
.md-head .logo .nm small{display:none}
.md-close{background:var(--surface-2);border:none;border-radius:50%;width:34px;height:34px;
  display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none}
.md-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.md-body{flex:1;overflow-y:auto;padding:10px 10px 20px}
.md-link{display:block;padding:14px 14px;font-size:15px;font-weight:600;color:var(--ink);border-radius:var(--r-sm);text-decoration:none}
.md-link.active{color:var(--action)}
.md-link:active,.md-link:hover{background:var(--surface-2);color:var(--ink)}
.md-link.active:hover,.md-link.active:active{color:var(--action)}
.md-accordion{border-radius:var(--r-sm);overflow:hidden}
.md-acc-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px;background:none;border:none;font-family:inherit;font-size:15px;font-weight:600;
  color:var(--ink);cursor:pointer;border-radius:var(--r-sm);text-align:left}
.md-acc-trigger:hover{background:var(--surface-2)}
.md-acc-trigger svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;transition:transform .2s ease;flex:none;color:var(--muted)}
.md-accordion.open .md-acc-trigger svg{transform:rotate(180deg)}
.md-acc-panel{max-height:0;overflow:hidden;transition:max-height .25s ease}
.md-accordion.open .md-acc-panel{max-height:260px}
.md-acc-panel a{display:block;padding:11px 14px 11px 28px;font-size:13.5px;font-weight:500;color:var(--slate);text-decoration:none}
.md-acc-panel a:hover{color:var(--action)}
.md-foot{padding:16px 18px;border-top:1px solid var(--line);flex:none}

/* ===== RESPONSIVE ===== */
@media(max-width:639px){
  body{padding-bottom:74px} /* chừa chỗ cho bottom tab bar */
  .wrap{padding:0 16px}
  header .hd-row{padding-top:12px;padding-bottom:12px;gap:8px}
  /* Ở màn hình rất hẹp (≤~340px), logo + nút Đăng tin + hamburger cộng lại
     có thể rộng hơn viewport. Cho logo co lại và rút gọn tên bằng "…" thay
     vì để hd-cta (nút Đăng tin/hamburger) bị đẩy tràn ra ngoài mép phải. */
  .logo{flex:1 1 auto;min-width:0}
  .logo .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .hd-cta{flex:none}
  .logo .nm small{display:none}
  nav{display:none}
  .page-head h1{font-size:28px}
  .subcat-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .subcat-chip{flex:none}
  .other-region-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin-top:-10px}
  .other-region-row a{flex:none;white-space:nowrap}
  .listing-layout{grid-template-columns:1fr}
  .filter-card{display:none}
  .mobile-filter-btn{display:flex}
  .listing-grid{grid-template-columns:1fr;gap:14px}
  .ft-grid{grid-template-columns:1fr;gap:26px}
  .breadcrumb{font-size:12px}
  .bottom-tabbar{display:grid}
  /* Thanh so sánh phải nằm TRÊN bottom-tabbar khi cả 2 cùng hiện trên mobile,
     nếu không sẽ đè kín 4 nút điều hướng dưới cùng (Tìm kiếm/Bản đồ/Đã lưu/Tài khoản) */
  .compare-bar{bottom:calc(74px + env(safe-area-inset-bottom))}
}
@media(min-width:640px) and (max-width:1023px){
  .wrap{padding:0 28px}
  nav{display:none}
  .listing-layout{grid-template-columns:1fr}
  .filter-card{display:none}
  .mobile-filter-btn{display:flex}
  .listing-grid{grid-template-columns:repeat(2,1fr)}
  .ft-grid{grid-template-columns:1fr 1fr}
}
@media(min-width:1024px) and (max-width:1199px){
  .logo .nm small{display:none}
}
@media(min-width:1441px){
  .wrap{max-width:1440px}
  .listing-grid{grid-template-columns:repeat(4,1fr)}
}


/* ===== FROM du-an-detail.html ===== */

:root{
  --red-50:#FDECEC;  --red-100:#FBD2D3; --red-200:#F5A6A8; --red-300:#EE797C;
  --red-400:#E85559; --red-500:#E4383D; --red-600:#D4282D; --red-700:#A81F23; --red-800:#7C171A; --red-900:#4F0F11;
  --ink:#0F1B3D; --slate:#3E4A63; --muted:#6C7690;
  --line:#DDE2EC; --paper:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7;
  --action:var(--red-600); --brand:var(--red-500); --ok:#0F8A5F; --warn:#B7791F; --err:#C2451E;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-pill:999px;
  --shadow:0 1px 2px rgba(15,27,61,.06),0 4px 16px rgba(15,27,61,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden} /* chặn tràn ngang ngoài ý muốn (VD: mobile-drawer đóng dùng transform ở ≤320px); không ảnh hưởng các khối cuộn ngang có chủ đích (overflow-x:auto riêng) */
body{font-family:'Be Vietnam Pro',-apple-system,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;font-size:15px}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
.mono{font-family:'JetBrains Mono',monospace}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.btn{font-weight:600;font-size:14px;border:none;border-radius:var(--r-sm);padding:12px 22px;
  cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.15s;text-decoration:none;font-family:inherit}
.btn-primary{background:var(--action);color:#fff}
.btn-primary:hover{background:var(--red-700)}
.btn-outline{background:var(--surface);color:var(--action);border:1.5px solid var(--red-300)}
.btn-outline:hover{background:var(--red-50)}
.btn-ghost{background:transparent;color:var(--slate);border:1.5px solid var(--line)}
.btn-ghost:hover{background:var(--surface-2)}

/* ===== HEADER (giống trang chủ, nhưng luôn nền trắng vì không có hero tối) ===== */
header{position:sticky;top:0;left:0;right:0;z-index:100;background:#fff;
  border-bottom:1px solid var(--line);box-shadow:0 2px 16px rgba(15,27,61,.06)}
header .hd-row{display:flex;align-items:center;justify-content:space-between;padding-top:16px;padding-bottom:16px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo .mark{width:42px;height:42px;border-radius:10px;background:var(--action);color:#fff;
  position:relative;overflow:hidden;display:grid;place-items:center;font-weight:800;font-size:15px;letter-spacing:-.02em}
.logo .mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.logo .nm{font-weight:800;font-size:16px;line-height:1.15;color:var(--ink)}
.logo .nm small{display:block;font-weight:500;font-size:10.5px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.nav-item{position:relative}
nav{display:flex;gap:1px;flex:1;justify-content:center;flex-wrap:wrap}
nav a{display:flex;align-items:center;gap:2px;padding:9px 8px;border-radius:var(--r-sm);font-size:13.5px;font-weight:500;
  color:var(--slate);transition:color .15s ease,background .15s ease;text-decoration:none;white-space:nowrap}
nav a:hover{background:var(--surface-2);color:var(--ink)}
nav a.active{color:var(--action);font-weight:600}
nav a .chev{width:12px;height:12px;stroke:currentColor;stroke-width:1.8;fill:none;transition:transform .18s ease;flex:none}
.nav-item.has-mega:hover .chev{transform:rotate(180deg)}
.mega-panel{position:absolute;top:100%;left:0;margin-top:8px;background:#fff;border-radius:var(--r-md);
  box-shadow:0 18px 40px rgba(15,27,61,.18);padding:8px;min-width:220px;display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:200}
.nav-item.has-mega:hover .mega-panel{opacity:1;visibility:visible;transform:translateY(0)}
.mega-panel a{display:block;padding:9px 12px;font-size:13.5px;font-weight:500;color:var(--slate);border-radius:6px;white-space:nowrap}
.mega-panel a:hover{background:var(--surface-2);color:var(--action)}
.mega-panel a.mega-all{color:var(--action);font-weight:600;margin-top:4px;border-top:1px solid var(--line);padding-top:11px;border-radius:0}
.hd-cta{display:flex;align-items:center;gap:10px;flex:none}
.hamburger{display:none;background:none;border:none;color:var(--ink);cursor:pointer;
  padding:8px;width:38px;height:38px;align-items:center;justify-content:center;border-radius:var(--r-sm)}
.hamburger:hover{background:var(--surface-2)}
.hamburger svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none}
@media(max-width:1023px){.hamburger{display:flex}}
@media(min-width:1024px){.mobile-drawer,.mobile-drawer-overlay{display:none}}

/* ===== BREADCRUMB ===== */
.breadcrumb-strip{background:var(--surface-2);border-bottom:1px solid var(--line)}
.breadcrumb{padding-top:12px;padding-bottom:12px;font-size:13px;color:var(--muted);display:flex;justify-content:flex-start;
  align-items:center;gap:6px;flex-wrap:wrap}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--action)}
.breadcrumb .sep{color:var(--line)}
.breadcrumb .current{color:var(--ink);font-weight:600}

/* ===== HERO DỰ ÁN ===== */
.pj-hero{padding:24px 0 0}
.pj-hero-gallery{position:relative;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/7;
  background:linear-gradient(135deg,#2A3A66,#0F1B3D)}
.pj-hero-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.pj-hero-gallery .bdg{position:absolute;top:16px;left:16px;font-size:11px;font-weight:700;padding:6px 14px;
  border-radius:var(--r-pill);text-transform:uppercase;letter-spacing:.03em}
.pj-hero-gallery .gal-count{position:absolute;bottom:16px;right:16px;background:rgba(15,27,61,.65);color:#fff;
  font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:var(--r-pill);display:flex;align-items:center;gap:6px}
.pj-hero-gallery .gal-count svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:2}
.pj-hero-thumbs{display:flex;gap:8px;margin-top:8px}
.pj-hero-thumbs button{flex:1;aspect-ratio:16/10;border-radius:var(--r-sm);overflow:hidden;border:2px solid transparent;
  padding:0;cursor:pointer;background:linear-gradient(135deg,#2A3A66,#0F1B3D)}
.pj-hero-thumbs button.active{border-color:var(--action)}
.pj-hero-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.pj-hero-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-top:24px;flex-wrap:wrap}
.pj-hero-head h1{font-size:38px;font-weight:800;margin-bottom:8px}
.pj-hero-head .dev-line{font-size:14px;color:var(--slate);display:flex;align-items:center;gap:6px;margin-bottom:4px}
.pj-hero-head .dev-line svg{width:15px;height:15px;stroke:var(--action);stroke-width:1.8;fill:none;flex:none}
.pj-hero-head .loc-line{font-size:13.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.pj-hero-head .loc-line svg{width:14px;height:14px;stroke:var(--muted);stroke-width:1.8;fill:none;flex:none}
.pj-hero-actions{display:flex;gap:10px;flex:none}
.pj-hero-actions .btn-icon{width:44px;height:44px;border-radius:var(--r-sm);border:1.5px solid var(--line);
  background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--slate);padding:0}
.pj-hero-actions .btn-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none}
.pj-hero-actions .btn-icon.saved{border-color:var(--red-300);color:var(--action);background:var(--red-50)}

/* ===== STATS BAR (giá / diện tích / số căn / pháp lý / bàn giao) ===== */
.stats-bar{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;margin:24px 0}
.stats-bar .stat{background:var(--surface);padding:16px 14px;text-align:center}
.stats-bar .stat .lbl{font-size:11px;color:var(--muted);margin-bottom:6px;text-transform:uppercase;letter-spacing:.03em}
.stats-bar .stat .val{font-family:'JetBrains Mono';font-size:15px;font-weight:700;color:var(--ink)}
.stats-bar .stat .val.accent{color:var(--action)}

/* ===== LAYOUT 2 CỘT: nội dung + sidebar sticky CTA ===== */
.pj-detail-layout{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start;padding-bottom:60px}
.pj-main{min-width:0}

/* ===== Khối section dùng chung (Tổng quan/Vị trí/Mặt bằng/Tiến độ/Chính sách/Tiện ích) ===== */
.pj-section{padding:28px 0;border-bottom:1px solid var(--line)}
.pj-section:first-child{padding-top:0}
.pj-section h2{font-size:28px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:10px}
.pj-section h2 svg{width:20px;height:20px;stroke:var(--action);stroke-width:1.8;fill:none;flex:none}
.pj-section .desc{color:var(--slate);font-size:14px;line-height:1.75;margin-bottom:18px}
.pj-section .desc p{margin-bottom:12px}
.pj-section .desc p:last-child{margin-bottom:0}

/* Bảng thông tin nhanh (tổng quan) */
.info-table{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.info-table .row{background:var(--surface);padding:13px 16px;display:flex;justify-content:space-between;gap:12px;font-size:13.5px}
.info-table .row .k{color:var(--muted)}
.info-table .row .v{font-weight:600;color:var(--ink);text-align:right}

/* Vị trí */
.pj-map-box{aspect-ratio:16/6;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;margin-bottom:16px;gap:8px}
.pj-map-box svg{width:20px;height:20px;stroke:var(--muted);stroke-width:1.8;fill:none}
.nearby-list{display:flex;flex-wrap:wrap;gap:8px}
.nearby-list span{font-size:12.5px;background:var(--surface-2);color:var(--slate);padding:6px 12px;
  border-radius:var(--r-pill);font-weight:600;display:flex;align-items:center;gap:5px}

/* Mặt bằng (bảng loại căn) */
.floor-table{width:100%;border-collapse:collapse;font-size:13px}
.floor-table th{text-align:left;padding:10px 12px;background:var(--surface-2);color:var(--slate);
  font-weight:700;font-size:11.5px;text-transform:uppercase;letter-spacing:.03em}
.floor-table td{padding:12px;border-bottom:1px solid var(--line);color:var(--ink)}
.floor-table tr:last-child td{border-bottom:none}
.floor-table .price-cell{font-family:'JetBrains Mono';font-weight:700;color:var(--action)}

/* Tiến độ (timeline) */
.timeline{position:relative;padding-left:28px}
.timeline::before{content:"";position:absolute;left:8px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl-item{position:relative;padding-bottom:22px}
.tl-item:last-child{padding-bottom:0}
.tl-item::before{content:"";position:absolute;left:-28px;top:2px;width:18px;height:18px;border-radius:50%;
  background:var(--surface);border:3px solid var(--line)}
.tl-item.done::before{border-color:var(--ok);background:var(--ok)}
.tl-item.current::before{border-color:var(--action);background:var(--action);box-shadow:0 0 0 4px var(--red-50)}
.tl-item .tl-date{font-family:'JetBrains Mono';font-size:11.5px;color:var(--muted);margin-bottom:3px}
.tl-item .tl-title{font-size:14px;font-weight:700;color:var(--ink)}
.tl-item.current .tl-title{color:var(--action)}
.tl-item .tl-desc{font-size:12.5px;color:var(--slate);margin-top:3px}

/* Chính sách bán hàng */
.policy-list{display:flex;flex-direction:column;gap:12px}
.policy-item{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;background:var(--surface-2);border-radius:var(--r-md)}
.policy-item svg{width:20px;height:20px;stroke:var(--ok);stroke-width:1.8;fill:none;flex:none;margin-top:1px}
.policy-item .t{font-size:13.5px;font-weight:700;color:var(--ink);margin-bottom:2px}
.policy-item .d{font-size:12.5px;color:var(--slate)}

/* Tiện ích */
.amenity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.amenity-item{text-align:center;padding:16px 10px;background:var(--surface-2);border-radius:var(--r-md)}
.amenity-item svg{width:26px;height:26px;stroke:var(--action);stroke-width:1.7;fill:none;margin-bottom:8px}
.amenity-item .t{font-size:12px;font-weight:600;color:var(--ink)}

/* Chủ đầu tư */
.dev-card{display:flex;gap:16px;align-items:center;padding:18px;background:var(--surface-2);border-radius:var(--r-md)}
.dev-card .dev-mark{width:56px;height:56px;border-radius:var(--r-md);background:var(--ink);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:18px;flex:none}
.dev-card .dev-name{font-size:15.5px;font-weight:700;margin-bottom:4px}
.dev-card .dev-meta{font-size:12.5px;color:var(--muted)}

/* FAQ accordion */
.faq-item{border-bottom:1px solid var(--line)}
.faq-item:last-child{border-bottom:none}
.faq-q{width:100%;text-align:left;background:none;border:none;padding:16px 0;display:flex;justify-content:space-between;
  align-items:center;gap:12px;cursor:pointer;font-size:14px;font-weight:700;color:var(--ink)}
.faq-q svg{width:18px;height:18px;stroke:var(--muted);stroke-width:1.8;fill:none;flex:none;transition:transform .2s ease}
.faq-item.open .faq-q svg{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease}
.faq-item.open .faq-a{max-height:200px}
.faq-a p{padding-bottom:16px;font-size:13.5px;color:var(--slate);line-height:1.7}

/* ===== SIDEBAR STICKY: form đăng ký tư vấn ===== */
.pj-sidebar{position:sticky;top:88px}
.lead-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;
  box-shadow:0 10px 30px rgba(15,27,61,.06)}
.lead-card .lc-price{font-family:'JetBrains Mono';font-size:20px;font-weight:800;color:var(--action);margin-bottom:2px}
.lead-card .lc-price small{font-family:'Be Vietnam Pro';font-size:12px;color:var(--muted);font-weight:500}
.lead-card h3{font-size:15px;font-weight:700;margin:14px 0 12px}
.lead-card .field{margin-bottom:12px}
.lead-card .field label{display:block;font-size:12.5px;font-weight:600;color:var(--slate);margin-bottom:6px}
.lead-card .field input,.lead-card .field textarea{width:100%;font-family:inherit;font-size:13.5px;padding:10px 12px;
  border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--surface)}
.lead-card .field textarea{resize:vertical;min-height:64px}
.lead-card .field input:focus,.lead-card .field textarea:focus{outline:none;border-color:var(--action)}
.lead-card .lc-submit{width:100%;justify-content:center;margin-top:4px}
.lead-card .lc-hotline{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;
  padding:11px;border-radius:var(--r-sm);border:1.5px solid var(--line);color:var(--ink);font-weight:700;font-size:13.5px}
.lead-card .lc-hotline svg{width:16px;height:16px;stroke:var(--action);stroke-width:1.8;fill:none}
.lead-card .lc-note{font-size:11.5px;color:var(--muted);text-align:center;margin-top:10px;line-height:1.5}
.lead-success{display:none;text-align:center;padding:20px 10px}
.lead-success.show{display:block}
.lead-success svg{width:40px;height:40px;stroke:var(--ok);stroke-width:1.8;fill:none;margin-bottom:10px}
.lead-success .t{font-weight:700;font-size:14.5px;margin-bottom:4px}
.lead-success .d{font-size:12.5px;color:var(--slate)}

/* ===== Dự án liên quan (tái dùng pj-card) ===== */
.related-track{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

/* ===== Sticky CTA bar (mobile) ===== */
.mobile-cta-bar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:65;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(15,27,61,.08);padding:10px 16px;gap:10px}
.mobile-cta-bar .btn{flex:1;justify-content:center;padding:12px}

/* ===== LISTING GRID (tái dùng pj-card cho Dự án liên quan) ===== */
.pj-card{scroll-snap-align:start;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--surface);transition:.18s}
.pj-card:hover{box-shadow:0 14px 30px rgba(15,27,61,.1);transform:translateY(-3px)}
.pj-thumb{aspect-ratio:4/3;position:relative;background:linear-gradient(135deg,#2A3A66,#0F1B3D);overflow:hidden}
.pj-thumb-link{position:absolute;inset:0;z-index:0;display:block}
.pj-thumb-link img{width:100%;height:100%;object-fit:cover;display:block}
.pj-thumb .bdg{position:absolute;top:10px;left:10px;z-index:1;font-size:10.5px;font-weight:700;padding:4px 10px;
  border-radius:var(--r-pill);text-transform:uppercase;letter-spacing:.03em}
.bdg.hot{background:var(--action);color:#fff}
.bdg.new{background:#fff;color:var(--ink)}
.bdg.soon{background:var(--warn);color:#fff}
.bdg.out{background:var(--line);color:var(--ink)}
.pj-thumb .fav{position:absolute;top:10px;right:10px;z-index:1;width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,.92);display:grid;place-items:center;border:none;padding:0;cursor:pointer}
.pj-thumb .fav svg{width:14px;height:14px;stroke:var(--action);fill:none;stroke-width:2}
.pj-body{padding:16px}
.pj-body h3{font-size:15px;font-weight:700;margin-bottom:5px}
.pj-body .loc{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-bottom:2px}
.pj-body .loc svg{width:12px;height:12px;stroke:var(--muted);fill:none;stroke-width:1.8;flex:none}
.pj-body .dev{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:5px;margin-bottom:10px}
.pj-body .dev svg{width:12px;height:12px;stroke:var(--action);stroke-width:1.8;fill:none;flex:none}
.pj-body .stt{font-size:11.5px;color:var(--slate);font-weight:500;display:flex;align-items:center;gap:6px;margin-bottom:10px}
.pj-body .stt .dot{width:7px;height:7px;border-radius:50%;flex:none}
.pj-body .stt .dot.g{background:var(--ok)}
.pj-body .stt .dot.a{background:var(--warn)}
.pj-body .stt .dot.x{background:var(--muted)}
.pj-body .price{font-family:'JetBrains Mono';font-weight:600;color:var(--action);font-size:14.5px;
  display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px dashed var(--line)}
.pj-body .price .typ{font-family:'Be Vietnam Pro';font-size:11px;color:var(--muted);font-weight:500}

/* ===== BOTTOM TABBAR (mobile, giống trang chủ) ===== */
.bottom-tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(15,27,61,.08);
  padding:8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns:repeat(4,1fr)}
.bottom-tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;
  border-radius:var(--r-sm);color:var(--muted);font-size:10.5px;font-weight:600;min-height:44px;justify-content:center}
.bottom-tabbar a svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
.bottom-tabbar a.active{color:var(--action)}
.bottom-tabbar a.map-btn{position:relative;margin-top:-22px}
.bottom-tabbar a.map-btn .fab{width:46px;height:46px;border-radius:50%;background:var(--action);color:#fff;
  display:grid;place-items:center;box-shadow:0 8px 18px rgba(212,40,45,.4);margin-bottom:2px}
.bottom-tabbar a.map-btn .fab svg{stroke:#fff;width:21px;height:21px}

/* ===== FOOTER (rút gọn, tái dùng token) ===== */
footer{background:var(--ink);color:#B9C0D6;padding:56px 0 24px;margin-top:0}
.ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.ft-brand .logo .nm{color:#fff}
.ft-brand p{font-size:13px;margin-top:14px;max-width:280px;color:#8D96B5}
.ft-col h3{color:#fff;font-size:13.5px;font-weight:700;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em}
.ft-col a{display:block;font-size:13.5px;padding:5px 0;color:#AEB7CE}
.ft-col a:hover{color:#fff}
.ft-bottom{padding-top:20px;display:flex;justify-content:space-between;font-size:12.5px;color:#7C87AC;flex-wrap:wrap;gap:8px}

/* ===== MOBILE DRAWER (giống trang chủ) ===== */
.mobile-drawer-overlay{position:fixed;inset:0;background:rgba(15,27,61,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.mobile-drawer-overlay.open{opacity:1;visibility:visible}
.mobile-drawer{position:fixed;top:0;right:0;bottom:0;width:min(340px,85vw);background:#fff;z-index:151;
  transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column;
  box-shadow:-10px 0 32px rgba(15,27,61,.22)}
.mobile-drawer.open{transform:translateX(0)}
.md-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);flex:none}
.md-head .logo .nm{color:var(--ink);font-size:14px}
.md-head .logo .nm small{display:none}
.md-close{background:var(--surface-2);border:none;border-radius:50%;width:34px;height:34px;
  display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none}
.md-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.md-body{flex:1;overflow-y:auto;padding:10px 10px 20px}
.md-link{display:block;padding:14px 14px;font-size:15px;font-weight:600;color:var(--ink);border-radius:var(--r-sm);text-decoration:none}
.md-link.active{color:var(--action)}
.md-link:active,.md-link:hover{background:var(--surface-2);color:var(--ink)}
.md-link.active:hover,.md-link.active:active{color:var(--action)}
.md-accordion{border-radius:var(--r-sm);overflow:hidden}
.md-acc-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px;background:none;border:none;font-family:inherit;font-size:15px;font-weight:600;
  color:var(--ink);cursor:pointer;border-radius:var(--r-sm);text-align:left}
.md-acc-trigger:hover{background:var(--surface-2)}
.md-acc-trigger svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;transition:transform .2s ease;flex:none;color:var(--muted)}
.md-accordion.open .md-acc-trigger svg{transform:rotate(180deg)}
.md-acc-panel{max-height:0;overflow:hidden;transition:max-height .25s ease}
.md-accordion.open .md-acc-panel{max-height:260px}
.md-acc-panel a{display:block;padding:11px 14px 11px 28px;font-size:13.5px;font-weight:500;color:var(--slate);text-decoration:none}
.md-acc-panel a:hover{color:var(--action)}
.md-foot{padding:16px 18px;border-top:1px solid var(--line);flex:none}

/* ===== RESPONSIVE ===== */
@media(max-width:639px){
  body{padding-bottom:148px} /* chừa chỗ cho bottom-tabbar (74px) + mobile-cta-bar (~64px) chồng lên nhau */
  .wrap{padding:0 16px}
  header .hd-row{padding-top:12px;padding-bottom:12px;gap:8px}
  /* Ở màn hình rất hẹp (≤~340px), logo + nút Đăng tin + hamburger cộng lại
     có thể rộng hơn viewport. Cho logo co lại và rút gọn tên bằng "…" thay
     vì để hd-cta (nút Đăng tin/hamburger) bị đẩy tràn ra ngoài mép phải. */
  .logo{flex:1 1 auto;min-width:0}
  .logo .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .hd-cta{flex:none}
  .logo .nm small{display:none}
  nav{display:none}
  .breadcrumb{font-size:12px}
  .pj-hero-head h1{font-size:28px}
  .pj-hero-actions{width:100%}
  .pj-hero-actions .btn-icon{flex:1;width:auto}
  .stats-bar{grid-template-columns:repeat(2,1fr)}
  .stats-bar .stat:nth-child(5){grid-column:1/-1}
  .pj-detail-layout{grid-template-columns:1fr}
  .pj-sidebar{display:none} /* thay bằng .mobile-cta-bar cố định đáy màn hình */
  .info-table{grid-template-columns:1fr}
  .amenity-grid{grid-template-columns:repeat(2,1fr)}
  .related-track{grid-template-columns:1fr}
  .floor-table{display:block;overflow-x:auto;white-space:nowrap}
  .ft-grid{grid-template-columns:1fr;gap:26px}
  .bottom-tabbar{display:grid}
  .mobile-cta-bar{display:flex}
  /* mobile-cta-bar phải nằm TRÊN bottom-tabbar khi cả 2 cùng hiện trên mobile,
     nếu không sẽ đè kín 4 nút điều hướng dưới cùng (Tìm kiếm/Bản đồ/Đã lưu/Tài khoản) */
  .mobile-cta-bar{bottom:calc(74px + env(safe-area-inset-bottom))}
}
@media(min-width:640px) and (max-width:1023px){
  .wrap{padding:0 28px}
  nav{display:none}
  .pj-detail-layout{grid-template-columns:1fr}
  .pj-sidebar{display:none}
  .related-track{grid-template-columns:repeat(2,1fr)}
  .ft-grid{grid-template-columns:1fr 1fr}
  .mobile-cta-bar{display:flex}
}
@media(min-width:1024px) and (max-width:1199px){
  .logo .nm small{display:none}
}
@media(min-width:1441px){
  .wrap{max-width:1440px}
  .listing-grid{grid-template-columns:repeat(4,1fr)}
}
