:root {
  color-scheme: light;
  --paper: #faf7f2;
  --bg-panel: #ffffff;
  --ink: #1a1918;
  --ink-soft: #44403c;
  --muted: #78716c;
  --line: #ede5da;
  --line-soft: #f5f0e8;
  --accent: #fd1f2a;
  --accent-hover: #e01722;
  --accent-light: #fff1f2;
  --accent-tint: rgba(253, 31, 42, 0.08);
  --success: #10b981;
  --success-light: #ecfdf5;
  --shadow-sm: 0 2px 8px rgba(36, 35, 34, 0.04);
  --shadow-md: 0 6px 20px rgba(36, 35, 34, 0.06);
  --shadow-lg: 0 12px 32px rgba(36, 35, 34, 0.09);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
  --sans: "DM Sans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* SPA route changes should never compete with a user's finger/mouse scroll. */
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Typography & Global Helpers ── */
h1, h2, h3, h4 { font-family: "Manrope", var(--sans); color: var(--ink); font-weight: 700; line-height: 1.25; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs-sep { color: #ccc; }

.section-head-row {
  margin-bottom: 20px;
}
.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Portal Main Layout (Sidebar + Body) ── */
.portal-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--paper);
}

/* ── Left Sidebar Navigation ── */
.sidebar-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-brand {
  margin-bottom: 26px;
  padding: 0 2px;
}
.sidebar-brand .logo-link {
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.sidebar-brand .hf-logo {
  width: min(100%, 220px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}
.brand-tagline {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.16s ease;
  position: relative;
  text-align: left;
}
.nav-item:hover {
  background: var(--line-soft);
  color: var(--ink);
}
.nav-item.is-active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}

.badge-count {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-links a:hover {
  color: var(--ink);
}
.copyright {
  font-size: 11px;
  color: #a8a29e;
}

/* ── Workspace (Top Bar + Dynamic Content) ── */
.portal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
}

/* ── Top Bar ── */
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.mobile-menu-btn, .mobile-brand { display: none; }

.topbar-search-wrap {
  position: relative;
  max-width: 620px;
  width: 100%;
}
.search-glass-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.topbar-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: all 0.16s ease;
}
.topbar-search-wrap input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.search-suggestions { position:absolute; z-index:90; top:calc(100% + 9px); left:0; right:0; overflow:hidden; padding:6px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 18px 45px rgba(31,24,20,.15); backdrop-filter:blur(16px); max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.search-suggestion { display:flex; width:100%; align-items:center; gap:10px; padding:10px; border-radius:11px; text-align:left; font-size:13px; }.search-suggestion:hover { background:var(--accent-light); color:var(--accent); }.search-suggestion-icon { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:var(--paper); font-size:18px; }.search-suggestion strong,.search-suggestion small { display:block; }.search-suggestion strong { font-size:13px; }.search-suggestion small { margin-top:1px; color:var(--muted); font-size:11px; }
/* Horizontal overflow prevention */
.html { overflow-x: hidden; }
body { overflow-x: hidden; }
.sidebar-signin-link { display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; padding:10px 11px; border-radius:10px; color:#fff; background:linear-gradient(135deg,#fd1f2a,#d31444); font-size:12px; font-weight:700; box-shadow:0 8px 20px rgba(253,31,42,.2); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-workspace-btn { display:inline-flex; align-items:center; gap:7px; padding:9px 12px; border:1px solid #ead8db; border-radius:999px; background:#fff8f8; color:#951b2b; font-size:12px; font-weight:800; transition:transform .18s ease,box-shadow .18s ease; }.agent-workspace-btn:hover { transform:translateY(-1px); box-shadow:0 8px 16px rgba(149,27,43,.12); }.agent-workspace-dot { width:7px; height:7px; border-radius:50%; background:#14b87a; box-shadow:0 0 0 3px rgba(20,184,122,.14); }
.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  position: relative;
  transition: all 0.16s ease;
}
.topbar-icon-btn svg { width: 18px; height: 18px; }
.topbar-icon-btn:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
.action-badge-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.account-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  transition: all 0.16s ease;
  box-shadow: 0 2px 8px rgba(253, 31, 42, 0.25);
}
.header-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
/* Auth screens carry their own focused card; avoid a redundant, clipped
   search/sign-in row above it. */
.portal-topbar.is-auth-topbar .topbar-actions { display: none; }
.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.account-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.account-link:hover { color: var(--accent); background: var(--line-soft); }

/* ── Dynamic Content Container ── */
.portal-content {
  padding: 24px 28px 48px;
  min-height: calc(100vh - 68px);
}

/* ── Story Category Pills (Home) ── */
.story-category-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.story-category-strip::-webkit-scrollbar { display: none; }

.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.16s ease;
}
.story-pill:hover {
  border-color: var(--ink-soft);
  transform: translateY(-1px);
}
.story-pill.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.story-pill.is-active .story-hero-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.story-hero-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.story-hero-icon svg { width: 16px; height: 16px; }
.story-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
}
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Category Filter Pills Bar (Buy & Rent Pages) ── */
.category-filter-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 22px;
  scrollbar-width: none;
}
.category-filter-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.16s ease;
}
.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── 2-Column Home Layout ── */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.home-feed {
  display: flex;
  flex-direction: column;
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feed-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Property Grid (2 or 3 Columns) ── */
.property-grid-2col, .property-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .property-grid-2col, .property-grid-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Property Card Component (Approved Design) ── */
.property-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}
.property-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-soft);
}

.property-card:hover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.property-card:hover::after {
  opacity: 0.08;
}

.property-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}
.property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.property-card:hover .property-photo img {
  transform: scale(1.02);
}

/* Subtle zoom on photo hover only (no upward movement) */
.property-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(255,255,255,0.02));
  pointer-events: none;
}

/* Property photo counter and arrows remain unchanged */
.property-gallery-arrow { position:absolute; z-index:4; top:50%; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.88); color:var(--ink); font-size:24px; line-height:1; transform:translateY(-50%); opacity:0; transition:opacity .18s ease,transform .18s ease; }.property-photo:hover .property-gallery-arrow { opacity:1; }.property-gallery-arrow:hover { transform:translateY(-50%) scale(1.08); }.property-gallery-arrow.is-left { left:9px; }.property-gallery-arrow.is-right { right:9px; }.property-photo-count { position:absolute; z-index:3; right:10px; bottom:10px; padding:3px 8px; border-radius:99px; color:#fff; background:rgba(18,18,18,.73); font-size:11px; font-weight:700; }

/* ── Brochure Selection ── */
.brochure-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.brochure-count { font-size: 14px; color: var(--ink); }
.brochure-actions { display: flex; gap: 8px; }
.agent-listing-card { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.agent-listing-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.agent-listing-thumb { position: relative; }
.listing-select-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  z-index: 5;
}

/* Badges on Property Photo */
.badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
  letter-spacing: 0.3px;
  z-index: 2;
}
.badge-buy, .badge-sale {
  background: var(--accent);
  color: #fff;
}
.badge-rent {
  background: #15803d;
  color: #fff;
}
.badge-featured {
  background: #111;
  color: #fff;
}

