/* =====================================================================
   Capital Office — Premium Spatial UI · Emerald & Champagne
   Warm ivory · deep emerald · champagne gold · glassmorphism · soft depth
   ===================================================================== */
:root {
  --bg:        #f4f1ea;
  --ink:       #18211c;
  --text:      #2b352e;
  --muted:     #6a7269;
  --dim:       #9aa39a;

  --glass:     rgba(255, 255, 255, 0.50);
  --glass-2:   rgba(255, 255, 255, 0.68);
  --glass-3:   rgba(255, 255, 255, 0.84);
  --hi:        rgba(255, 255, 255, 0.92);
  --line:      rgba(24, 33, 28, 0.10);
  --line-2:    rgba(24, 33, 28, 0.16);

  --emerald:   #0f5a4a;
  --emerald-2: #16745d;
  --emerald-3: #1f9070;
  --gold:      #c8a45c;
  --gold-2:    #b0863a;

  --grad:      linear-gradient(120deg, #0f5a4a 0%, #1a7d63 100%);
  --grad-lux:  linear-gradient(120deg, #0f5a4a 0%, #2f8f6a 52%, #c8a45c 100%);
  --grad-soft: linear-gradient(120deg, rgba(15,90,74,.12), rgba(200,164,92,.16));

  --radius: 20px;
  --radius-sm: 13px;
  --shadow-sm: 0 8px 22px -12px rgba(20, 55, 44, 0.42);
  --shadow:    0 26px 60px -30px rgba(20, 55, 44, 0.55);
  --glow:      0 20px 50px -22px rgba(15, 90, 74, 0.42);
  --container: 1200px;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: rgba(15,90,74,.2); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 1000px; }

/* ---------- Animated aurora background (subtle jewel tones) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg); }
.bg-fx::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 46% at 15% 16%, rgba(15,90,74,.30), transparent 62%),
    radial-gradient(42% 48% at 85% 12%, rgba(200,164,92,.26), transparent 62%),
    radial-gradient(46% 52% at 80% 86%, rgba(22,116,93,.24), transparent 62%),
    radial-gradient(40% 46% at 8% 88%, rgba(200,164,92,.18), transparent 62%),
    radial-gradient(38% 42% at 52% 50%, rgba(15,90,74,.14), transparent 64%);
  filter: blur(36px) saturate(115%);
  animation: aurora 28s ease-in-out infinite alternate;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(24,33,28,.035) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(90deg, rgba(24,33,28,.035) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(180deg, rgba(244,241,234,.34), rgba(244,241,234,.56));
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(2.5%, -2%, 0); }
  100% { transform: translate3d(-3%, 2.5%, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 24px; border-radius: 13px; cursor: pointer; white-space: nowrap;
  color: #fff; border: none; position: relative; isolation: isolate;
  background: var(--grad); background-size: 180% 180%; background-position: 0% 50%;
  box-shadow: 0 14px 32px -14px rgba(15,90,74,.7), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .18s ease, box-shadow .25s ease, background-position .6s ease;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 20px 42px -14px rgba(15,90,74,.6), inset 0 1px 0 rgba(255,255,255,.32); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }

.btn-ghost {
  background: var(--glass-2); color: var(--ink); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow-sm);
}
.btn-ghost:hover { color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(15,90,74,.5), 0 14px 30px -16px rgba(15,90,74,.5); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--emerald); box-shadow: 0 14px 30px -16px rgba(15,90,74,.4); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost--light { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.btn-ghost--light:hover { background: rgba(255,255,255,.3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244,241,234,.45); backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(247,245,239,.78);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 38px -28px rgba(20,55,44,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 22px; color: #fff;
  background: var(--grad-lux); background-size: 180% 180%;
  box-shadow: 0 10px 24px -12px rgba(15,90,74,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
@keyframes hue { to { background-position: 100% 50%; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand-text small { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.brand--footer .brand-text strong { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 9px 15px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--muted); transition: .16s; }
.main-nav a:hover { color: var(--ink); background: var(--glass-2); }
.main-nav a.active { color: var(--emerald); }
.main-nav a.nav-cta { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -14px rgba(15,90,74,.6); font-weight: 600; }
.main-nav a.nav-cta:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 9px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow / tech labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--emerald); font-weight: 500; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 30px; background: var(--glass-2); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(200,164,92,.9); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center; padding: 90px 22px 82px; position: relative; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.035em; color: var(--ink);
}
.hero h1 .hl, .hero h1 b {
  background: var(--grad-lux); background-size: 180% 180%; -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.hero-sub { color: #45504a; font-size: 18.5px; max-width: 560px; }
.hero-search {
  display: flex; gap: 10px; margin: 32px 0; max-width: 545px; padding: 9px;
  background: var(--glass-2); border-radius: 18px; backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow-sm);
}
.hero-search select {
  flex: 1; padding: 13px 14px; border-radius: 12px; border: none; font-size: 15px; font-family: var(--font);
  color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.hero-search select:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(15,90,74,.55); }
.hero-stats { display: flex; gap: 14px; margin-top: 32px; }
.hero-stats > div {
  flex: 1; padding: 17px 19px; border-radius: 16px; background: var(--glass-2); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi);
}
.hero-stats strong {
  display: block; font-family: var(--mono); font-size: 27px; font-weight: 700;
  background: var(--grad-lux); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { font-size: 12.5px; color: var(--muted); }
.hero-media { position: relative; }
.hero-media::after {
  content: ""; position: absolute; inset: -14% -10%; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 0deg, #16745d, #c8a45c, #0f5a4a, #d8bd84, #16745d);
  filter: blur(46px); opacity: .3;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-media img {
  border-radius: 24px; width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6);
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; position: relative; }
.section--muted { background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.1)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(25px, 3vw, 34px); margin: 0 0 8px; position: relative; padding-left: 17px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 5px; background: var(--grad-lux); box-shadow: 0 0 16px rgba(15,90,74,.5); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Glass cards ---------- */
.card {
  position: relative; background: var(--glass); border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi), var(--shadow-sm);
  backdrop-filter: blur(10px) saturate(130%);
  display: flex; flex-direction: column; transition: transform .28s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: inset 0 0 0 1px rgba(15,90,74,.36), 0 34px 62px -34px rgba(20,55,44,.55); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--mono);
  background: rgba(255,255,255,.8); color: var(--emerald); font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 6px 16px -8px rgba(20,55,44,.5); backdrop-filter: blur(8px);
}
.badge--soft { color: var(--gold-2); }
.card-body { padding: 19px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; }
.pill { font-size: 12.5px; font-weight: 500; padding: 4px 12px; border-radius: 30px; color: var(--emerald); background: rgba(15,90,74,.09); box-shadow: inset 0 0 0 1px rgba(15,90,74,.2); }
.rating { color: var(--gold-2); font-weight: 600; font-size: 14px; font-family: var(--mono); }
.rating small { color: var(--muted); }
.card-title { font-size: 18.5px; margin: 0; font-weight: 700; }
.card-title a:hover { color: var(--emerald); }
.card-address { color: var(--muted); font-size: 14px; margin: 0; }
.card-specs { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.card-specs li { display: flex; justify-content: space-between; font-size: 14px; }
.card-specs span { color: var(--muted); }
.card-specs strong { color: var(--ink); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1; }
.card-excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.card-foot { color: var(--dim); font-size: 12.5px; font-weight: 500; font-family: var(--mono); }

/* ---------- District tiles ---------- */
.district-tile {
  position: relative; background: var(--glass); border-radius: var(--radius); padding: 25px;
  display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: .26s; backdrop-filter: blur(9px);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi), var(--shadow-sm);
}
.district-tile::after { content: ""; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: var(--grad-lux); filter: blur(20px); opacity: .22; transition: .3s; }
.district-tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(15,90,74,.36), 0 28px 54px -32px rgba(20,55,44,.5); }
.district-tile:hover::after { opacity: .5; }
.district-tile strong { font-size: 19px; color: var(--ink); position: relative; }
.district-tile span { color: var(--muted); font-size: 13.5px; font-family: var(--mono); position: relative; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 52px;
  background: var(--grad); color: #fff;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto; height: 80%; background: conic-gradient(from 90deg, rgba(200,164,92,.55), rgba(31,144,112,.5), rgba(200,164,92,.55)); filter: blur(52px); opacity: .45; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(25px, 3vw, 34px); }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 580px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page head ---------- */
.page-head { position: relative; padding: 48px 0 32px; overflow: hidden; }
.page-head h1 { font-size: clamp(27px, 4vw, 44px); font-weight: 800; margin: 12px 0 10px; letter-spacing: -0.035em; }
.page-head p { color: var(--muted); margin: 0; max-width: 720px; }
.breadcrumb { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb span { color: var(--ink); }
.page-head--article { background-size: cover; background-position: center; padding: 90px 0; }
.page-head--article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,22,.42), rgba(12,28,22,.84)); }
.page-head--article .container { position: relative; z-index: 1; }
.page-head--article h1 { color: #fff; max-width: 800px; }
.page-head--article .breadcrumb--light, .page-head--article .breadcrumb--light a { color: #dfe7e1; }
.article-meta { margin-top: 10px; font-size: 13.5px; color: #dfe7e1; font-family: var(--mono); }

/* ---------- Filter chips ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.filter-bar:last-of-type { margin-bottom: 30px; }
.filter-label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 2px; }
.chip { padding: 9px 18px; border-radius: 30px; background: var(--glass-2); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi); font-size: 14px; font-weight: 500; color: var(--muted); transition: .18s; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip--active { color: #fff; background: var(--grad); box-shadow: 0 12px 26px -16px rgba(15,90,74,.6); font-weight: 600; }
.empty { color: var(--muted); padding: 34px 0; }

/* ---------- Listing page — control deck (2040) ---------- */
.listing-head { position: relative; padding: 44px 0 26px; overflow: hidden; }
.listing-head::before { content: ""; position: absolute; left: 8%; top: -70%; width: 55%; height: 200%; background: radial-gradient(closest-side, rgba(15,90,74,.14), transparent 70%); pointer-events: none; }
.listing-head .container { position: relative; }
.listing-head .breadcrumb { margin-bottom: 14px; }
.listing-head h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 16px; }
.listing-sub { color: var(--muted); }
.listing-sub a:hover { color: var(--emerald); }
.listing-intro { max-width: 770px; margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.listing-stats { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.listing-stats span { display: inline-flex; align-items: center; gap: 7px; }
.listing-stats b { color: var(--emerald); font-size: 16px; font-weight: 700; }
.listing-stats .live i { width: 8px; height: 8px; border-radius: 50%; background: #19b07a; animation: blip 1.8s infinite; }

.listing-body { padding-top: 6px; }
.filter-deck {
  background: rgba(255,255,255,.72); border-radius: 20px; padding: 16px 18px;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px;
}
.filter-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.filter-row .filter-label { flex: none; width: 58px; margin: 0; }
.filter-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.filter-inline .filter-row { flex: 0 1 auto; min-width: 0; }
.filter-inline .filter-label { width: auto; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(15,90,74,.06); box-shadow: inset 0 0 0 1px var(--line); }
.seg-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .18s; white-space: nowrap; }
.seg-item small { font-family: var(--mono); font-size: 11px; opacity: .65; font-weight: 500; }
.seg-item:hover { color: var(--ink); }
.seg-item.is-active { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -10px rgba(15,90,74,.6); }
.seg-item.is-active small { opacity: .85; }

.chip-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; flex: 1; min-width: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 93%, transparent);
          mask-image: linear-gradient(90deg, #000 93%, transparent);
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: none; }
.chip small { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 5px; }

.listing-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

@media (max-width: 560px) {
  .filter-row { flex-wrap: wrap; gap: 8px 10px; }
  .filter-row .filter-label { width: auto; }
  .seg { width: 100%; }
  .seg-item { flex: 1; justify-content: center; padding: 9px 6px; }
}

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 40px; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px var(--line); transition: .15s; }
.pager a:hover { box-shadow: inset 0 0 0 1px rgba(15,90,74,.45); color: var(--emerald); }
.pager .pager-num.is-active { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -14px rgba(15,90,74,.6); }
.pager .pager-btn { font-family: var(--mono); font-size: 13px; }

/* ---------- Detail page ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.detail-address { color: var(--muted); margin: 8px 0 14px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-price { background: var(--glass-2); border-radius: var(--radius); padding: 22px 26px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow-sm); text-align: right; min-width: 250px; backdrop-filter: blur(14px); }
.detail-price span { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.detail-price strong { display: block; font-size: 25px; margin: 6px 0 16px; background: var(--grad-lux); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--mono); }
.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 46px; align-items: start; }
.detail-main h2 { font-size: 24px; margin: 42px 0 16px; }
.detail-main h2:first-of-type { margin-top: 30px; }
.lead { font-size: 16.5px; color: #45504a; }

.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), var(--shadow); aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.5); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-credit { font-size: 11.5px; color: var(--muted); margin: 9px 0 0; font-family: var(--mono); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 12px; }
.thumb { padding: 0; border: none; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 16 / 10; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: .2s; }
.thumb:hover img { opacity: 1; }
.thumb.is-active { box-shadow: inset 0 0 0 2px var(--emerald), 0 0 18px -4px rgba(15,90,74,.6); }
.thumb.is-active img { opacity: 1; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.spec-grid > div { background: var(--glass-3); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; backdrop-filter: blur(6px); }
.spec-grid span { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.spec-grid strong { color: var(--ink); font-size: 15px; font-weight: 600; }

.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.amenity-list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.amenity-list li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 5px; background: var(--grad-lux); opacity: .2; }
.amenity-list li::after { content: "✓"; position: absolute; left: 3px; top: .02em; color: var(--emerald); font-size: 12px; font-weight: 800; }
.amenity-list--soft li::after { content: ""; }
.amenity-list--soft li::before { opacity: .14; }

.floorplan { margin: 0; background: var(--glass); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); backdrop-filter: blur(10px); }
.floorplan img { aspect-ratio: 16 / 9; object-fit: cover; }
.floorplan figcaption { padding: 14px 18px; display: flex; justify-content: space-between; }
.floorplan figcaption strong { color: var(--ink); }
.floorplan span { color: var(--muted); font-family: var(--mono); font-size: 13px; }

.faq details { border-radius: 14px; padding: 4px 19px; margin-bottom: 11px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(15,90,74,.32); }
.faq summary { font-weight: 600; cursor: pointer; padding: 14px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--emerald); font-family: var(--mono); font-size: 18px; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--gold-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 0 0 14px; }

.detail-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside-card { background: var(--glass); border-radius: var(--radius); padding: 23px; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi), var(--shadow-sm); backdrop-filter: blur(14px); }
.aside-card h3 { font-size: 17px; margin: 0 0 8px; }
.aside-card p { color: var(--muted); font-size: 14px; }
.aside-card .btn { margin-top: 8px; }

/* ---------- Area page ---------- */
.area-block { margin-bottom: 56px; }
.area-block:last-child { margin-bottom: 0; }
.area-intro { color: var(--muted); max-width: 860px; margin: -8px 0 20px; line-height: 1.75; font-size: 15px; }

/* ---------- SEO content block (cuối trang danh sách) ---------- */
.seo-section { padding-top: 0; }
.seo-content { max-width: 860px; }
.seo-content h2 { font-size: 22px; margin-bottom: 12px; }
.seo-content p { color: var(--muted); font-size: 15.5px; line-height: 1.78; margin-bottom: 12px; }

/* ---------- Article body ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 310px; gap: 46px; align-items: start; }
.article-body { font-size: 16.5px; color: #45504a; }
.article-body h1 { font-size: 31px; margin-bottom: 20px; }
.article-body h2 { font-size: 24px; margin: 40px 0 14px; }
.article-body h3 { font-size: 17px; margin: 20px 0 8px; background: var(--grad-lux); -webkit-background-clip: text; background-clip: text; color: transparent; }
.article-body strong { color: var(--ink); }
.article-body section { margin-bottom: 10px; }
.article-body .article-cta { background: var(--glass-2); border-radius: var(--radius); padding: 27px; margin-top: 32px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi); backdrop-filter: blur(10px); }
.article-body .article-cta h2 { margin-top: 0; }

/* ---------- Compare ---------- */
.compare-picker { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; background: var(--glass-2); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow-sm); margin-bottom: 32px; backdrop-filter: blur(14px); }
.compare-picker > div { flex: 1; min-width: 200px; }
.compare-picker label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.compare-picker select { width: 100%; padding: 12px 13px; border: none; border-radius: 12px; font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.compare-vs { font-family: var(--mono); font-weight: 700; color: var(--emerald); padding-bottom: 11px; }
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: var(--glass); backdrop-filter: blur(10px); }
.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; min-width: 560px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.compare-table thead th { background: var(--grad); color: #fff; font-size: 16px; }
.compare-table thead th a { color: #fff; }
.compare-table thead th a:hover { text-decoration: underline; }
.compare-table tbody th { color: var(--muted); width: 210px; font-weight: 500; font-family: var(--mono); font-size: 13px; }
.compare-table tbody td { color: var(--ink); }
.compare-img-row img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 330px; gap: 46px; align-items: start; }
.contact-form { background: var(--glass-2); border-radius: var(--radius); padding: 30px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow-sm); display: grid; gap: 16px; backdrop-filter: blur(16px); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); font-family: var(--mono); }
.field input, .field select, .field textarea { padding: 12px 14px; border: none; border-radius: 12px; font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(15,90,74,.6), 0 0 0 4px rgba(15,90,74,.12); }
.contact-info { display: grid; gap: 18px; }
.contact-info a:hover { color: var(--emerald); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }
.alert { border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.alert--success { background: rgba(15,90,74,.1); box-shadow: inset 0 0 0 1px rgba(15,90,74,.4); color: #0c5142; }
.alert--success strong { color: #0c5142; }
.alert p { margin: 5px 0 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: rgba(255,255,255,.52); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 0 0 30px; margin-top: 60px; }
.footer-glow { position: absolute; left: 50%; top: -120px; transform: translateX(-50%); width: 80%; height: 260px; background: var(--grad-lux); filter: blur(90px); opacity: .14; pointer-events: none; }

/* CTA strip */
.footer-cta {
  position: relative; overflow: hidden; margin: -34px 0 50px; border-radius: 26px; padding: 38px 44px;
  background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.footer-cta::before { content: ""; position: absolute; inset: -50% -10% auto; height: 90%; background: conic-gradient(from 90deg, rgba(200,164,92,.5), rgba(31,144,112,.5), rgba(200,164,92,.5)); filter: blur(54px); opacity: .42; pointer-events: none; }
.footer-cta > * { position: relative; }
.footer-cta__eyebrow { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); margin-bottom: 12px; }
.footer-cta__text h3 { color: #fff; margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 27px); }
.footer-cta__text p { color: rgba(255,255,255,.9); margin: 0; max-width: 540px; font-size: 15px; }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta__phone { display: inline-flex; align-items: center; gap: 9px; }
.footer-cta__phone svg { width: 17px; height: 17px; }

/* Grid */
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.3fr; gap: 40px 34px; }
.footer-col h4 { color: var(--ink); font-size: 13px; margin: 0 0 18px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: 14.5px; transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--emerald); transform: translateX(2px); }
.footer-col p { margin: 0 0 7px; font-size: 14.5px; color: var(--muted); }
.footer-desc { max-width: 330px; margin: 18px 0 20px; color: var(--muted); font-size: 14.5px; }
.footer-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 19px; padding: 0 6px; margin-left: 3px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--emerald); background: rgba(15,90,74,.09); border-radius: 999px; vertical-align: middle; }

