/* =========================================================
   Hưng Bình – Bất động sản
   Màu lấy từ logo: xanh #095325, cam #FA6517.
   Font: Be Vietnam Pro (thiết kế cho tiếng Việt, dấu chồng hiển thị chuẩn).
   ========================================================= */

:root {
  /* Xanh thương hiệu */
  --g-950: #03200f;   /* đáy footer, top bar */
  --g-900: #05331b;   /* nền banner, footer */
  --g-800: #095325;   /* xanh logo */
  --g-700: #0d6a31;   /* hover */
  --g-100: #e2eee3;
  --g-50:  #f1f7f0;

  /* Cam thương hiệu */
  --o-500: #fa6517;   /* cam logo: nét mái, icon, viền */
  --o-600: #cf4a06;   /* nền nút, giá tiền (chữ trắng đủ tương phản) */
  --o-700: #b23f05;   /* hover */
  --o-400: #ff8a4c;   /* cam trên nền xanh đậm */
  --o-100: #ffeee3;

  --ink: #10231a;     /* tiêu đề */
  --body: #33443a;    /* chữ thường */
  --muted: #66776c;   /* chữ phụ */
  --line: #dfe7de;
  --bg: #f4f7f3;
  --white: #ffffff;
  --zalo: #0068ff;

  --shadow-sm: 0 1px 2px rgba(16, 35, 26, .06), 0 4px 14px -6px rgba(16, 35, 26, .12);
  --shadow-md: 0 2px 4px rgba(16, 35, 26, .05), 0 16px 36px -14px rgba(16, 35, 26, .26);
  --shadow-lg: 0 30px 70px -24px rgba(3, 32, 15, .55);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 80px;
}

/* ---------- Nền tảng ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.015em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--o-500); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 700;
  color: var(--g-800);
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding-inline: 28px; font-size: 1rem; }

.btn-orange {
  background: var(--o-600);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(207, 74, 6, .75);
}
.btn-orange:hover { background: var(--o-700); }

.btn-glass {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px var(--white); }

.btn-zalo { background: var(--zalo); color: var(--white); }
.btn-zalo:hover { background: #0057d6; }

.btn-white { background: var(--white); color: var(--o-600); }
.btn-white:hover { background: var(--o-100); }

.btn-line { background: var(--white); color: var(--g-800); box-shadow: inset 0 0 0 1.5px var(--g-800); }
.btn-line:hover { background: var(--g-800); color: var(--white); }

/* Nút có mũi tên chéo + nền quét từ trái sang khi rê chuột (tham khảo mẫu Antila).
   Nền quét là ::after nằm dưới chữ (isolation + z-index âm); mũi tên xoay 45° thành →. */
.btn-sweep { position: relative; isolation: isolate; overflow: hidden; transition: color .4s ease-in-out, box-shadow .4s; }
.btn-sweep::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 0;
  background: var(--sweep, var(--g-900));
  transition: width .4s ease-in-out;
}
.btn-sweep:hover::after,
.btn-sweep:focus-visible::after { right: auto; left: 0; width: 100%; }
.btn-arrow { width: 12px; height: 12px; flex: none; margin-left: 2px; transition: transform .4s ease-in-out; }
.btn-sweep:hover .btn-arrow,
.btn-sweep:focus-visible .btn-arrow { transform: rotate(45deg); }

.btn-orange.btn-sweep { --sweep: var(--g-900); }
.btn-orange.btn-sweep:hover { background: var(--o-600); }
.btn-glass.btn-sweep { --sweep: var(--white); }
.btn-glass.btn-sweep:hover { background: rgba(255, 255, 255, .1); color: var(--g-800); }
.btn-white.btn-sweep { --sweep: var(--g-800); }
.btn-white.btn-sweep:hover { background: var(--white); color: var(--white); }
.btn-zalo.btn-sweep { --sweep: var(--g-900); }
.btn-zalo.btn-sweep:hover { background: var(--zalo); }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--g-950);
  font-size: .8125rem;
  color: #b9d3c0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar .icon { width: 15px; height: 15px; color: var(--o-400); }

.topbar-company {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  margin: 0;
}
.topbar-company > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.topbar-name { flex: none; font-weight: 600; color: var(--white); }
.topbar-address > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.topbar-menu {
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar-menu li + li { margin-left: 4px; padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, .14); }
.topbar-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  color: #cfe3d4;
  text-decoration: none;
}
.topbar-menu a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.topbar-menu .topbar-zalo { background: var(--zalo); font-weight: 700; color: var(--white); }
.topbar-menu .topbar-zalo:hover { background: #0057d6; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(3, 32, 15, .35); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: auto; height: 54px; }

.site-nav { align-self: stretch; display: flex; }
.nav-list { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav-list > li { display: flex; align-items: center; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--o-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--g-800); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.has-mega .nav-link { padding-right: 4px; }
.has-mega .nav-link::after { right: 4px; }

.mega-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.mega-toggle:hover { color: var(--g-800); background: var(--g-50); }
.mega-toggle .icon { transition: transform .2s; }
.has-mega.is-open .mega-toggle .icon { transform: rotate(180deg); }

/* Menu thả xuống Tỉnh – Huyện: khối giới thiệu xanh bên trái, lưới tỉnh có số kho bên phải */
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 5;
  grid-template-columns: 236px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border-top: 3px solid var(--o-500);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.has-mega.is-open .mega { display: grid; }

@media (hover: hover) and (min-width: 961px) {
  .has-mega:hover .mega { display: grid; }
  .has-mega:hover .mega-toggle .icon { transform: rotate(180deg); }
}

.mega-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px 26px;
  background-color: var(--g-900);
  background-image:
    radial-gradient(circle at 0 100%, rgba(250, 101, 23, .26), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 16px, rgba(0, 0, 0, .16) 16px 18px);
  color: #c9dccd;
}
.mega-feature .roof-mark { width: 40px; height: 16px; margin-bottom: 10px; }
.mega-feature-title { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; color: var(--white); }
.mega-feature-text { margin: 8px 0 20px; font-size: .875rem; line-height: 1.6; }
.mega-hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}
.mega-hotline .icon { color: var(--o-400); }
.mega-hotline:hover { color: var(--o-400); }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 24px;
  padding: 26px 28px 28px;
}
.mega-province {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--g-100);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--g-800);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.mega-province .icon { color: var(--o-500); }
.mega-province:hover { border-color: var(--o-500); color: var(--o-600); }
.mega-col ul { margin: 0; padding: 0; list-style: none; }
.mega-col li { break-inside: avoid; }
.mega-col li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.mega-col li a:hover { background: var(--g-50); color: var(--o-700); }

/* Hà Nội nhiều khu vực nhất: cột rộng gấp đôi, chia 2 cột con */
@media (min-width: 1181px) {
  .mega-grid { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); }
  .mega-col:first-child ul { columns: 2; column-gap: 24px; }
}

/* Nút hotline trên header */
.header-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 5px 18px 5px 5px;
  border-radius: 999px;
  background: var(--g-800);
  color: var(--white);
  text-decoration: none;
  transition: background-color .18s;
}
.header-hotline:hover { background: var(--g-700); }
.hh-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--o-600);
}
.hh-text small { display: block; font-size: .6875rem; font-weight: 500; line-height: 1.2; color: #b9d3c0; }
.hh-text strong { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.25; letter-spacing: .01em; }

.nav-toggle { display: none; }

/* =========================================================
   BANNER
   ========================================================= */
.hero {
  --wave-h: clamp(44px, 7vw, 110px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(32px, 4.5vw, 64px) calc(clamp(36px, 4.5vw, 68px) + var(--wave-h));
  background: var(--g-900);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(250, 101, 23, .18), transparent 55%),
    linear-gradient(100deg, rgba(3, 32, 15, .97) 0%, rgba(5, 51, 27, .9) 40%, rgba(9, 83, 37, .62) 72%, rgba(9, 83, 37, .45) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .72fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .875rem;
  font-weight: 500;
  color: #e2efe5;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--o-500);
  box-shadow: 0 0 0 4px rgba(250, 101, 23, .28);
}

/* Cỡ chữ tính để "Bất động sản Hưng Bình" nằm trên một dòng (chữ rộng ≈ 11,4 × cỡ chữ) */
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.028em;
  color: var(--white);
  text-wrap: balance;
}
.h1-sub {
  display: block;
  margin-bottom: 10px;
  font-size: max(.4em, .875rem); /* tiêu đề nhỏ trên điện thoại: không để dòng "Công ty TNHH" dưới 14px */
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--o-400);
}

.hero-lead {
  max-width: 34em;
  margin: 16px 0 0;
  font-size: clamp(1.0625rem, 1.45vw, 1.1875rem);
  line-height: 1.65;
  color: #d5e6d9;
}

