/* ==========================================================================
   THEFAIRPROPERTY.COM - CONTENT/SITE.CSS
   Compiled design system (conventions sec.6 tokens EXACTLY) for the public
   portal + dual-tone operations console. Sections:
     01 tokens | 02 reset | 03 typography | 04 layout shell
     05 buttons | 06 forms/captcha | 07 cards/pills | 08 tables/DataTables
     09 header & 3-level mega-menu | 10 hero/search console/KPI
     11 bento/property cards/intel | 12 calculators | 13 advantage/CTA
     14 footer | 15 property detail page | 16 dashboard shell
     17 toast/modal/drawer/compare | 18 pager/breadcrumb/error
     19 responsive | 20 a11y & scrollbars
   ========================================================================== */

/* ============================== 01 | DESIGN TOKENS ======================== */
:root {
  /* Brand Terracotta / Architectural Copper (conventions sec.6 - exact) */
  --brand: #c34d27;
  --brand-hover: #a83e1c;
  --brand-deep: #872f14;
  --brand-soft: #fdf3ef;
  --brand-border: #f2d4c9;
  --brand-halo: rgba(195, 77, 39, 0.14);

  /* Dark contrast surfaces (warm charcoal-slate) */
  --dark-950: #12151c;
  --dark-900: #181c24;
  --dark-800: #222834;
  --dark-700: #2e3646;

  /* Trust / RERA compliance accent */
  --trust: #0f8a5f;
  --trust-dark: #0b6e4b;
  --trust-soft: #eaf7f2;
  --trust-border: #bfe8d8;

  /* Neutrals */
  --bg-page: #f8f7f5;
  --surface: #ffffff;
  --border: #eae6e1;
  --border-strong: #ddd6ce;
  --input-bg: #fffdfb;
  --text-primary: #181c24;
  --text-secondary: #4b5262;
  --text-muted: #767d8c;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fff7e6;

  /* Typography & radii */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(24, 28, 36, 0.04);
  --shadow-sm: 0 4px 12px rgba(24, 28, 36, 0.05);
  --shadow-md: 0 10px 28px rgba(24, 28, 36, 0.08);
  --shadow-lg: 0 20px 48px rgba(24, 28, 36, 0.13);
  --shadow-xl: 0 28px 64px rgba(18, 21, 28, 0.24);

  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1320px;
  --header-height: 70px;
  --sidebar-width: 272px;
  --sidebar-width-collapsed: 74px;
}

/* ============================== 02 | RESET =============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--dark-900);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

hr {
  border: none;
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

/* ============================== 03 | TYPOGRAPHY =========================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.tone-brand { color: var(--brand) !important; }
.tone-trust { color: var(--trust) !important; }
.tone-warn  { color: var(--warn) !important; }
.tone-muted { color: var(--text-muted) !important; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 5px;
}

.kicker-invert { color: #f38866; }

.section-count {
  font-size: 0.98rem;
  color: var(--brand);
  font-weight: 700;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ============================== 04 | LAYOUT SHELL ======================== */
/* Sticky-footer flex shell: header + main + footer with mt-auto behaviour. */
body:not(.dash-shell) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

.section { padding: 54px 0; }
.section-tight { padding: 30px 0; }
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ============================== 05 | BUTTONS ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 0.89rem;
  font-weight: 600;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-block { width: 100%; }

.btn-brand {
  background: var(--brand);
  color: #ffffff;
}

.btn-brand:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(195, 77, 39, 0.28);
}

.btn-brand:active {
  background: var(--brand-deep);
  transform: translateY(0);
}

.btn-brand:disabled,
.btn-brand[disabled] {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-dark {
  background: var(--dark-900);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--dark-800);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(24, 28, 36, 0.22);
}

.btn-outline {
  background: var(--surface);
  color: var(--dark-900);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  background: #f1eeea;
  color: var(--dark-900);
}

/* ============================== 06 | FORMS & CAPTCHA ===================== */
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--input-bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

textarea.form-control {
  height: auto;
  padding: 10px 13px;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-control:hover,
.form-select:hover { border-color: #c7bdb2; }

.form-control:focus,
.form-select:focus {
  background-color: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px var(--brand-halo);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12);
}

/* Modern toggle switch */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark-900);
  user-select: none;
}

.switch-control {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: #d5cfc8;
  border-radius: 99px;
  transition: background var(--ease);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform var(--ease);
}

.switch-control input:checked + .switch-track { background: var(--trust); }
.switch-control input:checked + .switch-track::after { transform: translateX(18px); }

/* Captcha box (Shared/_CaptchaPartial.cshtml) */
.captcha-box {
  background: var(--bg-page);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
}

.captcha-math {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-question {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--dark-900);
  letter-spacing: 0.04em;
}

