/* ============================================================
   HP LAND - Style. Nền trắng, gọn gàng, phông chữ hệ thống.
   ============================================================ */

:root {
  --red: #c8102e;
  --red-dark: #a50d26;
  --text: #212121;
  --text-muted: #6b6b6b;
  --border: #e4e4e4;
  --bg-soft: #f6f6f6;
  --green: #16794c;
  --blue: #2461a8;
  --nav: #14233b;
  --zalo: #0068ff;
  --zalo-dark: #0052cc;
  --max: 1180px;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: Arial, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  transition: all .15s;
}
.btn:hover { border-color: #bcbcbc; color: var(--text); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-zalo { background: var(--zalo); border-color: var(--zalo); color: #fff; font-weight: 700; }
.btn-zalo:hover { background: var(--zalo-dark); border-color: var(--zalo-dark); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 12px 26px; font-size: 15px; }

/* ---------- Header ---------- */
.header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 500; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; letter-spacing: .5px; flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text b { font-size: 18px; color: var(--red); letter-spacing: .4px; white-space: nowrap; }
.logo-text span { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.main-nav { flex: 1 1 auto; }
.main-nav ul { display: flex; justify-content: center; gap: 13px; }
.main-nav a { font-size: 13.5px; padding: 8px 0; color: var(--red); font-weight: 800; white-space: nowrap; letter-spacing: .1px; text-transform: uppercase; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--red-dark); }
.main-nav a.active { color: var(--red); border-bottom-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }
.header-phone { line-height: 1.15; }
.header-phone { font-weight: 700; color: var(--red); font-size: 15px; white-space: nowrap; }
.header-phone small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; }

/* ---------- Hero + Search ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 34px 0 40px; }
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.hero p { color: var(--text-muted); margin-bottom: 22px; font-size: 15px; }

.search-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.search-tab {
  padding: 8px 20px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
  cursor: pointer; font-size: 14px; font-family: inherit; color: var(--text-muted);
}
.search-tab.active { background: var(--red); color: #fff; border-color: var(--red); font-weight: 600; }

.search-fields { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr auto; gap: 10px; }
.search-fields input, .search-fields select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
}
.search-fields input:focus, .search-fields select:focus { outline: none; border-color: var(--red); }

/* ---------- Category quick links ---------- */
.cat-strip { padding: 26px 0 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center;
  background: #fff; transition: box-shadow .15s, border-color .15s;
}
.cat-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); border-color: #d4d4d4; }
.cat-card .cat-ico { color: var(--red); margin-bottom: 8px; display: flex; justify-content: center; }
.cat-card .cat-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cat-card .cat-count { font-size: 12px; color: var(--text-muted); }