.hero-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hero-fields li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
}
.hero-fields .icon { color: var(--o-400); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Thẻ hotline */
.hotline-card {
  position: relative;
  padding: 28px 24px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  background: rgba(3, 32, 15, .6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.hotline-roof {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 80px;
  height: 34px;
  margin-left: -40px;
  color: var(--o-500);
}
.hotline-head { display: flex; align-items: center; gap: 12px; }
.hotline-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--o-600);
}
.hotline-icon .icon { width: 19px; height: 19px; }
.hotline-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--o-500);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}
.hotline-label { margin: 0; font-size: .875rem; font-weight: 500; color: #cfe3d4; }
.hotline-number {
  display: block;
  margin: 14px 0 18px;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.hotline-number:hover { color: var(--o-400); }
.hotline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hotline-actions .btn { min-height: 42px; padding-inline: 14px; font-size: .875rem; }

/* Số liệu: 3 ô kính mờ có icon, bấm được; rê chuột thì ô nổi lên, viền và icon chuyển cam */
.hotline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 11px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  text-align: center;
  text-decoration: none;
  color: var(--white);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.stat:hover,
.stat:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(250, 101, 23, .6);
  background-color: rgba(250, 101, 23, .1);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(250, 101, 23, .16);
  color: var(--o-400);
  transition: background-color .25s ease, color .25s ease;
}
.stat-icon .icon { width: 16px; height: 16px; }
.stat:hover .stat-icon,
.stat:focus-visible .stat-icon { background: var(--o-600); color: var(--white); }
.stat-value {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .75rem; line-height: 1.3; color: #b9d3c0; }

/* Mép dưới banner: sóng chuyển động.
   Mỗi lớp trượt đúng 1440 đơn vị (bằng 1 khung, chứa số chu kỳ sóng nguyên) nên lặp liền mạch.
   Chạy đều (linear), cùng hướng; lớp sau chậm hơn lớp trước tạo chiều sâu. */
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: var(--wave-h);
}
.hero-wave .wave { animation: wave-flow linear infinite; will-change: transform; }
.hero-wave .wave-soft   { fill: rgba(255, 255, 255, .07); animation-duration: 30s; }
.hero-wave .wave-glow   { fill: rgba(255, 255, 255, .12); animation-duration: 24s; }
.hero-wave .wave-accent { fill: var(--o-500);             animation-duration: 18s; }
.hero-wave .wave-fill   { fill: var(--bg);                animation-duration: 14s; }

@keyframes wave-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

/* Hiệu ứng vào trang: một lần, chỉ ở banner */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hotline-card { animation: rise .8s .3s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes ring {
  0%   { transform: scale(1);   opacity: .85; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* =========================================================
   THÂN TRANG
   ========================================================= */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-areas: "sidebar content";
  align-items: start;
  column-gap: clamp(24px, 3vw, 40px);
  padding-top: clamp(16px, 2.5vw, 32px);
}
.content { grid-area: content; min-width: 0; }

/* Cột trái cố định khi cuộn. Cột cao hơn màn hình nên main.js chỉnh `top`
   theo hướng cuộn (dính đáy khi kéo xuống, dính dưới header khi kéo lên). */
.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 24px;
}

/* ---------- Widget cột trái ---------- */
.widget {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 16px;
  border-bottom: 3px solid var(--o-500);
  background: var(--g-800);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--white);
  text-transform: uppercase;
}
.widget-title .icon { color: var(--o-400); }

/* Mỗi tỉnh: tên | số kho | mũi tên, dưới là thanh tỷ lệ (phần kho của tỉnh trên tổng số kho) */
.region + .region { border-top: 1px solid var(--line); }
.region-head { margin: 0; }
.region-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 9px;
  width: 100%;
  padding: 14px 16px 14px 18px;
  border: 0;
  background: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.region-toggle:hover { background: var(--g-50); color: var(--g-800); }
.region-toggle:focus-visible { outline: 3px solid var(--o-500); outline-offset: -3px; }
.region-toggle[aria-expanded="true"] { color: var(--g-800); box-shadow: inset 3px 0 0 var(--o-500); }
.region-toggle .chev { color: var(--muted); transition: transform .2s; }
.region-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--o-600); }

.region-meta { font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.region-meta strong { margin-right: 2px; font-size: .9375rem; font-weight: 800; color: var(--o-600); }

.region-bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 4px; background: var(--g-100); }
.region-bar span {
  display: block;
  width: var(--share, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--g-700);
  transition: background-color .15s;
}
.region-toggle[aria-expanded="true"] .region-bar span { background: var(--o-500); }

/* Khu vực trong tỉnh: nút xếp tràn dòng theo độ dài tên, bấm là sang trang lưu trữ kho của khu vực đó */
.region-panel { padding: 2px 16px 18px 18px; }
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--g-50);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.area-chip.is-empty { padding-right: 11px; }
.area-chip .count { flex: none; min-width: 22px; padding: 0 6px; line-height: 20px; }
.area-chip.is-empty { border-style: dashed; background: var(--white); font-weight: 500; color: var(--muted); }
.area-chip:hover { border-color: var(--o-500); background: var(--white); color: var(--o-700); }
.area-chip:focus-visible { outline: 3px solid var(--o-500); outline-offset: 1px; }

.area-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 4px 6px 2px;
  border: 0;
  background: none;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--g-800);
  cursor: pointer;
}
.area-more .icon { width: 15px; height: 15px; transition: transform .2s; }
.area-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.area-more:hover { color: var(--o-600); }
.area-chips.is-more { margin-top: 4px; }

.region-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  background: var(--g-800);
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: background-color .18s;
}
.region-all .icon { width: 16px; height: 16px; transition: transform .18s; }
.region-all:hover { background: var(--o-600); }
.region-all:hover .icon { transform: translateX(3px); }
.region-empty { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--body); }

.count {
  min-width: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--o-100);
  font-size: .75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: var(--o-600);
}

/* ---------- Tìm kiếm ---------- */
.toolbar { margin-bottom: 36px; }

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .18s, border-color .18s;
}
.search:focus-within { border-color: var(--g-800); box-shadow: var(--shadow-md), 0 0 0 4px rgba(9, 83, 37, .14); }

.search-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 14px; }
.search-field .icon { width: 20px; height: 20px; color: var(--g-800); }
.search-field input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
}
.search-field input::placeholder { color: #86968b; }
.search-field input:focus { outline: none; }

.search-select { position: relative; flex: none; padding-left: 6px; border-left: 1px solid var(--line); }
.search-select select {
  appearance: none;
  padding: 12px 36px 12px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23095325' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.search-select select:focus { outline: none; }
.search-select select:focus-visible { background-color: var(--g-50); }
.search .btn { min-height: 50px; padding-inline: 26px; }

.filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 14px 0 0 16px;
  font-size: .9375rem;
  color: var(--muted);
}
.filter-status strong { color: var(--g-800); }

.chip-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 4px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--o-100);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--o-600);
  cursor: pointer;
}
.chip-clear:hover { background: var(--o-600); color: var(--white); }

/* ---------- Tiêu đề khối ---------- */
.block + .block { margin-top: clamp(48px, 6vw, 72px); }

.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.roof-mark { display: block; width: 46px; height: 19px; margin-bottom: 6px; color: var(--o-500); }
.block-title h2 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.block-meta { margin: 4px 0 0; font-size: .9375rem; color: var(--muted); }

.block-link {
  --sweep: var(--o-600);
  flex: none;
  min-height: 42px;
  padding: 8px 18px 8px 20px;
  background: var(--g-800);
  font-size: .875rem;
  color: var(--white);
}
.block-link:hover { color: var(--white); }

/* ---------- Thẻ tin đăng ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.listing {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--g-100);
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.listing:hover .listing-media img { transform: scale(1.06); }
.listing-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(3, 32, 15, .88), rgba(3, 32, 15, 0));
}

/* Rê chuột vào ảnh: vệt sáng trắng quét chéo qua (tham khảo image-anime của mẫu) */
.listing-media::before,
.post-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 200%;
  height: 0;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}
.listing:hover .listing-media::before,
.post:hover .post-image::before {
  height: 250%;
  background: transparent;
  transition: height .6s linear, background-color .6s linear;
}

.listing-code,
.listing-tag {
  position: absolute;
  top: 12px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}
.listing-code { left: 12px; background: rgba(3, 32, 15, .78); letter-spacing: .05em; backdrop-filter: blur(4px); }
.listing-tag { right: 12px; background: var(--o-600); }
.listing-tag.is-sale { background: var(--g-800); }

.listing-place {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--white);
}
.listing-place .icon { width: 15px; height: 15px; color: var(--o-400); }

.listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 14px;
}
.listing-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.listing-title a { font-size: 14px; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.listing-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-title a:focus-visible { outline: none; }
.listing-title a:focus-visible::after { outline: 3px solid var(--o-500); outline-offset: -3px; border-radius: var(--radius); }
.listing:hover .listing-title a { color: var(--g-800); }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
}
.specs > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--g-50);
  box-shadow: inset 0 0 0 1px var(--g-100);
}
.specs dt { display: flex; }
.specs dt .icon { width: 16px; height: 16px; color: var(--g-800); }
.specs dd { margin: 0; font-size: .875rem; font-weight: 700; line-height: 1.3; white-space: nowrap; color: var(--ink); }

.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.listing-price { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--o-600); }
.listing-price strong { margin-right: 2px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }

.listing-call {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--o-100);
  color: var(--o-600);
  transition: background-color .18s, color .18s;
}
.listing-call:hover { background: var(--o-600); color: var(--white); }

.empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 22px 24px;
  border: 2px dashed var(--g-100);
  border-radius: var(--radius);
  background: var(--white);
}
.empty p { max-width: 62ch; margin: 0; }
.empty strong { color: var(--ink); }
.empty a { font-weight: 700; color: var(--o-600); }

/* ---------- Tin tức: 3 cột, mỗi bài có "Xem thêm" ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.post:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.post-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--g-100);
}
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease-in-out; }
.post:hover .post-image img { transform: scale(1.06); }
.post-cat {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--o-600);
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
}

.post-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.post-body time { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; color: var(--muted); }
.post-body time .icon { color: var(--o-500); }
.post-body h3 { margin: 10px 0 8px; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
.post-body h3 a { color: var(--ink); text-decoration: none; transition: color .2s; }
.post-body h3 a:hover { color: var(--g-800); }
.post-body p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  font-size: .90625rem;
  line-height: 1.6;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- Tin tức trang chủ: 1 bài lớn bên trái, danh sách bài có ảnh nhỏ bên phải ---------- */