.captcha-refresh {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.captcha-refresh:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.captcha-answer { margin-top: 10px; max-width: 220px; }
.captcha-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================== 07 | CARDS & PILLS ======================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-trust {
  background: var(--trust);
  color: #ffffff;
}

.pill-rera {
  background: var(--dark-900);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.pill-intent {
  background: rgba(24, 28, 36, 0.82);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.pill-featured {
  background: var(--brand);
  color: #ffffff;
}

.pill-neutral {
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pill-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(180, 83, 9, 0.28);
}

/* Status pills (verification enum colours) */
.pill-status { font-size: 0.7rem; }
.pill-status.approved,
.pill-status.verified { background: var(--trust-soft); color: var(--trust-dark); border: 1px solid var(--trust-border); }
.pill-status.pending,
.pill-status.underreview { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(180, 83, 9, 0.25); }
.pill-status.rejected { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }
.pill-status.draft,
.pill-status.expired { background: var(--bg-page); color: var(--text-muted); border: 1px solid var(--border); }
.pill-status.sold,
.pill-status.rented { background: var(--dark-900); color: #ffffff; }

/* ============================== 08 | TABLES / DATATABLES ================== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: var(--bg-page);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfaf8; }

/* DataTables integration */
div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input {
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  height: 34px;
  padding: 0 10px;
  font-size: 0.84rem;
}

table.dataTable thead th {
  background: var(--bg-page);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table.dataTable.no-footer { border-bottom: 1px solid var(--border); }
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after { color: var(--brand); }

div.dataTables_wrapper .paginate_button {
  border-radius: 8px !important;
  color: var(--text-secondary) !important;
  padding: 6px 10px;
  border: 1px solid var(--border) !important;
  margin: 0 2px;
}

div.dataTables_wrapper .paginate_button.current {
  background: var(--dark-900) !important;
  color: #ffffff !important;
  border: 1px solid var(--dark-900) !important;
}

div.dataTables_wrapper .paginate_button:hover {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
  border-color: var(--brand-border) !important;
}

/* ============================== 09 | HEADER & MEGA-MENU =================== */
.utility-bar {
  background: var(--dark-900);
  color: #d4d8e1;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 14px;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 3px 10px;
  border-radius: 6px;
}

.city-pill select {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.city-pill select option {
  color: var(--dark-900);
  background: #ffffff;
}

.rera-utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 138, 95, 0.18);
  border: 1px solid rgba(15, 138, 95, 0.4);
  color: #6ee7b7;
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.74rem;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
  font-weight: 500;
  transition: color var(--ease);
}

.utility-link:hover { color: #f49b7d; }

/* Sticky glassmorphic header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease), background var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-invert .brand-wordmark { color: #ffffff; }

.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--dark-900);
  letter-spacing: -0.03em;
}

.brand-wordmark span { color: var(--brand); }

.brand-sub {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -1px;
}

/* 3-level hover mega-menu (desktop) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--ease);
}

.nav-item:hover .nav-trigger {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-trigger svg { transition: transform var(--ease); }
.nav-item:hover .nav-trigger svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 950;
}

.mega-menu.cols-2 {
  min-width: 440px;
  grid-template-columns: repeat(2, 1fr);
}

.mega-menu.cols-1 {
  min-width: 270px;
  grid-template-columns: 1fr;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-head {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  padding-bottom: 7px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--brand-border);
}

.mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--ease);
}

.mega-links a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding-left: 13px;
}

.mega-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--trust-soft);
  color: var(--trust);
}

.mega-tag.copper {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.btn-post-pill {
  background: var(--brand);
  color: #ffffff;
  height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--ease);
}

.btn-post-pill:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 18px rgba(195, 77, 39, 0.3);
  transform: translateY(-1px);
}

.free-badge {
  background: #ffffff;
  color: var(--brand-deep);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.btn-login-head {
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--dark-900);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--ease);
}

.btn-login-head:hover {
  border-color: var(--dark-900);
  background: var(--bg-page);
}

/* Signed-in identity chip */
.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px 0 4px;
  border-radius: 99px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
}

.identity-chip:hover { border-color: var(--brand); }

/* Signed-in pair: dashboard chip + working sign-out button */
.identity-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.identity-signout {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  flex-shrink: 0;
}

.identity-signout:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.btn-signup-head {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand-deep);
}

.btn-signup-head:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.identity-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dark-900);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.identity-meta { display: flex; flex-direction: column; line-height: 1.15; }
.identity-name { font-size: 0.78rem; font-weight: 700; color: var(--dark-900); }
.identity-role { font-size: 0.64rem; color: var(--text-muted); }
.identity-caret { color: var(--text-muted); }

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--dark-900);
  flex-shrink: 0;
  background: var(--surface);
  cursor: pointer;
  transition: all var(--ease);
}

.mobile-menu-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* ----------------------------------------------------------------------
   Header robustness - text never wraps to a second line, and the mobile
   toggle can never be squeezed out of the viewport (see sec.19 ladder).
   ---------------------------------------------------------------------- */
