/* =============================================================
   Bangalore Rental — Design System
   Premium · Minimal · Luxury · Modern · Elegant
   ============================================================= */

:root {
  /* Palette */
  --c-primary: #332533;
  --c-secondary: #725673;
  --c-accent: #b3bfba;
  --c-bg: #e8e5e6;
  --c-text: #2b2b2b;
  --c-white: #ffffff;

  /* Derived */
  --c-primary-90: rgba(51, 37, 51, 0.9);
  --c-secondary-12: rgba(114, 86, 115, 0.12);
  --c-line: rgba(43, 43, 43, 0.10);
  --c-muted: #6b6670;
  --c-surface: #ffffff;

  /* Typography */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (large, airy) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows (soft) */
  --sh-1: 0 1px 2px rgba(43, 43, 43, .04), 0 2px 8px rgba(43, 43, 43, .05);
  --sh-2: 0 6px 24px rgba(51, 37, 51, .08);
  --sh-3: 0 18px 48px rgba(51, 37, 51, .14);

  /* Motion */
  --ease: cubic-bezier(.16, .84, .44, 1);
  --dur: .28s;

  --container: 1240px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--c-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  color: var(--c-text);
}

::selection {
  background: var(--c-secondary);
  color: #fff;
}

/* ---------- Accessibility: visually-hidden + skip link ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 700;
  box-shadow: var(--sh-2);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--c-secondary);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.section-head .eyebrow {
  color: var(--c-secondary);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .76rem;
}

.grid {
  display: grid;
  gap: var(--s-5);
}

.muted {
  color: var(--c-muted);
}

.center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--c-primary);
  --fg: #fff;
  --glow: rgba(51, 37, 51, .32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), filter var(--dur) var(--ease);
  box-shadow: 0 6px 16px -6px var(--glow), 0 1px 2px rgba(43, 43, 43, .08);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px var(--glow), 0 4px 10px rgba(43, 43, 43, .1);
  filter: saturate(1.06);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px var(--glow);
}

.btn--secondary {
  --bg: var(--c-secondary);
  --glow: rgba(114, 86, 115, .42);
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--c-primary);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-secondary);
  background: var(--c-secondary-12);
}

.btn--light {
  --bg: #fff;
  --fg: var(--c-primary);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 17px 32px;
  font-size: 1.02rem;
}

/* ---------- Glass + cards ---------- */
.glass {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .55);
}

.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* Pop-out blocks: interactive cards lift on hover. */
.section .card.reveal:hover,
.stat:hover,
.listing-row:hover,
.lead:hover,
.visit:hover,
.ss:hover,
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
}

/* Utility you can drop on any element for the pop-out feel. */
.pop {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pop:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header.is-stuck {
  box-shadow: var(--sh-1);
}

/* Offset the sticky header below the WP admin bar when logged in. */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  width: 100%;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-primary);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: var(--s-5);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 500;
  color: var(--c-text);
  transition: background var(--dur), color var(--dur);
}

.nav-links a:hover {
  background: var(--c-secondary-12);
  color: var(--c-primary);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  position: relative;
  transition: .3s;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

/* Hamburger -> X when the drawer is open. */
.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Mobile drawer (off-canvas, slides in from the right) ---------- */
.nav-backdrop,
.nav-drawer {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 22, .42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  height: 100dvh;
  width: min(86vw, 360px);
  background: #fff;
  box-shadow: -18px 0 50px rgba(20, 16, 22, .18);
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-drawer.open {
  transform: none;
  visibility: visible;
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--s-4);
  border-bottom: 1px solid var(--c-line);
}

.nav-drawer-head .brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-drawer-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-secondary);
}

.nav-drawer-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  color: var(--c-primary);
}

.nav-drawer-close:hover {
  background: var(--c-secondary-12);
}

.nav-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Account block */
.drawer-auth {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 6px;
  background: var(--c-surface, #fafafa);
}

.seg-auth {
  display: flex;
  gap: 4px;
  background: rgba(114, 86, 115, .08);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 12px;
}

.seg-auth button {
  flex: 1;
  padding: 9px 10px;
  border-radius: calc(var(--r-md) - 2px);
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-muted);
  transition: background var(--dur), color var(--dur);
}

