/*
Theme Name: Setia Landed
Description: Landed-property site for Setia Alam — public listings, sold prices, shortlist, and an agent console. Built from the Claude Design mockups ("Client Site" and "Agent Portal").
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: setia-landed
*/

/* =====================================================================
   Tokens
   ===================================================================== */
:root {
  --paper: #faf9f7;
  --ink: #16180f;
  --green: #0f6b4f;
  --green-dark: #0a4d38;
  --body: #55574c;
  --muted: #7a7c70;
  --dim: #8a8c80;
  --rule: #e6e4de;
  --rule-soft: #efeee8;
  --chip: #dcdad2;
  --ph-a: #ecebe4;
  --ph-b: #e2e0d8;
  --sans: Archivo, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; }
::placeholder { color: #9a9a94; }
.mono { font-family: var(--mono); }
.r { text-align: right; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.ph {
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ph-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #8d8f82; text-transform: uppercase; text-align: center; padding: 0 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.page { padding-top: 48px; padding-bottom: 80px; }
.page-h { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.page-sub { font-size: 16px; color: var(--body); margin: 10px 0 32px; max-width: 60ch; }

/* =====================================================================
   Header / footer
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 247, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.hd-in { max-width: var(--max); margin: 0 auto; padding: 0 32px; min-height: 72px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.brand-area { font-size: 10px; letter-spacing: .14em; color: var(--green); margin-top: 4px; }
.site-nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 600; color: #4a4c42; }
.site-nav a:hover { color: var(--ink); }
.site-nav .shortlist-pill { display: flex; align-items: center; gap: 8px; border: 1px solid #d8d6ce; border-radius: 999px; padding: 8px 16px; color: var(--ink); }
.site-nav .shortlist-pill:hover { border-color: var(--ink); }
.shortlist-pill .count { font-size: 11px; background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.site-nav .agent-link { font-size: 13px; color: #8a8a80; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #d8d6ce; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }

.site-footer { border-top: 1px solid var(--rule); margin-top: 40px; }
.ft-in { max-width: var(--max); margin: 0 auto; padding: 44px 32px 24px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.ft-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.ft-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.ft-note { font-size: 11px; color: #9a9c90; letter-spacing: .08em; }
.ft-legal { max-width: var(--max); margin: 0 auto; padding: 0 32px 40px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ft-legal span:last-child { max-width: 70ch; }

/* =====================================================================
   Home: hero, filters, grid
   ===================================================================== */
.hero { max-width: var(--max); margin: 0 auto; padding: 72px 32px 40px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end; }
.eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--green); margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -0.035em; font-weight: 800; margin: 0; text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 46ch; margin: 24px 0 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stats > div { background: var(--paper); padding: 22px 20px; }
.stat-v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat-k { font-size: 12px; color: var(--muted); margin-top: 4px; }

.filterbar { max-width: var(--max); margin: 0 auto 24px; background: var(--ink); border-radius: 4px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 22px 36px; align-items: end; width: calc(100% - 64px); }
.fb-field { min-width: 0; }
.fb-for { grid-column: 1; }
.fb-search { grid-column: 2; }
.fb-types { grid-column: 1 / -1; }
.fb-ranges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; padding-top: 20px; border-top: 1px solid #2f3326; }
.fb-pair { display: flex; align-items: center; gap: 10px; }
.fb-pair select { min-width: 118px; }
.fb-dash { color: #6f7466; }
.fb-reset { margin-left: auto; cursor: pointer; background: transparent; border: 0; color: #7fd3af; font-size: 13px; font-weight: 600; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.fb-reset:hover { color: #a8e6c9; }
.fb-note { grid-column: 1 / -1; margin: -6px 0 0; font-size: 12px; color: #c9b27a; }
.fb-field label, .fb-field .lbl { display: block; font-size: 10px; letter-spacing: .14em; color: #9ea396; margin-bottom: 8px; }
.fb-field input[type="search"] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #43473a; color: var(--paper); font-size: 15px; padding: 6px 0; outline: none; border-radius: 0; }
.fb-field input[type="search"]:focus { border-bottom-color: #7fd3af; }
.fb-field select { background: #22251a; border: 1px solid #43473a; color: var(--paper); font-size: 14px; padding: 8px 10px; border-radius: 3px; }
.fb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { cursor: pointer; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid #43473a; background: transparent; color: #c9cdc0; }
.fchip.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.fb-seg { display: flex; border: 1px solid #43473a; border-radius: 3px; overflow: hidden; }
.fb-seg button { cursor: pointer; font-size: 13px; font-weight: 600; padding: 8px 14px; background: transparent; color: #c9cdc0; border: 0; }
.fb-seg button.on { background: var(--paper); color: var(--ink); }

.results { max-width: var(--max); margin: 0 auto; padding: 16px 32px 80px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.results-head h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.schip { cursor: pointer; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--chip); background: var(--paper); color: var(--body); }
.schip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }

.card { display: flex; flex-direction: column; background: var(--paper); }
.card-photo { aspect-ratio: 4 / 3; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .1em; background: var(--ink); color: var(--paper); padding: 5px 9px; }
.save { position: absolute; top: 10px; right: 10px; cursor: pointer; width: 32px; height: 32px; border-radius: 999px; border: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(250, 249, 247, .92); color: var(--ink); }
.save.on { background: var(--green); color: var(--paper); }
.photo-count { position: absolute; bottom: 12px; right: 12px; font-size: 10px; background: rgba(250, 249, 247, .9); padding: 4px 8px; }
.card-body { display: block; color: var(--ink); padding: 16px 0 0; }
.card-body:hover { color: var(--ink); }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-price { font-size: 23px; font-weight: 800; letter-spacing: -0.025em; }
.card-psf { font-size: 11px; color: var(--muted); }
.card-title { display: block; font-size: 15px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
.card-addr { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: 12px; font-weight: 500; color: #3d4036; border: 1px solid #e0ded6; padding: 5px 9px; }
.card-agent { font-size: 11px; color: var(--muted); margin-top: 12px; letter-spacing: .02em; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-dark, .btn-line { cursor: pointer; text-align: center; font-size: 13px; font-weight: 700; padding: 11px 14px; border: 1px solid var(--ink); display: inline-block; }
.btn-dark { flex: 1; background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line.wide { width: 100%; padding: 14px; font-size: 14px; }
.btn-dark.inline { flex: none; margin-top: 24px; padding: 13px 22px; font-size: 14px; }

.empty { padding: 80px 0; text-align: center; color: var(--muted); }
.empty.dashed { border: 1px dashed #d8d6ce; padding: 72px 24px; }
.empty-t { font-size: 20px; font-weight: 700; color: var(--ink); }
.empty-s { font-size: 14px; margin-top: 8px; }

/* =====================================================================
   Listing detail
   ===================================================================== */
.detail { padding-top: 32px; padding-bottom: 80px; }
.back { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; margin-top: 20px; }
.g-hero { aspect-ratio: 3 / 2; }
.g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-tile { min-height: 80px; }
.g-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.g-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-open.is-plan img { object-fit: contain; background: #fff; }
.g-plan { position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: .1em; background: var(--green); color: var(--paper); padding: 5px 9px; }
.g-tile .more, .g-hero .more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .08em; background: rgba(22, 24, 15, .55); color: var(--paper); }
.g-all { position: absolute !important; right: 12px; bottom: 12px; width: auto !important; height: auto !important; font-size: 10px; letter-spacing: .1em; background: rgba(250, 249, 247, .94) !important; color: var(--ink) !important; padding: 8px 12px !important; border: 1px solid var(--rule) !important; border-radius: 0; }
.g-all:hover { background: var(--ink) !important; color: var(--paper) !important; }

/* Lightbox */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15, 16, 10, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none !important; }
.lb-fig { margin: 0; max-width: min(1200px, 90vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-fig img { max-width: 100%; max-height: calc(90vh - 40px); object-fit: contain; display: block; }
.lb.is-plan .lb-fig img { background: #fff; }
.lb-cap { color: #c9cdc0; font-size: 12px; letter-spacing: .08em; }
.lb-x, .lb-nav { position: absolute; border: 0; background: rgba(250, 249, 247, .12); color: #faf9f7; cursor: pointer; border-radius: 999px; line-height: 1; }
.lb-x:hover, .lb-nav:hover { background: rgba(250, 249, 247, .28); }
.lb-x { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 760px) { .lb-nav { width: 42px; height: 42px; font-size: 24px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; margin-top: 48px; align-items: start; }
.d-eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--green); }
.d-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 14px 0 0; }
.d-addr { font-size: 16px; color: var(--body); margin-top: 8px; }
.d-price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.d-price { font-size: clamp(32px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.d-psf { font-size: 13px; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: 28px; }
.specs > div { background: var(--paper); padding: 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec-k { font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.spec-v { font-size: 17px; font-weight: 700; margin-top: 7px; letter-spacing: -0.01em; }
.h-mono { font-size: 13px; font-family: var(--mono); letter-spacing: .14em; color: var(--dim); margin: 44px 0 14px; font-weight: 500; }
.about-text { font-size: 16px; line-height: 1.7; color: #3d4036; max-width: 62ch; }
.about-text p { margin: 0 0 1em; }
.doc-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.tx { border: 1px solid var(--rule); }
.tx-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); font-size: 14px; align-items: center; }
.tx-row:last-child { border-bottom: 0; }
.tx-addr, .tx-price { font-weight: 600; }
.tx-price { font-weight: 700; }
.tx-date { font-size: 12px; color: var(--muted); text-align: right; }

.d-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.box { border: 1px solid var(--rule); padding: 24px; }
.agent { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 999px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: none; overflow: hidden; }
.avatar.has-photo { background: #e6e3da; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.agent-name { font-size: 16px; font-weight: 700; }
.agent-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.btn-wa { display: block; margin-top: 20px; background: var(--green); color: var(--paper); text-align: center; font-size: 15px; font-weight: 700; padding: 15px; }
.btn-wa:hover { background: var(--green-dark); color: var(--paper); }
.reply-note { text-align: center; font-size: 12px; color: var(--dim); margin-top: 10px; }
.sent-t { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.sent-s { font-size: 14px; line-height: 1.6; color: var(--body); margin: 10px 0 0; }
.form-err { font-size: 13px; color: #9b3b22; margin: 10px 0 0; }
.enq-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.enq-form input, .enq-form select, .enq-form textarea { border: 1px solid #dcdad2; padding: 12px; font-size: 14px; background: #fff; color: var(--ink); width: 100%; border-radius: 0; }
.enq-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--body); }
.enq-form .consent input { width: auto; margin-top: 2px; }
.btn-submit { cursor: pointer; background: var(--ink); color: var(--paper); text-align: center; font-size: 15px; font-weight: 700; padding: 15px; border: 0; }
.btn-submit:hover { background: var(--green); }

/* Shortlist / sold / map / about */
.sl-list { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sl-list:not(:has(.sl-row:not([hidden]))) { display: none; }
.sl-row { background: var(--paper); display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; padding: 18px; align-items: center; }
.sl-photo { aspect-ratio: 4 / 3; }
.sl-price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sl-title { font-size: 14px; font-weight: 600; margin-top: 6px; }
.sl-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sl-actions { display: flex; gap: 8px; }
.sl-actions .btn-dark { flex: none; padding: 11px 16px; }
.sl-actions .btn-line { padding: 11px 16px; color: var(--body); border-color: var(--chip); }
.sl-wa { margin-top: 20px; max-width: 360px; }
.sl-wa .btn-wa { margin-top: 0; }

.sold-table { border: 1px solid var(--rule); }
.sold-row { display: grid; grid-template-columns: 1.4fr 1fr .9fr .9fr 1fr; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--rule-soft); font-size: 14px; align-items: center; }
.sold-row:last-child { border-bottom: 0; }
.sold-head { background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .12em; padding: 14px 20px; }
.sold-addr { font-weight: 600; }
.sold-date { font-size: 11px; color: var(--muted); }

.map-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.map-box { aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: var(--ph-a); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.precinct-list { border: 1px solid var(--rule); }
.precinct { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rule-soft); color: var(--ink); }
.precinct:last-child { border-bottom: 0; }
.precinct:hover { background: #f3f2ec; color: var(--ink); }
.precinct-n { display: block; font-size: 15px; font-weight: 700; }
.precinct-t { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about-grid:not(:has(.about-photo)) { grid-template-columns: minmax(0, 760px); }
.prose h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.prose h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 32px 0 8px; }
.prose p { font-size: 17px; line-height: 1.7; color: #3d4036; margin: 22px 0 0; max-width: 60ch; }
.prose.narrow p { font-size: 16px; margin-top: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.facts > div { background: var(--paper); padding: 24px; }
.facts .spec-v { font-size: 16px; font-weight: 600; line-height: 1.5; }
.about-photo { aspect-ratio: 3 / 4; }

/* =====================================================================
   Responsive (public site)
   ===================================================================== */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .d-side { position: static; }
  .map-grid, .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .wrap, .hd-in, .ft-in, .ft-legal, .results, .hero { padding-left: 20px; padding-right: 20px; }
  .filterbar { width: calc(100% - 40px); padding: 18px; gap: 18px; grid-template-columns: 1fr; }
  .fb-search, .fb-for { grid-column: 1; }
  .fb-ranges { gap: 18px; padding-top: 18px; }
  .fb-ranges .fb-field { flex: 1 1 100%; }
  .fb-pair select { flex: 1; min-width: 0; }
  .fb-reset { margin-left: 0; }
  .hd-in { min-height: 64px; gap: 12px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 6px 0 14px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule-soft); }
  .site-nav .shortlist-pill { width: auto; margin-top: 10px; border-bottom: 1px solid #d8d6ce; padding: 8px 16px; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-side { grid-template-rows: none; }
  .g-row, .g-side { grid-template-columns: 1fr 1fr; }
  .g-side > .g-tile { grid-column: auto; }
  .specs { grid-template-columns: 1fr 1fr; }
  .sl-row { grid-template-columns: 90px 1fr; }
  .sl-actions { grid-column: 1 / -1; }
  .sold-row { grid-template-columns: 1fr 1fr; }
  .sold-head { display: none; }
  .sold-row .r { text-align: left; }
  .tx-row { grid-template-columns: 1fr 1fr; }
  .tx-date { text-align: left; }
  .facts { grid-template-columns: 1fr; }
}

/* =====================================================================
   Agent portal (dark console)
   ===================================================================== */
body.portal { background: #16180f; color: #f2f1ea; }
body.portal a { color: #7fd3af; }
body.portal a:hover { color: #a8e6c9; }
body.portal :focus-visible { outline-color: #7fd3af; }
.p-muted { color: #8a9080; }
.p-dim { color: #6f7466; }
.p-accent { color: #7fd3af; }
.p-warn { color: #e8b06a !important; }
.small { font-size: 12px; }
.p-strong { font-weight: 700; }

.p-wrap { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.p-side { border-right: 1px solid #2c3024; padding: 28px 20px; display: flex; flex-direction: column; gap: 36px; }
.p-brand { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.p-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #7fd3af; margin-top: 5px; }
.p-box .p-eyebrow { color: #8a9080; margin: 0; letter-spacing: .12em; }
.p-nav { display: flex; flex-direction: column; gap: 3px; }
.p-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 3px; font-size: 14px; font-weight: 600; color: #a8ada0; }
.p-nav a:hover { color: #f2f1ea; }
.p-nav a .mono { font-size: 11px; color: #6f7466; }
.p-nav a.on { background: #252a1c; color: #f2f1ea; }
.p-nav a.on .mono { color: #7fd3af; }
.p-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.p-box { border: 1px solid #2c3024; border-radius: 3px; padding: 16px; }
.p-name { font-size: 14px; font-weight: 700; margin-top: 8px; }
.p-main { min-width: 0; }
.p-head { border-bottom: 1px solid #2c3024; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.p-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.p-head .small { margin-top: 5px; }
.p-btn, .p-btn-ghost { display: inline-block; cursor: pointer; font-size: 13px; font-weight: 700; padding: 12px 18px; border-radius: 3px; border: 1px solid #7fd3af; background: #7fd3af; color: #12200f !important; text-align: center; }
.p-btn:hover { background: #a8e6c9; border-color: #a8e6c9; }
.p-btn-ghost { background: transparent; border-color: #3b4031; color: #d8d8ce !important; }
.p-btn-ghost:hover { border-color: #7fd3af; }
.p-flash { margin: 24px 40px 0; border: 1px solid #2f5c44; background: #17281e; border-radius: 3px; padding: 16px 20px; font-size: 14px; color: #a8e6c9; }
.p-flash.warn { border-color: #6b4f1c; background: #2a2211; color: #f0c68a; }
.p-hint { margin-top: 8px; font-size: 12px; color: #f0c68a; }
.p-pubnote { margin-top: 32px; border: 1px solid #6b4f1c; background: #2a2211; color: #f0c68a; border-radius: 3px; padding: 12px 16px; font-size: 13px; }
.p-pubnote + .p-submit { margin-top: 16px; }
.p-body { padding: 32px 40px 80px; }
.p-empty { border: 1px dashed #3b4031; border-radius: 4px; padding: 40px; text-align: center; color: #8a9080; }

.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2c3024; border: 1px solid #2c3024; border-radius: 4px; overflow: hidden; margin-bottom: 32px; }
.p-stats > div { background: #1d2015; padding: 22px; }
.p-stat-v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card { border: 1px solid #2c3024; border-radius: 4px; overflow: hidden; }
.p-card-photo { aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #2a2e20 0 10px, #24281c 10px 20px); position: relative; display: flex; align-items: center; justify-content: center; color: #6f7466; font-size: 10px; }
.p-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-pill { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; }
.p-pill-inline { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.p-card-body { padding: 15px; }
.p-card-price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.p-card-title { font-size: 14px; font-weight: 600; margin-top: 6px; }
.p-card-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #24281c; }
.p-card-stats .mono { font-size: 15px; font-weight: 500; }
.p-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.p-card-actions .p-btn-ghost { padding: 8px 12px; font-size: 12px; }

.p-tabs { display: flex; gap: 6px; margin-bottom: 24px; }
.p-chip { font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 3px; border: 1px solid #3b4031; color: #c9cdc0 !important; }
.p-chip.on { background: #7fd3af; border-color: #7fd3af; color: #12200f !important; }
.p-table { border: 1px solid #2c3024; border-radius: 4px; overflow: hidden; }
.p-tr { display: grid; grid-template-columns: 2.2fr 1fr 1fr 70px 1.1fr 220px; gap: 12px; padding: 16px 20px; border-top: 1px solid #24281c; align-items: center; font-size: 13px; }
.p-th { background: #1d2015; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #8a9080; border-top: 0; padding: 13px 20px; }
.p-row-listing { display: flex; gap: 12px; align-items: center; min-width: 0; }
.p-thumb { width: 52px; height: 40px; flex: none; border-radius: 2px; background: repeating-linear-gradient(135deg, #2a2e20 0 6px, #24281c 6px 12px); overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-actions { display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.p-btn-sm, .p-btn-sm-ghost, .p-btn-sm-dim { cursor: pointer; font-size: 12px; font-weight: 700; padding: 8px 13px; border-radius: 3px; border: 1px solid transparent; display: inline-block; }
.p-btn-sm { background: #7fd3af; color: #12200f !important; }
.p-btn-sm:hover { background: #a8e6c9; }
.p-btn-sm-ghost { background: transparent; border-color: #3b4031; color: #a8ada0; }
.p-btn-sm-ghost:hover { border-color: #c2705a; color: #e0a08d; }
.p-btn-sm-dim { background: #2c3024; color: #d8d8ce !important; }
.p-enq { display: grid; grid-template-columns: 1fr 1.3fr 1fr 150px; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #24281c; align-items: center; font-size: 13px; }
.p-enq:last-child { border-bottom: 0; }

/* Form */
.p-form-grid { display: grid; grid-template-columns: 1fr 340px; align-items: start; }
.p-form-main { padding: 32px 40px 80px; max-width: 900px; }
.p-form section { margin-top: 44px; }
.p-form section:first-child { margin-top: 0; }
.p-sec { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #8a9080; font-weight: 500; margin: 0 0 16px; }
.p-form label { display: block; font-size: 12px; color: #8a9080; margin-bottom: 7px; }
.p-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-grid2 .span2 { grid-column: span 2; }
.p-in { width: 100%; background: #1d2015; border: 1px solid #3b4031; border-radius: 3px; color: #f2f1ea; font-size: 15px; padding: 12px 13px; outline: none; }
.p-in:focus { border-color: #7fd3af; }
textarea.p-in { line-height: 1.6; resize: vertical; font-size: 14px; }
.p-internal { background: #241f14; border-color: #4a3b22; color: #f5e6cf; }
.p-pair { display: flex; align-items: center; gap: 10px; }
.p-pair span { color: #6f7466; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-form .p-chipx { display: inline-block; margin: 0; cursor: pointer; }
.p-chipx input { position: absolute; opacity: 0; pointer-events: none; }
.p-chipx span { display: inline-block; font-size: 13px; font-weight: 600; padding: 9px 13px; border-radius: 3px; border: 1px solid #3b4031; color: #c9cdc0; }
.p-chipx input:checked + span { background: #7fd3af; border-color: #7fd3af; color: #12200f; }
.p-chipx input:focus-visible + span { outline: 2px solid #7fd3af; outline-offset: 2px; }
.p-drop { border: 1px dashed #3b4031; border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.p-drop.is-over { border-color: #7fd3af; background: rgba(127, 211, 175, .05); }
.p-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.p-tiles-empty { text-align: center; color: #6f7466; font-size: 13px; padding: 28px 0; }
.p-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: #252a1c; border: 1px solid #3b4031; cursor: grab; transition: border-color .15s ease, opacity .15s ease; }
.p-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.p-tile.is-cover { border-color: #7fd3af; }
.p-tile.is-plan { border-color: #f0c68a; }
.p-tile.is-plan img { object-fit: contain; background: #fff; }
.p-tag.plan { background: #f0c68a; color: #2a2211; }
.p-tb.on { background: #f0c68a; color: #2a2211; }
.p-btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.p-btnrow .p-btn, .p-btnrow .p-btn-ghost { font-size: 13px; padding: 12px 16px; }
.p-tile.dragging { opacity: .35; }
.p-tile.over { border-color: #f0c68a; box-shadow: 0 0 0 2px #f0c68a; }
.p-num { position: absolute; top: 4px; right: 4px; font-size: 10px; background: rgba(22, 24, 15, .8); color: #d8d8ce; padding: 1px 6px; border-radius: 2px; }
.p-tbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; justify-content: flex-end; padding: 4px; background: linear-gradient(transparent, rgba(22, 24, 15, .85)); }
.p-tb { cursor: pointer; min-width: 26px; height: 26px; border: 0; border-radius: 3px; background: rgba(22, 24, 15, .85); color: #f2f1ea; font-size: 14px; line-height: 1; padding: 0 6px; }
.p-tb:hover { background: #7fd3af; color: #12200f; }
.p-tb.rm:hover { background: #c2705a; color: #fff; }
.p-fp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-tag { position: absolute; top: 4px; left: 4px; font-family: var(--mono); font-size: 9px; background: #16180f; color: #7fd3af; padding: 2px 6px; }
.p-rm { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(22, 24, 15, .82); font-size: 10px; color: #d8d8ce; padding: 3px 6px; }
.p-drop-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-form .p-browse { display: inline; margin: 0; color: #7fd3af; font-weight: 600; cursor: pointer; font-size: 12px; }
.p-form .p-btn-sm-ghost { margin: 0; color: #d8d8ce; font-size: 12px; }
.p-submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid #2c3024; }
.p-submit .p-btn { font-size: 14px; padding: 15px 24px; }
.p-submit .p-btn-ghost { font-size: 14px; padding: 15px 22px; }

.p-preview { border-left: 1px solid #2c3024; padding: 32px 28px; position: sticky; top: 0; }
.p-preview > .p-eyebrow { margin: 0; color: #8a9080; }
.p-pv { margin-top: 16px; background: #faf9f7; color: #16180f; border-radius: 3px; overflow: hidden; }
.p-pv-photo { aspect-ratio: 4 / 3; }
.p-pv-badge { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; background: #16180f; color: #faf9f7; padding: 4px 8px; }
.p-pv-badge:empty { display: none; }
.p-pv-body { padding: 14px; }
.p-pv-price { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.p-pv-title { font-size: 14px; font-weight: 600; margin-top: 7px; line-height: 1.35; }
.p-pv-addr { font-size: 12px; color: #7a7c70; margin-top: 3px; }
.p-pv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.p-pv-tags span { font-size: 11px; border: 1px solid #e0ded6; padding: 4px 8px; }
.p-pv-tags span:empty { display: none; }
.p-checks { margin-top: 24px; border-top: 1px solid #2c3024; padding-top: 20px; }
.p-check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; color: #6f7466; }
.p-check.ok { color: #a8e6c9; }

/* Login */
.p-login { max-width: 400px; margin: 0 auto; padding: 80px 24px; }
.p-login h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin: 28px 0 6px; }
.p-login form p { margin: 0 0 16px; }
.p-login label { display: block; font-size: 12px; color: #8a9080; margin-bottom: 7px; }
.p-login input[type="text"], .p-login input[type="password"] { width: 100%; background: #1d2015; border: 1px solid #3b4031; border-radius: 3px; color: #f2f1ea; font-size: 15px; padding: 12px 13px; outline: none; }
.p-login .login-remember label { display: flex; gap: 8px; align-items: center; margin: 0; }
.p-login input[type="submit"] { cursor: pointer; width: 100%; font-size: 14px; font-weight: 700; padding: 15px 24px; background: #7fd3af; color: #12200f; border: 0; border-radius: 3px; }
.p-login input[type="submit"]:hover { background: #a8e6c9; }

@media (max-width: 1100px) {
  .p-cards { grid-template-columns: repeat(2, 1fr); }
  .p-form-grid { grid-template-columns: 1fr; }
  .p-preview { position: static; border-left: 0; border-top: 1px solid #2c3024; }
}
@media (max-width: 860px) {
  .p-wrap { grid-template-columns: 1fr; }
  .p-side { border-right: 0; border-bottom: 1px solid #2c3024; padding: 18px 20px; gap: 16px; }
  .p-nav { flex-direction: row; flex-wrap: wrap; }
  .p-side-foot { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: 0; }
  .p-head, .p-body, .p-form-main { padding-left: 20px; padding-right: 20px; }
  .p-flash { margin-left: 20px; margin-right: 20px; }
  .p-stats { grid-template-columns: 1fr 1fr; }
  .p-cards { grid-template-columns: 1fr; }
  .p-grid2 { grid-template-columns: 1fr; }
  .p-grid2 .span2 { grid-column: auto; }
  .p-tiles { grid-template-columns: repeat(3, 1fr); }
  .p-th { display: none; }
  .p-tr, .p-enq { grid-template-columns: 1fr; }
  .p-actions, .p-enq .r { justify-content: flex-start; text-align: left; }
}

/* =====================================================================
   Homepage sections, Listings page head, Sell page
   ===================================================================== */
.list-head { max-width: var(--max); margin: 0 auto; padding: 56px 32px 28px; }
.list-head .page-h { max-width: 22ch; }

.home-search { max-width: var(--max); margin: 0 auto 8px; padding: 0 32px; }
.hs-form { background: var(--ink); border-radius: 4px; padding: 22px 24px; display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.hs-field { flex: 1 1 280px; min-width: 0; }
.hs-field label { display: block; font-size: 10px; letter-spacing: .14em; color: #9ea396; margin-bottom: 8px; }
.hs-field select { width: 100%; background: #22251a; border: 1px solid #43473a; color: var(--paper); font-size: 16px; padding: 13px 12px; border-radius: 3px; }
.hs-btn { cursor: pointer; background: var(--paper); color: var(--ink); border: 0; border-radius: 3px; font-size: 15px; font-weight: 700; padding: 14px 28px; min-height: 48px; }
.hs-btn:hover { background: #7fd3af; }

.home-sec { max-width: var(--max); margin: 0 auto; padding: 64px 32px 8px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.home-h { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.home-sub { color: var(--body); font-size: 16px; margin: 10px 0 0; max-width: 56ch; }
.home-link { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }
.home-link:hover { text-decoration: underline; }
.home-intent .home-h { margin-bottom: 26px; }
.admin-note { margin: 18px 0 0; padding: 12px 16px; border: 1px dashed #d8d6ce; font-size: 13px; color: var(--muted); background: #fff; }

.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intent { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--ink); min-height: 230px; color: var(--ink); background: var(--paper); transition: background .15s ease, color .15s ease; }
.intent .intent-k { font-size: 11px; letter-spacing: .16em; color: var(--green); }
.intent .intent-t { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.intent .intent-s { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 40ch; }
.intent .intent-go { margin-top: auto; font-size: 14px; font-weight: 700; }
.intent-buy { background: var(--ink); color: var(--paper); }
.intent-buy .intent-k { color: #7fd3af; }
.intent-buy .intent-s { color: #c9cdc0; }
.intent-buy:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.intent-sell:hover { background: #f3f2ec; color: var(--ink); }

.fcar-wrap { position: relative; }
.fcar { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.fcar .card { flex: 0 0 calc((100% - 48px) / 3); min-width: 290px; scroll-snap-align: start; }
.fcar-btn { position: absolute; top: 90px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(250, 249, 247, .96); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(20, 23, 26, .12); z-index: 2; }
.fcar-btn:hover { background: var(--ink); color: var(--paper); }
.fcar-prev { left: -14px; }
.fcar-next { right: -14px; }


.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }
.tq { margin: 0; padding: 28px; border: 1px solid var(--rule); background: #fff; display: flex; flex-direction: column; gap: 14px; }
.tq-stars { color: #c98a00; letter-spacing: 3px; font-size: 16px; }
.tq-stars .off { color: #e0ded6; }
.tq-text { margin: 0; font-size: 16px; line-height: 1.65; color: #2c2f24; }
.tq-text p { margin: 0 0 .8em; }
.tq-text p:last-child { margin-bottom: 0; }
.tq-by { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.tq-by strong { display: block; font-weight: 700; }
.tq-detail { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tq-photo { width: 44px; height: 44px; border-radius: 999px; overflow: hidden; flex: none; background: var(--ph-a); }
.tq-photo img { width: 100%; height: 100%; object-fit: cover; }

.sell-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.sell-copy .eyebrow { margin-bottom: 14px; }
.sell-copy .prose p { font-size: 17px; margin-top: 18px; }
.sell-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 54ch; }
.sell-points li { font-size: 15px; line-height: 1.6; color: var(--body); padding-left: 22px; position: relative; }
.sell-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.sell-points strong { color: var(--ink); }
.seg-radio { display: flex; border: 1px solid #dcdad2; }
.seg-radio label { flex: 1; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: block; text-align: center; padding: 12px; font-size: 14px; font-weight: 700; }
.seg-radio input:checked + span { background: var(--ink); color: var(--paper); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--green); outline-offset: -2px; }

@media (max-width: 1000px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .fcar .card { flex-basis: calc((100% - 24px) / 2); }
  .sell-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .list-head { padding: 36px 20px 20px; }
  .home-search { padding: 0 20px; }
  .home-sec { padding: 48px 20px 4px; }
  .hs-form { padding: 18px; }
  .hs-btn { width: 100%; }
  .intent-grid { grid-template-columns: 1fr; }
  .intent { padding: 24px; min-height: 0; }
  .fcar { gap: 16px; margin-right: -20px; padding-right: 20px; }
  .fcar .card { flex-basis: 82%; min-width: 0; }
  .fcar-btn { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* "How we work" band (homepage) */
.home-band { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 64px; }
.home-band-in { max-width: var(--max); margin: 0 auto; padding: 64px 32px 68px; }
.home-band .eyebrow { margin-bottom: 14px; }
.how-h { max-width: 18ch; text-wrap: balance; }
.how-intro { max-width: 62ch; }
.how-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 28px; }
.how-ico { position: relative; width: 58px; height: 58px; border-radius: 999px; border: 1px solid #c9ddd3; background: var(--paper); color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15, 107, 79, .10); }
.how-num { position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.how-t { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 22px 0 8px; line-height: 1.2; }
.how-s { font-size: 14px; line-height: 1.65; color: var(--body); margin: 0; }

@media (max-width: 1000px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .home-band { margin-top: 48px; }
  .home-band-in { padding: 44px 20px 48px; }
  .how-steps { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .how-step { display: grid; grid-template-columns: 58px 1fr; column-gap: 18px; align-items: start; }
  .how-ico { grid-row: 1 / span 2; }
  .how-t { margin: 2px 0 6px; }
}

/* Meet the team: centred heading, large square portraits on colour blocks */
.home-head.is-center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.home-head.is-center .home-sub { margin-left: auto; margin-right: auto; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 32px; max-width: 1040px; margin: 0 auto; }
.team-grid.has-cut { padding-top: 40px; }
.tm { flex: 0 0 calc((100% - 64px) / 3); max-width: 330px; min-width: 0; }
/* The stage is a fixed square so names stay aligned; each colour block sits on its bottom edge and can be a different height. */
.tm-photo { position: relative; aspect-ratio: 1 / 1; --tm-h: 100%; }
.tm-block { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tm-h); background: linear-gradient(160deg, var(--tm-a), var(--tm-b)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tm-photo img { display: block; }
.tm-photo.is-std .tm-block img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tm-photo.is-cut > .tm-cutout { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: calc(var(--tm-h) + 24%); width: auto; max-width: 112%; object-fit: contain; object-position: center bottom; }
.tm-initials { font-size: clamp(48px, 7vw, 84px); font-weight: 800; letter-spacing: -0.03em; color: rgba(22, 24, 15, .38); }
.tm-bg-gold  { --tm-a: #ffd25a; --tm-b: #ffa91c; }
.tm-bg-mint  { --tm-a: #aef0d4; --tm-b: #4fd6a6; }
.tm-bg-peach { --tm-a: #ffcdbd; --tm-b: #ff9b82; }
.tm-bg-sky   { --tm-a: #9ccbff; --tm-b: #3f8cff; }
.tm-bg-green { --tm-a: #1f9a74; --tm-b: #0f6b4f; }
.tm-bg-stone { --tm-a: #efeee8; --tm-b: #d9d7cc; }
.tm-bg-green .tm-initials, .tm-bg-sky .tm-initials { color: rgba(255, 255, 255, .6); }
.tm-name { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 22px; }
.tm-role { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--body); margin-top: 8px; line-height: 1.5; }
.tm-ren { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }
.tm-bio { font-size: 14px; line-height: 1.6; color: var(--body); margin: 12px 0 0; }
.tm-wa { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--green); }
.tm-wa:hover { text-decoration: underline; }
.home-more { text-align: center; margin: 40px 0 0; }

@media (max-width: 1000px) {
  .tm { flex-basis: calc((100% - 32px) / 2); }
}
@media (max-width: 760px) {
  .team-grid { gap: 36px 16px; }
  .team-grid.has-cut { padding-top: 28px; }
  .tm { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 460px) {
  .tm { flex-basis: 100%; max-width: 360px; }
}

/* Full-width hero (homepage) */
.hero-full { position: relative; isolation: isolate; color: #fff; background: #12150c; min-height: clamp(560px, 82vh, 780px); display: flex; overflow: hidden; }
.hf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hf-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 6, calc(var(--hero-ov) + .12)) 0%, rgba(10, 12, 6, var(--hero-ov)) 50%, rgba(10, 12, 6, calc(var(--hero-ov) * .55)) 100%),
    linear-gradient(0deg, rgba(10, 12, 6, calc(var(--hero-ov) * .9)) 0%, rgba(10, 12, 6, 0) 45%); }
.hf-in { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 72px 32px 40px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 32px; }
.hf-in.has-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
.hf-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hf-eyebrow { font-size: 11px; letter-spacing: .18em; color: #7fd3af; margin-bottom: 18px; }
.hero-full h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: .98; letter-spacing: -0.035em; font-weight: 800; margin: 0; max-width: 15ch; text-wrap: balance; color: #fff; }
.hf-lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 50ch; margin: 22px 0 0; }
.hf-search { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: rgba(250, 249, 247, .97); color: var(--ink); border-radius: 6px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); max-width: 760px; }
.hf-search .hs-field label { color: var(--muted); }
.hf-search .hs-field select { background: #fff; border: 1px solid #dcdad2; color: var(--ink); }
.hf-search .hs-btn { background: var(--ink); color: var(--paper); }
.hf-search .hs-btn:hover { background: var(--green); color: #fff; }
.hf-admin { position: absolute; top: 14px; right: 14px; max-width: 320px; font-size: 12px; line-height: 1.5; background: rgba(255, 255, 255, .95); color: var(--ink); padding: 10px 12px; border-radius: 4px; }
.hf-admin a { color: var(--green); text-decoration: underline; }

@media (max-width: 760px) {
  .hero-full { min-height: 0; }
  .hf-in { padding: 56px 20px 28px; gap: 26px; }
  .hf-search { padding: 16px; }
  .hf-search .hs-btn { width: 100%; }
  .hf-admin { position: static; margin: 0 20px 20px; max-width: none; }
}


/* Frosted-glass stats column inside the hero */
.hf-panel { list-style: none; margin: 0; padding: 6px 28px; min-width: 240px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255, 255, 255, .26); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.hf-panel li { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.hf-panel li:last-child { border-bottom: 0; }
.hp-v { display: block; font-size: clamp(34px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hp-k { display: block; font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 7px; letter-spacing: .02em; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hf-panel { background: rgba(10, 12, 6, .55); }
}
@media (max-width: 900px) {
  .hf-in.has-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hf-panel { flex-direction: row; justify-content: space-between; gap: 8px; min-width: 0; padding: 16px 18px; }
  .hf-panel li { padding: 0 12px 0 0; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .22); flex: 1; }
  .hf-panel li:last-child { border-right: 0; padding-right: 0; }
  .hp-v { font-size: 30px; }
  .hp-k { font-size: 12px; line-height: 1.35; }
}

/* Delete buttons in the agent portal */
.p-del:hover { border-color: #c2705a !important; color: #e8a090 !important; background: rgba(194, 112, 90, .12) !important; }
