/* =============================================
   DESIGN DIRECTION:
   "Luxury Editorial" – Như một tạp chí bất động
   sản cao cấp. Tối giản nhưng ấm áp. Màu:
   - Xanh rừng đậm (tin tưởng, ổn định, tài sản)
   - Trắng kem (sạch, không phô trương)  
   - Vàng đồng (giá trị, thẩm định, chọn lọc)
   - Ảnh chiếm ưu thế, chữ tối giản
   ============================================= */

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

:root {
  /* Màu chủ đạo – Xanh rừng: uy tín, bền vững */
  --forest:    #1a3a2a;
  --forest-md: #245c3e;
  --forest-lt: #2d7a52;
  /* Vàng đồng – Giá trị thẩm định */
  --gold:      #b8965a;
  --gold-lt:   #d4aa72;
  --gold-pale: #f5efe4;
  /* Trung tính */
  --ink:       #1a1a1a;
  --ink2:      #2d2d2d;
  --slate:     #5a6472;
  --mist:      #94a3b0;
  --border:    #e8e2d9;
  --cream:     #faf8f4;
  --white:     #ffffff;
  /* Trạng thái */
  --verified:  #1a3a2a;
  --new:       #b8965a;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;
  --radius:     10px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  --shadow:     0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--ff-body); }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media(min-width:768px){ .wrap { padding: 0 32px; } }
@media(min-width:1280px){ .wrap { padding: 0 48px; } }

.sec { padding: 56px 0; }
@media(min-width:768px){ .sec { padding: 80px 0; } }

.sec-label {
  font-family: var(--ff-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.sec-label::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--gold);
}
.sec-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.25;
}
.sec-title em { color: var(--forest-md); font-style: normal; }
.sec-sub { color: var(--slate); font-size: .9rem; margin-top: 8px; line-height: 1.7; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: var(--forest);
  color: rgba(255,255,255,.6);
  font-size: 12px; padding: 9px 0;
}
.topbar .wrap {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.topbar-l { display: flex; align-items: center; gap: 6px; }
.topbar-l span { color: var(--gold-lt); font-weight: 600; }
.topbar-r { display: flex; gap: 18px; }
.topbar-r a { color: rgba(255,255,255,.55); transition: color .2s; font-size: 12px; }
.topbar-r a:hover { color: rgba(255,255,255,.9); }
@media(max-width:640px){ .topbar-r { display: none; } }

/* =============================================
   NAVBAR – Mobile-first sticky
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.navbar .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 12px;
}
@media(min-width:768px){ .navbar .wrap { height: 72px; } }

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 700;
  color: var(--forest); white-space: nowrap; flex-shrink: 0;
}
.logo-sq {
  width: 34px; height: 34px; background: var(--forest);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-sq svg { width: 18px; height: 18px; }
.nav-logo sup {
  font-family: var(--ff-body); font-size: 9px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  vertical-align: super;
}

/* Desktop menu */
.nav-menu {
  display: none; list-style: none; align-items: center; gap: 2px;
}
@media(min-width:900px){ .nav-menu { display: flex; } }
.nav-menu li a {
  padding: 7px 14px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--slate);
  transition: all .2s; white-space: nowrap;
}
.nav-menu li a:hover { color: var(--forest); background: var(--gold-pale); }
.nav-menu li a.active { color: var(--forest); font-weight: 600; }

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: none; font-size: 13.5px; font-weight: 600;
  color: var(--forest); align-items: center; gap: 5px;
}
@media(min-width:640px){ .nav-phone { display: flex; } }
.nav-phone .ph-num { color: var(--forest-md); font-weight: 700; }
.btn-nav-cta {
  background: var(--forest); color: var(--white);
  border: none; padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--forest-md); transform: translateY(-1px); }