.seg-auth button.active {
  background: #fff;
  color: var(--c-primary);
  box-shadow: var(--sh-1);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 6px 6px;
}

.da-hint {
  font-size: .82rem;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.da-link {
  text-align: center;
  font-weight: 600;
  color: var(--c-secondary);
  padding: 6px;
  font-size: .9rem;
}

.da-link:hover {
  text-decoration: underline;
}

/* Logged-in account */
.drawer-account--in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.da-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--c-secondary), var(--c-primary));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.da-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.da-meta strong {
  color: var(--c-primary);
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.da-badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-secondary);
  background: var(--c-secondary-12);
  padding: 2px 9px;
  border-radius: var(--r-pill);
}

.drawer-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Highlighted CTA card */
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff;
}

.drawer-cta strong {
  display: block;
  font-size: 1.02rem;
}

.drawer-cta small {
  opacity: .82;
  font-size: .8rem;
}

.drawer-cta-arrow {
  font-size: 1.3rem;
  transition: transform var(--dur);
}

.drawer-cta:hover .drawer-cta-arrow {
  transform: translateX(4px);
}

/* Section labels + nav groups */
.drawer-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 4px 6px;
  margin-top: 4px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-group {
  border-bottom: 1px solid var(--c-line);
}

.drawer-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-text);
}

.drawer-group-head:hover {
  color: var(--c-primary);
}

.dg-chevron {
  color: var(--c-muted);
  transition: transform .28s var(--ease);
  flex-shrink: 0;
}

.drawer-group-head[aria-expanded="true"] .dg-chevron {
  transform: rotate(180deg);
  color: var(--c-secondary);
}

.drawer-sub {
  display: flex;
  flex-direction: column;
  padding: 2px 0 10px 8px;
}

.drawer-sub a {
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--c-muted);
  font-size: .96rem;
  font-weight: 500;
}

.drawer-sub a:hover,
.drawer-sub a:focus-visible {
  background: var(--c-secondary-12);
  color: var(--c-primary);
}

.drawer-nav--flat a {
  padding: 13px 8px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
}

.drawer-nav--flat a:last-child {
  border-bottom: 0;
}

.drawer-nav--flat a:hover {
  color: var(--c-primary);
}

body.nav-locked {
  overflow: hidden;
}

/* Keep the drawer clear of the WP admin bar for logged-in users. */
body.admin-bar .nav-drawer {
  top: 32px;
  height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .nav-drawer {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 84px) clamp(40px, 6vw, 72px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 80% at 88% 6%, rgba(114, 86, 115, .22), transparent 60%),
    radial-gradient(50% 70% at 8% 92%, rgba(179, 191, 186, .42), transparent 60%),
    var(--c-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--c-secondary);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 14ch;
}

.hero-accent {
  background: linear-gradient(120deg, var(--c-secondary), var(--c-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--c-muted);
  max-width: 52ch;
  margin-top: var(--s-4);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: .92rem;
}

/* Hero artwork + floating pop-out cards */
.hero-art {
  position: relative;
}

.hero-art-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(51, 37, 51, .5), 0 8px 24px rgba(51, 37, 51, .12);
  border: 6px solid #fff;
  transform: rotate(-1deg);
  transition: transform var(--dur) var(--ease);
}

.hero-art:hover .hero-art-frame {
  transform: rotate(0);
}

.hero-art-frame img {
  width: 100%;
  display: block;
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -16px rgba(51, 37, 51, .45);
  animation: floaty 5s var(--ease) infinite;
}

.hero-float strong {
  display: block;
  color: var(--c-primary);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
}

.hero-float small {
  color: var(--c-muted);
  font-size: .76rem;
}

.hf-ico {
  font-size: 1.3rem;
}

.hf-ico--ok {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(46, 125, 90, .14);
  color: #2e7d5a;
  font-weight: 800;
}

.hero-float--tl {
  top: 14px;
  left: -18px;
}

.hero-float--br {
  bottom: 18px;
  right: -16px;
  animation-delay: 1.5s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none; }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    max-width: 560px;
  }
}

.hero-stats {
  display: flex;
  gap: var(--s-7);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

.hero-stats .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-primary);
}

