/* ============================================================
   MyThikana — "The Kolkata Property Gazette"
   FABLE-OWNED: executors must not edit this file.
   Concept: broadsheet newspaper / registry ledger. Newsprint
   paper, warm ink, Kolkata taxi-yellow, lac-seal red stamps.
   Type: Newsreader (news serif) + Archivo (UI) + Spline Sans
   Mono (ledger figures). Hard offset shadows, double rules,
   zero border-radius. WhatsApp green ONLY on WhatsApp actions.
   ============================================================ */

:root {
  --paper: #f1ebdd;
  --paper-deep: #e6ddc6;
  --card: #faf6ea;
  --ink: #1c1710;
  --ink-60: rgba(28, 23, 16, 0.6);
  --ink-soft: #5a5240;
  --taxi: #f3b700;
  --taxi-soft: #fbe29a;
  --seal: #a3271d;
  --seal-bright: #bf3327;
  --wa: #17914a;
  --rule: #1c1710;
  --hairline: rgba(28, 23, 16, 0.25);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font-head: "Newsreader", "Times New Roman", serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; cursor: pointer; }
a:hover { color: var(--seal); }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.wrap { width: min(1140px, 100% - 2.2rem); margin-inline: auto; }

/* newsprint texture */
.site-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper);
}
.site-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg, rgba(28,23,16,0.028) 0 1px, transparent 1px 3px),
    radial-gradient(rgba(28,23,16,0.05) 1px, transparent 1px);
  background-size: 100% 3px, 26px 26px;
}

/* mono label utility (kickers, tags, small caps) */
.kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--seal);
}
.kicker::before { content: ""; width: 30px; height: 3px; background: var(--seal); }

/* ---------- masthead ---------- */
.ticker {
  background: var(--ink); color: var(--taxi);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.45rem 1rem; text-align: center; white-space: nowrap; overflow: hidden;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--rule);
  box-shadow: 0 5px 0 -3px var(--paper), 0 6px 0 -3px var(--rule); /* double newspaper rule */
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand em {
  font-style: normal;
  background: linear-gradient(transparent 55%, var(--taxi) 55%, var(--taxi) 92%, transparent 92%);
}
/* Logo — tightly-cropped horizontal lockup (~3.8:1). Size by height. */
.brand-mark { height: 40px; width: auto; max-width: 260px; flex: none; object-fit: contain; display: block; }
.login-card .brand-mark { height: 62px; max-width: 300px; margin-inline: auto; }
/* Dark backgrounds (admin bar, public footer): invert the logo to white so it shows. */
.admin-brand .brand-mark { height: 34px; filter: brightness(0) invert(1); }
.site-footer .brand-mark { height: 40px; filter: brightness(0) invert(1); }
@media (max-width: 560px) { .brand-mark { height: 34px; } }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav { display: none; }
.nav-open .site-nav {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); border-bottom: 3px solid var(--rule); padding: 0.6rem 1.2rem 1.1rem;
}
.site-nav a {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem 0.2rem; color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.site-nav a.active { color: var(--seal); }
.site-nav a.active::before { content: "▸ "; }
.nav-cta { margin-top: 0.6rem; border-bottom: 0 !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; position: static; background: none; border: 0; padding: 0; }
  .site-nav a { padding: 0.3rem 0; border-bottom: 0; }
  .nav-cta { margin-top: 0; }
}

/* ---------- buttons: letterpress blocks ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.78rem 1.3rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--taxi); }
.btn-primary:hover { background: #ffc51f; }
.btn-terra { background: var(--seal); color: var(--card); }
.btn-terra:hover { background: var(--seal-bright); color: var(--card); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--card); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0f7a3c; color: #fff; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.72rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-sm:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- hero: front page ---------- */
.hero { padding: 2.6rem 0 3.4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.1rem);
  font-weight: 800; margin: 0.8rem 0 1rem; max-width: 13ch;
}
.hero h1 em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(transparent 58%, var(--taxi) 58%, var(--taxi) 94%, transparent 94%);
}
.hero-sub {
  color: var(--ink-soft); font-size: 1.06rem; max-width: 33rem;
  border-left: 3px solid var(--taxi); padding-left: 0.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.7rem; }
.hero-stats {
  display: flex; gap: 0; margin-top: 2.1rem;
  border-block: 1px solid var(--hairline); width: fit-content;
}
.hero-stats > div { padding: 0.7rem 1.4rem; border-right: 1px solid var(--hairline); }
.hero-stats > div:first-child { padding-left: 0.2rem; }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; }
.hero-stats span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.hero-art { position: relative; justify-self: center; }
.hero-art .arch-frame {
  width: min(360px, 80vw); aspect-ratio: 4 / 5;
  border: 3px solid var(--ink); border-radius: 0;
  background: var(--card); padding: 10px 10px 44px; /* mounted print with caption space */
  box-shadow: var(--shadow); position: relative;
}
.hero-art .arch-frame::after {
  content: "FIG. 1 — YOUR NEXT ADDRESS, KOLKATA";
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--ink-soft); text-align: center;
}
.hero-art .arch-frame img { width: 100%; height: calc(100% ); object-fit: cover; border: 1px solid var(--hairline); filter: sepia(0.14) contrast(1.02); }
.hero-badge {
  position: absolute; right: -14px; top: -16px; transform: rotate(6deg);
  border: 2px solid var(--seal); color: var(--seal); background: var(--card);
  border-radius: 0; padding: 0.5rem 0.8rem;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
  box-shadow: 3px 3px 0 rgba(163, 39, 29, 0.35);
}
.hero-badge small { display: block; font-weight: 400; letter-spacing: 0.08em; margin-top: 2px; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero { padding: 4rem 0 4.6rem; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.6s ease-out both; }
.rise-1 { animation-delay: 0.04s; } .rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.2s; } .rise-4 { animation-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-1, .rise-2, .rise-3, .rise-4 { animation: none; }
  * { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- sections & rules ---------- */
.section { padding: 3rem 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.7rem; padding-bottom: 0.9rem;
  border-bottom: 3px solid var(--rule);
  position: relative;
}
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--rule); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--ink-soft); max-width: 36rem; font-size: 0.98rem; }
.section-alt { background: var(--paper-deep); border-block: 1px solid var(--hairline); }