.news-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
}
.news-lead {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--g-900);
  box-shadow: var(--shadow-sm);
}
.news-lead > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease-in-out;
}
.news-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(3, 32, 15, .95) 0%, rgba(3, 32, 15, .6) 45%, rgba(3, 32, 15, 0) 78%);
}
.news-lead:hover > img { transform: scale(1.05); }
.news-lead-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px);
  color: #d5e6d9;
}
.news-cat { padding: 4px 10px; border-radius: 6px; background: var(--o-600); font-size: .75rem; font-weight: 700; color: var(--white); }
.news-lead h3 {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.news-lead h3 a { color: var(--white); text-decoration: none; }
/* cả thẻ bấm được: vùng bấm của tiêu đề phủ lên toàn thẻ */
.news-lead h3 a::after,
.news-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-lead:hover h3 a { text-decoration: underline; text-decoration-color: var(--o-500); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.news-lead h3 a:focus-visible,
.news-item h3 a:focus-visible { outline: none; }
.news-lead h3 a:focus-visible::after { outline: 3px solid var(--o-500); outline-offset: -3px; border-radius: var(--radius); }
.news-lead p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: .9375rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 0; padding: 0; list-style: none; font-size: .8125rem; }
.news-meta li { display: inline-flex; align-items: center; gap: 6px; }
.news-meta .icon { color: var(--o-400); }

.news-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 4px 18px;
  list-style: none;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 14px 0;
}
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--g-100); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-item:hover .news-thumb img { transform: scale(1.08); }
.news-item-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.news-item-cat { font-size: .75rem; font-weight: 700; color: var(--o-600); }
.news-item h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-item h3 a { color: var(--ink); text-decoration: none; transition: color .2s; }
.news-item:hover h3 a { color: var(--g-800); }
.news-item h3 a:focus-visible::after { outline: 3px solid var(--o-500); outline-offset: 2px; border-radius: 10px; }
.news-item time { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.news-item time .icon { color: var(--o-500); }

/* Từ 1180px trở xuống không đủ chỗ cho 2 cột: bài lớn trên, danh sách dưới */
@media (max-width: 1180px) {
  .news-split { grid-template-columns: minmax(0, 1fr); }
  .news-lead { min-height: 380px; }
}
@media (max-width: 760px) {
  .news-lead { min-height: 340px; }
  .news-list { padding: 2px 14px; }
  .news-item { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
}

/* "Xem thêm": chữ bên trái, vòng tròn mũi tên bên phải, mũi tên xoay khi rê chuột */
.readmore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--g-800);
  text-decoration: none;
  transition: color .2s;
}
.readmore-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--o-600);
  color: var(--white);
  transition: transform .4s ease-in-out, background-color .2s;
}
.readmore-icon svg { width: 11px; height: 11px; }
.readmore:hover { color: var(--o-600); }
.readmore:hover .readmore-icon { transform: rotate(45deg); background: var(--g-800); }

/* ---------- Nhân viên kinh doanh ---------- */
.agent {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 18px;
}
.agent + .agent { border-top: 1px solid var(--line); }
.agent-avatar {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g-700), var(--g-950));
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--o-500);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
}
.agent h3 { align-self: end; margin: 0; font-size: 1rem; font-weight: 700; }
.agent p { align-self: start; margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

.agent-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 16px; }
.agent-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: background-color .18s;
}
.agent-call { flex: 1; background: var(--g-800); }
.agent-call:hover { background: var(--g-700); }
.agent-zalo { padding: 0 16px; background: var(--zalo); }
.agent-zalo:hover { background: #0057d6; }

/* Nhân viên ở cột trang chủ: nhãn tỉnh phụ trách; người phụ trách tỉnh đang mở lên đầu, có vạch cam */
.staff .agent {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  padding: 18px 16px 18px 18px;
  transition: background-color .2s, box-shadow .2s;
}
.staff .agent-avatar { grid-row: auto; width: 52px; height: 52px; font-size: 1rem; }
.agent-info { min-width: 0; padding-top: 2px; }
.agent-areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
}
.agent-areas-label { margin-right: 2px; font-weight: 600; color: var(--muted); }
.agent-areas ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.agent-areas li {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--g-50);
  font-weight: 600;
  line-height: 1.6;
  color: var(--g-800);
  transition: background-color .2s, color .2s;
}
.agent-areas li.is-current { background: var(--o-500); color: var(--white); }
.staff .agent.is-match { background: var(--g-50); box-shadow: inset 3px 0 0 var(--o-500); }
.staff .agent.is-match .agent-areas li:not(.is-current) { background: var(--white); }
.staff .agent.is-flash { animation: agent-flash 1.1s ease-out; }
@keyframes agent-flash {
  from { background-color: var(--o-100); }
}

/* =========================================================
   DẢI KÊU GỌI + FOOTER
   ========================================================= */
.cta-band {
  --overlap: clamp(64px, 7vw, 96px);
  position: relative;
  z-index: 1;
  margin: clamp(64px, 8vw, 104px) 0 calc(var(--overlap) * -1);
}
.cta-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4.5vw, 60px);
  border-radius: var(--radius-lg);
  background: var(--o-600);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(186, 64, 4, .97) 0%, rgba(207, 74, 6, .93) 50%, rgba(207, 74, 6, .72) 100%);
}
.cta-copy { max-width: 40rem; }
.cta-copy h2 {
  margin: 0 0 10px;
  text-wrap: balance;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}
.cta-copy p { margin: 0; font-size: 1.0625rem; color: #fff1e8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(clamp(64px, 7vw, 96px) + clamp(44px, 5vw, 68px));
  background: var(--g-900);
  font-size: .9375rem;
  color: #b9d3c0;
}
/* Hoa văn mái nhà mờ – lấy từ logo */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpolyline points='4 15 22 4 40 15' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right -90px top 40px / 640px auto,
    radial-gradient(ellipse at 10% 100%, rgba(250, 101, 23, .12), transparent 50%);
  opacity: .06;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 0% 100%, rgba(250, 101, 23, .14), transparent 45%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, .75fr) minmax(0, 1.4fr);
  gap: 40px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.site-footer h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
  text-transform: uppercase;
}
.site-footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--o-500);
}

.footer-logo { width: auto; height: 60px; margin-bottom: 20px; }
.footer-about .footer-company { margin-bottom: 12px; padding-bottom: 0; font-size: 1.1875rem; text-wrap: balance; }
.footer-about .footer-company::after { display: none; }
.footer-about p { max-width: 42ch; margin: 0 0 18px; line-height: 1.7; }
.footer-tax {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #cfe3d4;
}
.footer-tax .icon { color: var(--o-400); }
.footer-tax strong { color: var(--white); letter-spacing: .03em; }

.site-footer ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfe3d4;
  text-decoration: none;
  transition: color .15s, transform .15s;
}
.footer-links a .icon { width: 15px; height: 15px; color: var(--o-500); }
.footer-links a:hover { color: var(--white); transform: translateX(3px); }

.footer-contact li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.fc-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(250, 101, 23, .14);
  color: var(--o-400);
}
.fc-text small { display: block; font-size: .75rem; color: #8fb09a; }
.fc-text a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.fc-text a:hover { text-decoration: underline; }
.fc-text .footer-phone { font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; color: var(--o-400); }

/* Bản đồ tràn hết chiều ngang footer, thẻ địa chỉ nổi bên phải */
.footer-map {
  position: relative;
  height: clamp(280px, 24vw, 340px);
  border-top: 4px solid var(--o-500);
  background: var(--g-800);
}
.footer-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-card-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.map-card {
  max-width: 340px;
  padding: 22px 24px 24px;
  border-top: 3px solid var(--o-500);
  border-radius: var(--radius);
  background: var(--g-900);
  box-shadow: var(--shadow-lg);
  color: #cfe3d4;
  pointer-events: auto;
}
.map-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}
.map-card-title .icon { color: var(--o-400); }
.map-card p { margin: 0 0 16px; font-size: .9375rem; line-height: 1.6; }

.footer-bottom {
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(3, 32, 15, .55);
  font-size: .8125rem;
  color: #8fb09a;
}
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cfe3d4; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* =========================================================
   LIÊN HỆ NHANH (nổi bên phải)
   ========================================================= */
.quick-contact {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.qc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
}
.qc-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 12px 24px -10px rgba(3, 32, 15, .6);
}
.qc-zalo .qc-icon { background: var(--zalo); font-size: .875rem; font-weight: 800; color: var(--white); }
.qc-call .qc-icon { background: var(--o-600); color: var(--white); }
.qc-call .qc-icon .icon { width: 24px; height: 24px; }
.qc-call .qc-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--o-500);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}
.qc-top .qc-icon { width: 46px; height: 46px; margin-right: 5px; background: var(--g-800); color: var(--white); }