.hero-stats .lbl {
  color: var(--c-muted);
  font-size: .9rem;
}

/* ---------- Category tiles ---------- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
}

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 22px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  border: 1px solid rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}

.cat-tile::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--c-secondary);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-6px);
  transition: .25s var(--ease);
}

.cat-tile:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.cat-ico {
  font-size: 1.9rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--c-secondary-12), rgba(179, 191, 186, .3));
  margin-bottom: 8px;
}

.cat-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-primary);
}

.cat-sub {
  color: var(--c-muted);
  font-size: .88rem;
}

.value-ico {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--c-secondary-12), rgba(179, 191, 186, .28));
}

/* ---------- Search widget ---------- */
.search-widget {
  margin-top: var(--s-7);
  padding: var(--s-3);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
}

.search-tabs {
  display: flex;
  gap: var(--s-1);
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.search-tabs button {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  color: var(--c-muted);
  transition: .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-tabs button.active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-1);
}

.search-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: var(--s-2);
  padding: var(--s-2);
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: background .2s;
}

.field:hover {
  background: var(--c-secondary-12);
}

.field label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-secondary);
}

.field input,
.field select {
  border: 0;
  background: transparent;
  outline: none;
  font-size: .98rem;
  font-weight: 500;
  width: 100%;
}

.search-submit {
  display: flex;
}

.ai-search {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2);
  align-items: center;
}

.ai-search .ai-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--c-secondary-12);
}

.ai-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

.ai-badge {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--c-secondary);
  background: #fff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.ai-hint {
  padding: 4px 16px 8px;
  font-size: .82rem;
  color: var(--c-muted);
}

.ai-hint b {
  color: var(--c-secondary);
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ---------- Custom select / combobox (premium, replaces native popups) ---------- */
.brc-sr-hide {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brc-select {
  position: relative;
  width: 100%;
}

.brc-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-weight: 500;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  background: #fff;
}

.brc-select-btn .chev {
  flex-shrink: 0;
  color: var(--c-secondary);
  transition: transform .2s var(--ease);
}

.brc-select.open .brc-select-btn .chev {
  transform: rotate(180deg);
}

.brc-select-btn .ph {
  color: var(--c-muted);
}

/* Boxed variant (forms) */
.brc-select--boxed .brc-select-btn {
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  transition: border .2s, box-shadow .2s;
}

.brc-select--boxed.open .brc-select-btn,
.brc-select--boxed .brc-select-btn:focus-visible {
  outline: 0;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px var(--c-secondary-12);
}

/* Bare variant (hero search fields) */
.brc-select--bare .brc-select-btn {
  padding: 0;
  font-size: .98rem;
  background: transparent;
}

/* Shared dropdown panel (also used by combobox) */
.brc-pop {
  position: absolute;
  z-index: 300;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: max(100%, 220px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px) scale(.99);
  transform-origin: top;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.brc-select.open>.brc-pop,
.brc-combo.open .brc-pop {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.brc-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.3;
}

.brc-opt:hover,
.brc-opt.active {
  background: var(--c-secondary-12);
  color: var(--c-primary);
}

.brc-opt[aria-selected="true"] {
  background: var(--c-primary);
  color: #fff;
}

.brc-opt[aria-selected="true"]::after {
  content: "✓";
  margin-left: auto;
  font-size: .85em;
}

.brc-pop-empty {
  padding: 14px;
  color: var(--c-muted);
  text-align: center;
  font-size: .9rem;
}

.brc-pop::-webkit-scrollbar {
  width: 10px;
}

.brc-pop::-webkit-scrollbar-thumb {
  background: var(--c-accent);
  border-radius: 999px;
  border: 3px solid #fff;
}

.brc-combo {
  position: relative;
}

/* ---------- Property cards ---------- */
.cards {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}

.p-card .media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-accent);
}

.p-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.p-card:hover .media img {
  transform: scale(1.05);
}

.p-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--c-primary-90);
  color: #fff;
  backdrop-filter: blur(6px);
}

.badge--verified {
  background: rgba(46, 125, 90, .92);
}

.badge--premium {
  background: rgba(160, 120, 40, .95);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  transition: .2s;
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.is-fav {
  background: var(--c-secondary);
  color: #fff;
}

.p-card .body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

.p-card .price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
}