.header-inner { min-width: 0; }
.header-actions { white-space: nowrap; }
.nav-trigger { white-space: nowrap; }
.btn-post-pill,
.btn-login-head,
.identity-chip {
  white-space: nowrap;
  flex-shrink: 0;
}
.icon-btn { flex-shrink: 0; }
.brand-logo > div { min-width: 0; }
.brand-wordmark,
.brand-sub { white-space: nowrap; }
.login-short,
.post-txt-short { display: none; }

/* ============================== 10 | HERO / SEARCH / KPI ================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(195, 77, 39, 0.24), transparent 46%),
    radial-gradient(circle at 14% 85%, rgba(195, 77, 39, 0.12), transparent 40%),
    linear-gradient(145deg, var(--dark-950) 0%, var(--dark-900) 56%, var(--dark-800) 100%);
  color: #ffffff;
  padding: 40px 0 66px;
  overflow: visible;
}

.hero-lite { padding: 34px 0 40px; }

.hero-arch-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.28;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(195, 77, 39, 0.18);
  border: 1px solid rgba(195, 77, 39, 0.45);
  color: #fbd0c2;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
}

.hero h1 span { color: #f38866; }

.hero-subtitle {
  color: #c7cdd8;
  font-size: clamp(0.92rem, 1.4vw, 1.03rem);
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Floating command search console */
.search-console {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}

.search-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar { display: none; }

.search-tab {
  position: relative;
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--ease);
}

.search-tab:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.search-tab.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(195, 77, 39, 0.28);
}

.search-body { padding: 18px 20px; }

.search-grid {
  display: grid;
  grid-template-columns: 160px 1.6fr 1fr 1fr auto;
  gap: 11px;
  align-items: end;
}

.search-grid.has-unit {
  grid-template-columns: 145px 1.35fr 0.95fr 0.85fr 0.95fr auto;
}

.unit-field-wrap { display: none; }
.search-grid.has-unit .unit-field-wrap { display: block; }

.autocomplete-wrap { position: relative; }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 230px;
  overflow-y: auto;
  z-index: 700;
  display: none;
}

.autocomplete-list.open { display: block; }

.autocomplete-item {
  padding: 10px 13px;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--brand-soft); color: var(--brand-deep); }
.autocomplete-item span { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.trending-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trend-chip {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all var(--ease);
}

.trend-chip:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand);
}

/* 4-column trust KPI strip */
.kpi-wrap {
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.kpi-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.kpi-cell {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--border);
}

.kpi-cell:last-child { border-right: none; }

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon.trust {
  background: var(--trust-soft);
  color: var(--trust);
}

.kpi-icon.charcoal {
  background: #f1f2f5;
  color: var(--dark-900);
}

.kpi-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-900);
}

.kpi-lbl {
  font-size: 0.77rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================== 11 | BENTO / LISTINGS / INTEL ============ */
.bento-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cat-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-tile:hover,
.cat-tile.active {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.cat-tile.active { background: var(--brand-soft); }

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--dark-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.cat-tile:hover .cat-ico,
.cat-tile.active .cat-ico {
  background: var(--brand);
  color: #ffffff;
}

.cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 3px 7px;
  border-radius: 99px;
}

.cat-tile.active .cat-count {
  background: #ffffff;
  color: var(--brand);
}

.cat-tile h3 { font-size: 0.9rem; font-weight: 700; }
.cat-tile p { font-size: 0.75rem; color: var(--text-muted); margin-top: -6px; }

/* Property grid + cards */
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.property-grid.list-view {
  grid-template-columns: 1fr;
  gap: 16px;
}

.prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--ease);
}

.prop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.property-grid.list-view .prop-card {
  flex-direction: row;
  align-items: stretch;
}

.prop-media {
  position: relative;
  height: 196px;
  background: var(--dark-800);
  overflow: hidden;
  flex-shrink: 0;
}

.property-grid.list-view .prop-media {
  width: 300px;
  height: auto;
  min-height: 210px;
}

.prop-fallback-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
}

.prop-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.prop-card:hover .prop-media img { transform: scale(1.06); }

.prop-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(18, 21, 28, 0.72) 0%, transparent 45%, rgba(18, 21, 28, 0.35) 100%);
  pointer-events: none;
}

.prop-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 72%;
}

.prop-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: all var(--ease);
}

.card-circle-btn:hover {
  transform: scale(1.08);
  color: var(--brand);
}

.card-circle-btn.liked {
  background: var(--danger);
  color: #ffffff;
}

.card-circle-btn.compared {
  background: var(--brand);
  color: #ffffff;
}

.prop-media-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.prop-bhk-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-900);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.prop-code-chip {
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.prop-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.prop-price {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--dark-900);
}

.prop-ppsf {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.prop-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-bottom: 11px;
}