/* Hamburger */
.nav-ham {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
@media(min-width:900px){ .nav-ham { display: none; } }
.nav-ham span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 499;
  padding: 24px 20px; overflow-y: auto;
  flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 16px; border-radius: 9px;
  font-size: 16px; font-weight: 500; color: var(--ink2);
  border: 1px solid transparent; transition: all .2s;
}
.mobile-menu a:hover { background: var(--gold-pale); border-color: var(--border); color: var(--forest); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu .mm-phone {
  padding: 14px 16px; background: var(--forest); border-radius: 9px;
  color: var(--white); font-weight: 700; font-size: 15px;
  text-align: center; margin-top: 8px;
}

/* =============================================
   HERO – Mobile-first
   ============================================= */
.hero {
  background: var(--forest);
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
}

/* Ảnh nền */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1400&q=75');
  background-size: cover; background-position: center;
  opacity: .25;
  transform: scale(1.03);
  animation: zoomout 12s ease-out forwards;
}
@keyframes zoomout { from{transform:scale(1.07)} to{transform:scale(1)} }

/* Gradient overlay */
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,28,18,.2) 0%,
    rgba(10,28,18,.6) 50%,
    rgba(10,28,18,.92) 100%
  );
}

/* Content */
.hero-body {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 80px 20px 36px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
@media(min-width:768px){ .hero-body { padding: 100px 32px 48px; } }
@media(min-width:1280px){ .hero-body { padding: 120px 48px 60px; } }

.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(184,150,90,.18); border: 1px solid rgba(184,150,90,.4);
  color: var(--gold-lt); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 20px; width: fit-content;
}
.hero-chip-dot { width: 6px; height: 6px; background: var(--gold-lt); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.18; margin-bottom: 18px;
  max-width: 720px;
}
.hero h1 .gold { color: var(--gold-lt); }

.hero-sub {
  font-size: .95rem; color: rgba(255,255,255,.65);
  max-width: 520px; line-height: 1.75; margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-hero-p {
  background: var(--gold); color: var(--white);
  border: none; padding: 13px 26px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  transition: all .2s;
}
.btn-hero-p:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,150,90,.4); }
.btn-hero-s {
  background: rgba(255,255,255,.1); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25); padding: 13px 24px;
  border-radius: 9px; font-size: 14.5px; font-weight: 500;
  backdrop-filter: blur(8px); transition: all .2s;
}
.btn-hero-s:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

/* Verified badge bar */
.hero-badge-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 16px 20px; flex-wrap: wrap;
}
@media(min-width:640px){ .hero-badge-bar { flex-wrap: nowrap; } }
.hbb-item { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; }
.hbb-icon { width: 36px; height: 36px; background: rgba(184,150,90,.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.hbb-num { font-size: 1.1rem; font-weight: 800; color: var(--white); line-height: 1; }
.hbb-lbl { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 2px; }
.hbb-div { width: 1px; height: 36px; background: rgba(255,255,255,.1); flex-shrink: 0; }
@media(max-width:639px){ .hbb-div { display: none; } .hbb-item { min-width: calc(50% - 5px); } }

/* Districts tabs on hero */
.hero-districts {
  position: absolute; top: 80px; right: 20px;
  display: none;
}
@media(min-width:1024px){ .hero-districts { display: block; } }
.hd-wrap {
  background: rgba(255,255,255,.07); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px;
}
.hd-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.hd-list { display: flex; flex-direction: column; gap: 4px; }
.hd-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; transition: background .2s;
  font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500;
}
.hd-item:hover, .hd-item.active { background: rgba(255,255,255,.1); color: var(--white); }
.hd-item .count { font-size: 12px; color: var(--gold-lt); font-weight: 600; }

/* =============================================
   SEARCH BAR – nằm ngay dưới hero
   ============================================= */
.search-sec { background: var(--cream); padding: 0; }
.search-wrap {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 -4px 0 var(--gold);
  padding: 24px 20px 20px;
  margin-top: -28px; position: relative; z-index: 10;
}
@media(min-width:768px){ .search-wrap { padding: 28px 32px 24px; } }

.search-title { font-size: 13px; font-weight: 600; color: var(--forest); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.search-title span { background: var(--gold); color: var(--white); font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 700; letter-spacing: .5px; }

.search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media(min-width:540px){ .search-fields { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px){ .search-fields { grid-template-columns: 1fr 1fr 1fr auto; } }

.sf label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--mist); margin-bottom: 5px; }
.sf select, .sf input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: var(--ff-body); font-size: 14px; color: var(--ink);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.sf select:focus, .sf input:focus {
  border-color: var(--forest-md);
  box-shadow: 0 0 0 3px rgba(45,122,82,.1);
}
.sf-btn {
  background: var(--forest); color: var(--white); border: none;
  padding: 11px 24px; border-radius: 9px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s, transform .15s;
  width: 100%;
}
@media(min-width:540px){ .sf-btn { width: auto; align-self: flex-end; } }
@media(min-width:900px){ .sf-btn { padding: 11px 28px; } }
.sf-btn:hover { background: var(--forest-md); transform: translateY(-1px); }

/* =============================================
   VERIFIED RIBBON
   ============================================= */
.verified-ribbon {
  background: var(--forest);
  color: rgba(255,255,255,.7);
  padding: 12px 0;
}
.ribbon-inner {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.ribbon-inner::-webkit-scrollbar { display: none; }
.ri-item {
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; padding: 0 20px;
  font-size: 12.5px; border-right: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.ri-item:last-child { border-right: none; }
.ri-icon { color: var(--gold-lt); font-size: 14px; }
.ri-item strong { color: var(--white); font-weight: 600; }

/* =============================================
   LISTINGS – Kho hàng đã thẩm định
   ============================================= */
.listings-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 28px;
}
@media(min-width:640px){ .listings-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* Filter chips */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--slate); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--forest-md); color: var(--forest); }
.chip.active { background: var(--forest); border-color: var(--forest); color: var(--white); }
.chip-count { font-size: 11px; opacity: .7; margin-left: 3px; }