.qc-label {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.qc:hover .qc-label,
.qc:focus-visible .qc-label { opacity: 1; transform: none; }

/* =========================================================
   TRANG CON: Giới thiệu, Liên hệ
   ========================================================= */

/* ---------- Banner ngắn + đường dẫn ---------- */
.page-hero {
  --wave-h: clamp(40px, 6vw, 90px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(32px, 4.5vw, 64px) calc(clamp(32px, 4vw, 56px) + var(--wave-h));
  background: var(--g-900);
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(250, 101, 23, .18), transparent 55%),
    linear-gradient(100deg, rgba(3, 32, 15, .96) 0%, rgba(5, 51, 27, .86) 45%, rgba(9, 83, 37, .55) 100%);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: #cfe3d4;
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--o-400); }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--o-400); font-weight: 600; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.028em;
  color: var(--white);
}
.page-hero p { max-width: 40em; margin: 14px 0 0; font-size: clamp(1rem, 1.4vw, 1.1875rem); color: #d5e6d9; }

/* ---------- Khối và tiêu đề căn giữa ---------- */
.page-section { padding-block: clamp(56px, 7vw, 96px); }
.page-section.is-alt { background: var(--white); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head .roof-mark { margin: 0 auto 8px; }
.section-head h2 { margin: 0; font-size: clamp(1.625rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.section-head p { margin: 10px 0 0; font-size: 1.0625rem; color: var(--muted); }

/* ---------- Giới thiệu: ảnh ghép + nội dung ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}
.about-media { position: relative; padding: 0 14% 14% 0; }
.about-img-main {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-img-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  top: 28px;
  left: -14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  border-radius: var(--radius);
  background: var(--g-800);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.about-badge .roof-mark { margin: 0; color: var(--o-500); }
.about-badge strong { display: block; font-size: 1.375rem; font-weight: 800; line-height: 1.15; }
.about-badge span { font-size: .8125rem; color: #cfe3d4; }

.about-copy .block-title h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.about-lead { margin: 18px 0 12px; font-size: 1.1875rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
.about-copy p { margin: 0 0 14px; }
.check-list { display: grid; gap: 12px; margin: 22px 0 30px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink); }
.check-list .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--o-100);
  color: var(--o-600);
  stroke-width: 3;
}
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.about-call { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.about-call .hh-icon { width: 48px; height: 48px; color: var(--white); }
.about-call small { display: block; font-size: .8125rem; color: var(--muted); }
.about-call strong { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.about-call:hover strong { color: var(--o-600); }

/* ---------- Lĩnh vực hoạt động: rê chuột thì thẻ chuyển nền xanh ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.service {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background-color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.service-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--o-100);
  color: var(--o-600);
  transition: background-color .35s ease, color .35s ease;
}
.service-icon .icon { width: 28px; height: 28px; }
.service h3 { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 800; transition: color .35s ease; }
.service p { margin: 0 0 22px; font-size: .9375rem; color: var(--muted); transition: color .35s ease; }
.service:hover {
  transform: translateY(-6px);
  border-color: var(--g-800);
  background: var(--g-800);
  box-shadow: var(--shadow-lg);
}
.service:hover h3 { color: var(--white); }
.service:hover p { color: #cfe3d4; }
.service:hover .service-icon { background: var(--o-600); color: var(--white); }
.service:hover .readmore { border-top-color: rgba(255, 255, 255, .16); color: var(--white); }

/* ---------- Quy trình 4 bước ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed rgba(9, 83, 37, .25);
}
.step { position: relative; padding: 0 8px; text-align: center; }
.step-num {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border: 2px solid var(--o-500);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 8px var(--bg);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--o-600);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.step:hover .step-num { transform: scale(1.06); background: var(--o-600); color: var(--white); }
.step h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 800; }
.step p { max-width: 26ch; margin: 0 auto; font-size: .9375rem; color: var(--muted); }

/* ---------- Thông tin doanh nghiệp + Vì sao chọn ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
.info-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--g-900);
  box-shadow: var(--shadow-lg);
  color: #cfe3d4;
}
.info-card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -40px;
  z-index: -1;
  width: 360px;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpolyline points='4 15 22 4 40 15' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .07;
}
.info-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--o-500);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
}
.info-card h2 .icon { color: var(--o-400); }
.info-list { margin: 0; }
.info-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { font-size: .875rem; color: #8fb09a; }
.info-list dd { margin: 0; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.info-list a { color: var(--white); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-list .is-hot { font-size: 1.25rem; font-weight: 800; color: var(--o-400); }

.why-copy .block-title { margin-bottom: 24px; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.why-item {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why-item:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.why-item .service-icon { width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; }
.why-item .service-icon .icon { width: 24px; height: 24px; }
.why-item h3 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 800; }
.why-item p { margin: 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Đội ngũ ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.team-grid .agent { border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); padding: 24px; }
.team-grid .agent + .agent { border-top: 0; }

/* ---------- Liên hệ: 4 kênh, form, văn phòng ---------- */
.contact-section { padding-top: 0; }
.contact-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: calc(clamp(40px, 5vw, 64px) * -1) 0 clamp(40px, 5vw, 64px);
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card .service-icon { width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; }
.contact-card .service-icon .icon { width: 24px; height: 24px; }
.service-icon.is-zalo { background: #e6f0ff; font-size: .875rem; font-weight: 800; color: var(--zalo); }
.contact-card h2 { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.contact-value { margin: 0 0 14px; font-size: 1.0625rem; font-weight: 800; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.contact-card .readmore::after { content: ""; position: absolute; inset: 0; }
.contact-card:hover .readmore-icon { transform: rotate(45deg); background: var(--g-800); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}
/* Form liên hệ: dải đầu xanh vân tôn (như bảng tìm kiếm), 3 bước đánh số, ô chọn nhu cầu có icon */
.form-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.form-head {
  --fp: clamp(22px, 3.5vw, 44px);
  padding: clamp(26px, 3.2vw, 38px) var(--fp) clamp(22px, 2.8vw, 30px);
  border-bottom: 4px solid var(--o-500);
  background-color: var(--g-900);
  background-image:
    radial-gradient(circle at 100% 0, rgba(250, 101, 23, .3), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px, rgba(0, 0, 0, .16) 16px 18px);
}
.form-head .roof-mark { margin-bottom: 10px; }
.form-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--white);
}
.form-intro { max-width: 46ch; margin: 10px 0 0; line-height: 1.6; color: #c9dccd; }
.req { color: var(--o-600); }

.contact-form { padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 44px) clamp(24px, 3.5vw, 40px); }
.form-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step + .form-step { margin-top: 28px; }
/* legend thả nổi để nằm trong khung như tiêu đề thường */
.form-step legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
}
.form-step legend + * { clear: both; }
.step-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--o-500);
  box-shadow: 0 0 0 4px var(--o-100);
  font-size: .875rem;
  font-weight: 800;
  color: var(--white);
}

.need-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.need-tile { position: relative; cursor: pointer; }
.need-tile input { position: absolute; opacity: 0; pointer-events: none; }
.need-tile span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 94px;
  padding: 14px 8px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--g-50);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  transition: border-color .15s, background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.need-tile .icon { width: 26px; height: 26px; color: var(--g-700); transition: color .15s; }
.need-tile:hover span { border-color: var(--o-500); background: var(--white); color: var(--o-700); transform: translateY(-2px); }
.need-tile:hover .icon { color: var(--o-600); }
.need-tile input:checked + span {
  border-color: var(--g-800);
  background: var(--g-800);
  box-shadow: 0 16px 28px -18px rgba(9, 83, 37, .95);
  color: var(--white);
  transform: none;
}
.need-tile input:checked + span .icon { color: var(--o-400); }
/* dấu ✓ nhỏ ở góc ô đang chọn */
.need-tile input:checked + span::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--o-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.need-tile input:focus-visible + span { outline: 3px solid var(--o-500); outline-offset: 2px; }

.contact-form .form-grid { gap: 16px 18px; }
.contact-form .field label { font-weight: 700; }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea { border-color: #d3ddd4; background-color: var(--white); }
.contact-form .field input,
.contact-form .field select { min-height: 52px; }
.field-control { position: relative; }
.field-control > .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  color: var(--g-700);
  pointer-events: none;
  transition: color .15s;
}
.field-control:focus-within > .icon { color: var(--o-600); }
.field.has-icon input,
.field.has-icon select { padding-left: 44px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background-color: var(--g-50);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background: var(--g-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23095325' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a9a8f; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--g-800);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(9, 83, 37, .12);
}
.field [aria-invalid="true"] { border-color: #c62828; background-color: #fff6f5; }
.field [aria-invalid="true"]:focus { border-color: #c62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.field-error { margin: 0; font-size: .8125rem; font-weight: 600; color: #b3261e; }

.form-foot { display: grid; gap: 12px; margin-top: 30px; }
.form-submit { width: 100%; min-height: 58px; justify-content: center; font-size: 1.0625rem; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: .8125rem; text-align: center; color: var(--muted); }
.form-note .icon { flex: none; color: var(--g-700); }
.form-status { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .9375rem; }
.form-status.is-error { background: #fff1ef; color: #8c1d18; }
.form-status.is-ok { border: 1px solid var(--g-100); background: var(--g-50); color: var(--g-800); }

.office-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--g-900);
  box-shadow: var(--shadow-lg);
  color: #cfe3d4;
}
.office-body { padding: clamp(24px, 3vw, 36px); }
.office-card h2 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--o-500);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
}
.office-list { display: grid; gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.office-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.office-list .fc-text { color: var(--white); }
.office-map { display: block; width: 100%; height: 320px; border: 0; border-top: 4px solid var(--o-500); background: var(--g-800); }

/* Footer trang không có dải kêu gọi đè lên */
.site-footer.no-cta { padding-top: clamp(48px, 6vw, 72px); }

@media (max-width: 1180px) {
  .service-grid,
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  .about-grid,
  .why-grid,
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 620px; }
}

@media (max-width: 600px) {
  .service-grid,
  .contact-cards,
  .steps,
  .why-list,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { padding: 0 10% 18% 0; }
  .about-badge { left: 8px; top: 12px; padding: 10px 14px 10px 12px; }
  .about-badge strong { font-size: 1.125rem; }
  .info-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .form-foot .btn { width: 100%; }
  /* Ô nhu cầu: 2 × 2, icon bên trái chữ */
  .need-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-tile span { flex-direction: row; justify-content: flex-start; min-height: 58px; padding: 12px 30px 12px 14px; text-align: left; }
  .need-tile .icon { width: 22px; height: 22px; }
  .office-map { height: 260px; }

  /* Thẻ liên hệ thành hàng ngang gọn: icon | tên + thông tin | mũi tên */
  .contact-cards { gap: 12px; }
  .contact-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 0;
    padding: 16px 16px 16px 14px;
  }
  .contact-card .service-icon { grid-row: 1 / 3; width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .contact-card h2 { grid-column: 2; }
  .contact-card .contact-value { grid-column: 2; margin: 0; font-size: .9375rem; }
  .contact-card .readmore {
    grid-column: 3;
    grid-row: 1 / 3;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0; /* chỉ hiện vòng mũi tên; chữ vẫn đọc được cho trình đọc màn hình */
  }
}

/* =========================================================
   NÚT + BẢNG TÌM KIẾM Ở HEADER
   ========================================================= */
.header-search {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, color .18s, background-color .18s;
}
.header-search .icon { width: 20px; height: 20px; }
.header-search:hover { border-color: var(--g-800); background: var(--g-800); color: var(--white); }

.no-scroll { overflow: hidden; }

/* Bảng tìm kiếm: dải xanh vân tôn sóng ở trên (tiêu đề + tab), thân trắng, chân xám xanh */
.search-panel {
  --sp-pad: clamp(20px, 3vw, 34px);
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(16px, 9vh, 110px) var(--gutter) 24px;
}
.search-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 32, 15, .78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
}
.search-panel-box {
  position: relative;
  width: min(100%, 760px);
  max-height: 100%;
  overflow: hidden auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  /* Nền của phần đầu và hàng tab: xanh đậm, gân dọc như vách tôn kho xưởng, ánh cam ở góc */
  background-color: var(--g-900);
  background-image:
    radial-gradient(circle at 100% 0, rgba(250, 101, 23, .28), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px, rgba(0, 0, 0, .16) 16px 18px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(-18px) scale(.98);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.search-panel.is-open .search-panel-backdrop { opacity: 1; }
.search-panel.is-open .search-panel-box { opacity: 1; transform: none; }

.search-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: var(--sp-pad) var(--sp-pad) clamp(18px, 2.4vw, 24px);
  color: var(--white);
}
.search-panel-heading .roof-mark { width: 40px; height: 16px; margin-bottom: 10px; }
.search-panel-head h2 {
  margin: 0;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--white);
}
.search-panel-head p { max-width: 58ch; text-wrap: pretty; margin: 6px 0 0; font-size: .9375rem; line-height: 1.55; color: #c9dccd; }
.search-panel-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .25s ease;
}
.search-panel-close .icon { width: 20px; height: 20px; }
.search-panel-close:hover { border-color: var(--o-500); background: var(--o-500); transform: rotate(90deg); }
.search-panel-close:focus-visible { outline: 3px solid var(--o-400); outline-offset: 2px; }

