/* DirectNest - one stylesheet for the whole site.
   Layout: centred 1180px column; cards grid auto-fills; filters sidebar collapses above results on phones. */
:root {
  --ink: #18231f;
  --ink-2: #4b5a54;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --line: #dde4e0;
  --brand: #0b6e5b;        /* deep Deccan green */
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ec;
  --sand: #c8932e;         /* Charminar sandstone, used sparingly */
  --ok: #1e7d4f;  --ok-bg: #e5f4ec;
  --warn: #8a5a00; --warn-bg: #fff3d9;
  --bad: #a3322a;  --bad-bg: #fbe7e5;
  --radius: 10px;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 680px; }
.section { padding-block: 28px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 1.2rem var(--display); color: var(--ink); text-decoration: none; }
.logo small { font: 500 .75rem var(--body); color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; margin-left: 2px; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.free { background: var(--sand); color: #fff; font-size: .65rem; padding: 1px 5px; border-radius: 4px; margin-left: 4px; letter-spacing: .05em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--brand-ink) !important; border: 1px solid var(--brand); border-radius: 8px; padding: 10px 18px; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn-outline { background: transparent; color: var(--brand) !important; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }

/* Flash */
.flash { margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: var(--brand-soft); }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-info { background: var(--warn-bg); color: var(--warn); }
.flash-error { background: var(--bad-bg); color: var(--bad); }

/* Hero + search */
.hero { background: linear-gradient(160deg, #0b6e5b 0%, #0e5547 60%, #173f37 100%); color: #f3faf7; padding-block: 56px 64px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 18ch; }
.hero .lede { color: #cfe7de; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; color: #f0c66d; }
.search-box { margin-top: 28px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); max-width: 920px; }
.search-box label span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 760px) { .search-box { grid-template-columns: 1fr; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; margin-block: 16px; }
.form label, .filters label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .92rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=file] { padding: 7px; }
label.check { flex-direction: row !important; align-items: flex-start; gap: 8px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row2.tight { gap: 8px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1 1 180px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 8px; }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-pick.types4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 560px) { .role-pick, .role-pick.types4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); cursor: pointer; height: 100%; }
.choice small { color: var(--ink-2); font-weight: 400; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--sand); }

/* Type tiles */
.type-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none; }
.type-tile:hover { border-color: var(--brand); }
.type-tile small { color: var(--ink-2); }