/* Grid */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width:600px){ .listings-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .listings-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Card */
.lcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.lcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,58,42,.1);
}

/* Card image */
.lc-photo { position: relative; overflow: hidden; height: 200px; }
@media(min-width:768px){ .lc-photo { height: 215px; } }
.lc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lcard:hover .lc-photo img { transform: scale(1.05); }
.lc-over { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.45) 100%); }

/* Verified stamp */
.verified-stamp {
  position: absolute; top: 12px; left: 12px;
  background: var(--forest); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 4px 10px 4px 8px;
  border-radius: 5px; display: flex; align-items: center; gap: 4px;
}
.vs-dot { width: 5px; height: 5px; background: var(--gold-lt); border-radius: 50%; }

/* New badge */
.new-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 9px; border-radius: 4px;
}

/* Save */
.lc-save {
  position: absolute; bottom: 12px; right: 12px;
  width: 30px; height: 30px; background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; backdrop-filter: blur(4px);
  transition: background .2s, transform .15s;
}
.lc-save:hover { background: var(--white); transform: scale(1.1); }

/* Price on photo */
.lc-photo-price {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700;
  color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.lc-photo-price small { font-size: .7rem; font-weight: 400; font-family: var(--ff-body); opacity: .85; }

/* Card body */
.lc-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.lc-title {
  font-family: var(--ff-display); font-size: .98rem; font-weight: 600;
  color: var(--ink); line-height: 1.45; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lc-loc { font-size: 12.5px; color: var(--slate); display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.lc-loc svg { flex-shrink: 0; }

/* Specs */
.lc-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--border); border-radius: 9px;
  overflow: hidden; margin-bottom: 14px;
}
.lc-spec {
  padding: 9px 8px; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--border);
}
.lc-spec:last-child { border-right: none; }
.spec-val { font-size: 13px; font-weight: 700; color: var(--ink); }
.spec-lbl { font-size: 10.5px; color: var(--mist); }

/* Agent */
.lc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.lc-agent { display: flex; align-items: center; gap: 8px; }
.lc-agent img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.agent-info { font-size: 12px; }
.agent-info .name { font-weight: 600; color: var(--ink2); }
.agent-info .zone { color: var(--mist); }
.lc-cta {
  background: var(--gold-pale); color: var(--forest);
  border: none; padding: 7px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600; transition: all .2s;
}
.lc-cta:hover { background: var(--gold); color: var(--white); }