.spec-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  margin-bottom: 12px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid var(--border);
  padding-right: 5px;
}

.spec-item:last-child {
  border-right: none;
  padding-right: 0;
}

.spec-item span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.spec-item strong {
  font-size: 0.76rem;
  color: var(--dark-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seller-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #f3f1ee;
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prop-btns {
  display: flex;
  gap: 6px;
}

/* Inventory empty state */
.inventory-empty {
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 46px 30px;
  text-align: center;
}

.inventory-empty-ico { margin-bottom: 14px; color: var(--brand); }

.inventory-empty h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.inventory-empty p {
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.inventory-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Bento intel: locality trends + dark panel */
.bento-intel {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

.locality-cards {
  display: grid;
  gap: 12px;
}

.locality-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--ease);
}

.locality-metric-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.loc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.loc-head strong {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  color: var(--dark-900);
}

.loc-chip {
  background: var(--trust-soft);
  color: var(--trust-dark);
  border: 1px solid var(--trust-border);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}

.loc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.loc-stats span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.loc-stats strong { font-size: 0.86rem; color: var(--dark-900); }

.intel-panel {
  background: var(--dark-900);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.intel-panel h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.intel-panel p {
  color: #b4bccb;
  font-size: 0.83rem;
  margin-bottom: 18px;
}

.intel-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.intel-panel .trend-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d9dee7;
}

.intel-panel .trend-chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.intel-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(15, 138, 95, 0.14);
  border: 1px solid rgba(15, 138, 95, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #b7ecd6;
  font-size: 0.8rem;
}

.intel-note i { color: #6ee7b7; margin-top: 2px; }

.locality-empty {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.locality-empty i { font-size: 1.6rem; color: var(--brand); margin-bottom: 10px; display: inline-block; }
.locality-empty h3 { font-size: 1.05rem; margin-bottom: 6px; }
.locality-empty p { font-size: 0.86rem; }

/* ============================== 12 | CALCULATORS ========================= */
.calc-workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calc-tabs {
  display: flex;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.calc-tab {
  flex: 1;
  min-width: 195px;
  padding: 15px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--ease);
}

.calc-tab:hover { color: var(--brand); }

.calc-tab.active {
  background: var(--surface);
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.calc-panel {
  display: none;
  padding: 26px;
}

.calc-panel.active { display: block; }

.calc-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.slider-block { margin-bottom: 18px; }
.slider-block-last { margin-bottom: 0; }

.slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.slider-label { margin: 0; }

.slider-top input[type="number"] {
  width: 150px;
  height: 38px;
  text-align: right;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
}

.calc-summary {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}

.calc-summary-left { text-align: left; }

.donut-wrap {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 auto 14px;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-center small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.donut-center strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark-900);
}

.donut-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.78rem;
  font-weight: 700;
}

.legend-principal { color: var(--dark-900); }
.legend-interest { color: var(--brand); }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.summary-grid-flat { margin-top: 0; padding-top: 0; border-top: none; }

.summary-grid span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.summary-grid strong {
  font-size: 0.96rem;
  color: var(--dark-900);
}

.summary-total {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.summary-total strong { font-size: 1.1rem; }

/* Converter */
.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: end;
}

.conv-result {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.conv-result-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
}

.conv-result-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-900);
}

.conv-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-top: 18px;
}

.unit-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.unit-card span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.unit-card strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--dark-900);
}

/* Stamp duty */
.stamp-inputs {
  display: grid;
  gap: 14px;
}

.stamp-gender-note {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--trust-soft);
  border: 1px solid var(--trust-border);
  border-radius: 8px;
  padding: 9px 12px;
}

.stamp-total {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 12px;
}

/* ============================== 13 | ADVANTAGE & CTA ===================== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.adv-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-card h3 { font-size: 0.98rem; margin-bottom: 5px; }
.adv-card p { font-size: 0.84rem; color: var(--text-secondary); }

.cta-split {
  background: linear-gradient(125deg, var(--dark-950) 0%, var(--dark-900) 58%, var(--brand-deep) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(195, 77, 39, 0.35);
}

.cta-split h2 {
  color: #ffffff;
  font-size: clamp(1.38rem, 2.3vw, 1.85rem);
  margin-bottom: 6px;
}

.cta-split p {
  color: #d1d6e0;
  font-size: 0.92rem;
  max-width: 580px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================== 14 | FOOTER ============================== */