.p-card .title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-card .loc {
  color: var(--c-muted);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-meta {
  display: flex;
  gap: var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: .85rem;
  flex-wrap: wrap;
}

.p-meta b {
  color: var(--c-text);
}

/* ---------- Chips / pills ---------- */
.chips {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-1);
  font-weight: 500;
  font-size: .9rem;
  transition: .2s;
}

.chip:hover,
.chip.active {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- Areas grid ---------- */
.area-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--s-5);
  color: #fff;
  box-shadow: var(--sh-1);
}

.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51, 37, 51, .05), rgba(51, 37, 51, .78));
  z-index: 0;
}

.area-card>* {
  position: relative;
  z-index: 1;
}

.area-card .bg {
  position: absolute;
  inset: 0;
  z-index: -0;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-primary));
}

.area-card h3 {
  color: #fff;
}

.area-card .count {
  opacity: .85;
  font-size: .85rem;
}

/* ---------- Breadcrumbs / filters bar ---------- */
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--c-muted);
  font-size: .85rem;
  padding-block: var(--s-4);
}

.crumbs a:hover {
  color: var(--c-secondary);
}

.filter-bar {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
  padding: var(--s-3);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 40;
}

.filter-bar select,
.filter-bar input {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: #fff;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-block: var(--s-5) var(--s-4);
}

/* ---------- Property detail ---------- */
.pd-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--s-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pd-gallery .g0 {
  grid-row: span 2;
}

.pd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  cursor: zoom-in;
  transition: filter .3s;
}

.pd-gallery img:hover {
  filter: brightness(.92);
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-7);
  align-items: start;
}

.pd-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-4);
}

.spec {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .6);
}

.spec .k {
  font-size: .78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.spec .v {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-primary);
  margin-top: 4px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-3);
}

.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-1);
  font-weight: 500;
}

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

.tag {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-secondary-12);
  color: var(--c-secondary);
  font-weight: 600;
  font-size: .85rem;
}

/* ---------- Forms (list property) ---------- */
.form-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 40px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  background: #fff;
  transition: border .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px var(--c-secondary-12);
}

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

.seg label {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  cursor: pointer;
  font-weight: 600;
  transition: .2s;
}

.seg input {
  position: absolute;
  opacity: 0;
}

.seg input:checked+span,
.seg label:has(input:checked) {
  color: #fff;
}

.seg label:has(input:checked) {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.amen-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.amen-pick label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  cursor: pointer;
  font-size: .9rem;
}

.amen-pick label:has(input:checked) {
  background: var(--c-secondary-12);
  border-color: var(--c-secondary);
}

/* ---------- Image uploader ---------- */
.upload-drop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px;
  border: 2px dashed var(--c-line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .5);
  color: var(--c-muted);
  transition: .2s;
  text-align: center;
}

.upload-drop:hover,
.upload-drop.drag {
  border-color: var(--c-secondary);
  background: var(--c-secondary-12);
  color: var(--c-primary);
}

.upload-drop b {
  color: var(--c-secondary);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  background: var(--c-accent);
  cursor: grab;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-thumb.dragging {
  opacity: .4;
}

.upload-thumb .rm {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(43, 43, 43, .7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.upload-thumb .cover-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
}

.upload-thumb .bar {
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--c-secondary);
  transition: width .2s;
}

/* ---------- Chat ---------- */
.chat-app {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 540px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  background: #fff;
}

.chat-list {
  border-right: 1px solid var(--c-line);
  overflow-y: auto;
  max-height: 620px;
}

.chat-list-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--c-line);
  transition: background .15s;
}

.chat-list-item:hover,
.chat-list-item.active {
  background: var(--c-secondary-12);
}

.chat-list-item .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-list-item .meta {
  min-width: 0;
  flex: 1;
}

.chat-list-item .name {
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-item .preview {
  color: var(--c-muted);
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-item .unread {
  background: var(--c-secondary);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-bg);
  max-height: 460px;
}

.msg {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.45;
  box-shadow: var(--sh-1);
}

.msg.in {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.out {
  background: var(--c-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg .time {
  display: block;
  font-size: .68rem;
  opacity: .6;
  margin-top: 4px;
}

.msg.out .ticks {
  color: var(--c-accent);
}

.chat-empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--c-muted);
  text-align: center;
  padding: 40px;
}

.chat-compose {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--c-line);
}

.chat-compose input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line);
}