/* ---------- pillars: numbered dispatches ---------- */
.pillars { display: grid; gap: 1.2rem; counter-reset: pillar; }
@media (min-width: 740px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--card); border: 2px solid var(--ink); border-radius: 0;
  padding: 1.4rem 1.3rem 1.5rem; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  counter-increment: pillar;
}
.pillar:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.pillar::before {
  content: "№ 0" counter(pillar);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--seal);
  display: block; margin-bottom: 0.8rem;
  border-bottom: 1px dashed var(--hairline); padding-bottom: 0.55rem;
}
.pillar .pic {
  width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 0;
  display: grid; place-items: center; margin-bottom: 0.9rem;
  background: var(--taxi); color: var(--ink);
}
.pillar:nth-child(2) .pic { background: var(--seal); color: var(--card); }
.pillar:nth-child(3) .pic { background: var(--ink); color: var(--taxi); }
.pillar h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.45rem; }
.pillar p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.pillar a { font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--seal); }
.pillar a:hover { text-decoration: underline; }

/* ---------- property cards: classified clippings ---------- */
.prop-grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .prop-grid { grid-template-columns: repeat(3, 1fr); } }

.prop-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 0;
  overflow: visible; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  position: relative;
}
.prop-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.prop-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep); border-bottom: 2px solid var(--ink); overflow: hidden; display: block; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.14) contrast(1.02); transition: filter 0.2s; }
.prop-card:hover .prop-media img { filter: sepia(0) contrast(1.03); }
.prop-chips { position: absolute; top: -2px; left: 10px; display: flex; gap: 6px; }
.chip {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.32rem 0.55rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--card); color: var(--ink);
}
.chip-sale { background: var(--seal); border-color: var(--seal); color: var(--card); }
.chip-rent { background: var(--ink); color: var(--taxi); }
.chip-status { background: var(--ink); color: var(--card); }
.prop-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.prop-price {
  font-family: var(--font-mono); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em;
  align-self: flex-start;
  background: linear-gradient(transparent 20%, var(--taxi) 20%, var(--taxi) 90%, transparent 90%);
  padding: 0 0.3rem;
}
.prop-title { font-size: 1.18rem; font-weight: 700; }
.prop-title a { color: inherit; }
.prop-title a:hover { color: var(--seal); }
.prop-loc { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.4rem; }
.prop-loc svg { width: 13px; height: 13px; flex: none; }
.prop-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.55rem; padding-top: 0.6rem;
  border-top: 1px dashed var(--hairline);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- filter bar: classified desk ---------- */
.filterbar {
  background: var(--card); border: 2px solid var(--ink); border-radius: 0;
  padding: 1.1rem; margin-bottom: 1.6rem; box-shadow: var(--shadow-sm);
}
.purpose-toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 0; margin-bottom: 1rem; background: var(--card); }
.purpose-toggle a {
  padding: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.purpose-toggle a + a { border-left: 2px solid var(--ink); }
.purpose-toggle a.active { background: var(--ink); color: var(--taxi); }
.filter-fields { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
.filter-fields .field-wide { grid-column: 1 / -1; }
@media (min-width: 880px) { .filter-fields { grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr auto; } .filter-fields .field-wide { grid-column: auto; } }
.result-note { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.1rem; font-family: var(--font-mono); }
.result-note b { color: var(--ink); }

/* ---------- forms ---------- */
label {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  display: block; margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%; font: 400 0.95rem var(--font-body); color: var(--ink);
  background: #fdfbf4; border: 2px solid var(--ink); border-radius: 0;
  padding: 0.6rem 0.75rem; min-height: 44px;
  transition: box-shadow 0.15s ease-out;
}
input:focus, select:focus, textarea:focus {
  outline: none; box-shadow: 3px 3px 0 var(--taxi);
}
textarea { resize: vertical; min-height: 100px; }
input::placeholder, textarea::placeholder { color: rgba(28,23,16,0.38); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.enquiry-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 0;
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
  position: relative;
}
.enquiry-card::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px dashed var(--hairline);
}
.enquiry-card > * { position: relative; }
.enquiry-card h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.enquiry-card .form-row { margin-bottom: 0.9rem; }
.form-grid-2 { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.help-note { font-size: 0.8rem; color: var(--ink-soft); }

.flash {
  border: 2px solid var(--ink); border-radius: 0;
  padding: 0.85rem 1.1rem; margin: 1rem 0;
  font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow-sm);
}
.flash-success { background: #e4ecd9; border-color: #2e5a1c; color: #2e5a1c; box-shadow: 3px 3px 0 #2e5a1c; }
.flash-error { background: #f6e0dc; border-color: var(--seal); color: var(--seal); box-shadow: 3px 3px 0 var(--seal); }

/* ---------- property detail ---------- */
.detail-grid { display: grid; gap: 2rem; margin-top: 1.4rem; }
@media (min-width: 920px) { .detail-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.gallery-main {
  border: 2px solid var(--ink); border-radius: 0; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--paper-deep); box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.1) contrast(1.02); }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; overflow-x: auto; padding: 2px 2px 6px; }
.gallery-thumbs button {
  flex: none; width: 86px; aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden;
  border: 2px solid var(--hairline); padding: 0; background: none; opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.gallery-thumbs button.active { border-color: var(--seal); opacity: 1; box-shadow: 2px 2px 0 var(--seal); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1.4rem; }
.detail-price {
  font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700;
  display: inline-block;
  background: linear-gradient(transparent 18%, var(--taxi) 18%, var(--taxi) 92%, transparent 92%);
  padding: 0 0.4rem;
}
.spec-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.1rem 0 1.4rem; }
.spec {
  border: 2px solid var(--ink); border-radius: 0; background: var(--card);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.detail-desc { color: var(--ink-soft); white-space: pre-line; max-width: 62ch; font-size: 0.98rem; }
.sticky-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.1rem; }

/* ---------- services: gazette notices ---------- */
.svc-band { display: grid; gap: 1.2rem; counter-reset: svc; }
@media (min-width: 860px) { .svc-band { grid-template-columns: repeat(2, 1fr); } }
.svc-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 0;
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); position: relative;
  counter-increment: svc;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.svc-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.svc-card::before {
  content: "NOTICE 0" counter(svc);
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--card);
  background: var(--ink); padding: 0.25rem 0.6rem;
  position: absolute; top: -12px; left: 12px;
}
.svc-card.alt::before { background: var(--seal); }
.svc-card h3 { font-size: 1.35rem; font-weight: 700; margin: 0.3rem 0 0.5rem; }
.svc-card p { color: var(--ink-soft); font-size: 0.94rem; }
.svc-card ul { margin: 0.8rem 0 1rem 1.1rem; color: var(--ink-soft); font-size: 0.9rem; }
.svc-card li { margin-bottom: 0.3rem; }
.svc-card li::marker { color: var(--seal); }
.svc-card .docs-label {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal); margin-top: 1rem;
  border-top: 1px dashed var(--hairline); padding-top: 0.7rem;
}