/* Tab Cho thuê / Đất công nghiệp: tab đang chọn màu trắng, nối liền với thân bảng như tab hồ sơ */
.search-type { display: flex; gap: 6px; padding: 0 var(--sp-pad); }
.search-type label { position: relative; cursor: pointer; }
.search-type input { position: absolute; opacity: 0; pointer-events: none; }
.search-type span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 13px;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, .07);
  font-size: .9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .74);
  transition: background-color .2s, color .2s;
}
.search-type .icon { width: 18px; height: 18px; }
.search-type label:hover span { background: rgba(255, 255, 255, .14); color: var(--white); }
/* bóng trắng 2px phủ đường nối lẻ pixel giữa tab và thân bảng */
.search-type input:checked + span { position: relative; z-index: 1; background: var(--white); box-shadow: 0 2px 0 var(--white); color: var(--g-800); }
.search-type input:checked + span .icon { color: var(--o-600); }
.search-type input:focus-visible + span { outline: 3px solid var(--o-400); outline-offset: -3px; }

.search-panel-body { padding: clamp(18px, 2.4vw, 26px) var(--sp-pad) 4px; background: var(--white); }
.search-panel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 24px -18px rgba(3, 32, 15, .5);
  transition: border-color .18s, box-shadow .18s;
}
.search-panel-row:focus-within { border-color: var(--g-800); box-shadow: 0 0 0 4px rgba(9, 83, 37, .12); }
.search-panel-row .search-field input { padding-block: 14px; font-size: 1.0625rem; }
.search-panel-row .btn { min-height: 52px; padding-inline: 28px; }

/* Gợi ý tìm nhanh: đổi theo tab đang chọn */
.search-suggest { position: relative; padding: 18px var(--sp-pad) var(--sp-pad); background: var(--white); box-shadow: 0 -2px 0 var(--white); }
.search-suggest-title { margin: 0 0 10px; font-size: .875rem; font-weight: 700; color: var(--muted); }
.search-suggest ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.search-suggest a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--g-50);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s, color .18s, background-color .18s;
}
.search-suggest .icon { width: 16px; height: 16px; color: var(--g-700); transition: color .18s; }
.search-suggest a:hover { border-color: var(--o-500); background: var(--white); color: var(--o-700); }
.search-suggest a:hover .icon { color: var(--o-600); }
.search-suggest a:focus-visible { outline: 3px solid var(--o-500); outline-offset: 2px; }

.search-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px var(--sp-pad);
  border-top: 1px solid var(--line);
  background: var(--g-50);
  font-size: .875rem;
  color: var(--muted);
}
.search-panel-foot p { margin: 0; }
.search-panel-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-weight: 700;
  color: var(--o-600);
  text-decoration: none;
}
.search-panel-foot a .icon { width: 15px; height: 15px; }
.search-panel-foot a:hover { color: var(--o-700); text-decoration: underline; text-underline-offset: 3px; }
.search-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  margin: 0 4px 0 10px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--white);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.search-keys kbd:first-child { margin-left: 0; }
@media (hover: none) { .search-keys { display: none; } }

/* =========================================================
   TRANG LƯU TRỮ: bộ lọc | danh sách
   ========================================================= */
.archive { padding-top: clamp(32px, 4vw, 56px); }
.archive-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}
.archive-filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }

/* Bộ lọc: dải xanh như khối "Kho xưởng theo khu vực" ở trang chủ, các mục ngăn bằng đường kẻ mảnh */
.filter-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.filter-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 14px 18px;
  border-bottom: 3px solid var(--o-500);
  background: var(--g-800);
}
.filter-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
}
.filter-head h2 .filter-badge { letter-spacing: 0; }
.filter-head h2 .icon { color: var(--o-400); }
.filter-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--o-500);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.filter-badge[hidden] { display: none; }
.filter-reset {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: transparent;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.filter-reset:hover { background: var(--white); color: var(--g-800); }
.filter-reset[hidden] { display: none; }
.filter-close {
  display: none;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  cursor: pointer;
}
.filter-reset:not([hidden]) + .filter-close { margin-left: 0; }
.filter-close .icon { width: 18px; height: 18px; }

.filter-section { min-width: 0; margin: 0; padding: 16px 18px; border: 0; }
.filter-section + .filter-section { border-top: 1px solid var(--line); }
.filter-label { display: block; margin: 0 0 10px; padding: 0; font-size: .875rem; font-weight: 700; color: var(--ink); }
/* legend thả nổi để nằm trong khung như nhãn thường (mặc định legend đè lên viền trên của fieldset) */
legend.filter-label { float: left; width: 100%; }
legend.filter-label + * { clear: both; }

.filter-search { position: relative; }
.filter-search .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  color: var(--g-800);
  pointer-events: none;
}
.filter-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--g-50);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.filter-search input::placeholder { color: #86968b; }
.filter-search input:focus { outline: none; border-color: var(--g-800); background: var(--white); box-shadow: 0 0 0 4px rgba(9, 83, 37, .12); }

/* Số tin bên cạnh mỗi lựa chọn */
.facet {
  flex: none;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--white);
  font-size: .75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: var(--muted);
  transition: background-color .15s, color .15s;
}