.site-footer {
  background: var(--dark-950);
  color: #c5cbd6;
  padding: 52px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand { margin-bottom: 8px; }

.footer-blurb {
  font-size: 0.83rem;
  color: #9da5b5;
  margin-bottom: 12px;
}

.footer-rera-note {
  font-size: 0.75rem;
  color: #6ee7b7;
  line-height: 1.45;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 13px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-links-gap { margin-bottom: 14px; }
.footer-links a:hover { color: #f38866; }

.footer-contact {
  font-size: 0.8rem;
  color: #9da5b5;
}

.footer-gst-note {
  margin-top: 22px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: #9da5b5;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: #8f97a8;
}

/* Design & development credit (site footer / auth footer / dash footer). */
.footer-credit {
  color: #f38866;
  font-weight: 600;
  white-space: nowrap;
}

.footer-credit:hover { color: #ffffff; text-decoration: underline; }

.dash-footer .footer-credit { color: var(--brand); }
.dash-footer .footer-credit:hover { color: var(--brand-hover); text-decoration: underline; }

/* ============================== 15 | PROPERTY DETAIL ===================== */
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
}

.detail-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 6px 0 10px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-head-side {
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}

.detail-price {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark-900);
}

.detail-price-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.negotiable-flag {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--trust-dark);
  background: var(--trust-soft);
  border: 1px solid var(--trust-border);
  border-radius: 99px;
  padding: 2px 8px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-core {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.detail-gallery { display: flex; flex-direction: column; gap: 10px; }

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--dark-800);
}

.gallery-main img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  background: rgba(24, 28, 36, 0.82);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--dark-800);
  min-height: 76px;
  position: relative;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--ease);
}

.gallery-thumb.is-active { border-color: var(--brand); }
.gallery-thumb:hover { border-color: var(--brand-border); }
.gallery-thumb img { width: 100%; height: 76px; object-fit: cover; }

.thumb-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.gallery-thumb.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border-strong);
  cursor: default;
}

.detail-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.chip-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 18px;
}

.chip-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.84rem;
}

.chip-specs li:last-child { border-bottom: none; }
.chip-specs span { color: var(--text-muted); }
.chip-specs strong { color: var(--dark-900); text-align: right; }

.owner-box {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.owner-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.owner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-900);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.owner-identity strong { display: block; font-size: 0.88rem; color: var(--dark-900); }
.owner-identity span { font-size: 0.72rem; color: var(--text-muted); }

.owner-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.45;
}

.emi-widget {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.emi-widget h4 {
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.emi-widget-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.emi-widget-rows > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.emi-widget-rows span { color: var(--text-muted); }
.emi-widget-rows strong { color: var(--dark-900); }

.emi-widget-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.emi-widget-total strong { font-size: 1.05rem; font-family: var(--font-heading); }

.detail-desc {
  max-width: 860px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.leaflet-map {
  height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  z-index: 1;
}

.map-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.map-placeholder {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--text-secondary);
}

.map-placeholder svg { color: var(--brand); flex-shrink: 0; }
.map-placeholder strong { display: block; color: var(--dark-900); margin-bottom: 4px; }
.map-placeholder p { font-size: 0.84rem; }

/* Not-found card (SEO + 404) */
.nf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  text-align: center;
}

.nf-ico { margin-bottom: 16px; color: var(--brand); }

.nf-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.nf-card p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.nf-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.nf-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ============================== 16 | DASHBOARD SHELL ===================== */
.dash-shell {
  background:
    radial-gradient(1100px 480px at 88% -240px, rgba(195, 77, 39, 0.06), transparent 62%),
    var(--bg-page);
}

.dash-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--dark-900);
  color: #c9cfda;
  display: flex;
  flex-direction: column;
  z-index: 950;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-sidebar.collapsed { width: var(--sidebar-width-collapsed); }

.dash-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #9ca4b4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }

.dash-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px;
}

/* Sidebar menu - 3 levels, animated collapse */
.side-menu { list-style: none; }

.side-item { position: relative; }

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  color: #c9cfda;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.side-item.active-trail > .side-link {
  background: var(--brand);
  color: #ffffff;
}

.side-item.active-trail > .side-link .side-ico { color: #ffffff; }

.side-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f38866;
}

.side-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}