/* ---------- EMI: the ledger ---------- */
.emi-panel {
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 1.8rem 1.5rem; position: relative; box-shadow: var(--shadow);
}
.emi-panel::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px dashed rgba(241, 235, 221, 0.3);
}
.emi-panel > * { position: relative; }
.emi-panel h3 { color: var(--taxi); font-size: 1.5rem; margin-bottom: 0.3rem; }
.emi-panel .sub { color: rgba(241, 235, 221, 0.65); font-size: 0.9rem; margin-bottom: 1.3rem; }
.emi-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .emi-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.emi-panel label { color: rgba(241, 235, 221, 0.7); }
.emi-field { margin-bottom: 1rem; }
.emi-field output { float: right; font-family: var(--font-mono); font-weight: 700; color: var(--taxi); }
.emi-panel input[type="range"] { accent-color: var(--taxi); border: 0; padding: 0; background: transparent; min-height: 32px; }
.emi-result {
  border: 2px solid var(--taxi); border-radius: 0;
  padding: 1.3rem 1.3rem 1.1rem; text-align: center; background: rgba(243, 183, 0, 0.06);
}
.emi-result .label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(241, 235, 221, 0.65);
}
.emi-result .big { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--taxi); margin-top: 0.2rem; }
.emi-result .row {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: rgba(241, 235, 221, 0.65); margin-top: 0.7rem;
  border-top: 1px dashed rgba(241, 235, 221, 0.25); padding-top: 0.6rem;
}
.emi-result .row b { color: var(--paper); font-family: var(--font-mono); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--card); border: 2px solid var(--ink); border-radius: 0; padding: 1.2rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: "STEP 0" counter(step);
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--seal); display: block; margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--hairline); padding-bottom: 0.45rem;
}
.step b { display: block; margin-bottom: 0.3rem; font-family: var(--font-head); font-size: 1.08rem; }
.step span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- CTA band: full-page advert ---------- */
.cta-band {
  background: var(--ink); color: var(--paper); border-radius: 0;
  padding: 2.6rem 1.6rem; text-align: center; position: relative;
  box-shadow: var(--shadow); border: 2px solid var(--ink);
}
.cta-band::before {
  content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(241, 235, 221, 0.35); pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0.6rem; }
.cta-band h2 em { font-style: italic; color: var(--taxi); }
.cta-band p { color: rgba(241, 235, 221, 0.68); margin-bottom: 1.5rem; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta-band .btn { border-color: var(--paper); box-shadow: 3px 3px 0 rgba(241, 235, 221, 0.4); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.7rem; border: 2px solid var(--ink); border-radius: 0; background: var(--card);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.pagination a:hover { background: var(--taxi-soft); }
.pagination .current { background: var(--ink); color: var(--taxi); }

/* ---------- footer: back page ---------- */
.site-footer { background: var(--ink); color: rgba(241, 235, 221, 0.75); margin-top: 3rem; border-top: 6px double var(--taxi); }
.footer-grid { display: grid; gap: 1.9rem; padding: 2.6rem 0 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--paper); }
.site-footer .brand em { background: linear-gradient(transparent 55%, rgba(243, 183, 0, 0.55) 55%, rgba(243, 183, 0, 0.55) 92%, transparent 92%); }
.site-footer h4 {
  color: var(--taxi); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.site-footer a { color: rgba(241, 235, 221, 0.75); display: flex; align-items: center; gap: 0.5rem; padding: 0.22rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--taxi); }
.site-footer a svg { width: 14px; height: 14px; flex: none; }
.site-footer p { font-size: 0.9rem; }
.footer-note {
  border-top: 1px dashed rgba(241, 235, 221, 0.3); padding: 1rem 0 1.4rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between;
}

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 54px; height: 54px; border-radius: 0; border: 2px solid var(--ink);
  background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); color: #fff; }