.save-property-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink-soft);
  transition: all 0.16s ease;
  z-index: 2;
}
.save-property-btn:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.1);
}
.save-property-btn.is-saved {
  color: var(--accent);
}
.property-gallery-arrow { position:absolute; z-index:4; top:50%; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.88); color:var(--ink); font-size:24px; line-height:1; transform:translateY(-50%); opacity:0; transition:opacity .18s ease,transform .18s ease; }.property-photo:hover .property-gallery-arrow { opacity:1; }.property-gallery-arrow:hover { transform:translateY(-50%) scale(1.08); }.property-gallery-arrow.is-left { left:9px; }.property-gallery-arrow.is-right { right:9px; }.property-photo-count { position:absolute; z-index:3; right:10px; bottom:10px; padding:3px 8px; border-radius:99px; color:#fff; background:rgba(18,18,18,.73); font-size:11px; font-weight:700; }

.location-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.location-tag svg { width: 12px; height: 12px; }

.property-content {
  padding: 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.property-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.property-price.is-accent {
  color: var(--accent);
}

.property-specs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.spec-item svg { width: 13px; height: 13px; color: #a8a29e; }

.property-address {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-address svg { width: 13px; height: 13px; flex-shrink: 0; }
.property-engagement-row { color: var(--accent); font-size: 11.5px; font-weight: 700; margin: -4px 0 8px; }

.property-agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.agent-meta-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.agent-circle-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.agent-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.agent-name-txt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-verified-txt {
  font-size: 10.5px;
  color: #0284c7;
  font-weight: 600;
}
.btn-contact-outline {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.16s ease;
  white-space: nowrap;
}
.btn-contact-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Right Sidebar Widgets (Home Page) ── */
.portal-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.widget-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 3vh, 32px) 16px;
  /* Cards should participate in the page scroll. An unconstrained
     overflow-y:auto turns every profile card into a nested scroll container,
     which traps touch scrolling on agent previews and mobile dashboards. */
  overflow: visible;
  overscroll-behavior: auto;
  box-shadow: var(--shadow-sm);
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.widget-head h3 {
  font-size: 16px;
  font-weight: 800;
}
.widget-link-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.widget-link-btn:hover { text-decoration: underline; }

.filter-group {
  margin-bottom: 16px;
}
.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.type-pill-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.type-pill {
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  transition: all 0.16s ease;
}
.type-pill:hover { border-color: var(--accent); color: var(--accent); }
.type-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.select-wrap select, .input-wrap input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: all 0.16s ease;
}
.select-wrap select:hover, .input-wrap input:hover {
  border-color: var(--accent);
  background: var(--accent-light, #fff5f5);
}
.select-wrap select:focus, .input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  background: #fff;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bedroom-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.bed-pill {
  padding: 7px 0;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  transition: all 0.16s ease;
}
.bed-pill:hover { border-color: var(--accent); color: var(--accent); }
.bed-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button-primary-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.16s ease;
  box-shadow: 0 2px 10px rgba(253, 31, 42, 0.25);
}
.button-primary-block:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.button-primary-block svg { width: 16px; height: 16px; }

/* Suggested Agents Widget list */
.suggested-agents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggested-agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agent-profile-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.agent-logo-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.agent-title-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.agent-title-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified-blue-check {
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
}
.agent-rating-txt {
  font-size: 11.5px;
  color: var(--muted);
}
.btn-follow-outline {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.btn-follow-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Popular Locations Grid */
.popular-locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.loc-card {
  position: relative;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.loc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.loc-card:hover img { transform: scale(1.05); }
.loc-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 10px;
  color: #fff;
}
.loc-info strong { font-size: 12.5px; font-weight: 700; }
.loc-info span { font-size: 10.5px; opacity: 0.85; }

/* ── Listing Pages Layout (Buy, Rent, Search Results) ── */
.listing-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.filter-panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
}
.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.filter-panel-head h3 { font-size: 17px; font-weight: 800; }

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.range-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.listing-content-wrap {
  display: flex;
  flex-direction: column;
}
.listing-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.results-count-txt {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.sort-wrap select {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  outline: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.sort-wrap select:hover {
  border-color: var(--accent);
  background: var(--accent-light, #fff5f5);
}
.sort-wrap select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  background: #fff;
}

/* Filter Chips (Search page) */
.active-chips-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.chip-remove-btn {
  color: var(--muted);
  font-size: 14px;
}
.chip-remove-btn:hover { color: var(--accent); }

/* ── Property Details Page (Screen 4) ── */
.prop-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(410px, .88fr);
  gap: 22px;
  align-items: start;
}

/* Left Column: Gallery & Details */
.prop-gallery-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.gallery-hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.gallery-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.gallery-thumbnails-strip {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #fff;
  overflow-x: auto;
}
.gallery-thumb-btn {
  width: 80px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.16s ease;
}
.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb-btn:hover { opacity: 0.9; }
.gallery-thumb-btn.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.details-content-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.details-section {
  margin-bottom: 20px;
}
.details-section:last-child { margin-bottom: 0; }
.details-section h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.overview-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.amenity-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.amenity-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Right Column: Key Details, Agent, Map */
.prop-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 86px;
}

.prop-main-info-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.prop-info-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}
.action-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}
.action-icon-pill svg { width: 14px; height: 14px; }
.action-icon-pill:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.prop-details-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.prop-details-price {
  font-size: 25px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.prop-details-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.prop-details-loc svg { width: 15px; height: 15px; color: var(--accent); }

.prop-key-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 10px;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  text-align: center;
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-box strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.stat-box span { font-size: 11px; color: var(--muted); }

/* Specifications Grid */
.specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.spec-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-entry span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.spec-entry strong { font-size: 13.5px; color: var(--ink); font-weight: 700; }

/* Agent Info Card on Property Details */
.agent-contact-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Compact property decision surface: key facts, price and agent action stay
   visible together on wide screens instead of forcing a long vertical read. */
@media (min-width: 993px) {
  .prop-details-layout { grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr); }
  .prop-sidebar-col { gap:14px; }
  .prop-main-info-card { padding:20px; }
  .agent-contact-box { padding:18px 20px; }
  .location-map-box { padding:18px 20px; }
  .details-content-card { padding:20px; }
  .details-section { margin-bottom:16px; }
}

/* Final mobile overrides — kept at the end so compact phone controls cannot
   be overridden by desktop breakpoint blocks above. */
@media (max-width: 640px) {
  .portal-topbar { display:grid; grid-template-columns:32px minmax(0,1fr) auto; }
  .mobile-brand { display:flex!important; width:auto!important; flex:1 1 auto!important; justify-content:center!important; min-width:0; }
  .mobile-brand .hf-logo { width:128px!important; max-width:100%; height:auto; }
  .topbar-search-wrap { display:none!important; }
  .topbar-actions { justify-self:end; gap:6px; }.topbar-actions .header-cta { padding:8px 11px; font-size:11px; }
  .auth-page-wrap { padding:18px 14px; }.auth-card { padding:26px 18px; }.auth-brand { align-items:center!important; text-align:center; }.auth-brand img { width:min(215px,100%); height:auto; }
  .prop-main-info-card,.agent-contact-box,.details-content-card,.location-map-box { border-radius:16px; }.prop-info-top-actions { margin-bottom:8px; }.prop-details-loc { margin-bottom:14px; }.specs-table { gap:9px; }.amenities-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.amenity-pill { padding:9px; font-size:11px; }
  .verification-document .kyc-doc-name { min-width:0!important; }.verification-document .kyc-doc-file { max-width:100%!important; width:100%; }
}
.agent-box-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.agent-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.agent-box-names h4 { font-size: 16px; font-weight: 800; }
.agent-subline { font-size: 12px; color: var(--muted); margin-top: 2px; }

.agent-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--radius-pill);
  border: 1px solid #22c55e;
  color: #16a34a;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.16s ease;
}
.btn-whatsapp:hover {
  background: #22c55e;
  color: #fff;
}
.btn-call-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.16s ease;
}
.btn-call-outline:hover { background: #fff; border-color: var(--ink); }

.view-agent-profile-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
}
.view-agent-profile-link:hover { text-decoration: underline; }

/* Location Map Box */
.location-map-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.location-map-box h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.map-placeholder-graphic {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.map-placeholder-graphic img { width: 100%; height: 100%; object-fit: cover; }
.map-marker-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(253,31,42,0.4);
}
.map-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.map-meta-row a { font-weight: 700; color: var(--accent); }
.map-meta-row a:hover { text-decoration: underline; }

/* ── Agents Directory Page (Screen 5) ── */
.agents-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.agents-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}
.agents-search-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}
.agents-loc-select-wrap select {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Agent Card Component (Approved Design) */
.agent-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #e2d7c7;
}