/* FEATURED – span 2 cols on ≥600px */
.lcard.feat { order: -1; }
@media(min-width:600px){ .lcard.feat { grid-column: span 2; } }
.lcard.feat .lc-photo { height: 260px; }
@media(min-width:768px){ .lcard.feat .lc-photo { height: 300px; } }
.lcard.feat .lc-photo-price { font-size: 1.35rem; }

/* =============================================
   KHOÁ HÀNG – THẨM ĐỊNH PROCESS
   ============================================= */
.process-sec { background: var(--cream); }
.process-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 36px;
}
@media(min-width:640px){ .process-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px){ .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 22px;
  position: relative; overflow: hidden;
  transition: all .25s;
}
.process-card:hover { border-color: var(--forest-md); box-shadow: var(--shadow); }
.process-num {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--ff-display); font-size: 2.5rem; font-weight: 800;
  color: var(--gold-pale); line-height: 1;
}
.process-icon { font-size: 1.6rem; margin-bottom: 14px; }
.process-card h4 { font-family: var(--ff-display); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.process-card p { font-size: 13px; color: var(--slate); line-height: 1.65; }

/* =============================================
   DISTRICTS – Khu vực
   ============================================= */
.districts-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 32px;
}
@media(min-width:640px){ .districts-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:900px){ .districts-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.dcard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 16px;
  text-align: center; cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
}
.dcard::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--forest), var(--gold));
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.dcard:hover::before { transform: scaleX(1); }
.dcard:hover { border-color: var(--forest-md); box-shadow: var(--shadow); }
.dcard-icon { font-size: 1.5rem; margin-bottom: 8px; }
.dcard-name { font-size: 13.5px; font-weight: 700; color: var(--ink2); margin-bottom: 3px; }
.dcard-count { font-size: 12px; color: var(--gold); font-weight: 600; }
.dcard-avg { font-size: 11px; color: var(--mist); margin-top: 2px; }

/* =============================================
   MARKET INSIGHT – Số liệu
   ============================================= */
.insight-sec { background: var(--forest); }
.insight-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.07);
  border-radius: 14px; overflow: hidden;
  margin-top: 36px;
}
@media(min-width:768px){ .insight-grid { grid-template-columns: repeat(4, 1fr); } }
.insight-box {
  background: var(--forest); padding: 28px 24px;
  transition: background .2s; text-align: center;
}
.insight-box:hover { background: rgba(255,255,255,.04); }
.insight-num {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 800;
  color: var(--white); line-height: 1;
}
.insight-num span { color: var(--gold-lt); }
.insight-lbl { font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 6px; }
.insight-trend { font-size: 11.5px; margin-top: 5px; }
.trend-up { color: #6ee7b7; }
.trend-dn { color: #fca5a5; }

/* =============================================
   PRICE TABLE – Bảng giá theo khu vực
   ============================================= */
.price-table-wrap { overflow-x: auto; margin-top: 32px; }
.price-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.price-table th {
  background: var(--forest); color: rgba(255,255,255,.75);
  font-size: 11.5px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; padding: 12px 16px; text-align: left;
}
.price-table th:first-child { border-radius: 9px 0 0 0; }
.price-table th:last-child { border-radius: 0 9px 0 0; text-align: right; }
.price-table td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--cream); }
.price-table td:last-child { text-align: right; }
.pt-district { font-weight: 600; color: var(--ink2); }
.pt-range { color: var(--slate); font-size: 13px; }
.pt-avg { font-weight: 700; color: var(--forest); }
.pt-change { font-size: 13px; font-weight: 600; }
.up { color: var(--forest-md); }
.dn { color: #dc2626; }
.pt-source { font-size: 12px; color: var(--mist); margin-top: 12px; text-align: right; }

/* =============================================
   NEWS / SEO – Đúng chủ đề khu vực phía Tây
   ============================================= */
.news-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-top: 32px;
}
@media(min-width:900px){ .news-layout { grid-template-columns: 5fr 3fr; gap: 28px; } }