.wa-float:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .code {
  font-family: var(--font-mono); font-size: 4.6rem; font-weight: 700; color: var(--seal);
  line-height: 1; display: inline-block; transform: rotate(-4deg);
  border: 3px solid var(--seal); padding: 0.4rem 1.2rem; margin-bottom: 1.2rem;
  box-shadow: 4px 4px 0 rgba(163, 39, 29, 0.3);
}
.notfound h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.notfound p { color: var(--ink-soft); margin: 0.8rem 0 1.6rem; }

/* ============================================================
   ADMIN — the registry ledger
   ============================================================ */
.admin-body { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.admin-body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(28,23,16,0.03) 0 1px, transparent 1px 3px);
}

.admin-top { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--taxi); }
.admin-top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.admin-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--paper); }
.admin-brand small {
  font-family: var(--font-mono); font-weight: 500; color: var(--taxi);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--taxi); padding: 0.14rem 0.45rem; white-space: nowrap;
}
.admin-user { font-size: 0.85rem; color: rgba(241, 235, 221, 0.7); display: flex; align-items: center; gap: 0.8rem; }
.admin-user .role-tag {
  background: var(--taxi); color: var(--ink); border-radius: 0;
  padding: 0.16rem 0.55rem; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.admin-user a { color: var(--paper); font-family: var(--font-mono); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.admin-user a:hover { color: var(--taxi); }

.admin-nav { display: flex; gap: 0.15rem; overflow-x: auto; padding-bottom: 0.55rem; }
.admin-nav a {
  color: rgba(241, 235, 221, 0.7); font-family: var(--font-mono); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 0.85rem; border: 1px solid transparent; border-radius: 0;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem;
}
.admin-nav a.active { color: var(--taxi); border-color: var(--taxi); }
.admin-nav a:hover { color: var(--paper); }
.badge {
  background: var(--seal-bright); color: #fff; border-radius: 0;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; padding: 0.08rem 0.42rem;
}

.admin-main { flex: 1; padding: 1.8rem 0 3rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; border-bottom: 3px solid var(--rule); padding-bottom: 0.8rem; position: relative; }
.admin-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--rule); }
.admin-head h1 { font-size: 1.7rem; font-weight: 800; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1.8rem; }
.stat { background: var(--card); border: 2px solid var(--ink); border-radius: 0; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.stat.accent b { color: var(--seal); }
.stat span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.panel { background: var(--card); border: 2px solid var(--ink); border-radius: 0; margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); }
.panel-head { padding: 0.85rem 1.2rem; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--paper-deep); }
.panel-head h2 { font-size: 1.05rem; font-weight: 700; }
.panel-pad { padding: 1.2rem; }

.table-scroll { overflow-x: auto; }
table.admin { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
table.admin th {
  text-align: left; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0.7rem 1rem; border-bottom: 2px solid var(--ink); background: var(--paper-deep);
}
table.admin td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
table.admin tr:last-child td { border-bottom: 0; }
table.admin .thumb { width: 56px; height: 42px; object-fit: cover; border: 1px solid var(--ink); }
table.admin a { color: var(--seal); }
.row-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 0.4rem; align-items: center; }
td .mini-select { width: auto; padding: 0.3rem 0.45rem; font-size: 0.82rem; min-height: 38px; }

.pill {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  padding: 0.22rem 0.55rem; border: 1.5px solid currentColor; border-radius: 0;
  text-transform: uppercase; letter-spacing: 0.08em; background: transparent;
}
.pill-available, .pill-new { color: #2e5a1c; }
.pill-sold, .pill-contacted { color: var(--ink-soft); }
.pill-hidden { color: var(--ink-60); border-style: dashed; }
.pill-admin { color: var(--seal); }
.pill-staff { color: #205a75; }
.pill-inactive { color: var(--seal-bright); border-style: dashed; }

.btn-danger { background: transparent; border-color: var(--seal); color: var(--seal); box-shadow: 2px 2px 0 var(--seal); }
.btn-danger:hover { background: var(--seal); color: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: transparent; box-shadow: 2px 2px 0 var(--hairline); border-color: var(--ink-60); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

.filter-tabs { display: inline-flex; border: 2px solid var(--ink); background: var(--card); }
.filter-tabs a {
  padding: 0.42rem 1rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.filter-tabs a + a { border-left: 2px solid var(--ink); }
.filter-tabs a.active { background: var(--ink); color: var(--taxi); }

.admin-form { display: grid; gap: 1rem; max-width: 780px; }
.admin-form .grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .admin-form .grid-2 { grid-template-columns: 1fr 1fr; } }
.admin-form .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .admin-form .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.form-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; padding-top: 0.4rem; }

.photo-manage { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-tile { border: 2px solid var(--ink); border-radius: 0; background: var(--card); box-shadow: var(--shadow-sm); }
.photo-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.photo-tile .bar { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.5rem; }
.photo-tile .bar form { display: inline; }
.photo-tile button { background: none; border: 0; font-size: 1rem; color: var(--ink-soft); padding: 0.3rem 0.4rem; min-width: 32px; min-height: 32px; }
.photo-tile button:hover { color: var(--seal); }
.photo-tile button:disabled { opacity: 0.3; cursor: default; }
.photo-tile .cover-tag { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--seal); }

/* login: night desk */
.login-body {
  min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 1.5rem;
  background-image: repeating-linear-gradient(0deg, rgba(241,235,221,0.03) 0 1px, transparent 1px 4px);
}
.login-card {
  width: min(410px, 100%); background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 2.2rem 1.9rem; box-shadow: 8px 8px 0 var(--taxi);
}
.login-card .brand { justify-content: center; display: flex; margin-bottom: 0.4rem; }
.login-card .sub {
  text-align: center; color: var(--ink-soft); margin-bottom: 1.6rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.login-card .form-row { margin-bottom: 1rem; }
.login-card .btn { width: 100%; }

/* ============================================================
   CRM v2 — lead management (Gazette ledger continued)
   FABLE-OWNED: executors must not edit this file.
   ============================================================ */

:root {
  --hot: #bf3327;
  --warm: #d98014;
  --cold: #3a6b85;
  --won: #2e5a1c;
}

/* ---------- KPI row ---------- */
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.6rem; }
.kpi {
  background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem 1rem 1.4rem; position: relative;
}
.kpi .label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 0.4rem;
}
.kpi .val { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1; }
.kpi .sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3rem; display: block; }
.kpi.is-hot .val { color: var(--hot); }
.kpi.is-good .val { color: var(--won); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ink); }
.kpi.is-hot::after { background: var(--hot); }
.kpi.is-good::after { background: var(--won); }