.side-badge.tone-brand { background: var(--brand); color: #ffffff; }
.side-badge.tone-trust { background: var(--trust); color: #ffffff; }
.side-badge.tone-warn  { background: var(--warn); color: #ffffff; }

.side-caret { flex-shrink: 0; color: #7c8496; transition: transform 0.22s ease; }
.side-item.open > .side-link .side-caret { transform: rotate(180deg); }

.side-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-item.open > .side-sub { max-height: 720px; }
.side-item[data-open="true"] > .side-sub { max-height: 720px; }

.side-sub .side-menu {
  margin-left: 16px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.side-level-3 .side-link { font-size: 0.78rem; font-weight: 500; padding: 7px 10px; }

.dash-sidebar-foot {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-quotas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* Quota meters (sidebar + admin cards) */
.quota-meter { font-size: 0.74rem; }

.quota-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #c9cfda;
}

.quota-meter-head strong { color: #ffffff; }

.quota-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.quota-fill.tone-brand { background: linear-gradient(90deg, var(--brand-deep), var(--brand)); }
.quota-fill.tone-trust { background: linear-gradient(90deg, var(--trust-dark), var(--trust)); }
.quota-fill.tone-warn  { background: linear-gradient(90deg, #8a3e07, var(--warn)); }

/* Collapsed rail hides text */
.dash-sidebar.collapsed .side-text,
.dash-sidebar.collapsed .side-badge,
.dash-sidebar.collapsed .side-caret,
.dash-sidebar.collapsed .side-sub,
.dash-sidebar.collapsed .brand-sub,
.dash-sidebar.collapsed .side-quotas { display: none; }

.dash-sidebar.collapsed .side-link { justify-content: center; padding: 10px 0; }
.dash-sidebar.collapsed .brand-wordmark { display: none; }

/* Canvas area */
.dash-canvas {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-sidebar.collapsed ~ .dash-canvas,
.dash-canvas.expanded { margin-left: var(--sidebar-width-collapsed); }

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 62px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.topbar-burger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--dark-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.topbar-burger:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.topbar-ctx { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.topbar-ctx-area { font-weight: 800; color: var(--dark-900); }
.topbar-ctx-sep { color: var(--text-muted); }
.topbar-ctx-page { color: var(--text-secondary); font-weight: 600; }

.topbar-center { flex: 1; max-width: 460px; }

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: var(--text-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topbar-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px var(--brand-halo);
}

.topbar-search input {
  flex: 1;
  border: none;
  outline: none;
  height: 38px;
  background: transparent;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.topbar-icon:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.topbar-icon .icon-badge { top: -6px; right: -6px; }

/* Profile dropdown */
.topbar-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: 99px;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: all var(--ease);
}

.topbar-profile:hover { border-color: var(--brand); }

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-avatar-meta { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-avatar-name { font-size: 0.76rem; font-weight: 700; color: var(--dark-900); }
.topbar-avatar-role { font-size: 0.62rem; color: var(--text-muted); }

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 900;
}

.topbar-profile:hover .topbar-dropdown,
.topbar-profile.open .topbar-dropdown { display: block; }

.topbar-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.topbar-dropdown a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.topbar-dropdown a i { width: 16px; color: var(--brand); }

/* Content + dashboard cards */
.dash-content {
  flex: 1;
  padding: 26px 24px 34px;
}

.dash-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.dash-title {
  position: relative;
  font-size: 1.5rem;
  font-weight: 800;
  padding-bottom: 10px;
}

.dash-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
}

.dash-sub { color: var(--text-secondary); font-size: 0.86rem; margin-top: 4px; }

.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-dash-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

/* Top accent hairline per tone */
.kpi-dash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(195, 77, 39, 0));
}

.kpi-dash-card.tone-trust::before { background: linear-gradient(90deg, var(--trust), rgba(15, 138, 95, 0)); }
.kpi-dash-card.tone-warn::before  { background: linear-gradient(90deg, var(--warn), rgba(180, 83, 9, 0)); }

.kpi-dash-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
  box-shadow: 0 14px 34px rgba(24, 28, 36, 0.1);
}

.kpi-dash-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #ffffff 78%);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  box-shadow: inset 0 0 0 1px var(--brand-border);
  flex-shrink: 0;
}

.kpi-dash-card.tone-trust .kpi-dash-ico { background: linear-gradient(135deg, var(--trust-soft), #ffffff 78%); color: var(--trust); box-shadow: inset 0 0 0 1px var(--trust-border); }
.kpi-dash-card.tone-warn .kpi-dash-ico { background: linear-gradient(135deg, var(--warn-soft), #ffffff 78%); color: var(--warn); box-shadow: inset 0 0 0 1px #f0d9bb; }
.kpi-dash-card.tone-brand .kpi-dash-ico { background: linear-gradient(135deg, var(--brand-soft), #ffffff 78%); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-border); }

.kpi-dash-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.kpi-dash-lbl { font-size: 0.76rem; color: var(--text-muted); }

.dash-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.22s var(--ease);
}

.dash-card:hover { box-shadow: 0 10px 28px rgba(24, 28, 36, 0.07); }

.dash-card.span-2 { grid-column: span 2; }

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.dash-card-head h3 { font-size: 0.95rem; }
.dash-card-body { padding: 18px; }

/* Lead traffic bars - quarter gridlines behind the columns */
.dash-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 200px;
  padding-top: 10px;
  background-image:
    linear-gradient(180deg, var(--border) 1px, transparent 1px),
    linear-gradient(180deg, var(--border) 1px, transparent 1px);
  background-size: 100% 25%;
  background-position: 0 25%, 0 75%;
  background-repeat: no-repeat;
}

.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.dash-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #ef7750 0%, var(--brand) 52%, var(--brand-deep) 100%);
  min-height: 4px;
  transition: height 0.5s ease, filter 0.2s ease;
}

.dash-bar-col:hover .dash-bar { filter: brightness(1.12) saturate(1.06); }

.dash-bar-col.is-today .dash-bar {
  background: linear-gradient(180deg, #ffb59c 0%, #ef7750 45%, var(--brand) 100%);
  box-shadow: 0 0 0 2px var(--brand-halo);
}

.dash-bar-val { font-size: 0.7rem; font-weight: 800; color: var(--dark-900); transition: color 0.2s; }
.dash-bar-col:hover .dash-bar-val { color: var(--brand-deep); }
.dash-bar-lbl { font-size: 0.66rem; color: var(--text-muted); font-weight: 600; }

.dash-empty {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.84rem;
}

.dash-empty i { font-size: 1.5rem; color: var(--brand); }

/* Stat list + timeline */
.dash-stat-list { display: flex; flex-direction: column; }

.dash-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.84rem;
  border-radius: 8px;
  transition: background 0.18s;
}

.dash-stat-list li:hover { background: var(--bg-page); }

.dash-stat-list li:last-child { border-bottom: none; }
.dash-stat-list span { color: var(--text-muted); }
.dash-stat-list strong { color: var(--dark-900); }

.dash-timeline { display: flex; flex-direction: column; gap: 0; }

.dash-timeline li {
  display: flex;
  gap: 12px;
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--border-strong);
  margin-left: 6px;
  position: relative;
}

.tl-dot {
  position: absolute;
  left: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px var(--brand-halo);
}

.tl-dot.done { background: var(--trust); box-shadow: 0 0 0 4px rgba(15, 138, 95, 0.15); }
.tl-dot.current { background: var(--brand); animation: tlPulse 2.4s ease-in-out infinite; }

@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-halo); }
  50% { box-shadow: 0 0 0 7px rgba(195, 77, 39, 0.09); }
}

.dash-timeline strong { display: block; font-size: 0.84rem; color: var(--dark-900); }
.dash-timeline small { font-size: 0.74rem; color: var(--text-muted); }

/* Dashboard footer */
.dash-footer {
  margin-top: auto;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ============================== 17 | TOAST/MODAL/DRAWER =================== */
.toast-stack {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--dark-900);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--brand);
  animation: popIn 0.2s ease;
  max-width: 340px;
}

.toast.toast-success { border-left-color: var(--trust); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-info { border-left-color: #3b82f6; }

@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal system */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 28, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: popIn 0.2s ease;
}

.modal-box.wide { max-width: 980px; }

.modal-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 5;
}

.modal-head h3 { font-size: 1.05rem; }

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--brand-soft); color: var(--brand); }

.modal-body { padding: 22px; }

/* Slide-over drawers */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 28, 0.56);
  z-index: 1000;
  display: none;
  justify-content: flex-end;
}