.chat-compose input:focus {
  outline: 0;
  border-color: var(--c-secondary);
}

.chat-suggest {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 14px 12px;
}

.chat-suggest button {
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-secondary-12);
  color: var(--c-secondary);
  font-weight: 600;
}

@media (max-width: 720px) {
  .chat-app {
    grid-template-columns: 1fr;
  }

  .chat-list {
    max-height: 200px;
  }
}

/* ---------- Auth pages (login / register / forgot) ---------- */
.auth {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  min-height: calc(100vh - var(--nav-h));
  background:
    radial-gradient(60% 60% at 90% 0%, var(--c-secondary-12), transparent 60%),
    var(--c-bg);
}

.auth .auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  color: #fff;
  padding: clamp(28px, 4vw, 60px);
  isolation: isolate;
}

.auth .auth-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.auth .auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(51, 37, 51, .82) 0%, rgba(114, 86, 115, .68) 55%, rgba(51, 37, 51, .85) 100%);
}

.auth .auth-visual-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.auth .auth-visual .brand {
  color: #fff;
  font-size: 1.35rem;
}

.auth .auth-visual h2 {
  color: #fff;
  margin-top: auto;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.auth .auth-visual p {
  color: rgba(255, 255, 255, .9);
  max-width: 40ch;
}

.auth .auth-points {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth .auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .96);
  font-weight: 500;
}

.auth .auth-points li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  font-size: .82rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.auth .auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px);
}

.auth .auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 30px 70px -28px rgba(51, 37, 51, .4), 0 2px 8px rgba(51, 37, 51, .06);
  border: 1px solid rgba(255, 255, 255, .8);
}

.auth .auth-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.auth .auth-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth .auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}

.auth-link {
  color: var(--c-secondary);
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--c-text);
  cursor: pointer;
}

.auth .checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-secondary);
  flex-shrink: 0;
}

.auth .auth-fine {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--c-muted);
  text-align: center;
}

.auth .auth-fine a {
  color: var(--c-secondary);
}

.auth-alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 500;
}

.auth-alert--err {
  background: rgba(179, 45, 46, .10);
  color: #b32d2e;
  border: 1px solid rgba(179, 45, 46, .2);
}

.auth-alert--ok {
  background: rgba(46, 125, 90, .10);
  color: #2e7d5a;
  border: 1px solid rgba(46, 125, 90, .2);
}

.auth .pw-wrap {
  position: relative;
}

.auth .pw-wrap input {
  width: 100%;
  padding-right: 64px;
}

.auth .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-secondary);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: var(--r-sm);
}

.auth .pw-toggle:hover {
  background: var(--c-secondary-12);
}

/* Role selector cards on register */
.auth .auth-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.auth .auth-roles label {
  flex: initial;
  min-width: 0;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--r-md);
}

.auth .role-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth .role-opt b {
  font-size: .92rem;
}

.auth .role-opt small {
  font-weight: 400;
  opacity: .75;
  font-size: .72rem;
  line-height: 1.3;
}

@media (max-width: 880px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth .auth-visual {
    min-height: 230px;
    padding: 28px 24px;
  }

  .auth .auth-visual h2 {
    font-size: 1.7rem;
  }

  .auth .auth-points {
    display: none;
  }

  .auth .auth-roles {
    grid-template-columns: 1fr;
  }
}

/* ---------- SEO keyword cloud ---------- */
.seo-cloud {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}

.seo-details {
  padding-block: clamp(20px, 3vw, 32px);
}

.seo-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-primary);
}

.seo-details > summary::-webkit-details-marker {
  display: none;
}

.seo-chev {
  transition: transform var(--dur) var(--ease);
  color: var(--c-secondary);
  font-size: 1.4rem;
}

.seo-details[open] .seo-chev {
  transform: rotate(180deg);
}

.seo-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5) var(--s-6);
  margin-top: var(--s-5);
}