/* ---------- dashboard layout ---------- */
.dash-grid { display: grid; gap: 1.4rem; }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.dash-col { display: flex; flex-direction: column; gap: 1.4rem; }

/* ---------- thermometer ---------- */
.thermo { display: flex; align-items: center; gap: 0.9rem; }
.thermo-tube {
  flex: 1; height: 16px; border: 2px solid var(--ink); background: var(--paper-deep);
  position: relative; overflow: hidden;
}
.thermo-fill { height: 100%; background: var(--cold); transition: width 0.3s ease-out; }
.thermo-fill.warm { background: var(--warm); }
.thermo-fill.hot  { background: var(--hot); }
.thermo-tube::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(28,23,16,0.28) 9px 10px);
}
.thermo-num {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; line-height: 1;
  min-width: 3.2ch; text-align: right;
}
.thermo-band {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; border: 1.5px solid currentColor; padding: 0.18rem 0.5rem;
}
.band-hot  { color: var(--hot); }
.band-warm { color: var(--warm); }
.band-cold { color: var(--cold); }
.band-won  { color: var(--won); }

.thermo-breakdown { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.85rem; }
.thermo-breakdown td { padding: 0.35rem 0; border-bottom: 1px dashed var(--hairline); }
.thermo-breakdown td:last-child { text-align: right; font-family: var(--font-mono); font-weight: 700; }
.thermo-breakdown tr:last-child td { border-bottom: 0; }
.thermo-breakdown .neg td:last-child { color: var(--hot); }

.temp-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; }
.temp-chip .dot { width: 10px; height: 10px; border: 1.5px solid var(--ink); flex: none; }
.temp-chip.band-hot .dot  { background: var(--hot); }
.temp-chip.band-warm .dot { background: var(--warm); }
.temp-chip.band-cold .dot { background: var(--cold); }
.temp-chip.band-won .dot  { background: var(--won); }

/* ---------- lead conversion funnel (tapering) ---------- */
.lead-funnel { display: flex; flex-direction: column; align-items: center; }
.funnel-step {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.5rem 1.1rem; border: 2px solid var(--ink); background: var(--paper-deep);
  color: var(--ink); transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.funnel-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.funnel-step .fs-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.funnel-step .fs-count { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.funnel-step .fs-count small { font-size: 0.66rem; font-weight: 600; margin-left: 0.45rem; opacity: 0.7; }
/* stage shades — top (widest) neutral, deepening toward the close */
.funnel-step.step-total           { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.funnel-step.step-contacted       { background: #4a4636; color: var(--paper); }
.funnel-step.step-visit_scheduled { background: var(--seal); color: var(--paper); border-color: var(--ink); }
.funnel-step.step-negotiating     { background: #b06a12; color: var(--paper); border-color: var(--ink); }
.funnel-step.step-won             { background: var(--won); color: var(--paper); border-color: var(--ink); }
.funnel-step.step-total:hover, .funnel-step.step-contacted:hover,
.funnel-step.step-visit_scheduled:hover, .funnel-step.step-negotiating:hover,
.funnel-step.step-won:hover { color: var(--paper); }
.funnel-drop {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); padding: 0.3rem 0;
}
.funnel-lost { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--hairline); font-size: 0.88rem; color: var(--ink-soft); }
.funnel-lost a { color: var(--seal); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--hairline); }
.tl-item { position: relative; padding-bottom: 1.1rem; }
.tl-item::before {
  content: ""; position: absolute; left: -1.6rem; top: 4px;
  width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--card);
}
.tl-item.t-call::before  { background: var(--warm); }
.tl-item.t-stage::before { background: var(--taxi); }
.tl-item.t-visit::before { background: var(--cold); }
.tl-item.t-whatsapp_share::before { background: var(--wa); }
.tl-item.t-system::before { background: var(--seal); }
.tl-head {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.2rem;
}
.tl-body { font-size: 0.93rem; }
.tl-empty { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- lead detail ---------- */
.lead-grid { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 1000px) { .lead-grid { grid-template-columns: 1fr 1.25fr; } }
.lead-id-card { background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); padding: 1.3rem; }
.lead-id-card h1 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.lead-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 0.9rem; margin-top: 1rem; font-size: 0.9rem; }
.lead-meta dt {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); padding-top: 0.15rem;
}
.lead-meta dd { margin: 0; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

.ai-panel { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.ai-panel h3 { color: var(--taxi); font-size: 1.1rem; margin-bottom: 0.6rem; }
.ai-verdict {
  display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.22rem 0.6rem;
  border: 1.5px solid var(--taxi); color: var(--taxi); margin-bottom: 0.7rem;
}
.ai-panel p { font-size: 0.9rem; color: rgba(241,235,221,0.82); margin-bottom: 0.6rem; }
.ai-panel .next { border-left: 3px solid var(--taxi); padding-left: 0.7rem; color: var(--paper); }
.ai-panel ul { margin: 0.5rem 0 0.9rem 1.1rem; font-size: 0.86rem; color: rgba(241,235,221,0.78); }
.ai-panel li::marker { color: var(--taxi); }
.ai-panel .stamp { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241,235,221,0.5); }
.ai-panel .btn { border-color: var(--paper); box-shadow: 3px 3px 0 rgba(241,235,221,0.35); }
.ai-empty { font-size: 0.88rem; color: rgba(241,235,221,0.7); }

/* ---------- filters ---------- */
.filter-row { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* ---------- leaderboard ---------- */
.board { display: flex; flex-direction: column; }
.board-row {
  display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.8rem; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--hairline);
}
.board-row:last-child { border-bottom: 0; }
.board-row .rank { font-family: var(--font-mono); font-weight: 700; color: var(--seal); }
.board-row .n { font-family: var(--font-mono); font-weight: 700; }
.board-row .sub { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- mini lists (today / visits) ---------- */
.mini-list { display: flex; flex-direction: column; }
.mini-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  padding: 0.65rem 0; border-bottom: 1px dashed var(--hairline);
}
.mini-row:last-child { border-bottom: 0; }
.mini-row .when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.mini-row.overdue .when { color: var(--hot); font-weight: 700; }
.is-overdue { color: var(--hot); font-weight: 700; }

/* ---------- import stepper ---------- */
.steps-bar { display: flex; margin-bottom: 1.5rem; border: 2px solid var(--ink); }
.steps-bar div {
  flex: 1; padding: 0.6rem 0.8rem; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-align: center;
}
.steps-bar div + div { border-left: 2px solid var(--ink); }
.steps-bar div.active { background: var(--ink); color: var(--taxi); }
.steps-bar div.done { background: var(--taxi); color: var(--ink); }
.map-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.result-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.4rem; }