/* Tỉnh, khu vực: nút tròn, bấm là lọc ngay */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-choice,
.option { position: relative; cursor: pointer; }
.chip-choice input,
.option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-choice span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 5px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--g-50);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip-choice:hover span { border-color: var(--o-500); background: var(--white); color: var(--o-700); }
.chip-choice:hover .facet { background: var(--o-100); color: var(--o-700); }
/* kiểu "không còn tin" chỉ áp khi nút CHƯA chọn – nút đã chọn luôn nền xanh chữ trắng */
.chip-choice.is-zero input:not(:checked) + span { border-style: dashed; background: var(--white); color: #9aa89f; }
.chip-choice.is-zero:hover input:not(:checked) + span { border-color: var(--o-500); color: var(--o-700); }
.chip-choice input:checked + span { border: 1px solid var(--g-800); background: var(--g-800); color: var(--white); }
.chip-choice input:checked + span .facet { background: rgba(255, 255, 255, .18); color: var(--white); }
.chip-choice input:focus-visible + span { outline: 3px solid var(--o-500); outline-offset: 2px; }

/* Khu vực: khay nền xanh nhạt ngay dưới tỉnh đã chọn */
.filter-section.filter-areas { margin: -6px 12px 6px; padding: 12px 12px 14px; border-top: 0; border-radius: 12px; background: var(--g-50); }
.filter-areas .filter-label { margin-bottom: 8px; font-size: .8125rem; color: var(--g-800); }
.filter-areas .chip-choice span { background: var(--white); }
.filter-areas .chip-choice .facet { background: var(--g-50); }
.filter-areas .chip-choice.is-zero input:not(:checked) + span { background: transparent; }
.filter-areas .area-more { margin-top: 0; }
.facet[hidden] { display: none; }

/* Diện tích, mức giá: danh sách có nút tròn và số tin */
.filter-options { display: grid; gap: 2px; margin: 0 -8px; }
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background-color .15s;
}
.option:hover,
.option:has(input:checked) { background: var(--g-50); }
.option-mark {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid #b8c6bc;
  border-radius: 50%;
  background: var(--white);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.option:hover .option-mark { border-color: var(--g-800); }
.option input:checked ~ .option-mark { border-color: var(--g-800); background: var(--g-800); box-shadow: inset 0 0 0 3px var(--white); }
.option input:focus-visible ~ .option-mark { outline: 3px solid var(--o-500); outline-offset: 2px; }
.option-text { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--body); }
.option .facet { background: var(--g-50); }
.option:hover .facet,
.option:has(input:checked) .facet { background: var(--white); }
.option.is-zero .option-text,
.option.is-zero .facet { color: #a3b0a7; }
.option input:checked ~ .option-text { font-weight: 700; color: var(--g-800); }
.option input:checked ~ .facet { background: var(--g-800); color: var(--white); }

.filter-foot { display: none; }

.filter-help {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--g-900);
  color: #cfe3d4;
}
.filter-help .roof-mark { margin-bottom: 10px; color: var(--o-500); }
.filter-help p { margin: 0 0 16px; font-size: .9375rem; }
.filter-help strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; color: var(--white); }
.filter-help .btn { width: 100%; }

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 12px 16px 12px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.archive-count { margin: 0; color: var(--muted); }
.archive-count strong { font-size: 1.125rem; color: var(--g-800); }
.archive-tools { display: flex; align-items: center; gap: 10px; }
.filter-toggle { display: none; min-height: 42px; }
.filter-toggle .filter-badge { margin-left: 2px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.sort select {
  appearance: none;
  padding: 10px 38px 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23095325' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.sort select:focus-visible { outline: none; border-color: var(--g-800); box-shadow: 0 0 0 4px rgba(9, 83, 37, .12); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.active-filters .chip-clear { gap: 6px; padding: 6px 10px 6px 14px; }
.active-filters .chip-clear .icon { width: 14px; height: 14px; }
.chip-reset { border: 0; background: none; font-size: .8125rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.chip-reset:hover { color: var(--o-600); text-decoration: underline; }

.listing-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive .empty { margin-top: 4px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination:empty { display: none; }
.page-btn {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.page-btn:hover:not(:disabled) { border-color: var(--g-800); color: var(--g-800); }
.page-btn.is-current { border-color: var(--g-800); background: var(--g-800); color: var(--white); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-btn .icon { width: 18px; height: 18px; }
.page-btn:first-child .icon { transform: rotate(90deg); }
.page-btn:last-child .icon { transform: rotate(-90deg); }

/* =========================================================
   TRANG CHI TIẾT
   ========================================================= */
.breadcrumb.is-dark ol { color: var(--muted); }
.breadcrumb.is-dark a { color: var(--g-800); font-weight: 600; }
.breadcrumb.is-dark li + li::before { color: var(--o-500); }
.breadcrumb.is-dark [aria-current="page"] { color: var(--o-600); }

.detail-top {
  padding-block: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.detail-title { flex: 1 1 520px; min-width: 0; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.detail-badges .listing-code,
.detail-badges .listing-tag { position: static; }
.detail-badges .listing-code { background: var(--g-900); }
.detail-posted { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
.detail-place { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 600; color: var(--muted); }
.detail-place .icon { color: var(--o-600); }
.detail-price {
  flex: none;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--o-100);
  text-align: right;
  color: var(--o-600);
}
.detail-price small { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.detail-price strong { display: block; font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.detail-price span { font-size: .875rem; font-weight: 600; }

.detail-body { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}
.detail-main { display: grid; gap: 22px; min-width: 0; }

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--g-100);
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.gallery-nav:hover { background: var(--o-600); color: var(--white); }
.gallery-nav.is-prev { left: 14px; }
.gallery-nav.is-next { right: 14px; }
.gallery-nav.is-prev .icon { transform: rotate(90deg); }
.gallery-nav.is-next .icon { transform: rotate(-90deg); }
.gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(3, 32, 15, .78);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--white);
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gallery-thumb {
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  opacity: .7;
  transition: opacity .18s, border-color .18s;
}
.gallery-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { border-color: var(--o-500); opacity: 1; }

.detail-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.detail-quick > div { padding: 16px 20px; }
.detail-quick > div + div { border-left: 1px solid var(--line); }
.detail-quick dt { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.detail-quick dt .icon { color: var(--o-600); }
.detail-quick dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 800; color: var(--ink); }

.detail-card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.detail-card h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 16px;
  font-size: 1.25rem;
  font-weight: 800;
}
.detail-card h2::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--o-500);
}
.detail-card > p { margin: 0 0 12px; line-height: 1.75; }
.detail-card > p:last-child { margin-bottom: 0; }

.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.spec-table > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-table dt { font-size: .875rem; color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 700; color: var(--ink); }

.check-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.detail-note { margin: -4px 0 14px; font-size: .9375rem; color: var(--muted); }
.detail-map { display: block; width: 100%; height: 340px; border: 0; border-radius: 12px; background: var(--g-100); }

.detail-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.contact-box { overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-md); }
.contact-box .agent { padding: 22px; border-bottom: 3px solid var(--o-500); background: var(--g-900); }
.contact-box .agent h3 { color: var(--white); }
.contact-box .agent p { color: #b9d3c0; }
.contact-box .agent-avatar { box-shadow: 0 0 0 3px var(--g-900), 0 0 0 5px var(--o-500); }
/* Form đặt lịch xem (cột phải trang chi tiết): cùng kiểu với form Liên hệ, gọn cho cột hẹp */
.visit-form { display: grid; gap: 14px; padding: 22px; }
.visit-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.visit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--o-500);
  box-shadow: 0 12px 22px -12px rgba(250, 101, 23, .95);
  color: var(--white);
}
.visit-icon .icon { width: 22px; height: 22px; }
.visit-head h2 { margin: 0; font-size: 1.1875rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.visit-head p { margin: 3px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.visit-code {
  flex: none;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--g-900);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--white);
}
.visit-form .field label { font-weight: 700; }
.visit-form .field input,
.visit-form .field textarea { padding: 11px 14px; border-color: #d3ddd4; background-color: var(--white); }
.visit-form .field input { min-height: 48px; }
.visit-form .field.has-icon input { padding-left: 44px; }
.visit-form .field textarea { min-height: 88px; }
/* Ô ngày: bấm vào đâu trong ô cũng mở lịch (ẩn nút lịch mặc định, trải nó lên cả ô; icon lịch bên trái đã có) */
.visit-form input[type="date"] { position: relative; cursor: pointer; }
.visit-form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}

/* Nút chọn nhanh ngày xem */
.quick-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.quick-day {
  display: grid;
  gap: 1px;
  padding: 7px 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--g-50);
  font: inherit;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.quick-day strong { font-size: .8125rem; font-weight: 700; }
.quick-day span { font-size: .75rem; color: var(--muted); }
.quick-day:hover { border-color: var(--o-500); background: var(--white); color: var(--o-700); }
.quick-day[aria-pressed="true"] { border-color: var(--g-800); background: var(--g-800); color: var(--white); }
.quick-day[aria-pressed="true"] span { color: #cfe3d4; }
.quick-day:focus-visible { outline: 3px solid var(--o-500); outline-offset: 2px; }

.visit-submit { width: 100%; min-height: 54px; justify-content: center; margin-top: 4px; font-size: 1rem; }
.visit-form .form-note { margin-top: -4px; }
.visit-form .form-status { margin: 0; }
.copy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--g-50);
  font-size: .875rem;
  font-weight: 700;
  color: var(--g-800);
  cursor: pointer;
}
.copy-link:hover { background: var(--g-100); }

.detail-missing { max-width: 640px; text-align: center; }
.detail-missing .roof-mark { margin: 0 auto 10px; }
.detail-missing h1 { margin: 0 0 12px; font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 800; }
.detail-missing p { color: var(--muted); }
.detail-missing a:not(.btn) { font-weight: 700; color: var(--o-600); }
.detail-missing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

@media (max-width: 1180px) {
  .listing-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Laptop nhỏ: menu chữ hoa 16px + mục "Đất công nghiệp" dài – thu logo và khoảng cách để header vừa một hàng */
@media (max-width: 1080px) and (min-width: 961px) {
  .nav-link { padding-inline: 7px; }
  .nav-link::after { left: 7px; right: 7px; }
  .has-mega .nav-link { padding-right: 2px; }
  .header-inner { gap: 12px; }
  .brand img { height: 44px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .header-inner .brand img { height: 42px; } /* thắng .brand img ở khối responsive phía sau */
}

@media (max-width: 960px) {
  .archive-layout { grid-template-columns: minmax(0, 1fr); }
  /* Nút "Bộ lọc": khối xanh đặc, icon thanh trượt cam, số điều kiện đang lọc */
  .filter-toggle {
    display: inline-flex;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    background: var(--g-800);
    box-shadow: 0 12px 22px -14px rgba(9, 83, 37, .9);
    color: var(--white);
  }
  .filter-toggle .icon { width: 19px; height: 19px; color: var(--o-400); }
  .filter-toggle:hover { background: var(--g-700); color: var(--white); }
  .filter-toggle .filter-badge { box-shadow: 0 0 0 2px var(--g-800); }
  /* Bộ lọc thành tấm trượt từ đáy màn hình: đầu xanh, thân cuộn, chân có nút "Xem … kho" */
  .archive-filters {
    position: fixed;
    inset: auto 0 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    max-height: min(88dvh, 780px);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
  }
  .archive-filters.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .filter-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .45);
  }
  .filter-head { flex: none; padding: 20px 16px 14px 20px; }
  /* vạch kéo nhỏ ở mép trên cho ra dáng tấm trượt */
  .filter-head::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .35);
  }
  .filter-close { display: grid; }
  .filter-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .filter-foot {
    display: block;
    flex: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--white);
  }
  .filter-apply { width: 100%; justify-content: center; }
  .filter-help { display: none; }
  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(3, 32, 15, .6);
    backdrop-filter: blur(4px);
    animation: backdrop-in .25s ease;
  }
  @keyframes backdrop-in { from { opacity: 0; } }
  .listing-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
}