.seo-group h3 {
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-secondary);
  margin-bottom: 8px;
}

.seo-group p {
  color: var(--c-muted);
  font-size: .88rem;
  line-height: 1.9;
}

.seo-group a {
  color: var(--c-muted);
  transition: color var(--dur);
}

.seo-group a:hover {
  color: var(--c-primary);
  text-decoration: underline;
}

.seo-group .sep {
  opacity: .4;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(114, 86, 115, .55), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(179, 191, 186, .12), transparent 55%),
    var(--c-primary);
  color: rgba(255, 255, 255, .78);
  margin-top: var(--s-9);
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
}

.site-footer a:hover {
  color: #fff;
}

/* Newsletter / list-property band */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  margin-top: calc(var(--s-8) * -0.5);
  transform: translateY(calc(var(--s-8) * -0.5));
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-3);
}

.footer-cta-copy h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.footer-cta-copy p {
  color: rgba(255, 255, 255, .8);
  margin-top: 6px;
  max-width: 46ch;
}

.footer-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.footer-news {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .2);
}

.footer-news input {
  flex: 1;
  background: none;
  border: 0;
  padding: 10px 16px;
  color: #fff;
  min-width: 0;
}

.footer-news input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.footer-news input:focus {
  outline: 0;
}

.footer-news .btn {
  flex-shrink: 0;
}

.footer-news.is-done {
  justify-content: center;
  color: #fff;
  font-weight: 600;
  padding: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-6);
}

.footer-brand p {
  color: rgba(255, 255, 255, .72);
  margin-top: 16px;
  max-width: 34ch;
  font-size: .92rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  font-size: .9rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  transition: transform var(--dur) var(--ease), background var(--dur);
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--c-secondary);
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--s-3);
}

.footer-col li {
  margin-bottom: 10px;
  font-size: .92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: var(--s-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta-actions {
    width: 100%;
  }
}

/* ---------- Dashboard ---------- */
.dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-6);
  align-items: start;
}

.dash-nav {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3);
}

.dash-nav a {
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  transition: .2s;
}

.dash-nav a:hover,
.dash-nav a.active {
  background: var(--c-secondary-12);
  color: var(--c-primary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-4);
}

.stat {
  padding: var(--s-5);
  border-radius: var(--r-lg);
}

.stat .n {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
}

.stat .l {
  color: var(--c-muted);
  font-size: .88rem;
}

/* ---------- My Account ---------- */
.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.account-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-id h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.1;
}

.da-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--c-secondary), var(--c-primary));
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.dash-body {
  min-width: 0;
}

.dash-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-nav-out {
  margin-top: 8px;
  color: var(--c-muted) !important;
  border-top: 1px solid var(--c-line);
  border-radius: 0 !important;
  padding-top: 14px !important;
}

.navdot {
  background: var(--c-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}

.acc-h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.acc-h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.acc-hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 22px 0;
}

.acc-card {
  padding: clamp(20px, 4vw, 32px);
  max-width: 640px;
}

.acc-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.acc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 16px;
}

.acc-section-head h2 {
  font-size: 1.3rem;
}

.acc-section-head a {
  color: var(--c-secondary);
  font-weight: 600;
  font-size: .92rem;
  flex-shrink: 0;
}

.acc-empty {
  padding: 40px 32px;
  text-align: center;
}

.acc-empty h3 {
  font-size: 1.15rem;
}

.acc-empty p {
  margin: 8px 0 16px;
  max-width: 42ch;
  margin-inline: auto;
}

/* Status pills */
.pill {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  letter-spacing: .01em;
}