/* ---------- misc ---------- */
.section-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty-state b { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.4rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.inline-fields { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }

/* ===========================================================
   PUBLIC SITE — "Trust & Convert" redesign (scoped to .site).
   navy = trust, gold = premium, green = act, off-white = clarity.
   Admin panel (not .site) is untouched.
   FABLE-OWNED: executors must not edit this file.
   =========================================================== */
body.site {
  --navy: #16334e;
  --navy-deep: #0f2438;
  --gold: #c0872b;
  --gold-soft: #f1e4c6;
  --terra: #c15532;
  --go: #157a52;
  --go-deep: #0f6041;
  --wa2: #1faf54;
  --page: #f6f0e2;
  --surface: #fffdf8;
  --tint: #efe6d3;
  --ink2: #2a2118;
  --soft: #6c6250;
  --line2: #e6dcc7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 6px 22px rgba(42,33,24,0.10);
  --shadow-lift: 0 16px 40px rgba(42,33,24,0.16);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink2);
  font-family: var(--font-body);
}
.site .site-bg { display: none; }
.site a { color: var(--navy); }
.site a:hover { color: var(--go); }
.site h1, .site h2, .site h3 { font-family: var(--font-head); color: var(--navy); letter-spacing: -0.01em; }
.site .wrap { width: min(1180px, 100% - 2.4rem); }
.site .kicker {
  font-family: var(--font-body); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.site .kicker::before { background: var(--gold); height: 2px; }

/* buttons */
.site .btn {
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0; text-transform: none;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  box-shadow: none; padding: 0.8rem 1.4rem; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.site .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.site .btn:active { transform: translateY(0); box-shadow: none; }
.site .btn-primary { background: var(--navy); color: #fff; }
.site .btn-primary:hover { background: var(--navy-deep); color: #fff; }
.site .btn-go { background: var(--go); color: #fff; }
.site .btn-go:hover { background: var(--go-deep); color: #fff; }
.site .btn-outline { background: transparent; border-color: var(--line2); color: var(--navy); }
.site .btn-outline:hover { border-color: var(--navy); background: #fff; }
.site .btn-terra { background: var(--gold); color: #fff; }
.site .btn-wa { background: var(--wa2); color: #fff; }
.site .btn-wa:hover { background: #199a48; color: #fff; }
.site .btn-block { width: 100%; }
.site .btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* top bar */
.site .topbar { background: var(--navy-deep); color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.site .topbar-in { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.site .tb-left { color: rgba(255,255,255,0.72); }
.site .tb-right { display: flex; gap: 1.4rem; }
.site .topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.site .topbar a:hover { color: var(--gold); }
.site .topbar svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .site .tb-left { display: none; } .site .topbar-in { justify-content: center; } }

/* header */
.site .site-header { background: var(--surface); border-bottom: 1px solid var(--line2); box-shadow: 0 2px 10px rgba(42,33,24,0.05); }
.site .nav-row { padding: 0.85rem 0; }
.site .brand-mark { height: 46px; }
.site .nav-toggle span { background: var(--navy); }
.site .site-nav { gap: 1.7rem; }
.site .site-nav a { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink2); border-bottom: 0; }
.site .site-nav a:hover { color: var(--navy); }
.site .site-nav a.active { color: var(--navy); }
.site .site-nav a.active::before { content: none; }
@media (min-width: 900px) {
  .site .site-nav a.active:not(.nav-cta) { position: relative; }
  .site .site-nav a.active:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px; background: var(--gold); }
}
.site .nav-cta { color: #fff !important; margin-left: 0.4rem; }

/* hero */
.site .hero { position: relative; padding: 3.4rem 0 3.8rem; overflow: hidden;
  background: linear-gradient(180deg, #fffdf8, var(--page)); }
.site .hero::before {
  content: ""; position: absolute; top: -8%; right: -6%; width: 40rem; height: 40rem;
  border: 2px solid rgba(192,135,43,0.18); border-radius: 50%; pointer-events: none;
}
.site .hero::after {
  content: ""; position: absolute; left: -10rem; bottom: -14rem; width: 26rem; height: 26rem;
  background: radial-gradient(circle, rgba(22,51,78,0.06), transparent 70%); pointer-events: none;
}
.site .hero .wrap { position: relative; z-index: 1; }
.site .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; align-items: start; }
@media (min-width: 940px) { .site .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.site .hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 600; line-height: 1.02; margin: 0.9rem 0 1.1rem; max-width: 15ch; }
.site .hero h1 em { font-style: italic; color: var(--terra); background: none; }
.site .hero-sub { font-size: 1.1rem; color: var(--soft); max-width: 40ch; border: 0; padding: 0; }
.site .hero-points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.site .hero-points li { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; color: var(--ink2); }
.site .hero-points svg { width: 22px; height: 22px; flex: none; color: var(--go); background: #d9f0e4; border-radius: 50%; padding: 3px; margin-top: 1px; }

/* hero form card */
.site .hero-form-card {
  background: var(--surface); border: 1px solid var(--line2);
  border-radius: 22px 22px var(--radius) var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-lift); border-top: 5px solid var(--gold);
  position: relative;
}
.site .hero-form-card::before {
  content: "No obligation"; position: absolute; top: -0.85rem; left: 1.6rem;
  background: var(--go); color: #fff; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 999px;
}
.site .hero-form-card h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.2rem; }
.site .hff-sub { color: var(--soft); font-size: 0.92rem; margin-bottom: 1.1rem; }
.site .hero-form-card .field { margin-bottom: 0.8rem; }
.site .hero-form-card label { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0; text-transform: none; color: var(--ink2); margin-bottom: 0.3rem; }
.site .hff-trust { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--soft); margin-top: 0.8rem; }
.site .hff-trust svg { width: 15px; height: 15px; color: var(--go); flex: none; }
.site .hff-wa { margin-top: 0.9rem; }

/* form controls */
.site input, .site select, .site textarea {
  border: 1.5px solid var(--line2); border-radius: var(--radius-sm); background: #fff;
  font-family: var(--font-body); color: var(--ink2); min-height: 46px; padding: 0.6rem 0.85rem;
}
.site input:focus, .site select:focus, .site textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,58,94,0.12);
}
.site label { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink2); }

/* trust strip */
.site .trust-strip { background: var(--navy); color: #fff; }
.site .trust-strip-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; padding: 1.4rem 0; }
@media (min-width: 780px) { .site .trust-strip-in { grid-template-columns: repeat(4, 1fr); } }
.site .trust-strip-in > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding-left: 2.4rem; position: relative; }
.site .trust-strip-in svg { width: 26px; height: 26px; color: var(--gold); position: absolute; left: 0; top: 2px; }
.site .trust-strip-in b { font-size: 1rem; }
.site .trust-strip-in span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* sections */
.site .section { padding: 3.6rem 0; }
.site .section-alt { background: var(--tint); border: 0; }
.site .section-head { border: 0; padding-bottom: 0; margin-bottom: 2rem; }
.site .section-head::after { content: none; }
.site .section-head.center { flex-direction: column; align-items: center; text-align: center; }
.site .section-head.center p { margin: 0.5rem auto 0; }
.site .section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
.site .section-head p { color: var(--soft); }

/* pillars */
.site .pillars { gap: 1.4rem; }
.site .pillar {
  background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.8rem 1.6rem;
}
.site .pillar::before { content: none; }
.site .pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.site .pillar .pic { width: 52px; height: 52px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; margin-bottom: 1.1rem; }
.site .pillar:nth-child(2) .pic { background: var(--gold); }
.site .pillar:nth-child(3) .pic { background: var(--go); }
.site .pillar h3 { font-size: 1.35rem; font-weight: 600; }
.site .pillar p { color: var(--soft); }
.site .pillar a { font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--navy); }
.site .pillar a:hover { color: var(--go); }

/* property cards */
.site .prop-card { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.site .prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.site .prop-media { border-bottom: 1px solid var(--line2); }
.site .prop-media img { filter: none; }
.site .prop-card:hover .prop-media img { filter: none; }
.site .prop-chips { top: 10px; left: 10px; }
.site .chip { border: 0; border-radius: 999px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; background: rgba(255,255,255,0.95); color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.site .chip-sale { background: var(--navy); color: #fff; }
.site .chip-rent { background: var(--gold); color: #fff; }
.site .prop-price { font-family: var(--font-head); color: var(--navy); background: none; padding: 0; font-size: 1.4rem; font-weight: 600; }
.site .prop-title a { color: var(--ink2); }
.site .prop-title a:hover { color: var(--navy); }
.site .prop-loc { color: var(--soft); }
.site .prop-loc svg { color: var(--gold); }
.site .prop-meta { border-top: 1px solid var(--line2); font-family: var(--font-body); letter-spacing: 0; text-transform: none; color: var(--soft); }

/* steps */
.site .steps { gap: 1.2rem; }
.site .step { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.5rem 1.4rem; }
.site .step::before { content: none; }
.site .step .step-n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.site .step b { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.site .step span { color: var(--soft); }

/* why grid */
.site .why-grid { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .site .why-grid { grid-template-columns: 0.9fr 1.1fr; } }
.site .why-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 600; margin: 0.6rem 0 0.8rem; }
.site .why-lead { color: var(--soft); font-size: 1.05rem; }
.site .why-list { display: grid; gap: 1.2rem; }
.site .why-item { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.3rem 1.4rem; }
.site .why-item svg { width: 28px; height: 28px; flex: none; color: var(--navy); }
.site .why-item b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.25rem; }
.site .why-item p { color: var(--soft); font-size: 0.94rem; }

/* CTA */
.site .cta-section { padding: 0 0 4rem; }
.site .cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-deep)); border: 0; border-radius: 20px; box-shadow: var(--shadow-lift); padding: 3rem 2rem; }
.site .cta-band::before { content: none; }
.site .cta-band h2 { color: #fff; font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.site .cta-band h2 em { color: var(--gold); }
.site .cta-band p { color: rgba(255,255,255,0.8); }
.site .cta-band .btn-wa { border: 1.5px solid rgba(255,255,255,0.3); }

/* enquiry card (inner pages) */
.site .enquiry-card { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-lift); border-top: 4px solid var(--gold); }
.site .enquiry-card::before { content: none; }
.site .enquiry-card h3 { color: var(--navy); font-weight: 600; }

/* service cards (loans/legal) */
.site .svc-card { background: var(--surface); border: 1px solid var(--line2); border-left: 4px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.site .svc-card.alt { border-left-color: var(--gold); }
.site .svc-card::before { content: none; }
.site .svc-card h3 { color: var(--navy); font-weight: 600; }
.site .svc-card p, .site .svc-card ul { color: var(--soft); }
.site .svc-card li::marker { color: var(--gold); }
.site .svc-card .docs-label { color: var(--gold); font-family: var(--font-body); letter-spacing: 0.06em; }

/* filter bar / toggle (properties) */
.site .filterbar { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.site .purpose-toggle { border: 1px solid var(--line2); border-radius: 999px; background: var(--tint); }
.site .purpose-toggle a { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--soft); border-radius: 999px; }
.site .purpose-toggle a + a { border: 0; }
.site .purpose-toggle a.active { background: var(--navy); color: #fff; }
.site .result-note { font-family: var(--font-body); color: var(--soft); }
.site .result-note b { color: var(--navy); }

/* EMI panel (loans) */
.site .emi-panel { background: var(--navy); border: 0; border-radius: 18px; box-shadow: var(--shadow-lift); }
.site .emi-panel::before { content: none; }
.site .emi-panel h3 { color: var(--gold); }
.site .emi-result { border-color: rgba(255,255,255,0.25); }
.site .emi-result .big, .site .emi-field output { color: var(--gold); }

/* pagination */
.site .pagination a, .site .pagination span { border: 1px solid var(--line2); border-radius: var(--radius-sm); box-shadow: none; font-family: var(--font-body); color: var(--soft); background: #fff; }
.site .pagination a:hover { border-color: var(--navy); background: #fff; }
.site .pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* flash */
.site .flash { border-radius: var(--radius-sm); box-shadow: none; border: 1px solid; }
.site .flash-success { background: #e4f4ec; border-color: #b6e0c9; color: var(--go-deep); }
.site .flash-error { background: #fbe9e7; border-color: #f2c4bd; color: #b3402e; }

/* property detail */
.site .gallery-main { border-radius: var(--radius); box-shadow: var(--shadow-card); border-color: var(--line2); }
.site .gallery-main img { filter: none; }
.site .detail-price { font-family: var(--font-head); color: var(--navy); background: none; padding: 0; }
.site .spec { border: 1px solid var(--line2); border-radius: 999px; font-family: var(--font-body); letter-spacing: 0; text-transform: none; color: var(--soft); background: #fff; }
.site .gallery-thumbs button { border-color: var(--line2); }
.site .gallery-thumbs button.active { border-color: var(--gold); box-shadow: none; }

/* footer */
.site .site-footer { background: var(--navy-deep); border-top: 3px solid var(--gold); color: rgba(255,255,255,0.72); }
.site .site-footer h4 { color: var(--gold); font-family: var(--font-body); letter-spacing: 0.1em; }
.site .site-footer a { color: rgba(255,255,255,0.72); }
.site .site-footer a:hover { color: var(--gold); }
.site .footer-note { font-family: var(--font-body); letter-spacing: 0; text-transform: none; border-top-color: rgba(255,255,255,0.15); }

/* floating WhatsApp + mobile CTA */
.site .wa-float { background: var(--wa2); border: 0; border-radius: 50%; box-shadow: 0 8px 22px rgba(31,175,84,0.5); }
.site .wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(31,175,84,0.6); }
.site .mobile-cta { display: none; }
@media (max-width: 720px) {
  .site .mobile-cta {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: fixed; left: 12px; right: 76px; bottom: 14px; z-index: 55;
    background: var(--go); color: #fff; font-family: var(--font-body); font-weight: 700;
    padding: 0.85rem; border-radius: 999px; box-shadow: 0 8px 22px rgba(18,133,90,0.45);
  }
  .site .mobile-cta svg { width: 20px; height: 20px; }
  .site .wa-float { bottom: 14px; }
}

/* 404 */
.site .notfound .code { font-family: var(--font-head); color: var(--gold); border: 0; box-shadow: none; transform: none; padding: 0; font-size: 6rem; }

/* v2 rhythm polish */
.site .trust-strip { background: var(--navy); }
.site .trust-strip-in svg { color: var(--gold); }
.site .pillar .pic { background: var(--navy); }
.site .pillar:nth-child(2) .pic { background: var(--terra); }
.site .pillar:nth-child(3) .pic { background: var(--go); }
.site .pillar { border-top: 3px solid transparent; }
.site .pillar:hover { border-top-color: var(--gold); }
.site .section-head .kicker::before { background: var(--terra); }
.site .kicker { color: var(--terra); }
.site .why-item svg { color: var(--gold); }
.site .step .step-n { background: var(--gold-soft); color: var(--gold); }
.site .cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-deep)); position: relative; overflow: hidden; }
.site .cta-band::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 20rem; height: 20rem; border: 2px solid rgba(192,135,43,0.25); border-radius: 50%; }
.site .cta-band > * { position: relative; z-index: 1; }
.site .footer-note { color: rgba(255,255,255,0.55); }