/* Quick-action social buttons */
.footer-soc { display: flex; gap: 10px; }
.footer-soc__btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--emerald); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi); transition: transform .18s, color .18s, box-shadow .25s, background .25s; }
.footer-soc__btn svg { width: 19px; height: 19px; }
.footer-soc__btn:hover { transform: translateY(-3px); color: #fff; background: var(--grad); box-shadow: 0 14px 28px -14px rgba(15,90,74,.6); }

/* Contact rows */
.footer-col--contact .footer-contact { display: flex; align-items: center; gap: 13px; padding: 7px 0; margin: 0; }
.footer-contact__ic { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--emerald); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(15,90,74,.14); }
.footer-contact__ic svg { width: 18px; height: 18px; }
.footer-contact > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; font-size: 14.5px; color: var(--text); }
.footer-contact small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
a.footer-contact:hover .footer-contact__ic { color: #fff; background: var(--grad); }
a.footer-contact:hover > span { color: var(--emerald); }

/* Districts chip cloud */
.footer-areas { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-areas h4 { color: var(--ink); font-size: 13px; margin: 0 0 16px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.footer-areas__list { display: flex; flex-wrap: wrap; gap: 9px; }
.footer-chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; font-size: 13.5px; color: var(--text); background: var(--glass); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: color .16s, background .2s, box-shadow .2s, transform .16s; }
.footer-chip:hover { color: var(--emerald); background: var(--glass-3); box-shadow: inset 0 0 0 1px rgba(15,90,74,.4); transform: translateY(-2px); }
.footer-chip .footer-tag { margin-left: 1px; }

/* Bottom bar */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; }
.footer-bottom p { font-size: 13px; margin: 0; color: var(--dim); font-family: var(--mono); }
.footer-bottom__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom__links a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-bottom__links a:hover { color: var(--emerald); }
.footer-totop { font-family: var(--mono); color: var(--emerald) !important; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-family: var(--mono); font-size: 120px; margin: 0; background: var(--grad-lux); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h2 { margin: 6px 0 10px; }
.error-page p { color: var(--muted); }
.error-page .cta-actions { justify-content: center; margin-top: 26px; }

/* ---------- Scroll reveal ---------- */
.has-js .card,
.has-js .district-tile,
.has-js .area-block,
.has-js .spec-grid,
.has-js .floorplan,
.has-js .aside-card,
.has-js .cta-band,
.has-js .compare-table-wrap,
.has-js .hero-content,
.has-js .hero-media {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
}
.has-js .is-visible { opacity: 1 !important; transform: none !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,90,74,.3); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(176,134,58,.5); background-clip: padding-box; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; padding-top: 66px; }
  .hero-media { order: -1; max-width: 540px; }
  .detail-layout, .article-layout, .contact-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(247,245,239,.94); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 14px 22px; box-shadow: var(--shadow-sm);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }
  /* Hero: bỏ ép chiều cao + căn giữa -> nội dung ôm sát, hết khoảng trống */
  .stage { min-height: 0; padding: 34px 0 40px; align-items: stretch; }
  .section { padding: 48px 0; }
  .page-head { padding: 30px 0 24px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .detail-head { flex-direction: column; align-items: stretch; }
  .detail-price { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .spec-grid, .amenity-list { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .page-head { padding: 24px 0 20px; }
  .page-head h1 { font-size: 25px; }
  .cta-band { padding: 32px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .has-js .card, .has-js .district-tile, .has-js .area-block, .has-js .spec-grid,
  .has-js .floorplan, .has-js .aside-card, .has-js .cta-band, .has-js .compare-table-wrap,
  .has-js .hero-content, .has-js .hero-media { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   2040 — AI Concierge homepage: stage · console · bento · marquee · FX
   ===================================================================== */
.hl {
  background: var(--grad-lux); background-size: 180% 180%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---- Cursor glow (desktop only) ---- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 460px; height: 460px; z-index: -1; pointer-events: none;
  transform: translate3d(calc(var(--mx, -9999px) - 230px), calc(var(--my, -9999px) - 230px), 0);
  border-radius: 50%; opacity: 0; transition: opacity .35s; mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(15,90,74,.16), rgba(200,164,92,.08) 42%, transparent 70%);
}
.cursor-glow.on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---- Stage / hero ---- */
.stage { position: relative; padding: 56px 0 64px; min-height: min(84vh, 800px); display: flex; align-items: center; }
.stage-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stage-title { font-size: clamp(34px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin: 6px 0 18px; }
.stage-sub { color: #45504a; font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 32px; }
.stage-sub b { color: var(--emerald); font-family: var(--mono); }

/* ---- AI console ---- */
.console {
  width: 100%; max-width: 740px; background: var(--glass-2); border-radius: 24px; padding: 16px;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow);
  backdrop-filter: blur(20px); will-change: transform; transform-style: preserve-3d;
}
.console-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 15px; padding: 7px 7px 7px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.console-ai { color: var(--emerald); font-size: 20px; line-height: 1; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.12); } }
.console-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font); font-size: 16px; color: var(--ink); padding: 11px 0; }
.console-input::placeholder { color: var(--dim); }
.console-go { border: none; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 15px; color: #fff; background: var(--grad); padding: 12px 20px; border-radius: 12px; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 10px 24px -14px rgba(15,90,74,.7); transition: transform .2s; white-space: nowrap; }
.console-go:hover { transform: translateY(-1px); }
.console-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; }
.console-hint { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.chip-intent { font-size: 13px; padding: 7px 14px; border-radius: 30px; background: rgba(15,90,74,.07); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(15,90,74,.18); transition: .18s; }
.chip-intent:hover { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(15,90,74,.6); transform: translateY(-1px); }

/* ---- Ticker ---- */
.ticker { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 30px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ticker b { color: var(--emerald); }
.ticker span { display: inline-flex; align-items: center; gap: 8px; }
.ticker .live i { width: 8px; height: 8px; border-radius: 50%; background: #19b07a; animation: blip 1.8s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(25,176,122,.5); } 70% { box-shadow: 0 0 0 8px rgba(25,176,122,0); } 100% { box-shadow: 0 0 0 0 rgba(25,176,122,0); } }

/* ---- Bento grid ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 174px; gap: 18px; }
.bento-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi), var(--shadow-sm);
  backdrop-filter: blur(9px); padding: 22px; display: flex; flex-direction: column;
  transition: box-shadow .3s ease; will-change: transform; transform-style: preserve-3d;
}
.bento-tile:hover { box-shadow: inset 0 0 0 1px rgba(15,90,74,.32), 0 30px 56px -34px rgba(20,55,44,.5); }
.tile-go { font-family: var(--mono); font-size: 13px; color: var(--emerald); margin-top: auto; display: inline-flex; gap: 6px; align-items: center; }
.tile-go i { font-style: normal; transition: transform .2s; }
.bento-tile:hover .tile-go i { transform: translateX(4px); }

.tile-feature { grid-column: span 3; grid-row: span 2; justify-content: space-between; color: #fff; padding: 26px; }
.tile-feature::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover; z-index: -2; transition: transform .6s ease; }
.tile-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,22,.12), rgba(12,28,22,.84)); z-index: -1; }
.tile-feature:hover::before { transform: scale(1.06); }
.tile-feature-top { display: flex; gap: 8px; }
.tile-feature .pill { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.tile-feature h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.tile-feature p { color: rgba(255,255,255,.86); margin: 0 0 12px; font-size: 14.5px; }
.tile-feature .tile-go { color: #fff; }

.tile-stat { grid-column: span 3; grid-row: span 1; justify-content: center; }
.tile-stat .big { font-family: var(--mono); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1; background: var(--grad-lux); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-cap { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 280px; }

.tile-ai { grid-column: span 3; grid-row: span 1; }
.tile-ai-head { font-family: var(--mono); font-size: 12.5px; color: var(--emerald); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ai-insight { color: var(--text); font-size: 15px; margin: 0; min-height: 50px; transition: opacity .4s; }

.tile-mini { grid-column: span 2; grid-row: span 1; justify-content: flex-end; color: #fff; }
.tile-mini::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover; z-index: -2; transition: transform .6s ease; }
.tile-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,22,.08), rgba(12,28,22,.8)); z-index: -1; }
.tile-mini:hover::before { transform: scale(1.06); }
.tile-mini h4 { color: #fff; margin: 0 0 2px; font-size: 17px; }
.tile-mini span { color: rgba(255,255,255,.86); font-size: 13px; font-family: var(--mono); }

.tile-area { grid-column: span 2; grid-row: span 1; }
.area-form { display: flex; gap: 8px; margin-top: 12px; }
.area-select {
  flex: 1; min-width: 0; padding: 13px 38px 13px 14px; border: none; border-radius: 12px;
  font-family: var(--font); font-size: 15px; color: var(--ink); background-color: #fff;
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f5a4a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.area-select:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(15,90,74,.55); }
.area-go { border: none; cursor: pointer; padding: 0 18px; border-radius: 12px; color: #fff; background: var(--grad); font-weight: 600; font-size: 14px; white-space: nowrap; }
/* Nút chọn thành phố ở hero trang chủ */
.city-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.city-pick-q { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-right: 2px; }
.city-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 20px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; color: var(--ink); transition: .18s; }
.city-pill small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.city-pill:hover { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(15,90,74,.7); transform: translateY(-2px); }
.city-pill:hover small { color: rgba(255,255,255,.82); }
@media (max-width: 560px) { .city-pick-q { width: 100%; margin-bottom: 2px; } .city-pill { flex: 1; justify-content: center; } }
.has-js .area-go { display: none; }
.area-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.area-links a { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--line); transition: .15s; }
.area-links a:last-child { border-bottom: none; }
.area-links a:hover { color: var(--emerald); padding-left: 4px; }
.area-links i { font-family: var(--mono); color: var(--gold-2); font-style: normal; }

.tile-cta { grid-column: span 2; grid-row: span 1; justify-content: space-between; }
.tile-cta h3 { font-size: 18px; margin: 8px 0 0; }

/* ---- Marquee ---- */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--mono); font-size: 15px; color: var(--muted); padding: 0 22px; }
.marquee-item i { color: var(--gold-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Bento responsive ---- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
  .tile-feature { grid-column: span 2; grid-row: span 2; }
  .tile-stat, .tile-ai, .tile-mini, .tile-area { grid-column: span 1; grid-row: span 1; }
  .tile-cta { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .stage { padding: 26px 0 34px; }
  .section { padding: 42px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-feature { grid-column: span 1; grid-row: span 2; }
  .tile-stat, .tile-ai, .tile-mini, .tile-area, .tile-cta { grid-column: span 1; }
  .console-bar { flex-wrap: wrap; }
  .console-go { width: 100%; justify-content: center; }
}

/* ---- Tilt / motion off ---- */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow, .console-ai, .ticker .live i, .marquee-track { animation: none !important; }
  .marquee-track { transform: none; }
}

/* =====================================================================
   AI Assistant — floating chat widget
   ===================================================================== */
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border: none; border-radius: 40px; cursor: pointer;
  color: #fff; font-family: var(--font); font-weight: 600; font-size: 15px;
  background: var(--grad-lux); background-size: 180% 180%;
  box-shadow: 0 16px 36px -14px rgba(15,90,74,.7), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .25s ease, opacity .2s;
}
.ai-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -14px rgba(176,134,58,.6), inset 0 1px 0 rgba(255,255,255,.45); }
.ai-fab-orb { font-size: 20px; line-height: 1; animation: pulse 2.6s ease-in-out infinite; }
.ai-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