/* Main article */
.news-main-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: all .25s;
}
.news-main-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.nmc-img { height: 220px; overflow: hidden; }
@media(min-width:640px){ .nmc-img { height: 260px; } }
.nmc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-main-card:hover .nmc-img img { transform: scale(1.04); }
.nmc-body { padding: 22px 24px; }
.nmc-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.nmc-cat::before { content: ''; width: 16px; height: 1.5px; background: var(--gold); }
.nmc-title { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 10px; }
.nmc-excerpt { font-size: 13.5px; color: var(--slate); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nmc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.nmc-date { font-size: 12px; color: var(--mist); }
.nmc-read { font-size: 13px; font-weight: 600; color: var(--forest-md); display: flex; align-items: center; gap: 4px; }

/* Side list */
.news-side { display: flex; flex-direction: column; gap: 1px; }
.news-side-item {
  display: flex; gap: 14px; padding: 14px;
  background: var(--white); border: 1px solid var(--border);
  transition: all .2s; cursor: pointer;
}
.news-side-item:first-child { border-radius: 12px 12px 0 0; }
.news-side-item:last-child { border-radius: 0 0 12px 12px; }
.news-side-item + .news-side-item { border-top: none; }
.news-side-item:hover { background: var(--cream); }
.nsi-img { width: 74px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.nsi-img img { width: 100%; height: 100%; object-fit: cover; }
.nsi-body { flex: 1; min-width: 0; }
.nsi-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.nsi-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nsi-date { font-size: 11px; color: var(--mist); margin-top: 5px; }

/* =============================================
   CTA ĐỊNH GIÁ
   ============================================= */
.valuation-cta {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-md) 100%);
  border-radius: 16px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative; overflow: hidden;
}
@media(min-width:768px){ .valuation-cta { flex-direction: row; align-items: center; padding: 44px 48px; } }
.vc-deco {
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.04);
  pointer-events: none;
}
.vc-deco2 {
  position: absolute; right: 60px; bottom: -60px;
  width: 150px; height: 150px;
  border-radius: 50%; background: rgba(184,150,90,.08);
  pointer-events: none;
}
.vc-body { flex: 1; position: relative; z-index: 1; }
.vc-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.vc-title { font-family: var(--ff-display); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 10px; }
.vc-desc { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.7; max-width: 460px; }
.vc-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; flex-shrink: 0; }
.btn-vc-p { background: var(--gold); color: var(--white); border: none; padding: 12px 26px; border-radius: 9px; font-size: 14px; font-weight: 600; transition: all .2s; white-space: nowrap; }
.btn-vc-p:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-vc-s { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.2); padding: 12px 24px; border-radius: 9px; font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap; }
.btn-vc-s:hover { background: rgba(255,255,255,.18); }

/* =============================================
   AGENTS
   ============================================= */