/* Placeholder art per property type */
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.9); font: 600 .9rem var(--display); }
.ph-plot { background: repeating-linear-gradient(135deg, #8aa86b 0 14px, #7b9a5d 14px 28px); }
.ph-apartment { background: linear-gradient(180deg, #5b7f9a, #3f6077); }
.ph-villa { background: linear-gradient(180deg, #c8932e, #9d6f1e); }
.ph-house { background: linear-gradient(180deg, #a36a55, #7d4d3b); }
.ph-mini { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 6px; }
.ph-large { aspect-ratio: 16 / 9; border-radius: var(--radius); font-size: 1.1rem; }

/* Cards */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(11, 110, 91, .12); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--brand-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-verified { position: absolute; left: 10px; top: 10px; background: var(--surface); color: var(--ok); font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.badge-verified::before { content: "✓ "; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.card-price { font: 700 1.15rem var(--display); }
.card-title { font-weight: 500; }
.card-loc, .card-meta { color: var(--ink-2); font-size: .87rem; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink-2); }

/* Search page */
.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 80px; }
@media (max-width: 860px) { .search-layout { grid-template-columns: 1fr; } .filters { position: static; } }
.pager { display: flex; justify-content: center; gap: 18px; margin-top: 20px; }

/* Bands */
.band { background: var(--surface); border-block: 1px solid var(--line); padding-block: 40px; margin-top: 24px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.steps li::marker { color: var(--brand); font-weight: 700; }

/* Detail */
.crumbs { font-size: .88rem; color: var(--ink-2); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 18px; border-radius: var(--radius); }
.gallery img { flex: 0 0 100%; aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: start; border-radius: var(--radius); }
.detail-price { font: 700 1.6rem var(--display); }
.detail-price .muted { font: 400 .95rem var(--body); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose { max-width: 68ch; }
.detail-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
@media (max-width: 900px) { .detail-side { position: static; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.panel-accent { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.seller-name { font: 700 1.1rem var(--display); }
.contact-reveal { font-size: 1.05rem; background: var(--ok-bg); border-radius: 8px; padding: 10px 12px; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { position: absolute; left: 0; font-weight: 700; }
.checks .ok::before { content: "✓"; color: var(--ok); }
.checks .wait::before { content: "…"; color: var(--warn); }
.checks .no::before { content: "✕"; color: var(--ink-2); }
.plain { padding-left: 18px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan h2 { margin: 0; }
.plan-featured { border: 2px solid var(--brand); }
.plan-price { font: 800 1.9rem var(--display); margin: 0; }
.plan-price small { font: 400 .9rem var(--body); color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.pay { margin-top: 24px; max-width: 640px; }

/* Dashboard */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.actions { white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--ink); }
.pill-live, .pill-approved, .pill-verified, .pill-active { background: var(--ok-bg); color: var(--ok); }
.pill-pending { background: var(--warn-bg); color: var(--warn); }
.pill-rejected { background: var(--bad-bg); color: var(--bad); }
.progress { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0; counter-reset: s; }
.progress li { counter-increment: s; font-size: .85rem; padding-top: 34px; position: relative; color: var(--ink-2); }
.progress li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-weight: 700; }
.progress li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.progress li.now::before { background: var(--sand); color: #fff; }
.progress li.done, .progress li.now { color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

/* Admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; font-weight: 500; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.count { background: var(--sand); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-bottom: 12px; }
.review-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
@media (max-width: 700px) { .review { grid-template-columns: 1fr; } .review-actions { min-width: 0; } }

/* Footer */
.site-footer { background: #13231e; color: #c9d6d1; margin-top: 48px; padding-block: 36px 24px; }
.site-footer .logo { color: #fff; }
.site-footer .muted { color: #9fb2ab; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 20px; }
.footer-grid h4 { color: #fff; font-size: .9rem; }
.footer-grid a, .footer-grid span { display: block; color: #c9d6d1; text-decoration: none; margin-bottom: 4px; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

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

/* Fast-growing areas */
.badge-growth { position: absolute; right: 10px; top: 10px; background: #8a5a00; color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.hero-check { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); }
.growth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.growth-tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none; }
.growth-tile:hover { border-color: var(--brand); }
.spots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.spots-label { font-weight: 600; font-size: .9rem; }
.chip-link { background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 500; text-decoration: none; }
.chip-link:hover { background: #ffe9b8; }
.check-strong { font-weight: 600 !important; background: var(--warn-bg); border-radius: 8px; padding: 8px 10px; }
.growth-banner { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }

/* Seller type and track record */
.pill-owner { background: var(--brand-soft); color: var(--brand); }
.pill-agent { background: #e8edf7; color: #2c4a7a; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-new { background: var(--line); color: var(--ink); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.track-head { font-size: .95rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 8px 0 0; font-size: .88rem; }
.track dt { color: var(--ink-2); }
.track dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
details.report summary { cursor: pointer; color: var(--bad); font-weight: 500; }
details.report[open] summary { margin-bottom: 10px; }
.report-inline summary { cursor: pointer; color: var(--bad); font-size: .85rem; }
.report-inline .form { margin: 8px 0 0; min-width: 200px; }
.area-new { margin-bottom: 16px; max-width: 720px; }

/* Listing form sections */
.form-section { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.form-section legend { font: 700 1rem var(--display); padding: 0 6px; margin-left: -6px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }
.checks-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Badges */
.badge-urgent { position: absolute; left: 10px; bottom: 10px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.pill-urgent { background: var(--bad-bg); color: var(--bad); margin-left: 6px; vertical-align: middle; }
.vastu-ok { color: var(--ok); font-size: .8rem; font-weight: 600; }

/* Rent */
.rent-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; background: var(--ok-bg); border-radius: var(--radius); padding: 14px; }
.rent-box div { display: flex; flex-direction: column; }
.rent-box strong { font: 700 1.15rem var(--display); font-variant-numeric: tabular-nums; }

/* Home search: fast-growing chips under the search box */
.hero-spots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-spots .chip-link { border: 0; cursor: pointer; font: inherit; font-size: .85rem; }

/* Messages */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } }
.threads { display: flex; flex-direction: column; gap: 6px; }
.thread { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); text-decoration: none; }
.thread.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chat-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.bubbles { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.bubble { max-width: 75%; background: var(--paper); border-radius: 12px; padding: 8px 12px; align-self: flex-start; }
.bubble p { margin: 0 0 2px; }
.bubble.mine { align-self: flex-end; background: var(--brand-soft); }
.bubble.held { border: 1px dashed var(--warn); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { flex: 1; }

/* Seller dashboard and desk */
.action-needed { border-color: var(--warn); background: var(--warn-bg); margin-bottom: 16px; }
.fix-send summary { list-style: none; cursor: pointer; }
.fix-send summary::-webkit-details-marker { display: none; }
.fix-send[open] { background: var(--paper); border-radius: 8px; padding: 8px; }
.fix-items { display: grid; grid-template-columns: 1fr; gap: 4px; }
.diff td.old { color: var(--bad); text-decoration: line-through; }
.diff td.new { color: var(--ok); font-weight: 600; }
.msg-preview { background: var(--paper); border-radius: 8px; padding: 8px 12px; }
.boost-why { margin: 16px 0; }

/* Home trust band: real sales numbers */
.trust-band { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 22px; }
.trust-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; gap: 18px; } }
.trust-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.trust-nums { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-nums div { display: flex; flex-direction: column; }
.trust-nums strong { font: 800 2rem var(--display); color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.trust-nums span { color: var(--ink-2); font-size: .9rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.trust-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.trust-list strong { font-variant-numeric: tabular-nums; }
.trust-foot { color: var(--ink-2); margin-top: 8px; }

/* Side-of-locality compass on the listing form */
.compass-wrap { display: flex; flex-direction: column; gap: 6px; }
.compass { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 44px); gap: 6px; }
.dir { border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font: 600 .8rem var(--body); color: var(--ink); }
.dir.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.dir.mid { background: var(--paper); color: var(--ink-2); cursor: default; font-weight: 500; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; }

/* Demo mode, OTP, checkout */
.demo-banner { background: #8a5a00; color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; }
.demo-banner code { background: rgba(255,255,255,.18); padding: 0 4px; border-radius: 4px; }
.phone-row { display: flex; align-items: stretch; }
.phone-row .cc { display: inline-flex; align-items: center; padding: 0 10px; background: var(--paper); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; font-weight: 600; }
.phone-row input { border-radius: 0 8px 8px 0; }
.otp-input { font: 700 1.4rem var(--display); letter-spacing: .4em; text-align: center; max-width: 260px; }
.demo-otp { display: flex; flex-direction: column; gap: 2px; background: var(--warn-bg); color: var(--warn); border: 1px dashed var(--warn); border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
.demo-otp strong { font: 800 1.6rem var(--display); letter-spacing: .3em; }
.otp-again { margin-top: 4px; }
.alt-login { margin-top: 14px; }
.alt-login summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.demo-box { margin-top: 18px; border-style: dashed; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.demo-btn { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); min-height: 64px; }
.demo-btn:hover { border-color: var(--brand); }
.progress-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; }
.pay-now { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; }
.checkout-wrap { display: flex; justify-content: center; padding-block: 32px; }
.checkout { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.checkout-head { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.checkout-head h1 { font-size: 1.3rem; margin-top: 8px; }
.checkout-amount { font: 800 2rem var(--display); }
.checkout-methods { display: flex; flex-direction: column; gap: 8px; }

/* Home search bar: three segments (type, location, budget) with chip panels */
.hero-search { margin-top: 28px; max-width: 980px; }
.hs-bar { display: grid; grid-template-columns: 1fr 1.6fr 1fr auto; align-items: stretch; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 6px; gap: 0; }
.hs-field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-radius: 12px; min-width: 0; }
.hs-field + .hs-field { border-left: 1px solid var(--line); }
.hs-field:hover, .hs-field.open, .hs-field:focus-within { background: var(--paper); }
.hs-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hs-trigger { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; }
.hs-value { font-weight: 600; font-size: 1rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-field.has-value .hs-value { color: var(--ink); }
.hs-input { border: 0; background: transparent; padding: 4px 0; font-weight: 600; font-size: 1rem; min-height: 32px; }
.hs-input:focus { outline: none; }
.hs-go { margin: 4px; border-radius: 12px; padding-inline: 26px; }
.hs-pop { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.hero-search.js .hs-pop { display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: max-content; max-width: min(420px, 86vw); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }
.hero-search.js .hs-field.open .hs-pop { display: flex; }
.hs-chip { position: relative; }
.hs-chip input { position: absolute; opacity: 0; }
.hs-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink); background: var(--surface); }
.hs-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.hs-chip input:focus-visible + span { outline: 3px solid var(--sand); }
.hs-suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); max-height: 320px; overflow-y: auto; }
.hs-suggest li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.hs-suggest li[aria-selected="true"], .hs-suggest li:hover { background: var(--brand-soft); }
.hs-suggest small { color: var(--warn); font-weight: 600; }
.hs-suggest .hs-none { cursor: default; color: var(--ink-2); }
.hs-spots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; background: rgba(255, 243, 217, .96); color: #4a3000; border-radius: 12px; padding: 10px 14px; }
.hs-spots-label { font-weight: 700; }
.hs-spots-hint { font-size: .8rem; color: #6b4500; }
.hs-spot { border: 1.5px solid #e1c27c; background: #fff; color: #4a3000; border-radius: 999px; padding: 6px 14px; font: 500 .9rem var(--body); cursor: pointer; min-height: 36px; }
.hs-spot[aria-pressed="true"] { background: #8a5a00; border-color: #8a5a00; color: #fff; }
@media (max-width: 760px) {
  .hs-bar { grid-template-columns: 1fr; }
  .hs-field + .hs-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search.js .hs-pop { position: static; box-shadow: none; border: 0; padding: 8px 0 0; max-width: none; }
}

/* Home: one slim trust strip */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.ts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-block: 12px; font-size: .92rem; color: var(--ink-2); }
.ts-item { white-space: nowrap; }
.ts-num strong { color: var(--brand); font: 800 1.05rem var(--display); margin-right: 4px; }
@media (max-width: 640px) { .ts-row { justify-content: flex-start; gap: 6px 18px; } }

/* Chat limits, upsell, trust labels */
.upsell { display: flex; flex-direction: column; gap: 6px; background: var(--warn-bg); color: #4a3000; border-radius: 10px; padding: 12px 14px; }
.msg-meter { display: flex; align-items: center; gap: 10px; }
.msg-meter .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.msg-meter .bar span { display: block; height: 100%; background: var(--brand); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.approve-form { margin: 0; gap: 6px; }

/* Builders and projects */
.blogo { display: inline-flex; align-items: center; justify-content: center; object-fit: contain; background: var(--surface); border-radius: 10px; flex: none; }
.blogo-xs { width: 22px; height: 22px; border-radius: 6px; }
.blogo-sm { width: 36px; height: 36px; }
.blogo-md { width: 64px; height: 64px; border-radius: 14px; }
.blogo-lg { width: 96px; height: 96px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.blogo-tile { background: #18231f; color: #fff; font: 800 .8rem var(--display); letter-spacing: .04em; }
.blogo-xs.blogo-tile { font-size: .55rem; }
.blogo-md.blogo-tile { font-size: 1.2rem; }
.blogo-lg.blogo-tile { font-size: 1.8rem; }
.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; color: var(--ink); text-decoration: none; }
.brand-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(11,110,91,.1); }
.brand-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 16px 0 12px; }
.brand-tab { display: flex; align-items: center; gap: 8px; flex: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.brand-tab small { color: var(--ink-2); }
.brand-tab.on { border-color: var(--brand); background: var(--brand-soft); }
.size-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (max-width: 860px) { .size-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.size-band { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.size-band span { font-size: .8rem; color: var(--ink-2); }
.size-band.on { border-color: var(--brand); background: var(--brand-soft); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filter-row label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; }
.filter-row select { width: auto; min-width: 140px; }
.pc-builder { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.builder-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 28px 18px; }
.builder-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.builder-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 18px; }
.builder-stats div { display: flex; flex-direction: column; }
.builder-stats strong { font: 800 1.5rem var(--display); color: var(--brand); }
.builder-stats span { font-size: .85rem; color: var(--ink-2); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.amenities li { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }
.related { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ph-farmland { background: repeating-linear-gradient(90deg, #6f8f3a 0 18px, #66853a 18px 36px); }

/* Listing cards: shop-style hover (zoom, lift, second photo) and Quick view */
.pcard { position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pcard .card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.pcard .card-media { overflow: hidden; }
.pcard .card-media img, .pcard .card-media .ph { transition: transform .5s ease, opacity .35s ease; }
.pcard .cm-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24, 35, 31, .16); border-color: var(--brand); }
.pcard:hover .card-media img, .pcard:hover .card-media .ph { transform: scale(1.07); }
.pcard:hover .cm-alt { opacity: 1; }
.cm-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
.qv-btn { position: absolute; left: 50%; top: 118px; transform: translate(-50%, 8px); opacity: 0; background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font: 600 .85rem var(--body); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); cursor: pointer; transition: opacity .2s ease, transform .2s ease; z-index: 2; }
.pcard:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .qv-btn { opacity: 1; transform: translate(-50%, 0); top: auto; bottom: 10px; left: auto; right: 10px; } }

.qv { border: 0; padding: 0; border-radius: 16px; width: min(980px, 94vw); max-height: 92vh; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.qv::backdrop { background: rgba(12, 20, 17, .7); }
.qv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 760px) { .qv-grid { grid-template-columns: 1fr; } }
.qv-stage { position: relative; background: #0e1714; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.qv-stage img { width: 100%; height: 100%; object-fit: contain; animation: qvIn .3s ease; }
.qv-stage .ph { width: 100%; height: 100%; }
@keyframes qvIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.qv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.4rem; cursor: pointer; }
.qv-prev { left: 12px; } .qv-next { right: 12px; }
.qv-thumbs { display: flex; gap: 6px; padding: 8px; background: #0e1714; overflow-x: auto; }
.qv-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; width: 64px; height: 48px; flex: none; cursor: pointer; background: none; }
.qv-thumbs button[aria-current="true"] { border-color: #f0c66d; }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.qv-price { font: 800 1.6rem var(--display); }
.qv-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.2rem; cursor: pointer; z-index: 3; }

/* Sideways rows on the home page */
.hrow .section-head { align-items: center; }
.hrow-nav { display: flex; gap: 8px; align-items: center; }
.hr-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.hr-btn:hover { border-color: var(--brand); color: var(--brand); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; }
.hscroll > * { scroll-snap-align: start; }
@media (max-width: 760px) { .hscroll { grid-auto-columns: 78%; } }

/* Builder carousel: big image space, auto-scroll right to left, pause on hover */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); padding-block: 6px 12px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-dup { display: flex; gap: 16px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.bc-card { width: 260px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.bc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(24, 35, 31, .16); }
.bc-media { position: relative; height: 160px; background: linear-gradient(135deg, #2f5e52, #173f37); overflow: hidden; }
.bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bc-card:hover .bc-media img { transform: scale(1.07); }
.bc-ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }
.bc-logo { position: absolute; left: 12px; bottom: -22px; background: var(--surface); padding: 4px; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.bc-body { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.bc-body span { color: var(--ink-2); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-dup { display: none; }
}

/* Trust strip: pills that fade in one by one, lift on hover */
.ts-row { gap: 10px; }
.ts-item { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--ink); font-weight: 500;
  opacity: 0; transform: translateY(8px); animation: tsIn .5s ease forwards; animation-delay: calc(var(--i, 0) * 120ms); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; cursor: default; }
.ts-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11, 110, 91, .18); border-color: var(--brand); background: var(--brand-soft); }
.ts-ico { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; transition: transform .3s ease; }
.ts-item:hover .ts-ico { transform: rotate(-12deg) scale(1.12); }
.ts-num .ts-ico { background: var(--sand); }
@keyframes tsIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ts-item { animation: none; opacity: 1; transform: none; } }