@media (max-width: 760px) {
  .header-search { width: 44px; height: 44px; }
  .search-panel { padding-top: 12px; }
  .search-panel-row { flex-wrap: wrap; border-radius: var(--radius); }
  .search-panel-row .search-field { flex-basis: 100%; }
  .search-panel-row .search-field input { padding-block: 12px; font-size: 1rem; }
  .search-panel-row .search-select { flex: 1; padding-left: 0; border-left: 0; }
  .search-panel-row .search-select select { width: 100%; background-color: var(--g-50); }
  .search-panel-row .btn { min-height: 48px; padding-inline: 22px; }
  .search-type { gap: 4px; }
  .search-type span { padding: 11px 16px 12px; }
  .search-keys { display: none; }
  .archive-toolbar { padding: 12px; }
  .archive-tools { width: 100%; }
  .archive-tools > * { flex: 1; }
  .sort { justify-content: flex-end; }
  .sort span { display: none; }
  .sort select { flex: 1; width: 100%; min-height: 46px; }
  .detail-quick { grid-template-columns: minmax(0, 1fr); }
  .detail-quick > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .spec-table,
  .check-list.is-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-price { text-align: left; }
}

@media (max-width: 520px) {
  .listing-grid.is-3 { grid-template-columns: minmax(0, 1fr); }
  .gallery-thumbs { gap: 6px; }
  .gallery-nav { width: 40px; height: 40px; margin-top: -20px; }
  .spec-table > div { grid-template-columns: 110px minmax(0, 1fr); }
  .detail-map { height: 260px; }
}

/* =========================================================
   TIN TỨC: lưu trữ (tab chuyên mục, bài nổi bật) + trang đọc bài
   ========================================================= */
.news-archive { padding-top: clamp(32px, 4vw, 56px); }
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 14px;
}
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.news-tab:hover { border-color: var(--g-800); color: var(--g-800); }
.news-tab[aria-pressed="true"] { border-color: var(--g-800); background: var(--g-800); color: var(--white); }
.news-tab[aria-pressed="true"] .count { background: rgba(255, 255, 255, .18); color: var(--white); }

.news-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 320px;
  padding: 4px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.news-search:focus-within { border-color: var(--g-800); box-shadow: 0 0 0 4px rgba(9, 83, 37, .12); }
.news-search .icon { color: var(--g-800); }
.news-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--ink); }
.news-search input:focus { outline: none; }
.news-count { margin: 0 0 22px; color: var(--muted); }
.news-count strong { color: var(--g-800); }
.news-archive .post-grid:not(:empty) { margin-top: 22px; }

/* Nhãn chuyên mục dạng viên thuốc (không nằm đè trên ảnh) */
.tag-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--o-600);
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.tag-cat:hover { background: var(--o-700); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}
.article-meta li { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { color: var(--o-600); }

/* Bài nổi bật */
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.post-feature-image { position: relative; display: block; overflow: hidden; min-height: 100%; background: var(--g-100); }
.post-feature-image img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform .6s ease-in-out; }
.post-feature:hover .post-feature-image img { transform: scale(1.05); }
.post-feature-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 200%;
  height: 0;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}
.post-feature:hover .post-feature-image::before { height: 250%; background: transparent; transition: height .6s linear, background-color .6s linear; }
.post-feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3.5vw, 44px); }
.post-feature-body h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; line-height: 1.3; text-wrap: balance; }
.post-feature-body h2 a { color: var(--ink); text-decoration: none; }
.post-feature-body h2 a:hover { color: var(--g-800); }
.post-feature-body p { margin: 0 0 6px; color: var(--muted); }

/* ---------- Trang đọc bài ---------- */
.article-top {
  padding-block: clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.article-head { max-width: 860px; }
.article-head .tag-cat { margin-bottom: 14px; }
.article-head h1 {
  margin: 0;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.article-lead { max-width: 60ch; margin: 16px 0 18px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.65; color: var(--body); }

.article-wrap { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
.article-main { min-width: 0; }
.article-cover { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Chữ bài viết: dòng ngắn (~70 ký tự), giãn dòng rộng cho dễ đọc */
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.8; color: var(--body); }
.prose > * { margin: 0 0 1.1em; }
.prose h2 {
  margin: 1.8em 0 .6em;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; margin-bottom: .5em; padding-left: 28px; }
.prose li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--o-500);
  box-shadow: 0 0 0 4px var(--o-100);
}
.prose blockquote {
  position: relative;
  margin: 1.6em 0;
  padding: 20px 24px 20px 28px;
  border-left: 4px solid var(--o-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--g-50);
  font-weight: 600;
  color: var(--g-800);
}
.prose blockquote p { margin: 0; }

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 36px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.article-tags,
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-tags > span,
.article-share > span { margin-right: 4px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.article-tags a {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--g-50);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--g-800);
  text-decoration: none;
}
.article-tags a:hover { background: var(--g-800); color: var(--white); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--g-800); color: var(--g-800); }

.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.article-nav-item {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.article-nav-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-nav-item.is-next { grid-column: 2; text-align: right; }
.article-nav-item small { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; color: var(--o-600); }
.article-nav-item strong { font-size: .9375rem; line-height: 1.45; color: var(--ink); }

/* Cột phải */
.article-aside { display: grid; gap: 20px; }
.side-widget { padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.side-widget h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--o-500);
  font-size: 1.0625rem;
  font-weight: 800;
}
/* Không đánh số tự động: tiêu đề trong bài có thể đã có số ("1.", "Bước 1:") */
.toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--body);
  text-decoration: none;
}
.toc a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--o-500); transform: translateY(-2px); }
.toc a:hover { background: var(--g-50); color: var(--g-800); }

.cat-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
}
.cat-list a:hover { background: var(--g-50); color: var(--g-800); }
.cat-list a[aria-current="true"] { background: var(--g-800); color: var(--white); }
.cat-list a[aria-current="true"] .count { background: var(--o-600); color: var(--white); }

.recent-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.recent-list a { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; text-decoration: none; }
.recent-list img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; }
.recent-list strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.recent-list a:hover strong { color: var(--g-800); }
.recent-list time { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }

.side-widget.is-cta { position: relative; overflow: hidden; background: var(--g-900); color: #cfe3d4; }
.side-widget.is-cta .roof-mark { margin-bottom: 8px; color: var(--o-500); }
.side-widget.is-cta h2 { padding: 0; border: 0; color: var(--white); }
.side-widget.is-cta p { margin: 0 0 16px; font-size: .9375rem; }
.side-widget.is-cta .btn { width: 100%; margin-top: 8px; }

@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 960px) {
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .post-feature-image img { min-height: 0; aspect-ratio: 16 / 9; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .news-search { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .news-tabs { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .news-tabs::-webkit-scrollbar { display: none; }
  .news-tab { flex: none; }
  .article-nav { grid-template-columns: minmax(0, 1fr); }
  .article-nav-item.is-next { grid-column: auto; text-align: left; }
  .prose { font-size: 1rem; }
}

/* =========================================================
   TRANG 404: cửa cuốn đã đóng, sơn số 404
   ========================================================= */
.error-hero {
  --wave-h: clamp(44px, 7vw, 110px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(32px, 4.5vw, 64px) calc(clamp(36px, 4.5vw, 68px) + var(--wave-h));
  background: var(--g-900);
  color: var(--white);
}
.error-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(250, 101, 23, .16), transparent 55%),
    linear-gradient(100deg, rgba(3, 32, 15, .95) 0%, rgba(5, 51, 27, .9) 50%, rgba(9, 83, 37, .72) 100%);
}
.error-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.error-door { position: relative; width: 100%; max-width: 360px; margin-inline: auto; padding-top: 52px; }
.error-roof { position: absolute; top: 0; left: -7%; width: 114%; height: 56px; overflow: visible; }
.error-roof polyline {
  fill: none;
  stroke: var(--o-500);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.error-frame {
  overflow: hidden;
  padding: 14px 14px 0;
  border-radius: 8px 8px 0 0;
  background: #0a4520;
  box-shadow: var(--shadow-lg);
}
.error-shutter {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3.3;
  background-color: var(--g-900);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, .08) 0 2px,
    transparent 2px 14px,
    rgba(0, 0, 0, .3) 14px 16px
  );
  box-shadow: inset 0 -18px 0 #0a4520;
  animation: shutter-down 1.1s cubic-bezier(.2, .7, .2, 1) .15s both;
}
.error-shutter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 84px;
  height: 8px;
  margin-left: -42px;
  border-radius: 4px;
  background: #13733a;
}
.error-shutter span {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--o-400);
  text-shadow: 0 4px 0 rgba(0, 0, 0, .28);
}
.error-door::after {
  content: "";
  display: block;
  height: 8px;
  margin: 0 -12%;
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
}
@keyframes shutter-down {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}

.error-copy h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.028em;
  color: var(--white);
}
.error-lead { max-width: 36em; margin: 16px 0 28px; font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.65; color: #d5e6d9; }

.error-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 580px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.error-search:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(250, 101, 23, .4); }
.error-search > .icon { width: 20px; height: 20px; color: var(--g-800); }
.error-search input { flex: 1; min-width: 0; padding: 12px 6px; border: 0; background: transparent; font-size: 1rem; color: var(--ink); }
.error-search input::placeholder { color: #86968b; }
.error-search input:focus { outline: none; }
.error-search .btn { min-height: 48px; }

.error-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.error-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background-color .18s, color .18s;
}
.error-links .icon { color: var(--o-400); }
.error-links a:hover { background: var(--white); color: var(--g-800); }
.error-links a:hover .icon { color: var(--o-600); }