.agent-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.agent-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.agent-card-titles h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.agent-card-titles .agent-agency {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.agent-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.agent-card-rating .star { color: #f59e0b; }
.agent-card-rating .count { font-size: 12px; font-weight: 500; color: var(--muted); }

.agent-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.agent-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-stat-item svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }

.btn-view-profile {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  transition: all 0.16s ease;
  background: #fff;
}
.btn-view-profile:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Agent Public Profile Page (Screen 6) ── */
.agent-profile-banner {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: #1e293b;
  margin-bottom: -60px;
}
.agent-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.agent-profile-header-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.agent-social-profile { border:0; border-radius:20px; background:linear-gradient(145deg,#fff,#fff8f8); box-shadow:0 16px 40px rgba(46,22,28,.08); }.agent-social-profile .agent-profile-avatar-xl { box-shadow:0 0 0 5px #fff,0 0 0 7px var(--accent); }.agent-social-profile .agent-profile-meta-strip { gap:16px; }.agent-social-profile .agent-profile-meta-strip span { display:inline-flex; flex-direction:column; gap:1px; }.agent-social-profile .agent-profile-meta-strip span:has(strong) { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.04em; }.agent-social-profile .agent-profile-meta-strip strong { color:var(--ink); font-size:15px; letter-spacing:0; }
.agent-social-shell { max-width:1050px; margin:0 auto; }.agent-social-shell .agent-profile-header-card { margin-bottom:0; padding:30px 34px 20px; box-shadow:none; }.agent-social-shell .agent-profile-header-left { align-items:center; }.agent-social-shell .agent-profile-titles h2 { display:flex; align-items:center; gap:8px; }.agent-profile-avatar-xl { overflow:hidden; }.agent-profile-avatar-xl img { width:100%; height:100%; object-fit:cover; }.agent-social-bio { padding:0 34px 18px; background:linear-gradient(145deg,#fff,#fff8f8); border-radius:0 0 20px 20px; box-shadow:0 16px 40px rgba(46,22,28,.08); }.agent-social-bio strong { display:block; font-size:13px; }.agent-social-bio p { max-width:680px; margin:5px 0; color:var(--ink-soft); font-size:13px; line-height:1.55; }.agent-social-bio span { color:var(--muted); font-size:12px; }.agent-story-highlights { display:flex; gap:20px; padding:24px 4px 14px; overflow-x:auto; }.agent-story-highlights > div { display:flex; min-width:68px; flex-direction:column; align-items:center; gap:6px; }.story-ring { display:grid; width:58px; height:58px; place-items:center; border:2px solid #fff; border-radius:50%; background:linear-gradient(140deg,#24202a,#6b3553); color:#fff; font-size:21px; box-shadow:0 0 0 2px var(--accent),0 8px 16px rgba(34,22,27,.15); }.story-ring.story-verified { background:linear-gradient(140deg,#1585d1,#20b8ee); }.agent-story-highlights small { color:var(--ink-soft); font-size:10px; font-weight:700; text-align:center; white-space:nowrap; }.agent-social-shell .agent-profile-tabs { justify-content:center; margin-bottom:16px; }.agent-social-shell .agent-profile-content-grid { grid-template-columns:minmax(0,1fr) 290px; }.agent-social-shell .widget-card { border-radius:18px; }
.agent-listings-gallery { padding:0; overflow:hidden; border:0; background:transparent; box-shadow:none; }.agent-listings-gallery .widget-head { padding:18px 18px 12px; }.agent-social-listing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; }.agent-social-listing-grid .property-card { min-height:0; border:0; border-radius:0; box-shadow:none; overflow:hidden; background:#221d1e; }.agent-social-listing-grid .property-photo { height:auto; aspect-ratio:1/1; }.agent-social-listing-grid .property-photo > img { height:100%; transition:transform .4s ease; }.agent-social-listing-grid .property-card:hover .property-photo > img { transform:scale(1.08); }.agent-social-listing-grid .property-content { position:absolute; z-index:5; inset:auto 0 0; padding:28px 12px 12px; color:#fff; background:linear-gradient(transparent,rgba(0,0,0,.78)); pointer-events:none; }.agent-social-listing-grid .property-title { color:#fff; font-size:13px; }.agent-social-listing-grid .property-price { margin:0; color:#fff; font-size:12px; }.agent-social-listing-grid .property-specs-row,.agent-social-listing-grid .property-address,.agent-social-listing-grid .property-engagement-row,.agent-social-listing-grid .property-agent-row { display:none; }.agent-social-listing-grid .badge-status { top:9px; left:9px; }.agent-social-listing-grid .save-property-btn { display:none; }.agent-social-listing-grid .location-tag { left:8px; bottom:8px; font-size:10px; }.agent-social-listing-grid .property-photo-count { bottom:auto; top:9px; right:9px; }.agent-social-listing-grid .property-gallery-arrow { display:none; }
.agent-profile-header-left {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.agent-profile-avatar-xl {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.agent-profile-titles h2 { font-size: 26px; font-weight: 800; }
.agent-profile-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.agent-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-profile-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.profile-tab-btn {
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.16s ease;
}
.profile-tab-btn:hover { color: var(--ink); }
.profile-tab-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.agent-profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 360px;
  gap: 28px;
  align-items: start;
}
.profile-left-col, .profile-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust-badges-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}
.trust-badge-admin { background: linear-gradient(135deg, #fff4db, #fff); border-color: #f1d7a1; color: #855400; }

.agent-contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.agent-contact-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.contact-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon-bubble svg { width: 16px; height: 16px; }

.social-links-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  margin-top: 14px;
}
.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}
.social-icon-btn svg { width: 16px; height: 16px; }
.social-icon-btn:hover { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ── Saved Properties Page (Screen 7) ── */
.saved-header-row {
  margin-bottom: 24px;
}

/* ── Empty States & Loading States ── */
.empty-state-box {
  background: var(--bg-panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state-box h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.empty-state-box p { font-size: 14px; color: var(--muted); max-width: 380px; }

.page-loading-skeleton {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skeleton-shimmer {
  width: 74px;
  height: 74px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position:relative;
  box-shadow:0 8px 26px rgba(253,31,42,.12);
}
.skeleton-shimmer::after { content:""; position:absolute; inset:10px; border-radius:50%; background:#fff url('/logo.png') center / 82% auto no-repeat; animation:logo-float 1.4s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logo-float { from { transform:scale(.88) rotate(-4deg); } to { transform:scale(1.03) rotate(4deg); } }

/* ── Sign In Page (Screen 9) ── */
.signin-page-layout {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.signin-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.signin-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.signin-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.signin-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

.auth-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.auth-role-switch a {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.auth-role-switch a:hover { color: var(--ink); }
.auth-role-switch a.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.12);
}
.auth-switch-copy {
  margin: 20px 0 0 !important;
  color: var(--muted);
  font-size: 13px !important;
  line-height: 1.55;
}
.auth-switch-copy a,
.auth-back-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch-copy a:hover,
.auth-back-link:hover { text-decoration: underline; }
.auth-back-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.auth-brand img { display: block; }
.auth-brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-card .auth-role-switch { margin-bottom: 24px; }
.auth-card .auth-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.auth-optional {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.agent-directory-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-directory-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.agent-directory-actions a:hover { border-color: var(--accent); color: var(--accent); }
.agent-directory-actions .agent-directory-join {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.agent-directory-actions .agent-directory-join:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-google-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.16s ease;
  box-shadow: var(--shadow-sm);
}
.btn-google-signin:hover {
  background: #fafafa;
  border-color: #d1d5db;
  box-shadow: var(--shadow-md);
}
.google-g-icon { width: 18px; height: 18px; }

.signin-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.signin-divider::before, .signin-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.signin-legal-txt {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.5;
}
.signin-legal-txt a { color: var(--ink); text-decoration: underline; }

/* ── 404 Page ── */
.not-found-layout {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.not-found-code {
  font-size: 84px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.not-found-layout h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.not-found-layout p { font-size: 15px; color: var(--muted); max-width: 420px; margin-bottom: 24px; }

/* ── Enquiry Stepper Modal (Screens 10, 11, 12) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.22s ease-out forwards;
}
.modal-card { display: flex; flex-direction: column; }
.modal-pane { overflow-y: auto; }
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #666;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.stepper-step.is-active {
  color: var(--ink);
}
.stepper-step.is-active .step-num {
  background: var(--accent);
  color: #fff;
}
.stepper-step.is-done .step-num {
  background: var(--success);
  color: #fff;
}
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 10px;
}
.stepper-line.is-active {
  background: var(--accent);
}
.modal-close {
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  padding: 4px;
  cursor: pointer;
  margin-left: 10px;
}
.modal-close:hover { color: var(--ink); }

.modal-pane {
  padding: 24px 28px 28px;
}

.modal-prop-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.modal-prop-thumb {
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.modal-prop-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.modal-prop-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-prop-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.modal-prop-loc {
  font-size: 11.5px;
  color: var(--muted);
}

.modal-heading-row h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.modal-subtext { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.16s ease;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: all 0.16s ease;
}
.phone-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.phone-prefix {
  padding: 10px 12px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.phone-input-wrap .form-input {
  border: 0;
  box-shadow: none !important;
}
.form-error {
  font-size: 11.5px;
  color: #dc2626;
  font-weight: 600;
}
.api-alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12.5px;
  font-weight: 600;
}

/* Step 2: OTP Verification */
.otp-view-header {
  text-align: center;
  margin-bottom: 22px;
}
.otp-view-header h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.otp-view-header p { font-size: 13.5px; color: var(--muted); }
.otp-demo-hint {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: #065f46;
  font-weight: 700;
}

.otp-boxes-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.otp-digit {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: all 0.16s ease;
}
.otp-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.link-btn {
  font-weight: 700;
  color: var(--accent);
}
.link-btn:hover { text-decoration: underline; }

/* Step 3: Success Screen */
.modal-success-pane {
  text-align: center;
  padding: 38px 28px;
}
.success-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
}
.checkmark-svg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: block;
  stroke-width: 3.5;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #10b981;
  animation: fillSuccess 0.4s ease-in-out 0.4s forwards, scaleSuccess 0.3s ease-in-out 0.9s both;
}
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: strokeSuccess 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeSuccess 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes strokeSuccess { 100% { stroke-dashoffset: 0; } }
@keyframes scaleSuccess { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fillSuccess { 100% { box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0.08); } }

.modal-success-pane h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.modal-success-pane p { font-size: 14px; color: var(--muted); max-width: 320px; margin: 0 auto 24px; }
.success-enquiry-meta { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.enquiry-consent-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 12px 0 16px; }
.enquiry-consent-note a { color: var(--ink); font-weight: 600; }

/* Enquiry Contact Unlock (Step 3) */
.enquiry-contact-unlock {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md, 12px);
  padding: 18px 16px;
  margin-bottom: 20px;
  text-align: center;
}
.contact-unlock-label { font-size: 11.5px; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.contact-unlock-agent { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.contact-unlock-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.contact-unlock-number { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.contact-unlock-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-contact-call, .btn-contact-whatsapp, .btn-contact-copy {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px;
  border-radius: var(--radius-pill, 999px); font-size: 13px; font-weight: 700;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-contact-call { background: var(--ink, #1a1a2e); color: #fff; }
.btn-contact-call:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-contact-whatsapp { background: #25d366; color: #fff; }
.btn-contact-whatsapp:hover { background: #1eb858; }
.btn-contact-copy { background: #fff; color: var(--ink, #1a1a2e); border-color: var(--border, #e2e2ea); }
.btn-contact-copy:hover { border-color: var(--ink, #1a1a2e); }
.btn-contact-call svg, .btn-contact-whatsapp svg, .btn-contact-copy svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-copied-toast { display: block; font-size: 12px; font-weight: 600; color: #16a34a; margin-top: 10px; }

/* ── Agent Portal ── */
.auth-page-wrap { display: flex; justify-content: center; align-items: center; padding: 36px 20px; min-height: calc(100vh - 120px); }
.auth-card { background: #fff; border-radius: 12px; padding: 32px; max-width: 480px; width: 100%; border: 1px solid var(--line, #e8e8ea); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.auth-card h2 { font-size: 24px; font-weight: 800; color: var(--ink, #1a1a2e); margin-bottom: 6px; }
.auth-form .form-group { margin-bottom: 16px; }

.section-head-row:has(.agent-directory-actions) { align-items: center; gap: 20px; }

@media (max-width: 640px) {
  .signin-page-layout { min-height: calc(100vh - 88px); padding: 16px; }
  .signin-card { padding: 26px 20px; }
  .auth-page-wrap { min-height: calc(100vh - 88px); padding: 20px 16px; }
  .auth-card { padding: 26px 20px; }
  .agent-directory-actions { width: 100%; }
  .agent-directory-actions a { flex: 1; padding: 0 10px; }
  .section-head-row:has(.agent-directory-actions) { align-items: flex-start; flex-direction: column; }
}

.agent-page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.agent-page-head h1 { font-size: 24px; font-weight: 800; color: var(--ink, #1a1a2e); }
.agent-page-subtitle, .crm-page-head p { margin-top: 5px; color: var(--muted, #777); font-size: 13.5px; }
.agent-eyebrow { display: block; margin-bottom: 5px; color: var(--hf-red, #F52335); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.agent-command-header { padding: 22px 24px; margin-bottom: 20px; border: 1px solid #f3d7da; border-radius: 16px; background: linear-gradient(120deg, #fff8f8 0%, #fff 68%); }
.agent-command-header,.dash-panel,.agent-feature-card,.showcase-grid > * { position:relative; overflow:hidden; }.agent-command-header::after,.dash-panel::after { content:""; position:absolute; width:180px; height:180px; right:-75px; bottom:-110px; border-radius:50%; background:radial-gradient(circle,rgba(253,31,42,.13),transparent 70%); pointer-events:none; }.dash-stat-card { transition:transform .22s ease,box-shadow .22s ease; }.dash-stat-card:hover { transform:translateY(-5px) rotateX(2deg); box-shadow:0 18px 32px rgba(47,23,28,.11); }
.crm-page-head { align-items: flex-end; padding: 4px 0; }
.crm-filter-card { border-top: 3px solid var(--hf-red, #F52335); box-shadow: 0 8px 28px rgba(35, 25, 25, .05); }

.dash-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.dash-stat-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); box-shadow: 0 4px 18px rgba(25, 20, 20, .035); }
.dash-stat-card:hover { transform: translateY(-2px); border-color: #edc4c9; }
.dash-stat-icon { font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--paper, #fbf7ef); border-radius: 12px; }
.dash-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--ink, #1a1a2e); }
.dash-stat-label { display: block; font-size: 12px; color: var(--muted, #999); font-weight: 500; }

.dash-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.qa-btn { padding: 10px 18px; background: #fff; border: 1px solid var(--line, #e8e8ea); border-radius: var(--radius-pill, 999px); font-size: 13px; font-weight: 600; color: var(--ink, #1a1a2e); text-decoration: none; transition: border-color 0.15s; }
.qa-btn:hover { border-color: var(--hf-red, #F52335); color: var(--hf-red, #F52335); }

.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-panel { background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); padding: 20px; box-shadow: 0 5px 20px rgba(25, 20, 20, .03); }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-panel h3 { font-size: 16px; font-weight: 700; }
.dash-lead-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line, #e8e8ea); text-decoration: none; color: inherit; }
.dash-lead-row:hover { background: var(--paper, #fbf7ef); border-radius: 8px; }
.dash-lead-info { display: flex; flex-direction: column; }
.dash-lead-info strong { font-size: 14px; }
.dash-lead-info span { font-size: 12px; color: var(--muted, #999); }
.dash-activity-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line, #e8e8ea); }
.dash-activity-action { font-size: 13px; font-weight: 500; }
.dash-activity-time { font-size: 12px; color: var(--muted, #999); }

.lead-status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-contacted { background: #e0e7ff; color: #3730a3; }
.status-interested { background: #fef3c7; color: #92400e; }
.status-site_visit { background: #ddd6fe; color: #5b21b6; }
.status-negotiation { background: #fce7f3; color: #9f1239; }
.status-won { background: #dcfce7; color: #166534; }
.status-lost { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-approved { background: #dcfce7; color: #166534; }
.status-active { background: #dcfce7; color: #166534; }
.status-sold { background: #fee2e2; color: #991b1b; }
.status-rented { background: #dbeafe; color: #1e40af; }
.status-paused { background: #fef3c7; color: #92400e; }
.status-not_submitted { background: #f3f4f6; color: #6b7280; }

.agent-filters-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.agent-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.agent-listing-card { background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); overflow: hidden; }
.agent-listing-thumb { position: relative; height: 160px; }
.agent-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-status-tag { position: absolute; top: 8px; right: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.agent-listing-body { padding: 14px; }
.agent-listing-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.listing-price { font-size: 16px; font-weight: 800; color: var(--hf-red, #F52335); margin-bottom: 2px; }
.listing-meta { font-size: 12px; color: var(--muted, #999); margin-bottom: 4px; }
.listing-enquiries { font-size: 12px; color: var(--muted, #999); margin-bottom: 10px; }
.agent-listing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-picker-backdrop { position:fixed; z-index:300; inset:0; display:grid; place-items:center; padding:18px; background:rgba(16,12,15,.48); backdrop-filter:blur(7px); }.status-picker { position:relative; width:min(100%,460px); padding:26px; border:1px solid rgba(255,255,255,.5); border-radius:22px; background:linear-gradient(145deg,#fff,#fff8f8); box-shadow:0 28px 80px rgba(0,0,0,.25); }.status-picker h3 { margin:2px 0 5px; font-size:22px; }.status-picker p { color:var(--muted); font-size:13px; }.status-picker-close { position:absolute; top:12px; right:14px; width:32px; height:32px; border-radius:50%; background:var(--paper); font-size:22px; }.status-picker-options { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:20px 0; }.status-picker-option { position:relative; min-height:86px; padding:13px; border:1px solid var(--line); border-radius:13px; text-align:left; background:#fff; }.status-picker-option:hover,.status-picker-option.is-current { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint); }.status-picker-option strong,.status-picker-option small,.status-picker-option span { display:block; }.status-picker-option small { margin-top:3px; color:var(--muted); font-size:11px; }.status-picker-option span { position:absolute; top:8px; right:8px; color:var(--accent); font-size:10px; font-weight:800; }
.agent-listing-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.agent-listing-card:hover { transform: translateY(-3px); border-color: #ecc4c9; box-shadow: 0 10px 24px rgba(37, 24, 24, .08); }
.agent-listing-thumb { height: 172px; }
.agent-listing-body { padding: 16px; }

/* Mobile responsive for brochure selection */
@media (max-width: 640px) {
  .brochure-selection-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .brochure-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .listing-select-checkbox {
    width: 24px;
    height: 24px;
    top: 12px;
    right: 12px;
  }
}

.agent-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agent-feature-card { display: flex; min-height: 190px; flex-direction: column; padding: 20px; border: 1px solid var(--line, #e8e8ea); border-radius: 16px; background: #fff; color: var(--ink, #1a1a2e); text-decoration: none; box-shadow: 0 5px 20px rgba(25, 20, 20, .03); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.agent-feature-card:hover { transform: translateY(-3px); border-color: #edc4c9; box-shadow: 0 12px 28px rgba(37, 24, 24, .09); }
.agent-feature-icon { display: inline-flex; align-self: flex-start; padding: 5px 9px; margin-bottom: 18px; border-radius: 999px; background: #fff0f1; color: var(--hf-red, #F52335); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.agent-feature-card h3 { margin-bottom: 7px; font-size: 16px; }
.agent-feature-card p { margin-bottom: 18px; color: var(--muted, #777); font-size: 13px; line-height: 1.55; }
.agent-feature-card > span:last-child { margin-top: auto; color: var(--hf-red, #F52335); font-size: 12px; font-weight: 800; }

.add-prop-stepper { display: flex; align-items: center; gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.aps-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, #999); font-weight: 600; }
.aps-step.is-active .aps-num { background: var(--hf-red, #F52335); color: #fff; }
.aps-step.is-done .aps-num { background: #16a34a; color: #fff; }
.aps-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #e5e7eb; color: #6b7280; }
.aps-step.is-active { color: var(--ink, #1a1a2e); }
.aps-line { flex: 1; min-width: 20px; height: 2px; background: #e5e7eb; }
.aps-line.is-active { background: #16a34a; }
.ap-pane { background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); padding: 24px; }
.ap-pane { box-shadow:0 18px 40px rgba(43,32,28,.05); animation:ap-pane-in .32s ease both; }.ap-section-help { margin:-7px 0 19px; color:var(--muted); font-size:13px; }.form-help { display:block; margin-top:5px; color:var(--muted); font-size:11px; }.form-help.is-success { color:#087f5b; font-weight:700; }.ap-upload-zone { background:linear-gradient(135deg,#fff9f9,#fff); }.ap-img-preview:first-child { box-shadow:0 0 0 3px rgba(253,31,42,.25); }.ap-img-preview:first-child::after { content:"Cover photo"; position:absolute; left:4px; bottom:4px; padding:2px 5px; color:#fff; background:rgba(18,18,18,.68); border-radius:4px; font-size:9px; font-weight:700; }@keyframes ap-pane-in { from { opacity:0; transform:translateY(10px) rotateX(-2deg); } to { opacity:1; transform:none; } }
.ap-pane h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ap-nav-row { display: flex; justify-content: space-between; margin-top: 20px; }
.ap-upload-zone { display: flex; align-items: center; justify-content: center; padding: 28px; border: 2px dashed var(--line, #e8e8ea); border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--muted, #999); transition: border-color 0.15s; }
.ap-upload-zone:hover { border-color: var(--hf-red, #F52335); }
.amenity-chip-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }.amenity-chip { padding:8px 11px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink-soft); font-size:12px; font-weight:700; transition:all .16s ease; }.amenity-chip:hover { border-color:var(--accent); }.amenity-chip.is-selected { border-color:var(--ink); background:var(--ink); color:#fff; box-shadow:0 6px 14px rgba(26,25,24,.16); }
.ap-image-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ap-img-preview { position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #e8e8ea); }
.ap-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.ap-cover-badge { position: absolute; top: 4px; left: 4px; background: var(--hf-red, #F52335); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; }
.ap-remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1; }
.ap-review-card { background: var(--paper, #fbf7ef); border-radius: 12px; padding: 20px; }
.ap-review-cover { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

.leads-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.leads-tab { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted, #999); text-decoration: none; border: 1px solid var(--line, #e8e8ea); transition: all 0.15s; }
.leads-tab.is-active { background: var(--ink, #1a1a2e); color: #fff; border-color: var(--ink, #1a1a2e); }
.leads-tab-count { font-size: 11px; opacity: 0.7; }
.leads-table-wrap { background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted, #999); text-transform: uppercase; border-bottom: 1px solid var(--line, #e8e8ea); }
.leads-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--line, #e8e8ea); }

.lead-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.lead-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-info-label { display: block; font-size: 11px; color: var(--muted, #999); margin-bottom: 2px; text-transform: uppercase; }
.lead-status-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.lead-status-btn { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line, #e8e8ea); background: #fff; cursor: pointer; text-transform: capitalize; transition: all 0.15s; }
.lead-status-btn.is-active { background: var(--ink, #1a1a2e); color: #fff; border-color: var(--ink, #1a1a2e); }
.lead-status-btn:hover:not(.is-active) { border-color: var(--hf-red, #F52335); }
.lead-note-item { padding: 10px 0; border-bottom: 1px solid var(--line, #e8e8ea); }
.lead-note-item p { font-size: 13px; margin-bottom: 4px; }
.lead-note-item span { font-size: 11px; color: var(--muted, #999); }
.lead-followup-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line, #e8e8ea); }

/* ── Follow-ups / CRM calendar ── */
.calendar-page-head { align-items: flex-start; gap: 18px; }
.calendar-page-title { min-width: 0; }
.calendar-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.followup-month-nav { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; box-shadow: var(--shadow-sm); }
.calendar-icon-btn { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid transparent; border-radius: 50%; color: var(--ink-soft); cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.calendar-icon-btn:hover { border-color: var(--line); background: var(--paper); color: var(--ink); }
.calendar-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendar-icon-btn svg { width: 18px; height: 18px; }
.calendar-month-label { display: flex; min-width: 132px; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; text-align: center; }
.calendar-month-label strong { color: var(--ink); font-size: 14px; font-weight: 800; }
.calendar-month-code { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.calendar-today-btn { display: inline-flex; height: 38px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.calendar-today-btn:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.calendar-today-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendar-add-btn { height: 38px; padding: 0 18px; }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.calendar-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--event-color, var(--accent)); }
.type-call { --event-color: #3b6fd4; --event-bg: #eef4ff; }
.type-site_visit { --event-color: #1f8a5b; --event-bg: #eaf7ef; }
.type-meeting { --event-color: #a16207; --event-bg: #fff7e6; }
.type-reminder { --event-color: #5b6472; --event-bg: #f1f3f6; }

.followup-calendar { margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-panel); box-shadow: var(--shadow-sm); }
.followup-calendar-weekdays, .followup-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.followup-calendar-weekdays { border-bottom: 1px solid var(--line); background: #fbf9f6; }
.followup-calendar-weekdays span { padding: 11px 6px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.followup-calendar-cell { position: relative; display: flex; min-width: 0; min-height: 108px; flex-direction: column; gap: 4px; padding: 8px; border: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: background .14s ease, box-shadow .14s ease; }
.followup-calendar-cell:nth-child(7n) { border-right: 0; }
.followup-calendar-grid > .followup-calendar-cell:nth-last-child(-n+7) { border-bottom: 0; }
.followup-calendar-cell:hover { z-index: 1; background: #fffafa; box-shadow: inset 0 0 0 1px rgba(253, 31, 42, .18); }
.followup-calendar-cell:focus-visible { z-index: 2; outline: 2px solid var(--accent); outline-offset: -2px; }
.followup-calendar-cell.is-outside { background: #fcfbf9; color: var(--muted); cursor: default; }
.followup-calendar-cell.is-outside time { opacity: .55; }
.followup-calendar-cell.is-today { background: #fff8f8; }
.followup-calendar-cell.is-selected { z-index: 1; background: #fff4f4; box-shadow: inset 0 0 0 2px var(--accent); }
.followup-calendar-date { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.followup-calendar-cell time { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.followup-calendar-cell.has-followups time { color: var(--ink); }
.followup-calendar-cell.is-today time { background: var(--accent); color: #fff; font-weight: 800; }
.followup-calendar-count { min-width: 18px; padding: 1px 5px; border-radius: var(--radius-pill); background: var(--paper); color: var(--muted); font-size: 9.5px; font-weight: 800; text-align: center; }
.followup-calendar-events { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.followup-calendar-event { display: flex; min-width: 0; max-width: 100%; align-items: center; gap: 4px; overflow: hidden; padding: 3px 6px; border-left: 3px solid var(--event-color, var(--accent)); border-radius: 6px; background: var(--event-bg, #fff1f2); color: var(--ink); font-size: 10px; font-weight: 600; line-height: 1.25; }
.followup-calendar-event-time { flex: 0 0 auto; color: var(--event-color, var(--accent)); font-size: 9px; font-weight: 800; }
.followup-calendar-event-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.followup-calendar-event.status-completed { opacity: .72; }
.followup-calendar-event.status-completed .followup-calendar-event-title { text-decoration: line-through; }
.followup-calendar-event.status-cancelled { opacity: .55; text-decoration: line-through; }
.followup-calendar-more { padding: 1px 6px; color: var(--muted); font-size: 9.5px; font-weight: 700; }

.calendar-empty-state { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: #fffdfb; }
.calendar-empty-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: var(--radius-md); background: var(--paper); color: var(--accent); }
.calendar-empty-icon svg { width: 20px; height: 20px; }
.calendar-empty-state strong { display: block; color: var(--ink); font-size: 14px; }
.calendar-empty-state p { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.followups-section { margin-top: 4px; }
.followups-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.followups-section-head h2 { color: var(--ink); font-size: 16px; font-weight: 800; }
.followups-count { display: inline-flex; min-width: 24px; height: 22px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--muted); font-size: 11px; font-weight: 800; }
.followups-list { display: flex; flex-direction: column; gap: 10px; }
.followup-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--event-color, var(--accent)); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); transition: border-color .16s ease, box-shadow .16s ease; }
.followup-item:hover { border-color: #ead6d8; box-shadow: var(--shadow-md); }
.followup-item.status-completed { background: #fcfdfc; }
.followup-item.status-cancelled { opacity: .72; }
.followup-date { display: flex; min-width: 52px; flex-direction: column; align-items: center; justify-content: center; padding: 8px 6px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); }
.fu-day { font-size: 18px; font-weight: 800; line-height: 1; }
.fu-month { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.followup-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.followup-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.followup-title-row strong { color: var(--ink); font-size: 14px; }
.followup-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.followup-meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: #f7f5f2; color: var(--muted); font-size: 11px; font-weight: 600; }
.followup-meta-chip.type-call, .followup-meta-chip.type-site_visit, .followup-meta-chip.type-meeting, .followup-meta-chip.type-reminder { background: var(--event-bg); color: var(--event-color); }
.followup-notes { margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.followup-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.followup-actions .link-btn { padding: 5px 8px; border-radius: 8px; font-size: 12px; }
.followup-actions .link-btn:hover { background: var(--paper); text-decoration: none; }
.followup-actions .lead-status-pill { margin-left: 2px; }

.calendar-form-panel { margin: 0 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.calendar-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.calendar-form-head h3 { color: var(--ink); font-size: 16px; font-weight: 800; }
.calendar-form-panel .form-group { margin-bottom: 12px; }
.calendar-form-panel .form-group:last-of-type { margin-bottom: 0; }
.calendar-save-btn { margin-top: 14px; height: 40px; padding: 0 22px; }

.showcase-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.sc-status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }

.kyc-doc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #e8e8ea); }
.kyc-doc-label { min-width: 140px; font-size: 13px; font-weight: 600; }
.verification-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; max-width:900px; margin-bottom:20px; padding:28px; border-radius:20px; color:#fff; background:linear-gradient(125deg,#17212f,#314b72 58%,#617da2); box-shadow:0 20px 42px rgba(26,48,77,.18); }.verification-hero h1 { color:#fff; font-size:28px; }.verification-hero p { max-width:600px; margin-top:7px; color:rgba(255,255,255,.75); }.verification-hero .agent-eyebrow { color:#afd5ff; }.verification-score { display:flex; flex-direction:column; min-width:118px; padding:13px; border:1px solid rgba(255,255,255,.25); border-radius:14px; background:rgba(255,255,255,.1); text-align:center; backdrop-filter:blur(8px); }.verification-score strong { font-size:25px; }.verification-score span { color:#d4e8ff; font-size:11px; }.verification-panel { max-width:900px; padding:26px; }.verification-document { gap:14px; padding:14px 0; }.verification-document .kyc-doc-label { display:flex; flex:1; min-width:150px; flex-direction:column; gap:2px; }.verification-document .kyc-doc-label small { color:var(--muted); font-size:10px; font-weight:500; }

.plans-free-banner { text-align: center; padding: 48px 24px; background: linear-gradient(135deg, #fbf7ef 0%, #fff 100%); border-radius: var(--radius-lg, 16px); border: 1px solid var(--line, #e8e8ea); margin-bottom: 32px; }
.plans-free-icon { font-size: 48px; margin-bottom: 12px; }
.plans-free-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.plans-free-banner p { color: var(--muted, #999); max-width: 500px; margin: 0 auto; font-size: 14px; }
.plans-coming-soon h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.plans-cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.plans-cs-card { padding: 24px; background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); }
.plans-cs-badge { display: inline-block; background: #f3f4f6; color: #6b7280; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; letter-spacing: 0.05em; }
.plans-cs-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.plans-cs-card p { font-size: 13px; color: var(--muted, #999); }

.share-url-row { display: flex; gap: 8px; }
.share-btns-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: var(--radius-pill, 999px); font-size: 13px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; color: #fff; }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-native { background: var(--ink, #1a1a2e); }

.empty-state-box { text-align: center; padding: 48px 24px; background: #fff; border-radius: var(--radius-md, 12px); border: 1px solid var(--line, #e8e8ea); }
.empty-state-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state-box p { color: var(--muted, #999); font-size: 14px; }
.empty-state-text { color: var(--muted, #999); font-size: 13px; padding: 12px 0; }

/* ── Responsive Media Queries ── */
@media (max-width: 1200px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
  .property-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-w: 0px;
  }
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-left {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar-left.is-open {
    transform: translateX(280px);
  }
  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
  }
  .mobile-menu-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--ink);
  }
  .mobile-brand {
    display: inline-flex;
    align-items: center;
  }
  .home-layout {
    grid-template-columns: 1fr;
  }
  .listing-page-layout {
    grid-template-columns: 1fr;
  }
  .filter-panel-card {
    position: static;
  }
  .prop-details-layout {
    grid-template-columns: 1fr;
  }
  .prop-sidebar-col {
    position: static;
  }
  .agent-profile-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agent-command-header { padding: 18px; }
  .crm-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .agent-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .calendar-toolbar { justify-content: space-between; gap: 8px; }
  .followup-month-nav { flex: 1 1 auto; justify-content: space-between; }
  .calendar-month-label { min-width: 0; flex: 1; }
  .calendar-month-label strong { font-size: 13px; }
  .calendar-today-btn, .calendar-add-btn { height: 36px; padding: 0 13px; font-size: 12.5px; }
  .followup-calendar-cell { min-height: 78px; padding: 6px; gap: 3px; }
  .followup-calendar-weekdays span { padding: 8px 2px; font-size: 9px; }
  .followup-calendar-cell time { width: 23px; height: 23px; font-size: 11px; }
  .followup-calendar-event { padding: 2px 5px; font-size: 9px; }
  .followup-item { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .followup-actions { width: 100%; justify-content: flex-start; }
  /* The enquiry form can be taller than a phone viewport. Keep the modal
     scrollable so its submit action remains reachable instead of sitting
     beneath an overlapping form area. */
  .modal-backdrop { align-items: flex-start; overflow-y: auto; padding: 12px; }
  .modal-card { box-sizing: border-box; margin: auto 0; }
  .modal-pane { padding: 20px; }
  .modal-form #btn-send-otp { position: relative; z-index: 1; }
  .portal-topbar {
    padding: 0 16px;
  }
  /* Agent dashboard responsive */
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .lead-detail-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .lead-info-grid { grid-template-columns: 1fr; }
  .agent-listings-grid { grid-template-columns: 1fr; }
    height: 60px;
  }
  .topbar-search-wrap {
    max-width: 220px;
  }
  .portal-content {
    padding: 16px 16px 80px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .notifications-dropdown {
    right: -40px;
    width: 290px;
  }
  .property-grid-2col,
  .property-grid-3col,
  .agents-grid {
    grid-template-columns: 1fr;
  }
  .filter-panel-card { max-height: none; overflow: visible; }
  .page-title {
    font-size: 22px;
  }
  .agent-profile-header-card {
    padding: 20px;
  }
  .agent-profile-header-left {
    align-items: center;
  }
  .portal-topbar:not(.is-auth-topbar) { justify-content:space-between; }
  .mobile-brand { flex:1 1 auto!important; justify-content:center; min-width:0; }.mobile-brand .hf-logo { width:min(136px,100%); }
  .topbar-actions { flex:0 0 auto; gap:6px; }.topbar-actions .header-cta { white-space:nowrap; }
  .is-auth-topbar .mobile-brand { justify-content:center; }
  .auth-brand { align-items:center; text-align:center; }.auth-brand img { max-width:220px; height:auto; }
  .verification-hero { flex-direction:column; align-items:flex-start; padding:21px; }.verification-hero h1 { font-size:23px; }.verification-score { align-self:stretch; flex-direction:row; justify-content:center; align-items:baseline; gap:7px; }.verification-panel { padding:17px; }.verification-document { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }.verification-document .kyc-doc-name { grid-column:1 / -1; min-width:0!important; overflow-wrap:anywhere; }.verification-document .kyc-doc-file { grid-column:1 / -1; max-width:100%!important; width:100%; }.kyc-doc-label { min-width:0; }
}

@media (max-width: 480px) {
  .agent-feature-grid { grid-template-columns: 1fr; }
  .agent-feature-card { min-height: 0; }
  .portal-topbar {
    gap: 8px;
  }
  .topbar-search-wrap input {
    font-size: 12px;
    padding: 8px 10px 8px 34px;
  }
  .header-cta {
    padding: 7px 14px;
    font-size: 12px;
  }
  .prop-key-stats-banner {
    grid-template-columns: repeat(3, 1fr);
  }
  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 18px;
  }

  /* Add property form mobile fixes */
  .ap-pane { padding: 16px 12px; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .ap-nav-row { flex-direction: column; gap: 8px; }
  .ap-nav-row button { width: 100%; }
  .ap-upload-zone { padding: 20px 12px; }
  .ap-image-previews { grid-template-columns: repeat(2, 1fr); }
  .add-prop-stepper { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .aps-step { white-space: nowrap; min-width: 60px; }

  /* Modal responsive */
  .modal-card { width: calc(100% - 24px); max-width: none; }
  .modal-form { padding: 0 4px; }

  /* Lead detail mobile */
  .lead-detail-grid { gap: 16px; }
  .lead-info-grid { grid-template-columns: 1fr; }
  .lead-status-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .lead-status-btn { padding: 8px 6px; font-size: 11px; }

  /* Next activity form */
  #next-activity-form .form-row-2 { grid-template-columns: 1fr; }
  #next-activity-form .form-group { margin-bottom: 12px; }

  /* Brochure bar on mobile */
  .brochure-selection-bar { padding: 12px; }
  .brochure-count { font-size: 13px; }

  /* Agent listings mobile */
  .agent-listing-card { margin: 0; }
  .agent-listing-thumb { height: 180px; }
  .agent-listing-actions { flex-direction: column; gap: 8px; }
  .agent-listing-actions button, .agent-listing-actions a { width: 100%; text-align: center; }
}
  }
}

/* ── Notifications Dropdown Popover ── */
.notif-anchor-wrap {
  position: relative;
}
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  overflow: hidden;
  animation: fadeInDropdown 0.15s ease-out;
}
@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #faf8f5;
}
.notifications-head h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.notifications-list {
  max-height: 320px;
  overflow-y: auto;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
  cursor: pointer;
}
.notification-item:hover {
  background: #fdfaf6;
}
.notification-item.unread {
  background: #fff8f8;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}
.notif-content {
  flex: 1;
}
.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.notif-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
.notif-time {
  font-size: 11px;
  color: #a8a29e;
  display: block;
  margin-top: 4px;
}

/* ── Account Controls & Dropdown ── */
.account-anchor-wrap {
  position: relative;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  overflow: hidden;
  padding: 6px 0;
  animation: fadeInDropdown 0.15s ease-out;
}
.user-menu-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.user-menu-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-email {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.user-menu-item:hover {
  background: var(--paper);
  color: var(--accent);
}
.user-menu-item.logout-item {
  color: #dc2626;
  border-top: 1px solid var(--line-soft);
}
.user-menu-item.logout-item:hover {
  background: #fef2f2;
}

/* ── Mobile Bottom Navigation Bar (Panel 13) ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  z-index: 80;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
  min-width: 54px;
}
.mobile-nav-item.is-active {
  color: var(--accent);
}
.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
}
.mobile-nav-item.is-active .mobile-nav-icon svg {
  stroke: var(--accent);
}

/* ── Lightbox Modal ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  overflow: hidden;
  overscroll-behavior: contain;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox-content {
  position: relative;
  width: min(1120px, calc(100vw - 180px));
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
#lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
#lightbox-img.lightbox-img-enter-next {
  animation: lightbox-img-from-right 180ms ease-out;
}
#lightbox-img.lightbox-img-enter-prev {
  animation: lightbox-img-from-left 180ms ease-out;
}
@keyframes lightbox-img-from-right {
  from { opacity: 0.35; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes lightbox-img-from-left {
  from { opacity: 0.35; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  #lightbox-img.lightbox-img-enter-next,
  #lightbox-img.lightbox-img-enter-prev {
    animation: none;
  }
}
.lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  max-width: 100%;
}
.lightbox-caption {
  color: #fff;
  font-size: 14px;
  margin-top: 0;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  max-width: min(720px, 80vw);
}
.lightbox-caption:empty {
  display: none;
}
.lightbox-counter {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 130;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-close:hover,
.lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}
.lightbox-close:hover {
  transform: translateY(-1px);
}
.lightbox-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
}
.lightbox-close:active {
  transform: scale(0.96);
}
.lightbox-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 720px) {
  .lightbox-content {
    width: calc(100vw - 32px);
    max-height: 88vh;
  }
  #lightbox-img {
    max-height: 72vh;
    border-radius: 12px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close svg,
  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
  .lightbox-meta {
    margin-top: 10px;
  }
  .lightbox-caption {
    font-size: 13px;
    max-width: calc(100vw - 48px);
  }
  .lightbox-counter {
    font-size: 11.5px;
  }
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-message {
  background: #1c1917;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease-out forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Info Pages Layout (About, Help, Terms, Privacy) ── */
.info-page-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0 60px;
}
.info-header-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.info-content-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.info-prose h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 28px 0 12px;
}
.info-prose h2:first-child {
  margin-top: 0;
}
.info-prose p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.info-prose ul, .info-prose ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.info-prose li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.info-alert-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 13.5px;
  color: #991b1b;
  line-height: 1.5;
}

/* ── FAQ Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.16s ease;
}
.faq-item.is-open {
  border-color: var(--accent);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
  color: var(--muted);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

/* ── Buyer Profile Page ── */
.profile-page-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0 60px;
}
.profile-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.profile-header-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.profile-big-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.profile-meta-col h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.profile-meta-col p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.profile-stats-row.profile-stats-single { grid-template-columns: minmax(0, 1fr); max-width: 260px; }
.profile-stat-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.profile-stat-tile strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.profile-stat-tile span {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.profile-actions-strip {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
/* ── Admin-published announcements ── */
.hf-announcement-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.hf-announcement-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #f3d5ce;
  border-left: 4px solid var(--accent, #fd1f2a);
  border-radius: 10px;
  background: #fff8f5;
  color: #5d3a34;
  font-size: 12.5px;
  line-height: 1.55;
}
.hf-announcement-banner strong { color: #2b1b18; white-space: nowrap; }
@media (max-width: 640px) {
  .hf-announcement-banner { flex-direction: column; gap: 3px; }
  .hf-announcement-banner strong { white-space: normal; }
}


/* Compact discovery cards and natural page scrolling */
.property-grid-2col, .property-grid-3col { gap: 18px; }
.property-photo { aspect-ratio: 16 / 10; }
.property-content { padding: 12px; }
.property-specs-row { gap: 8px; font-size: 11.5px; flex-wrap: wrap; }
.property-engagement-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.property-like-btn { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-soft); font-size: 11px; font-weight: 700; background: #fff; cursor: pointer; }
.property-like-btn:hover, .property-like-btn.is-liked { color: var(--accent); border-color: var(--accent); }
.property-like-btn:disabled { opacity: .6; cursor: wait; }
/* Let the document scroll normally while keeping all Buy/Rent filters visible. */
.listing-page-layout > .filter-panel-card { position: static; max-height: none; overflow: visible; align-self: start; }
.filter-panel-card { padding: 14px; }
.filter-group { margin-bottom: 14px; }
.agent-profile-actions { flex-wrap: wrap; }
.btn-follow-outline { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: var(--radius-pill); color: var(--accent); font-size: 13px; font-weight: 700; background: #fff; cursor: pointer; }
.btn-follow-outline.is-following { background: var(--accent-light); }
.btn-follow-outline:disabled { opacity: .65; }
.aps-stepper { overflow-x: auto; padding-bottom: 8px; }
.ap-pane { box-shadow: var(--shadow-sm); }
.ap-upload-zone { min-height: 132px; background: #faf8f4; color: var(--ink-soft); font-weight: 700; }
.ap-img-preview { width: 112px; height: 88px; cursor: pointer; }
.ap-review-card { border: 1px solid var(--line); background: #fff; }
.agent-card { padding: 20px; overflow: hidden; }
.agent-card::before { content: ""; display: block; height: 3px; margin: -20px -20px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--accent), #f4a261); opacity: .86; }
.showcase-preview { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(30, 20, 20, .08); }
.showcase-preview-cover { min-height: 112px; padding: 22px; color: #fff; background: linear-gradient(125deg, #1d2635, #7d1b27); }
.showcase-preview-cover span { display: inline-flex; padding: 4px 9px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.showcase-preview-body { padding: 0 18px 18px; }
.showcase-preview-avatar { display: grid; width: 64px; height: 64px; margin-top: -32px; border: 4px solid #fff; border-radius: 50%; place-items: center; background: var(--accent); color: #fff; font-size: 23px; font-weight: 800; }
.showcase-preview-body h3 { margin: 10px 0 4px; font-size: 18px; }
.showcase-preview-body p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.showcase-preview-stats { display: flex; gap: 14px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.showcase-preview-stats strong { display: block; color: var(--ink); font-size: 15px; }
.share-property-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.share-property-option { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.share-property-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.share-property-option label { display: flex; gap: 8px; cursor: pointer; }
.share-property-option strong, .share-property-option span { display: block; font-size: 12px; }
.share-property-option span { margin-top: 4px; color: var(--muted); }
.add-property-hero { position:relative; isolation:isolate; display:flex; align-items:center; justify-content:space-between; min-height:206px; gap:26px; padding:30px 34px; margin-bottom:24px; overflow:hidden; border:1px solid rgba(253,31,42,.18); border-radius:24px; color:#fff; background:linear-gradient(122deg,#21182a 0%,#7c1d43 56%,#f04451 145%); box-shadow:0 24px 50px rgba(85,21,45,.19); }
.add-property-hero::before,.add-property-hero::after { content:""; position:absolute; z-index:-1; border-radius:50%; filter:blur(1px); }.add-property-hero::before { width:340px; height:340px; right:12%; top:-215px; border:1px solid rgba(255,255,255,.26); box-shadow:0 0 0 36px rgba(255,255,255,.06),0 0 0 73px rgba(255,255,255,.04); }.add-property-hero::after { width:260px; height:260px; left:-150px; bottom:-170px; background:rgba(255,174,116,.25); }
.listing-studio-intro { max-width:620px; }.add-property-hero .agent-eyebrow { color:#ffb6bc; }.add-property-hero h1 { margin:0; color:#fff; font-size:clamp(25px,3vw,37px); letter-spacing:-1.25px; }.add-property-hero p { max-width:570px; margin-top:8px; color:rgba(255,255,255,.78); font-size:14px; }.listing-studio-trust { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }.listing-studio-trust span,.orbit-pill { padding:6px 9px; border:1px solid rgba(255,255,255,.21); border-radius:999px; background:rgba(255,255,255,.09); color:#fff; font-size:11px; font-weight:700; backdrop-filter:blur(8px); }
.listing-studio-orbit { position:relative; width:145px; height:145px; flex:0 0 145px; border:1px solid rgba(255,255,255,.25); border-radius:50%; transform:rotate(-15deg); }.listing-studio-orbit::before { content:""; position:absolute; inset:25px; border:1px dashed rgba(255,255,255,.4); border-radius:50%; animation:orbit-spin 12s linear infinite; }.orbit-home { position:absolute; inset:43px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(145deg,#fff,#ffe6e5); color:#e6263e; font-size:34px; box-shadow:0 12px 24px rgba(0,0,0,.2); }.orbit-pill { position:absolute; white-space:nowrap; transform:rotate(15deg); }.orbit-one { top:-8px; right:-16px; }.orbit-two { left:-31px; bottom:26px; }.orbit-three { right:-19px; bottom:-8px; }.add-property-progress { min-width:100px; padding:13px 15px; border:1px solid rgba(255,255,255,.25); border-radius:14px; background:rgba(13,8,18,.22); color:#fff; font-size:11px; font-weight:600; text-align:center; backdrop-filter:blur(9px); }.add-property-progress strong { font-size:23px; }.add-property-progress small { color:rgba(255,255,255,.68); }
@keyframes orbit-spin { to { transform:rotate(360deg); } }
.add-property-progress { color:#fff; font-size:12px; font-weight:800; white-space:normal; }
@media (min-width: 1101px) {
  .property-grid-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-grid-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .property-grid-2col, .property-grid-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .property-content { padding: 10px; }
  .property-specs-row { font-size: 10px; }
  .listing-page-layout > .filter-panel-card { padding: 12px; }
}
@media (max-width: 480px) {
  .property-grid-2col, .property-grid-3col { grid-template-columns: 1fr; }
  .add-property-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
}

/* Agent directory: keep profiles beside each other whenever the screen permits. */
@media (min-width: 1101px) {
  .agents-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .agents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .agents-grid { grid-template-columns: 1fr; }
}

/* ── Mobile marketplace layout ────────────────────────────────────────────
   Keep discovery dense and scannable on phones, like a classifieds feed. */
@media (max-width: 640px) {
  body { overflow-x:hidden; }
  .portal-content { min-width:0; overflow-x:hidden; }
  .add-property-hero { min-height:auto; padding:20px; }
  .listing-studio-orbit,.add-property-progress { display:none; }
  .add-property-hero h1 { font-size:27px; }
  .listing-studio-trust { gap:5px; }.listing-studio-trust span { padding:5px 7px; font-size:10px; }
  .ap-pane { padding:16px; overflow:hidden; }
  .ap-nav-row { position:static; gap:10px; align-items:center; }.ap-nav-row .button-primary-block { min-width:0; margin:0; }
  .amenity-chip { padding:7px 9px; font-size:11px; }
  .status-picker { padding:21px 17px; }.status-picker-options { grid-template-columns:1fr; }
  .calendar-legend { margin-bottom: 9px; gap: 6px 10px; font-size: 10px; }
  .followup-calendar { border-radius: 12px; }
  .followup-calendar-cell { min-height: 62px; padding: 4px; gap: 2px; }
  .followup-calendar-cell time { width: 20px; height: 20px; font-size: 10px; }
  .followup-calendar-count { display: none; }
  .followup-calendar-events { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px; }
  .followup-calendar-event { width: 7px; height: 7px; min-width: 7px; padding: 0; border-left: 0; border-radius: 50%; background: var(--event-color, var(--accent)); }
  .followup-calendar-event-time, .followup-calendar-event-title { display: none; }
  .followup-calendar-more { padding: 0 2px; font-size: 9px; }
  .calendar-empty-state { padding: 16px; }
  .followup-date { min-width: 44px; padding: 6px; }
  .agent-social-shell .agent-profile-header-card { padding:22px 16px 15px; align-items:flex-start; }.agent-social-shell .agent-profile-header-left { width:100%; align-items:flex-start; gap:15px; }.agent-social-shell .agent-profile-avatar-xl { width:78px; height:78px; font-size:28px; }.agent-social-shell .agent-profile-titles { min-width:0; flex:1; }.agent-social-shell .agent-profile-titles h2 { font-size:20px; flex-wrap:wrap; }.agent-social-shell .agent-profile-meta-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.agent-social-profile .agent-profile-meta-strip span { align-items:center; text-align:center; }.agent-social-profile .agent-profile-meta-strip span:not(:has(strong)) { display:none; }.agent-social-shell .agent-profile-actions { width:100%; gap:7px; }.agent-social-shell .agent-profile-actions > * { flex:1; min-width:0; padding-left:8px!important; padding-right:8px!important; text-align:center; }.agent-social-bio { padding:0 16px 16px; }.agent-story-highlights { padding:20px 4px 12px; gap:16px; }.agent-social-shell .agent-profile-tabs { justify-content:flex-start; overflow-x:auto; }.profile-tab-btn { flex:0 0 auto; padding:10px 13px; font-size:12px; }.agent-social-shell .agent-profile-content-grid { grid-template-columns:1fr; gap:14px; }.profile-right-col { order:-1; }.agent-social-shell .agent-contact-card { padding:17px; }.agent-social-listing-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.agent-social-listing-grid .property-title { font-size:10px; }.agent-social-listing-grid .property-price { font-size:10px; }
  .prop-details-layout { display:flex; flex-direction:column; gap:16px; }.prop-left-col,.prop-sidebar-col { display:contents; }.prop-gallery-card { order:1; }.prop-main-info-card { order:2; }.agent-contact-box { order:3; }.details-content-card { order:4; }.location-map-box { order:5; }.overview-text { font-size:14px; line-height:1.65; }.prop-details-title { font-size:23px; }.location-privacy-note { margin-top:12px; color:var(--muted); font-size:12px; line-height:1.5; }
  .portal-topbar {
    height: 68px;
    padding: 0 10px;
    gap: 7px;
  }
  .mobile-menu-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .mobile-menu-btn svg { width: 19px; height: 19px; }
  .mobile-brand { flex: 0 0 122px; }
  .mobile-brand .hf-logo {
    display: block;
    width: 122px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
  }
  .topbar-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }
  .topbar-search-wrap input {
    height: 38px;
    padding: 8px 9px 8px 32px;
    font-size: 12px;
    text-overflow: ellipsis;
  }
  .search-glass-icon { left: 10px; width: 15px; height: 15px; }
  .topbar-actions { gap: 6px; flex: 0 0 auto; }
  .topbar-icon-btn { width: 36px; height: 36px; }
  .header-cta {
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  .portal-content { padding: 16px 10px 86px; }
  .story-category-strip,
  .category-filter-strip { gap: 8px; margin-bottom: 16px; padding-bottom: 8px; }
  .story-pill { padding: 5px 12px 5px 6px; font-size: 12px; }
  .story-avatar, .story-hero-icon { width: 28px; height: 28px; }
  .feed-header { margin-bottom: 12px; }
  .feed-count { font-size: 15px; }
  .page-title { font-size: 21px; letter-spacing: -0.35px; }
  .page-subtitle { font-size: 12px; }

  .property-grid-2col,
  .property-grid-3col,
  .agents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .property-card { border-radius: 12px; }
  .property-photo { aspect-ratio: 1 / .86; }
  .badge-status { top: 7px; left: 7px; padding: 3px 7px; font-size: 9px; }
  .save-property-btn { top: 7px; right: 7px; width: 29px; height: 29px; font-size: 15px; }
  .location-tag { bottom: 6px; left: 6px; max-width: calc(100% - 12px); padding: 3px 6px; font-size: 9px; }
  .location-tag svg { width: 10px; height: 10px; }
  .property-content { padding: 9px; }
  .property-title { font-size: 12px; margin-bottom: 4px; -webkit-line-clamp: 2; min-height: 31px; }
  .property-price { font-size: 14px; margin-bottom: 0; }
  .property-specs-row,
  .property-address,
  .property-engagement-row,
  .property-agent-row { display: none; }

  .agent-card { padding: 12px; border-radius: 12px; min-width: 0; }
  .agent-card::before { height: 2px; margin: -12px -12px 10px; }
  .agent-card-header { margin-bottom: 7px; gap: 6px; }
  .agent-card-main { gap: 7px; min-width: 0; }
  .agent-card-avatar { width: 36px; height: 36px; font-size: 14px; }
  .agent-card-titles { min-width: 0; }
  .agent-card-titles h4 { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .agent-card-titles .agent-agency { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .agent-card .btn-follow-outline { padding: 5px 7px !important; font-size: 10px; }
  .agent-card-rating { font-size: 11px; margin-bottom: 7px; }
  .agent-stats-grid { display: none; }
  .btn-view-profile { padding: 7px; font-size: 11px; }

  .mobile-bottom-nav { height: 64px; padding: 0 2px; }
  .mobile-nav-item { min-width: 48px; padding: 6px 5px; font-size: 10px; }
  .mobile-nav-icon svg { width: 19px; height: 19px; }
}

/* Preserve a usable search field on compact 320px handsets. */
@media (max-width: 360px) {
  .mobile-brand { flex-basis: 105px; }
  .mobile-brand .hf-logo { width: 105px; }
  .topbar-icon-btn { width: 32px; height: 32px; }
  .header-cta { padding: 8px 8px; font-size: 11px; }
}

/* Search belongs with discovery controls on phones, not in the compact header. */
.mobile-discovery-search, .mobile-filter-close { display: none; }
@media (max-width: 640px) {
  body:has(.story-category-strip) .topbar-search-wrap { display: none; }
  .mobile-discovery-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -5px 0 16px;
    padding: 6px 6px 6px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .mobile-discovery-search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
  .mobile-discovery-search input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 12px; background: transparent; }
  .mobile-discovery-search button {
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
  }
  .portal-widgets { display: none; }
  .portal-widgets.is-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    padding: 78px 14px 90px;
    background: rgba(28, 24, 21, .35);
  }
  .portal-widgets.is-mobile-open .widget-card { display: none; }
  .portal-widgets.is-mobile-open .widget-card:first-child { display: block; box-shadow: var(--shadow-lg); }
  .mobile-filter-close { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 8px; border-radius: 50%; color: var(--ink); font-size: 24px; line-height: 1; vertical-align: middle; }
  .filter-panel-card { max-height: none; }
}