.drawer-overlay.open { display: flex; }

.drawer-panel {
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: drawerIn 0.25s ease;
}

@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.drawer-nav { display: flex; flex-direction: column; gap: 10px; }
.drawer-divider { border-top: 1px solid var(--border); margin: 6px 0; }

.drawer-head-actions { display: flex; align-items: center; gap: 8px; }

/* Sticky compare bar */
.compare-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 880;
  background: var(--dark-900);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(195, 77, 39, 0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.28s ease;
  max-width: 94vw;
}

.compare-bar.visible { transform: translateX(-50%) translateY(0); }

.compare-bar-label { font-size: 0.86rem; font-weight: 600; }
.compare-bar-label strong { color: #f38866; }
.compare-bar-actions { display: flex; gap: 8px; }

.compare-clear {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.compare-table th,
.compare-table td {
  padding: 11px 13px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--bg-page);
  font-weight: 700;
  color: var(--dark-900);
  width: 155px;
}

.best-value-cell {
  background: var(--trust-soft);
  color: var(--trust-dark);
  font-weight: 700;
}

/* ============================== 18 | PAGER / BREADCRUMB / ERROR ========== */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}

.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.pager-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.pager-btn.is-current {
  background: var(--dark-900);
  border-color: var(--dark-900);
  color: #ffffff;
}

.pager-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pager-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}

.pager-summary {
  text-align: center;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #c7cdd8;
  margin-bottom: 14px;
}