@media (max-width: 960px) {
  .error-inner { grid-template-columns: minmax(0, 1fr); }
  .error-door { max-width: 300px; }
}

@media (max-width: 520px) {
  .error-door { max-width: 240px; padding-top: 40px; }
  .error-roof { height: 44px; }
  .error-search { flex-wrap: wrap; padding: 8px; border-radius: var(--radius); }
  .error-search > .icon { margin-left: 10px; }
  .error-search .btn { flex-basis: 100%; }
}

/* =========================================================
   DROPDOWN <select>: tạo kiểu cả danh sách xổ xuống
   Chrome, Edge, Cốc Cốc bản mới hỗ trợ appearance: base-select nên danh sách được bo góc,
   đổ bóng, tô màu thương hiệu. Safari, Firefox chưa hỗ trợ: vẫn dùng danh sách mặc định
   của hệ điều hành, ô chọn giữ nguyên kiểu ở trên – không có gì bị vỡ.
   ========================================================= */
@supports (appearance: base-select) {
  .field select,
  .search-select select,
  .sort select {
    appearance: base-select;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-image: none; /* mũi tên vẽ bằng ::picker-icon bên dưới */
  }
  .field select,
  .sort select { padding-right: 14px; }
  .search-select select { padding-right: 12px; }

  .field select::picker-icon,
  .search-select select::picker-icon,
  .sort select::picker-icon {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23095325' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / 16px;
    transition: rotate .2s ease;
  }
  .field select:open::picker-icon,
  .search-select select:open::picker-icon,
  .sort select:open::picker-icon { rotate: 180deg; }
  .field select:open,
  .sort select:open { border-color: var(--g-800); background-color: var(--white); }

  /* Khung danh sách: bo góc, đổ bóng mềm thay cho viền, hiện ra trượt nhẹ */
  ::picker(select) {
    appearance: base-select;
    max-height: min(340px, 60vh);
    margin-block: 8px;
    padding: 6px;
    overflow-y: auto;
    border: 0;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(9, 83, 37, .08), 0 24px 48px -16px rgba(3, 32, 15, .38);
    scrollbar-width: thin;
    scrollbar-color: var(--steel, #c9d0c7) transparent;
    opacity: 0;
    translate: 0 -6px;
    transition: opacity .16s ease, translate .16s ease, display .16s allow-discrete, overlay .16s allow-discrete;
  }
  ::picker(select):popover-open { opacity: 1; translate: 0; }
  /* Ô sắp xếp nằm sát mép phải thanh công cụ: danh sách canh theo mép phải của ô */
  .sort select::picker(select) {
    position-area: block-end span-inline-start;
    position-try-fallbacks: block-start span-inline-start;
  }
  @starting-style {
    ::picker(select):popover-open { opacity: 0; translate: 0 -6px; }
  }

  /* Từng lựa chọn: rê chuột nền xanh nhạt, đang chọn nền xanh thương hiệu + dấu ✓ cam */
  .field option,
  .search-select option,
  .sort option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .12s, color .12s;
  }
  .field option:hover,
  .field option:focus-visible,
  .search-select option:hover,
  .search-select option:focus-visible,
  .sort option:hover,
  .sort option:focus-visible { background: var(--g-50); color: var(--g-800); outline: none; }
  .field option:checked,
  .search-select option:checked,
  .sort option:checked { background: var(--g-800); color: var(--white); font-weight: 700; }
  .field option::checkmark,
  .search-select option::checkmark,
  .sort option::checkmark { order: 1; margin-inline-start: auto; font-weight: 800; color: var(--o-400); }
}

/* =========================================================
   CON TRỎ CHUỘT TÙY BIẾN (chỉ máy có chuột; main.js tạo phần tử .cursor)
   Chấm cam bám theo chuột; rê vào link thì thành vòng mờ;
   rê vào ảnh/thẻ có data-cursor-text thì phình to, hiện chữ "Xem".
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}
.cursor::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--o-500);
  transform: scale(0);
  transition: transform .3s ease-in-out, background-color .3s;
}
.cursor.is-visible::before { transform: scale(.22); }
.cursor.is-visible.is-active::before { transform: scale(.3); }
.cursor.is-visible.is-pointer::before { transform: scale(.8); background: rgba(250, 101, 23, .2); }
.cursor.is-visible.is-text::before { transform: scale(1.15); background: rgba(9, 83, 37, .92); } /* ~55px */
.cursor-text {
  position: absolute;
  top: -18px;
  left: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0;
  transform: scale(0) rotate(10deg);
  transition: opacity .3s, transform .3s;
}
.cursor.is-visible.is-text .cursor-text { opacity: 1; transform: none; }
/* Chỉ ẩn con trỏ hệ thống khi đang ở chế độ chữ (main.js gắn .cursor-hide) */
.has-cursor .cursor-hide,
.has-cursor .cursor-hide a { cursor: none; }

/* =========================================================
   HIỆN DẦN KHI CUỘN TỚI (main.js gắn .reveal; không có JS thì mọi thứ vẫn hiện)
   ========================================================= */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.has-reveal .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Nút hotline thu gọn (chỉ còn vòng tròn cam) từ 1240px: menu chữ hoa + "Đất công nghiệp" cần thêm chỗ */
@media (max-width: 1240px) {
  .hh-text { display: none; }
  .header-hotline { padding: 0; background: none; }
  .header-hotline:hover { background: none; }
  .header-hotline .hh-icon {
    width: 46px;
    height: 46px;
    box-shadow: 0 8px 18px -8px rgba(207, 74, 6, .7);
    transition: background-color .18s, transform .18s;
  }
  .header-hotline .hh-icon .icon { width: 20px; height: 20px; }
  .header-hotline:hover .hh-icon { background: var(--o-700); transform: scale(1.05); }
}

@media (max-width: 1180px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar-mail { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { height: 46px; }
  .topbar-company .topbar-address { display: none; }

  /* Menu di động */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-top: 3px solid var(--o-500);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: 4px var(--gutter) 16px; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 15px 4px; }
  .nav-link::after { display: none; }
  .mega-toggle { width: 44px; height: 44px; }
  .mega {
    position: static;
    width: 100%;
    padding: 4px 0 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .has-mega.is-open .mega { display: block; }
  .mega-feature { display: none; } /* menu di động: chỉ giữ danh sách tỉnh – khu vực */
  .mega-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; padding: 0; }

  /* Banner xếp dọc */
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); } /* một cột: vẫn giữ tên công ty trên một dòng */
  .hotline-card { max-width: 520px; }

  /* Thân trang một cột: khu vực → nội dung → nhân viên (bỏ cố định cột trái) */
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "regions" "content" "staff";
    row-gap: 32px;
  }
  .sidebar { display: contents; }
  .regions { grid-area: regions; }
  .staff { grid-area: staff; }
  .agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .agent + .agent { border-top: 0; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar-link { display: none; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }

  .search { flex-wrap: wrap; border-radius: var(--radius); }
  .search-field { flex-basis: 100%; }
  .search-select { flex: 1; padding-left: 0; border-left: 0; }
  .search-select select { width: 100%; background-color: var(--g-50); }
  .search .btn { min-height: 46px; }
  .filter-status { margin-left: 4px; }

  .footer-contact ul { grid-template-columns: minmax(0, 1fr); }
  .footer-map { height: auto; }
  .footer-map iframe { position: static; height: 280px; }
  .map-card-wrap { position: static; padding-bottom: 28px; }
  .map-card { position: relative; max-width: none; margin-top: -44px; }

  /* Zalo + Gọi thành thanh cố định dưới đáy */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .quick-contact {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    box-shadow: 0 -8px 24px -12px rgba(3, 32, 15, .35);
  }
  .qc { flex: 1; justify-content: center; min-height: 50px; border-radius: 999px; font-weight: 700; }
  .qc-zalo { order: 2; background: var(--zalo); color: var(--white); }
  .qc-call { order: 1; background: var(--o-600); color: var(--white); }
  .qc-top { display: none; }
  .qc-icon { width: auto; height: auto; background: none !important; box-shadow: none; }
  .qc-zalo .qc-icon { display: none; }
  .qc-call .qc-icon::after { display: none; }
  .qc-label {
    order: 2;
    padding: 0;
    background: none;
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .topbar-name { font-size: .75rem; }
  /* Banner điện thoại gọn: 2 nhãn lĩnh vực một hàng, nút thấp hơn */
  .hero-fields { gap: 8px; margin-top: 18px; }
  .hero-fields li { gap: 6px; padding: 6px 10px; font-size: .8125rem; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 48px; font-size: .9375rem; }
  .hotline-card { padding: 26px 18px 20px; }
  .block-head { align-items: flex-start; flex-direction: column; }

  /* Thẻ tin nằm ngang: ảnh trái, thông số phải */
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .listing { display: grid; grid-template-columns: min(38%, 150px) minmax(0, 1fr); }
  .listing-media { aspect-ratio: auto; min-height: 100%; }
  .listing-media img { position: absolute; inset: 0; }
  .listing-media::after { inset: 55% 0 0; }
  .listing-code { top: 8px; left: 8px; }
  .listing .listing-tag { display: none; } /* chỉ ẩn trên thẻ tin dạng ngang, không ẩn ở trang chi tiết */
  .listing-place { left: 8px; right: 8px; bottom: 8px; font-size: .75rem; }
  .listing-body { gap: 10px; padding: 12px; }
  .listing-title { font-size: .9375rem; }

  /* Footer điện thoại: hai danh sách link đứng cạnh nhau, logo và bản đồ nhỏ lại */
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .footer-about,
  .footer-contact { grid-column: 1 / -1; }
  .footer-links h2 { font-size: .875rem; }
  .footer-logo { height: 48px; margin-bottom: 14px; }
  .footer-map iframe { height: 240px; }
  .cta-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