.ai-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 81;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass-3); border-radius: 22px; backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), 0 40px 80px -30px rgba(20,55,44,.6);
  transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .22s;
}
.ai-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.ai-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--grad); color: #fff; }
.ai-panel-id { display: flex; align-items: center; gap: 11px; }
.ai-panel-id .ai-orb { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); font-size: 18px; animation: pulse 2.6s ease-in-out infinite; }
.ai-panel-id strong { display: block; font-size: 15px; color: #fff; }
.ai-panel-id small { display: block; font-size: 11.5px; color: rgba(255,255,255,.82); font-family: var(--mono); }
.ai-close { border: none; background: rgba(255,255,255,.16); color: #fff; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 14px; transition: .15s; }
.ai-close:hover { background: rgba(255,255,255,.3); }

.ai-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 86%; font-size: 14.5px; line-height: 1.55; padding: 11px 15px; border-radius: 16px; }
.ai-msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.ai-msg.bot { align-self: flex-start; background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.ai-msg.bot .ai-src { display: block; margin-top: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }

.ai-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); opacity: .5; animation: blink 1.1s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .18s; }
.ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.ai-recs { align-self: flex-start; width: 100%; display: flex; flex-direction: column; gap: 9px; }
.ai-rec { display: flex; gap: 11px; padding: 9px; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: .18s; }
.ai-rec:hover { box-shadow: inset 0 0 0 1px rgba(15,90,74,.4); transform: translateX(2px); }
.ai-rec img { width: 64px; height: 50px; object-fit: cover; border-radius: 9px; flex: none; }
.ai-rec-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ai-rec-body strong { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-rec-body span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.ai-rec-body em { font-size: 11.5px; color: var(--gold-2); font-style: normal; }

.ai-chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 7px; }
.ai-chip { font-size: 12.5px; padding: 7px 13px; border-radius: 30px; cursor: pointer; border: none; font-family: var(--font); background: rgba(15,90,74,.08); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(15,90,74,.2); transition: .16s; }
.ai-chip:hover { background: var(--grad); color: #fff; }

.ai-input { display: flex; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: rgba(255,255,255,.5); }
.ai-input input { flex: 1; min-width: 0; border: none; outline: none; padding: 12px 14px; border-radius: 12px; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ai-input input:focus { box-shadow: inset 0 0 0 1px rgba(15,90,74,.55); }
.ai-input button { border: none; cursor: pointer; width: 46px; border-radius: 12px; color: #fff; background: var(--grad); font-size: 15px; transition: .18s; }
.ai-input button:hover { transform: translateY(-1px); }
.ai-input button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
  .ai-panel { right: 0; bottom: 0; width: 100vw; height: 88vh; border-radius: 22px 22px 0 0; }
  .ai-fab-label { display: none; }
  .ai-fab { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-fab, .ai-fab-orb, .ai-panel-id .ai-orb, .ai-typing i { animation: none !important; }
}

/* =====================================================================
   PERF — bỏ backdrop-filter trên các phần tử lặp nhiều (giảm tải GPU khi
   cuộn danh sách dài). Giữ blur chỉ ở overlay đơn lẻ (header, console, panel).
   ===================================================================== */
.card, .district-tile, .bento-tile, .eyebrow, .chip, .hero-search, .hero-stats > div,
.aside-card, .floorplan, .faq details, .compare-picker, .compare-table-wrap,
.contact-form, .spec-grid > div, .detail-price, .article-body .article-cta, .badge {
  backdrop-filter: none !important;
}
/* Nền đặc hơn để chữ vẫn rõ khi không còn blur */
.card, .district-tile, .bento-tile { background-color: rgba(255, 255, 255, 0.9); }
.aside-card, .floorplan, .compare-table-wrap { background-color: rgba(255, 255, 255, 0.88); }

/* =====================================================================
   FOOTER — sửa lỗi UI trên mobile (4 cột cố định bị bóp nhỏ)
   ===================================================================== */
.footer-col a, .footer-col p, .footer-desc, .footer-contact > span { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 480px; }
}
@media (max-width: 640px) {
  .footer-cta { padding: 28px 24px; margin-bottom: 38px; }
  .footer-cta__actions { width: 100%; }
  .footer-cta__actions .btn { flex: 1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col--brand { grid-column: auto; }
  .footer-desc { max-width: none; }
  .footer-bottom { justify-content: flex-start; }
}

/* BRAND — logo + tên luôn cùng hàng.
   Lưu ý: footer có ".footer-col a{display:block}" ghi đè .brand -> phải dùng a.brand để thắng. */
a.brand { display: flex; align-items: center; flex-wrap: nowrap; }
.brand-mark { flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-text strong { white-space: nowrap; }

/* =====================================================================
   "ĐANG CHO THUÊ" — khu môi giới đăng tin
   ===================================================================== */
.glass-card { background: var(--glass-2); backdrop-filter: blur(14px); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); padding: 26px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.alert--warn { background: rgba(200,164,92,.14); box-shadow: inset 0 0 0 1px rgba(176,134,58,.4); color: #7a5a16; }
.alert--warn strong { color: #7a5a16; }
.form-errors { background: rgba(190,40,40,.08); box-shadow: inset 0 0 0 1px rgba(190,40,40,.3); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.form-errors p { margin: 3px 0; color: #a32626; font-size: 14px; }
.field-hint { font-size: 13px; color: var(--dim); margin: -6px 0 12px; }

/* Auth */
.auth-wrap { max-width: 520px; margin: 0 auto; }
.auth-card h1 { margin: 6px 0 4px; }
.auth-sub { color: var(--muted); margin-bottom: 20px; }
.auth-form .field, .auth-form .field-row { margin-bottom: 14px; }
.auth-switch { text-align: center; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--emerald); font-weight: 600; }

/* Form đăng tin */
.listing-form { display: flex; flex-direction: column; gap: 14px; }
.listing-form .field-row { margin: 0; }
.form-step { font-size: 15px; margin: 14px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.form-step:first-of-type { border-top: none; padding-top: 0; }
.form-step small { font-weight: 400; color: var(--dim); font-family: var(--font); }
.file-drop { display: block; border: 2px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .18s; background: rgba(255,255,255,.4); }
.file-drop:hover { border-color: var(--emerald); color: var(--emerald); }
.file-drop input { display: none; }
.street-field { position: relative; }
.street-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); max-height: 280px; overflow-y: auto; }
.street-opt { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 10px 14px; background: none; border: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.street-opt:last-child { border-bottom: none; }
.street-opt:hover { background: var(--glass-2); }
.street-opt strong { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.street-opt span { font-size: 12.5px; color: var(--muted); }
.autofill-note { margin-top: 10px; font-size: 13.5px; color: #0c5142; background: rgba(15,90,74,.09); border-radius: 10px; padding: 10px 14px; line-height: 1.5; }
.autofilled { animation: autofillFlash 1.6s ease; }
@keyframes autofillFlash { 0%, 35% { outline: 3px solid rgba(31,144,112,.55); outline-offset: 1px; } 100% { outline: 3px solid rgba(31,144,112,0); outline-offset: 1px; } }

/* ---- Chi tiết tin môi giới (redesign) ---- */
.section.lh-detail { padding-top: 30px; }
.lh-detail h2 { font-size: 18px; margin: 26px 0 12px; }
.lh-gallery2 { margin-bottom: 20px; }
.lh-gal-hero { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--grad-soft); }
.lh-gal-hero img { width: 100%; height: 360px; object-fit: cover; display: block; }
.lh-noimg-lg { height: 320px; display: grid; place-items: center; color: var(--muted); font-size: 17px; }
.lh-gal-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.lh-thumb { width: 96px; height: 70px; border-radius: 10px; overflow: hidden; border: none; padding: 0; cursor: pointer; background: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.lh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lh-thumb:hover { transform: translateY(-2px); }
.lh-thumb.is-active { box-shadow: 0 0 0 2px var(--emerald); }
.lh-title-block h1 { margin: 0 0 6px; font-size: clamp(23px, 3vw, 32px); }
.lh-title-block .detail-address { margin: 0 0 12px; color: var(--muted); }
.lh-stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px; }
.lh-stat { flex: 1 1 130px; background: var(--glass-2); border-radius: 13px; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.lh-stat span { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.lh-stat strong { font-size: 16px; color: var(--ink); }
.lh-stat--price { background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(15,90,74,.18); }
.lh-stat--price strong { color: var(--emerald); }

/* Card môi giới */
.lh-contact-card { text-align: left; }
.lh-broker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lh-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 19px; color: #fff; background: var(--grad-lux); box-shadow: 0 8px 18px -10px rgba(15,90,74,.6); }
.lh-broker-info small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.lh-broker-info strong { font-size: 17px; color: var(--ink); }
.lh-call { font-size: 17px; margin-bottom: 8px; }
.lh-zalo { margin-bottom: 4px; }
.lh-contact-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.lh-report summary { cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.lh-report[open] summary { margin-bottom: 8px; }

/* Tin cùng khu vực */
.lh-related { margin-top: 46px; padding-top: 32px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .lh-gal-hero img { height: 250px; }
  .lh-stat { flex-basis: calc(50% - 6px); }
  .lh-thumb { width: 72px; height: 54px; }
}
.img-preview, .img-existing { display: flex; flex-wrap: wrap; gap: 10px; }
.img-preview img, .img-thumb img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.img-thumb { position: relative; display: inline-block; }
.img-thumb span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Trang công khai */
.lh-head, .lh-head-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lh-head-actions { justify-content: flex-end; gap: 10px; }
.lh-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; margin-bottom: 18px; }
.lh-filter select, .lh-filter input { padding: 10px 12px; border: none; border-radius: 11px; font-size: 14px; font-family: var(--font); color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: 1 1 150px; min-width: 0; }
.lh-filter input[type=number] { flex: 0 1 120px; }
.lh-filter button { flex: 0 0 auto; }
.lh-count { color: var(--muted); font-size: 14px; font-family: var(--mono); margin: 0 0 16px; }

/* Dải chỉ số nhỏ gọn (ticker) dưới tiêu đề trang Đang cho thuê */
.lh-ticker { justify-content: flex-start; margin-top: 16px; }

/* Console tìm kiếm AI (trang Đang cho thuê) */
.ai-search { position: relative; overflow: hidden; background: var(--glass-2); border-radius: 20px; padding: 20px 22px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi), var(--shadow); }
.ai-search::before { content: ""; position: absolute; right: -40px; top: -50px; width: 200px; height: 200px; background: var(--grad-lux); filter: blur(60px); opacity: .16; pointer-events: none; }
.ai-search > * { position: relative; }
.ai-search-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.ai-search-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 15px; padding: 7px 7px 7px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ai-search-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font); font-size: 16px; color: var(--ink); padding: 12px 0; }
.ai-search-input::placeholder { color: var(--dim); font-size: 13.5px; }
@media (max-width: 560px) { .ai-search-input::placeholder { font-size: 12.5px; } }
.ai-search-go { border: none; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 15px; color: #fff; background: var(--grad); padding: 12px 22px; border-radius: 12px; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 10px 24px -14px rgba(15,90,74,.7); transition: transform .2s, opacity .2s; white-space: nowrap; }
.ai-search-go:hover { transform: translateY(-1px); }
.ai-search-go.is-loading { opacity: .55; cursor: wait; }
.ai-search-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ai-search-chips .chip-intent { border: none; cursor: pointer; font-family: var(--font); }

.ai-understood { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ai-tag { background: var(--grad-soft); color: var(--emerald); padding: 4px 11px; border-radius: 999px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(15,90,74,.18); }
.ai-clear { color: #a32626 !important; font-family: var(--font); margin-left: 4px; }

.lh-refine { margin-bottom: 18px; }
.lh-refine > summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 6px 0; list-style: none; }
.lh-refine > summary::-webkit-details-marker { display: none; }
.lh-refine[open] > summary { margin-bottom: 10px; color: var(--emerald); }
@media (max-width: 560px) { .ai-search-go { padding: 12px 16px; } }
.lh-empty { text-align: center; padding: 50px 24px; }
.lh-empty p { color: var(--muted); margin-bottom: 16px; }
.lh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lh-card { display: flex; flex-direction: column; background: var(--glass-2); border-radius: var(--radius-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .18s, box-shadow .25s; }
.lh-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(15,90,74,.3), var(--shadow); }
.lh-card-img { position: relative; aspect-ratio: 4/3; background: var(--grad-soft); }
.lh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lh-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 38px; opacity: .5; }
.lh-badge { position: absolute; top: 10px; left: 10px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.lh-card-body { padding: 14px 16px 16px; }
.lh-card-body h3 { font-size: 16px; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lh-loc { font-size: 13px; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lh-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lh-price { color: var(--emerald); font-weight: 700; font-size: 15px; }
.lh-area { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Chi tiết tin */
.lh-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.lh-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.lh-gal-main { grid-column: 1 / -1; height: 360px; }
.lh-desc { color: var(--text); white-space: pre-line; }
.lh-specs { width: 100%; border-collapse: collapse; margin-top: 12px; }
.lh-specs td { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lh-specs td:first-child { color: var(--muted); width: 40%; }
.lh-specs td:last-child { color: var(--ink); font-weight: 600; }
.lh-contact-card { text-align: center; }
.lh-contact-name { display: block; font-size: 18px; margin: 6px 0 14px; color: var(--ink); }
.lh-call { font-size: 17px; }
.lh-views { font-size: 12.5px; color: var(--dim); font-family: var(--mono); margin: 12px 0 0; }
.lh-owner-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lh-report { margin-top: 16px; }
.lh-report summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.lh-report textarea { width: 100%; margin: 10px 0; padding: 10px 12px; border: none; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font); font-size: 14px; }

/* Tin của tôi / admin */
.lh-mine { display: flex; flex-direction: column; gap: 14px; }
.lh-mine-row { display: flex; gap: 16px; align-items: center; padding: 14px; }
.lh-mine-img { flex: 0 0 110px; width: 110px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--grad-soft); }
.lh-mine-img img { width: 100%; height: 100%; object-fit: cover; }
.lh-mine-info { flex: 1; min-width: 0; }
.lh-mine-info h3 { font-size: 16px; margin: 0 0 4px; }
.lh-mine-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lh-mine-actions form { margin: 0; }
.lh-status { font-size: 12px; font-family: var(--mono); padding: 2px 9px; border-radius: 999px; }
.lh-status--active { background: rgba(15,90,74,.1); color: var(--emerald); }
.lh-status--hidden { background: rgba(176,134,58,.15); color: #7a5a16; }
.lh-del { color: #a32626 !important; }
.lh-report-n { font-size: 12.5px; color: #a32626; font-family: var(--mono); }
.lh-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lh-admin-table th, .lh-admin-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.lh-admin-table th { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }

@media (max-width: 920px) { .lh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .lh-grid { grid-template-columns: 1fr; }
  .lh-gallery { grid-template-columns: 1fr; }
  .lh-gal-main { height: 240px; }
  .lh-gallery img { height: 200px; }
  .lh-mine-row { flex-direction: column; align-items: stretch; }
  .lh-mine-img { width: 100%; flex-basis: auto; height: 160px; }
  .lh-head, .lh-head-actions { flex-direction: column; align-items: stretch; }
}