.breadcrumb a { color: #f38866; }
.breadcrumb a:hover { text-decoration: underline; }

/* Error pages */
.error-wrap {
  padding: 60px 0 80px;
}

.error-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 46px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.error-code {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.error-code.code-oops { color: var(--brand); }
.error-code.code-warn { color: var(--warn); }
.error-code.code-deny { color: var(--danger); }

.error-card h1 { font-size: 1.3rem; margin-bottom: 10px; }
.error-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 22px; }

.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.error-ref { font-weight: 700; letter-spacing: 0.04em; }

/* ============================== 19 | RESPONSIVE ========================== */
@media (max-width: 1200px) {
  .property-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-cats { grid-template-columns: repeat(3, 1fr); }
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-panel-grid { grid-template-columns: repeat(2, 1fr); }

  /* Header decongestion - keep menu + action buttons on ONE line. */
  .brand-sub { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .nav-trigger { padding: 8px 9px; font-size: 0.82rem; }
  .btn-post-pill { padding: 0 11px; font-size: 0.8rem; }
  .btn-login-head { padding: 0 10px; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }

  /* Hamburger mode: brand + compact actions + toggle always fit. */
  .brand-wordmark { font-size: 1.06rem; }
  .header-actions { gap: 6px; }
  .utility-inner { min-height: 34px; }

  .search-grid,
  .search-grid.has-unit { grid-template-columns: 1fr 1fr; }
  .search-grid .btn-search-main { grid-column: 1 / -1; }

  .kpi-bar { grid-template-columns: repeat(2, 1fr); }
  .kpi-cell { border-bottom: 1px solid var(--border); }

  .bento-intel { grid-template-columns: 1fr; }
  .calc-split { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-core { grid-template-columns: 1fr; }

  /* Dashboard: sidebar goes off-canvas */
  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--sidebar-width) !important;
  }

  .dash-sidebar.mobile-open { transform: translateX(0); }
  .dash-canvas { margin-left: 0 !important; }

  .dash-sidebar.collapsed .side-text,
  .dash-sidebar.collapsed .side-badge,
  .dash-sidebar.collapsed .side-sub,
  .dash-sidebar.collapsed .side-quotas { display: revert; }

  .dash-sidebar.collapsed .side-link { justify-content: flex-start; padding: 9px 10px; }
  .dash-sidebar.collapsed .brand-wordmark { display: block; }
}

@media (max-width: 768px) {
  .hide-sm { display: none !important; }

  /* Phone header: essentials only; login + full nav live in the drawer. */
  .icon-btn { display: none; }                 /* shortlist/compare via cards */
  .free-badge { display: none; }               /* pill becomes text-only */
  .btn-post-pill { padding: 0 12px; font-size: 0.8rem; }
  .brand-wordmark { font-size: 1.02rem; }
  .login-full { display: none; }               /* 'Login / Sign Up' -> 'Login' */
  .login-short { display: inline; }

  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-grid.list-view .prop-card { flex-direction: column; }
  .property-grid.list-view .prop-media { width: 100%; height: 200px; }

  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-split { padding: 26px 22px; }
  .hero { padding: 28px 0 56px; }
  .dash-kpi-grid { grid-template-columns: 1fr; }
  .dash-panel-grid { grid-template-columns: 1fr; }
  .dash-card.span-2 { grid-column: span 1; }
  .detail-head-side { width: 100%; }
  .dash-content { padding: 18px 14px 24px; }
  .toast-stack { top: 72px; right: 10px; left: 10px; }
}

@media (max-width: 540px) {
  .search-grid,
  .search-grid.has-unit { grid-template-columns: 1fr; }
  .bento-cats { grid-template-columns: repeat(2, 1fr); }
  .property-grid { grid-template-columns: 1fr; }
  .kpi-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-post-pill .post-txt { display: none; }
  .btn-post-pill .post-txt-short { display: inline; }
  .btn-login-head { display: none; }           /* login stays in the drawer */
  .brand-wordmark { font-size: 0.98rem; }
  .header-inner { gap: 8px; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .compare-bar { flex-direction: column; gap: 8px; text-align: center; }
  .identity-meta { display: none; }
}

/* ============================== 20 | A11Y & SCROLLBARS =================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focusable:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb {
  background: #d0c9c1;
  border-radius: 99px;
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover { background: var(--brand-border); }

* { scrollbar-width: thin; scrollbar-color: #d0c9c1 var(--bg-page); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .utility-bar,
  .compare-bar,
  .toast-stack,
  .drawer-overlay,
  .modal-overlay { display: none !important; }
}

/* ====================================================================== */
/*  Mega-menu alignment fixes - v2 (edge overflow + hover bridge)        */
/*  1) Panels of the two right-most nav items (New Projects, Tools)     */
/*     right-align to the trigger so nothing runs off the viewport.     */
/*  2) Invisible 10px hover bridge keeps the panel open while the       */
/*     pointer travels the gap between trigger and panel.               */
/*  3) Hard viewport clamp so even the widest 3-col panel never         */
/*     overflows on narrow desktop windows.                             */
/* ====================================================================== */
.mega-menu {
  max-width: calc(100vw - 32px);
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  /* invisible - hit-test bridge only */
}

.nav-item:nth-last-child(-n+2) .mega-menu {
  left: auto;
  right: 0;
}

.nav-item:nth-last-child(-n+2) .mega-menu.cols-1,
.nav-item:nth-last-child(-n+2) .mega-menu.cols-2 {
  min-width: 0;
}