.agents-sec { background: var(--cream); }
.agents-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 32px;
}
@media(min-width:900px){ .agents-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.agent-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 18px 18px;
  text-align: center; transition: all .25s;
}
.agent-card:hover { box-shadow: var(--shadow); border-color: rgba(26,58,42,.15); transform: translateY(-2px); }
.agent-av {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
  border: 3px solid var(--border);
  display: block;
}
@media(min-width:640px){ .agent-av { width: 80px; height: 80px; } }
.agent-name { font-family: var(--ff-display); font-size: .92rem; font-weight: 700; color: var(--ink); }
.agent-zone { font-size: 11.5px; color: var(--gold); font-weight: 600; margin: 3px 0 10px; }
.agent-stats { display: flex; justify-content: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.ast-val { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.ast-lbl { font-size: 10px; color: var(--mist); }
.agent-zalo {
  width: 100%; background: var(--forest); color: var(--white);
  border: none; padding: 9px; border-radius: 8px;
  font-size: 13px; font-weight: 600; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.agent-zalo:hover { background: var(--forest-md); }

/* =============================================
   TESTIMONIAL
   ============================================= */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 32px;
}
@media(min-width:640px){ .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px){ .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 22px; position: relative;
  transition: all .25s;
}
.testi-card:hover { box-shadow: var(--shadow); }
.testi-quote { font-size: 2.5rem; line-height: 1; color: var(--gold-pale); font-family: Georgia, serif; position: absolute; top: 16px; right: 18px; }
.testi-text { font-size: 13.5px; color: var(--slate); line-height: 1.75; margin-bottom: 18px; font-style: italic; }
.testi-meta { display: flex; align-items: center; gap: 10px; }
.testi-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testi-name { font-size: 13px; font-weight: 700; color: var(--ink2); }
.testi-deal { font-size: 11.5px; color: var(--gold); font-weight: 500; }
.testi-stars { color: var(--gold); font-size: 12px; margin-top: 2px; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-sec { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-inner {
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px 0;
}
@media(min-width:768px){ .newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.nl-text h3 { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.nl-text p { font-size: 13.5px; color: var(--slate); margin-top: 4px; }
.nl-form { display: flex; gap: 10px; flex-direction: column; width: 100%; }
@media(min-width:480px){ .nl-form { flex-direction: row; } }
@media(min-width:768px){ .nl-form { width: auto; } }
.nl-form input {
  flex: 1; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: 9px; font-family: var(--ff-body); font-size: 14px;
  outline: none; transition: border-color .2s; min-width: 220px;
}
.nl-form input:focus { border-color: var(--forest); }
.nl-form button {
  background: var(--forest); color: var(--white); border: none;
  padding: 11px 22px; border-radius: 9px; font-family: var(--ff-body);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s;
}
.nl-form button:hover { background: var(--forest-md); }

/* =============================================
   FLOATING BUTTONS – Mobile-friendly
   ============================================= */
.floating {
  position: fixed; bottom: 20px; right: 16px;
  z-index: 999; display: flex; flex-direction: column; gap: 10px;
}
.fl-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s;
}
.fl-btn:hover { transform: scale(1.08); }
.fl-phone { background: #25d366; color: var(--white); animation: jiggle 4s infinite; }
@keyframes jiggle { 0%,85%,100%{transform:rotate(0)} 87%{transform:rotate(-12deg)} 89%{transform:rotate(12deg)} 91%{transform:rotate(-8deg)} 93%{transform:rotate(8deg)} }
.fl-zalo { background: #0068ff; color: var(--white); }
.fl-top {
  background: rgba(255,255,255,.92); color: var(--ink);
  border: 1px solid var(--border); font-size: 16px;
}
@media(min-width:900px){
  .floating { bottom: 28px; right: 28px; }
  .fl-btn { width: 50px; height: 50px; }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--forest);
  color: rgba(255,255,255,.55);
  padding: 52px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding-bottom: 44px;
}
@media(min-width:640px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media(min-width:1024px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand .nav-logo { color: var(--white); margin-bottom: 14px; display: flex; }
.footer-brand .nav-logo sup { color: var(--gold-lt); }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fc-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.fc-icon { color: var(--gold-lt); flex-shrink: 0; margin-top: 1px; }

.footer-col h5 { color: var(--white); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 13.5px; color: rgba(255,255,255,.5); transition: color .2s; line-height: 1.5; }
.footer-col li a:hover { color: rgba(255,255,255,.9); }

/* SEO Links – good for internal linking */
.footer-seo-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seo-link { font-size: 12px; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.1); padding: 3px 10px; border-radius: 10px; transition: all .2s; }
.seo-link:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  display: flex; flex-direction: column; gap: 12px;
  text-align: center;
}
@media(min-width:640px){ .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }
.footer-bottom span { font-size: 12.5px; }
.socials { display: flex; gap: 8px; justify-content: center; }
@media(min-width:640px){ .socials { justify-content: flex-end; } }
.soc-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55);
  transition: all .2s;
}
.soc-btn:hover { background: var(--gold); color: var(--white); }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger delays */
.reveal-1 { transition-delay: .05s; }
.reveal-2 { transition-delay: .12s; }
.reveal-3 { transition-delay: .19s; }
.reveal-4 { transition-delay: .26s; }
.reveal-5 { transition-delay: .33s; }
.reveal-6 { transition-delay: .40s; }