.pill--ok { background: rgba(46,125,90,.12); color: #2e7d5a; }
.pill--warn { background: rgba(193,135,30,.14); color: #b9831b; }
.pill--err { background: rgba(179,45,46,.10); color: #b32d2e; }
.pill--mute { background: var(--c-secondary-12); color: var(--c-muted); }

.btn--sm {
  padding: 7px 14px;
  font-size: .85rem;
}

/* Listing management rows */
.listing-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.lr-media img {
  width: 110px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
}

.lr-info {
  flex: 1;
  min-width: 0;
}

.lr-title {
  font-weight: 700;
  color: var(--c-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr-sub {
  color: var(--c-muted);
  font-size: .9rem;
  margin: 2px 0 8px;
}

.lr-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--c-muted);
}

.lr-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lr-del:hover {
  color: #b32d2e;
}

/* Leads */
.lead-list, .visit-list, .search-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.lead-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-secondary-12);
  color: var(--c-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.lead-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lead-prop {
  font-size: .85rem;
}

.lead-prev {
  font-size: .9rem;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visits */
.visit {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  flex-wrap: wrap;
}

.visit-when {
  font-size: 1rem;
}

.visit-prop {
  display: block;
  font-weight: 700;
  color: var(--c-primary);
  margin: 4px 0;
}

.visit-with {
  font-size: .88rem;
}

.visit-with a, .lead-prev a {
  color: var(--c-secondary);
}

.visit-note {
  margin-top: 8px;
  font-style: italic;
  color: var(--c-muted);
  font-size: .9rem;
}

.visit-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.visit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.visit-done {
  background: rgba(46,125,90,.10);
  color: #2e7d5a;
  border: 1px solid rgba(46,125,90,.22);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: .92rem;
  font-weight: 500;
}

.visit-done a {
  color: #2e7d5a;
  text-decoration: underline;
}

/* Saved searches */
.ss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.ss-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ss-main strong {
  color: var(--c-primary);
}

.ss-main .muted {
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46ch;
}

.ss-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

[data-search-alert].is-on {
  color: var(--c-secondary);
  border-color: var(--c-secondary);
}

/* Analytics table */
.acc-table-wrap {
  margin-top: 20px;
  padding: 8px 4px;
  overflow-x: auto;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
}

.acc-table th, .acc-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: .92rem;
}

.acc-table th {
  color: var(--c-muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.acc-table tr:last-child td {
  border-bottom: 0;
}

.acc-table a {
  color: var(--c-primary);
  font-weight: 600;
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .account-top { align-items: flex-start; }
  .listing-row, .visit, .ss { flex-direction: column; align-items: stretch; }
  .lr-actions, .visit-side, .ss-actions { justify-content: flex-start; align-items: flex-start; }
  .lr-media img { width: 100%; height: 160px; }
  .ss-main .muted { max-width: 100%; }
  .results-tools { width: 100%; justify-content: space-between; }
}

/* ---------- Skeleton / loading ---------- */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-md);
}

@keyframes shimmer {
  0% {
    background-position: 100% 0
  }

  100% {
    background-position: -100% 0
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }

  /* The contact/visit card can't usefully stick once the columns collapse. */
  .pd-sticky {
    position: static;
  }

  .dash {
    grid-template-columns: 1fr;
  }

  .dash-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .dash-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .search-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    gap: var(--s-3);
  }

  /* Hide the desktop inline nav; navigation lives in the off-canvas drawer. */
  .nav-links {
    display: none;
  }

  .nav-backdrop,
  .nav-drawer {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    gap: var(--s-2);
  }

  .nav-actions .btn--ghost {
    display: none;
  }

  .nav-cta {
    padding: 11px 16px;
  }

  /* Search widget */
  .search-row {
    grid-template-columns: 1fr;
  }

  .search-submit .btn {
    width: 100%;
  }

  .ai-search {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-search .btn {
    width: 100%;
  }

  /* Hero */
  .hero-stats {
    gap: var(--s-5) var(--s-6);
  }

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Property gallery */
  .pd-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .pd-gallery .g0 {
    grid-column: span 2;
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Prevent iOS auto-zoom on focus: inputs must be >= 16px. */
  input,
  select,
  textarea,
  .field input,
  .field select,
  .brc-select-btn,
  .brc-opt {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 64px;
  }

  .brand {
    font-size: 1.12rem;
  }

  /* Keep the primary CTA compact on small phones. */
  .nav-cta-sub {
    display: none;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: .92rem;
  }

  .hero-stats {
    gap: var(--s-4) var(--s-5);
  }

  .hero-stats .num {
    font-size: 1.5rem;
  }

  /* Single-column cards & areas so nothing is cramped. */
  .cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .results-head {
    align-items: stretch;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  /* Roomier message bubbles on narrow screens. */
  .msg {
    max-width: 85%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}