/* ---------- Section head ---------- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; border-bottom: 2px solid var(--red); padding-bottom: 8px; }
.section-head h2 { font-size: 19px; font-weight: 700; }
.section-head a { font-size: 13px; color: var(--red); }

/* ---------- Property cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.09); }
.card-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-thumb svg { width: 100%; height: 100%; }
.card-badge {
  position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: var(--radius); font-weight: 600;
}
.card-badge.rent { background: var(--green); }
.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted);
}
.fav-btn:hover { color: var(--red); }
.fav-btn.active { color: var(--red); border-color: var(--red); }
.fav-btn.active svg { fill: var(--red); }

.card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.card-price { color: var(--red); font-weight: 700; font-size: 16px; }
.card-price .sep { color: var(--border); margin: 0 6px; font-weight: 400; }
.card-price .area { color: var(--text); font-weight: 600; font-size: 14px; }
.card-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: 13px; margin: 8px 0; flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-addr { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 4px; margin-top: auto; }
.card-addr span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-cta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 9px 12px; background: var(--red); color: #fff; font-weight: 600; font-size: 13.5px; border-radius: 8px; transition: background .15s; }
.card-cta:hover { background: var(--red-dark); color: #fff; }

/* ---------- Listings layout ---------- */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.filter-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 78px; }
.filter-panel h3 { font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 14px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; background: #fff;
}
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.result-head h1 { font-size: 20px; }
.result-head .count { color: var(--text-muted); font-size: 13px; font-weight: 400; }
.result-list .grid { grid-template-columns: repeat(3, 1fr); }
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- Detail page ---------- */
.breadcrumb { font-size: 12px; color: var(--text-muted); padding: 12px 0; }
.breadcrumb a:hover { color: var(--red); }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.gallery-main { aspect-ratio: 16/9; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-main svg { width: 100%; height: 100%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs div { aspect-ratio: 4/3; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.detail-title { font-size: 22px; font-weight: 700; margin: 16px 0 8px; }
.detail-addr { color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.detail-keyfacts { display: flex; gap: 30px; flex-wrap: wrap; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); margin-bottom: 20px; }
.keyfact small { display: block; color: var(--text-muted); font-size: 12px; }
.keyfact b { font-size: 17px; }
.keyfact b.price { color: var(--red); }
.detail-section { margin-bottom: 24px; }
.detail-section h2 { font-size: 17px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--red); display: inline-block; }
.detail-section p { color: #333; line-height: 1.8; white-space: pre-line; }
#map { height: 320px; border-radius: var(--radius); border: 1px solid var(--border); }

.agent-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 78px; }
.agent-name { font-weight: 700; font-size: 16px; }
.agent-role { color: var(--text-muted); font-size: 12px; margin-bottom: 14px; }
.agent-phone { font-size: 20px; font-weight: 700; color: var(--red); margin-bottom: 12px; }

/* ---------- Forms / Account ---------- */
.page-narrow { max-width: 720px; margin: 0 auto; }
.card-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.notice.ok { background: #e9f6ef; color: var(--green); border: 1px solid #bfe5d0; }
.notice.err { background: #fdecee; color: var(--red); border: 1px solid #f6c9cf; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs-line button { padding: 10px 18px; border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tabs-line button.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ---------- Trust ---------- */
.trust { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; padding: 10px; }
.trust-item .n { font-size: 26px; font-weight: 700; color: var(--red); }
.trust-item .l { color: var(--text-muted); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { background: #1f1f1f; color: #cfcfcf; padding: 36px 0 20px; margin-top: 10px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; margin-bottom: 24px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer a { color: #cfcfcf; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 7px; }
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: #9a9a9a; }
.footer-brand p { margin-top: 10px; color: #9a9a9a; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #333; padding-top: 16px; text-align: center; color: #9a9a9a; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .result-list .grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .agent-box { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav gọn: chuyển sang menu hamburger khi màn hình hẹp hơn 1200px
   (desktop rộng vẫn hiện đủ thanh menu ngang cân đối) */
@media (max-width: 1200px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 8px 16px; flex: none; z-index: 500;
    box-shadow: 0 10px 20px rgba(0,0,0,.07); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; justify-content: flex-start; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 12px 2px; font-size: 15px; border-bottom: none; }
  .main-nav a.active { border-bottom: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .grid, .result-list .grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .search-fields { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .header-top { gap: 10px; }
  .header-phone { display: none; }
  .logo-text span { display: none; }
  .logo-text b { font-size: 15px; }
  .logo-mark { width: 32px; height: 32px; font-size: 13px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 11px; font-size: 12.5px; }
  .nav-toggle { padding: 6px 9px; }
  .hero h1 { font-size: 21px; }
}

/* ============================================================
   TÍNH NĂNG NÂNG CẤP
   ============================================================ */

/* ---------- Badge tin (VIP / xác thực) ---------- */
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 3px; font-weight: 600; }
.tag-vip { background: #fff4e5; color: #c77700; border: 1px solid #f3d9b0; }
.tag-verified { background: #e9f6ef; color: var(--green); border: 1px solid #bfe5d0; }

/* ---------- Autocomplete ---------- */
.ac-wrap { position: relative; }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius); z-index: 50; max-height: 240px; overflow: auto;
  box-shadow: 0 6px 16px rgba(0,0,0,.1); display: none; }
.ac-list.open { display: block; }
.ac-item { padding: 9px 12px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ac-item:hover, .ac-item.active { background: var(--bg-soft); }
.ac-item svg { color: var(--text-muted); flex: none; }

/* ---------- Map + list split ---------- */
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { border: none; background: #fff; padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--text-muted); }
.view-toggle button.active { background: var(--red); color: #fff; }
.result-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.result-split.list-only { grid-template-columns: 1fr; }
.result-split.list-only #listing-map-wrap { display: none; }
#listing-map-wrap { position: sticky; top: 78px; }
#listing-map { height: calc(100vh - 130px); min-height: 420px; border: 1px solid var(--border); border-radius: var(--radius); }
.result-split .grid { grid-template-columns: 1fr 1fr; }
.result-split.list-only .grid { grid-template-columns: repeat(3, 1fr); }
.leaflet-popup-content { margin: 8px 10px; font-family: inherit; }
.map-pop b { color: var(--red); display: block; }
.map-pop a { color: var(--text); font-size: 12px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
  cursor: pointer; font-family: inherit; font-size: 14px; color: var(--text); padding: 0 10px; }
.pagination button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.pagination button.active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: default; }

/* ---------- Compare (so sánh) ---------- */
.compare-chk { position: absolute; top: 8px; right: 44px; background: rgba(255,255,255,.92); border: 1px solid var(--border);
  border-radius: 3px; padding: 3px 6px; font-size: 11px; cursor: pointer; display: flex; align-items: center; gap: 4px; color: var(--text-muted); }
.compare-chk input { margin: 0; cursor: pointer; }
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1f1f1f; color: #fff; padding: 12px 0;
  z-index: 600; transform: translateY(100%); transition: transform .2s; }
.compare-bar.show { transform: translateY(0); }
.compare-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compare-bar .items { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.compare-bar .chip { background: #333; padding: 5px 10px; border-radius: 3px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 12px; text-align: left; font-size: 14px; vertical-align: top; }
.compare-table th { background: var(--bg-soft); width: 160px; font-weight: 600; }
.compare-table .thumb { aspect-ratio: 4/3; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 900; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 90vw; max-height: 82vh; }
.lightbox-inner svg { width: 80vw; max-width: 900px; height: auto; border-radius: var(--radius); background: #fff; }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; background: none; border: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff;
  border: none; font-size: 30px; width: 50px; height: 60px; cursor: pointer; }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }
.lightbox-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }
.gallery-main { cursor: zoom-in; }

/* ---------- Phone reveal / Zalo ---------- */
.phone-reveal { background: none; border: none; color: var(--red); font-size: 20px; font-weight: 700; cursor: pointer;
  font-family: inherit; padding: 0; text-align: left; }
.phone-reveal small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.btn-zalo { background: #0068ff; border-color: #0068ff; color: #fff; }
.btn-zalo:hover { background: #0055d4; border-color: #0055d4; color: #fff; }
.report-link { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.report-link:hover { color: var(--red); }

/* ---------- Modal chung ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 800; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 22px; max-width: 420px; width: 100%; }
.modal-box h3 { margin-bottom: 14px; }
.modal-box .close-x { float: right; cursor: pointer; color: var(--text-muted); font-size: 20px; border: none; background: none; }

/* ---------- Máy tính lãi vay ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-result { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.calc-result .big { font-size: 26px; font-weight: 700; color: var(--red); }
.calc-result .line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.calc-result .line:last-child { border: none; }

/* ---------- Recently viewed ---------- */
.recent-strip .grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .result-split, .result-split.list-only { grid-template-columns: 1fr; }
  #listing-map-wrap { position: static; order: -1; }
  #listing-map { height: 300px; }
  .result-split .grid, .result-split.list-only .grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .recent-strip .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .result-split .grid, .result-split.list-only .grid { grid-template-columns: 1fr 1fr; }
  .compare-bar .items { display: none; }
  .lightbox-inner svg { width: 94vw; }
}

/* ============================================================
   ĐÁNH GIÁ (SAO) · REVIEW · BẢNG GIÁ · CÔNG TY
   ============================================================ */

/* ---------- Sao đánh giá ---------- */
.stars { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.stars svg { width: 15px; height: 15px; }
.star-on { color: #f5a623; fill: #f5a623; }
.star-off { color: #d8d8d8; fill: #d8d8d8; }
.rating-num { font-weight: 700; color: #f5a623; margin-left: 4px; }
.rating-count { color: var(--text-muted); font-size: 12px; margin-left: 4px; }

/* ---------- Review ---------- */
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.review-name { font-weight: 600; }
.review-date { color: var(--text-muted); font-size: 12px; }
.review-text { color: #333; line-height: 1.7; }
.rating-summary { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); margin-bottom: 18px; flex-wrap: wrap; }
.rating-big { font-size: 38px; font-weight: 700; color: #f5a623; line-height: 1; }

/* ---------- Bảng giá khu vực ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { border: 1px solid var(--border); padding: 12px; text-align: left; font-size: 14px; }
.price-table th { background: var(--bg-soft); font-weight: 600; }
.price-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.trend-up { color: var(--green); font-weight: 600; }
.trend-down { color: var(--red); font-weight: 600; }
.trend-flat { color: var(--text-muted); }
.spark { display: inline-block; vertical-align: middle; }
.spark svg { display: block; }
.price-note { color: var(--text-muted); font-size: 13px; margin-top: 14px; line-height: 1.7; }
.area-price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.area-price-card h3 { font-size: 16px; margin-bottom: 4px; }
.area-price-card .apm { color: var(--red); font-weight: 700; font-size: 20px; }

/* ---------- Công ty ---------- */
.company-hero { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.company-hero h1 { font-size: 26px; margin-bottom: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0; }
.stat-box { text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-box .n { font-size: 24px; font-weight: 700; color: var(--red); }
.stat-box .l { color: var(--text-muted); font-size: 12px; }

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 8px; }
}


/* ===== Thanh liên hệ dính đáy (mobile) + nút liên hệ trên thẻ tin ===== */
.sticky-contact{display:none}
.card-contact .btn{display:inline-flex;align-items:center;justify-content:center}
@media (max-width:768px){
  .sticky-contact{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;box-shadow:0 -2px 12px rgba(0,0,0,.18)}
  .sticky-contact a{flex:1;text-align:center;padding:14px 8px;font-weight:700;color:#fff;background:#d0021b;text-decoration:none;font-size:15px}
  .sticky-contact a.zalo{background:#0068ff}
  body{padding-bottom:58px}
}
