/* ================================================================
   Western Properties Ltd — Premium Design System v3
   $10,000-tier: White dominant · Yellow accents · Airbnb-inspired
   Font: Inter (UI) + Cormorant Garamond (headings)
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --yellow:        #FFCB00;
  --yellow-hover:  #F0BD00;
  --yellow-light:  #FFFBEB;
  --yellow-mid:    #FFE566;
  --yellow-glow:   rgba(255,203,0,0.28);
  --black:         #111111;  /* Pure near-black for max heading contrast */
  --black-soft:    #F4F4F4;
  --charcoal:      #333333;  /* 12.6:1 on white — AAA */
  --white:         #FFFFFF;
  --off-white:     #FAFAFA;

  /* Grays — all WCAG AA compliant on white */
  --gray-50:       #F7F7F7;
  --gray-100:      #E8E8E8;
  --gray-200:      #D0D0D0;
  --gray-300:      #909090;  /* 3.82:1 — AA large text/UI */
  --gray-400:      #595959;  /* 7.03:1 — AAA */
  --gray-500:      #444444;  /* 9.73:1 — AAA */
  --gray-700:      #2D2D2D;  /* 13.4:1 — AAA */

  /* Status */
  --success:       #008A82;
  --success-bg:    #E6F6F5;
  --warning:       #FF9800;
  --warning-bg:    #FFF3E0;
  --error:         #D93025;
  --error-bg:      #FCE8E6;
  --info:          #1A73E8;
  --info-bg:       #E8F0FE;

  /* Typography */
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:    'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --nav-h:         72px;
  --section-py:    96px;
  --container:     1280px;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r:      12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;

  /* Shadows - richer depth */
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow:        0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md:     0 8px 28px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-lg:     0 20px 56px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-xl:     0 32px 72px rgba(0,0,0,0.14), 0 12px 28px rgba(0,0,0,0.07);
  --shadow-yellow: 0 6px 24px rgba(255,203,0,0.40), 0 2px 8px rgba(255,203,0,0.20);

  /* Easings */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);

  /* Transitions */
  --t-fast:  0.15s var(--ease);
  --t:       0.25s var(--ease);
  --t-slow:  0.45s var(--ease-smooth);

  /* ── Legacy / Alias variables (keep all views working) ───── */
  --gold:           var(--yellow);
  --gold-subtle:    var(--yellow-light);
  --radius:         var(--r);
  --radius-sm:      var(--r-sm);
  --radius-md:      var(--r-md);
  --radius-lg:      var(--r-lg);
  --radius-xl:      var(--r-xl);
  --radius-2xl:     var(--r-2xl);
  --radius-full:    var(--r-full);
  --black-border:   var(--gray-100);
  --text-primary:   var(--black);
  --text-secondary: var(--gray-500);
  --text-muted:     var(--gray-300);
  --bg-primary:     var(--white);
  --bg-secondary:   var(--gray-50);
  --border-color:   var(--gray-100);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--white); color: var(--black); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--yellow); color: var(--black); }

/* ── Logo mark (used in auth pages) ────────────────────────── */
.navbar-logo-mark {
  width: 36px; height: 36px; background: var(--yellow);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem;
  color: var(--black);
}

/* ── GSAP Fallback — show hero content if JS fails/slow ─────── */
.hero-pill, .hero-title, .hero-sub, .hero-search-wrap,
.hero-actions, .hero-dot, .hero-stat {
  opacity: 1; /* CSS default — GSAP overrides when it loads */
}

/* ── Scroll Progress Bar ────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: var(--yellow); width: 0%;
  transition: width 0.1s linear;
  transform-origin: left;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.12; color: var(--black); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
p  { color: var(--gray-500); line-height: 1.75; }  /* #444 = 9.73:1 on white */

.serif      { font-family: var(--font-serif) !important; }
.t-yellow   { color: var(--yellow) !important; }
.t-black    { color: var(--black)  !important; }
.t-muted    { color: var(--gray-500); }
.text-muted { color: var(--gray-500); }
.t-sm       { font-size: 0.875rem; }
.t-xs       { font-size: 0.75rem; }
.text-xs    { font-size: 0.75rem; }
.t-center   { text-align: center; }
.label      { font-size: 0.71rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); }
.gradient-text {
  background: linear-gradient(135deg, var(--black) 30%, var(--charcoal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container    { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 880px;  margin: 0 auto; padding: 0 24px; }
.container-xs { width: 100%; max-width: 640px;  margin: 0 auto; padding: 0 24px; }
.section      { padding: var(--section-py) 0; }
.section-sm   { padding: 60px 0; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth),
              background 0.3s var(--ease-smooth);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--gray-100);
  box-shadow: 0 1px 0 var(--gray-100), var(--shadow-sm);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

/* Logo */
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo-icon {
  width: 36px; height: 36px;
  background: var(--yellow);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t), box-shadow var(--t);
}
.navbar-logo:hover .navbar-logo-icon {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: var(--shadow-yellow);
}
.navbar-logo-icon svg { width: 20px; height: 20px; }
.navbar-logo-text strong { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; color: var(--black); letter-spacing: -0.02em; }
.navbar-logo-text span  { display: block; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-400); font-weight: 600; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  position: relative;
  padding: 8px 14px; font-size: 0.875rem; font-weight: 500;
  color: var(--charcoal); border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--black); background: var(--gray-50); }
.nav-link.active { color: var(--black); font-weight: 600; }
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  width: 0; height: 2px; background: var(--yellow);
  border-radius: 2px; transform: translateX(-50%);
  transition: width 0.25s var(--ease-spring);
}
.nav-link.active::after { width: 20px; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: var(--r); color: var(--black);
  transition: transform 0.3s var(--ease-spring), background 0.2s var(--ease);
  align-items: center; justify-content: center;
}
.nav-mobile-toggle:hover { background: var(--gray-50); }
.nav-mobile-toggle.is-open { transform: rotate(90deg); }

/* Mobile menu */
.nav-mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--gray-100);
  padding: 16px 24px 28px; z-index: 999;
  box-shadow: var(--shadow-lg);
  flex-direction: column; gap: 2px;
  animation: slideDown 0.25s var(--ease-smooth);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link { padding: 13px 16px; border-radius: var(--r); font-size: 1rem; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 0.875rem; font-weight: 600; border-radius: var(--r-full);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap; letter-spacing: -0.01em; line-height: 1;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97) !important; }

/* Ripple element */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0); pointer-events: none;
  animation: rippleAnim 0.6s var(--ease-out) forwards;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Shimmer sweep on primary */
.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.btn-primary:hover::before {
  animation: shimmerSweep 0.55s var(--ease-smooth) forwards;
}
@keyframes shimmerSweep {
  from { left: -80%; }
  to   { left: 160%; }
}

.btn-sm  { padding: 8px 18px;  font-size: 0.82rem; }
.btn-md  { padding: 14px 28px; font-size: 0.9rem;  }
.btn-lg  { padding: 16px 36px; font-size: 1rem;    }
.btn-xl  { padding: 19px 48px; font-size: 1.05rem; }

/* Primary — Yellow */
.btn-primary {
  background: var(--yellow); color: var(--black);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-hover); border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

/* Secondary — Outlined */
.btn-secondary {
  background: transparent; color: var(--black);
  border-color: var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--black); background: var(--gray-50);
  transform: translateY(-1px);
}

/* Dark */
.btn-dark {
  background: var(--black); color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-dark::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
}
.btn-dark:hover::before { animation: shimmerSweep 0.55s var(--ease-smooth) forwards; }

/* Ghost */
.btn-ghost {
  background: transparent; color: var(--charcoal);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-50); color: var(--black); }

/* Outline yellow */
.btn-outline-yellow {
  background: transparent; color: var(--black);
  border-color: var(--yellow);
}
.btn-outline-yellow:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

/* Danger / Success */
.btn-danger  { background: var(--error);   color: var(--white); border-color: var(--error); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-danger:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.btn-success:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Hero Actions ───────────────────────────────────────────── */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
}

/* ── Hero Slideshow ─────────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 700px; max-height: 960px;
  overflow: hidden; margin-top: var(--nav-h);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1.4s var(--ease-smooth), transform 8s linear;
  transform: scale(1.04);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
  transition: opacity 1.4s var(--ease-smooth), transform 6s linear;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0.68) 0%,
    rgba(0,0,0,0.30) 50%,
    rgba(0,0,0,0.05) 100%
  );
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center;
  padding-bottom: 104px; /* clear the stats bar at bottom */
}
.hero-inner { max-width: 700px; padding: 48px 0; }

/* Animated pill */
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 7px 18px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 28px;
}
.hero-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);
  animation: pulseGlow 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--yellow-glow); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  color: var(--white); line-height: 1.02; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title strong { font-weight: 600; color: var(--yellow); font-style: italic; }
.hero-sub {
  font-size: 1.08rem; color: rgba(255,255,255,0.92);
  max-width: 500px; line-height: 1.75; margin-bottom: 40px;
  font-weight: 400;
}

/* Hero Search Box */
.hero-search-wrap { margin-bottom: 52px; }
.hero-search-tabs {
  display: inline-flex; background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-full) var(--r-full) 0 0;
  padding: 4px; gap: 2px; margin-bottom: -1px;
}
.hero-search-tab {
  padding: 8px 22px; border-radius: var(--r-full);
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.65);
  cursor: pointer; transition: all var(--t-fast); border: none; background: none;
}
.hero-search-tab.active {
  background: var(--white); color: var(--black);
  box-shadow: var(--shadow-sm);
}
.hero-search-box {
  background: var(--white);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 8px; display: flex; align-items: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-search-field {
  display: flex; flex-direction: column; padding: 10px 20px;
  flex: 1; border-right: 1px solid var(--gray-100); cursor: pointer;
  border-radius: var(--r); transition: background var(--t-fast);
  min-width: 0;
}
.hero-search-field:hover { background: var(--gray-50); }
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field label { font-size: 0.67rem; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; cursor: pointer; }
.hero-search-field input,
.hero-search-field select {
  font-size: 0.875rem; color: var(--charcoal); background: none;
  border: none; outline: none; cursor: pointer; width: 100%;
}
.hero-search-field input::placeholder { color: var(--gray-300); }
.hero-search-field select option { color: var(--black); }
.hero-search-btn {
  background: var(--yellow); border: none; cursor: pointer;
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s var(--ease-spring);
  margin-left: 8px;
}
.hero-search-btn:hover {
  background: var(--yellow-hover);
  transform: scale(1.06);
  box-shadow: var(--shadow-yellow);
}
.hero-search-btn svg { width: 20px; height: 20px; color: var(--black); }

/* Slide counter */
.hero-counter {
  position: absolute; bottom: 108px; right: 40px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all 0.35s var(--ease-spring); border: none; padding: 0;
}
.hero-dot.active { background: var(--yellow); width: 28px; border-radius: 4px; }

/* Hero stats bottom bar */
.hero-stats-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
}
.hero-stat {
  flex: 1; padding: 22px 0; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s var(--ease);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(255,255,255,0.05); }
.hero-stat-num { font-family: var(--font-serif); font-size: 2.1rem; color: var(--white); line-height: 1; }
.hero-stat-num span { color: var(--yellow); }
.hero-stat-label { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.78); margin-top: 5px; font-weight: 600; }

/* ── Section Header ─────────────────────────────────────────── */
/* Inline overline label used above headings across views */
.section-overline {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--yellow-hover);
  margin-bottom: 10px; display: block;
}
/* On dark backgrounds the overline should still be yellow */
[style*="background:var(--black)"] .section-overline,
[style*="background:#111"] .section-overline { color: var(--yellow); }

.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow-light);
  color: var(--black); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 5px 14px; border-radius: var(--r-full); margin-bottom: 16px;
  border: 1px solid rgba(255,203,0,0.25);
}
.section-title { font-family: var(--font-serif); color: var(--black); margin-bottom: 14px; }
.section-sub   { color: var(--gray-500); max-width: 520px; font-size: 0.95rem; }
.section-line  {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-mid));
  border-radius: 2px; margin: 16px 0 0;
}
.section-line.center { margin-left: auto; margin-right: auto; }

/* ── Property Cards ─────────────────────────────────────────── */
.property-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
}

.property-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.35s var(--ease);
  cursor: pointer;
  will-change: transform;
}
.property-card:hover {
  border-color: var(--gray-200);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Card image */
.property-card-img {
  position: relative; overflow: hidden; height: 224px;
}
.property-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}
.property-card:hover .property-card-img img { transform: scale(1.06); }

/* Badges */
.property-card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.badge {
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
}
.badge-sale { background: var(--black); color: var(--white); }
.badge-rent { background: var(--white); color: var(--black); box-shadow: var(--shadow-xs); }
.badge-new  { background: var(--yellow); color: var(--black); }
.badge-feat { background: var(--yellow); color: var(--black); }

/* Save btn */
.property-card-save {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gray-300);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-spring);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.property-card-save:hover { color: var(--error); transform: scale(1.15); box-shadow: var(--shadow); }
.property-card-save.saved { color: var(--error); }

/* Card body */
.property-card-body { padding: 20px 20px 18px; }
.property-price {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500;
  color: var(--black); margin-bottom: 4px; letter-spacing: -0.02em;
}
.property-price-suffix { font-family: var(--font-sans); font-size: 0.78rem; color: var(--gray-400); }
.property-title {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  color: var(--black); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.property-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.8rem; color: var(--gray-400); margin-bottom: 16px;
}
.property-meta {
  display: flex; gap: 16px; padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.property-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--gray-400);
}
.property-meta-value { font-weight: 700; color: var(--black); font-size: 0.82rem; }

/* ── How it works steps ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; }
.step  { position: relative; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--yellow-light);
  border: 2px solid rgba(255,203,0,0.3);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 20px;
  position: relative;
  transition: all 0.3s var(--ease-spring);
}
.step:hover .step-num {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-yellow);
}
.step-connector {
  position: absolute; top: 27px; left: 54px;
  width: calc(100% - 54px + 36px); height: 1px;
  background: linear-gradient(90deg, var(--yellow), var(--gray-100));
  opacity: 0.6;
}
.step:last-child .step-connector { display: none; }
.step-title { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.step-desc  { font-size: 0.84rem; color: var(--gray-400); line-height: 1.65; }

/* ── Category cards ─────────────────────────────────────────── */
.category-card {
  background: var(--white); border: 1.5px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 32px 24px;
  text-align: center; cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none; display: block;
}
.category-card:hover {
  border-color: var(--yellow);
  background: var(--yellow-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-icon {
  width: 60px; height: 60px; background: var(--gray-50);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; font-size: 1.9rem;
  transition: all 0.35s var(--ease-spring);
}
.category-card:hover .category-icon {
  background: var(--yellow);
  transform: translateY(-6px) scale(1.08);
  animation: iconBounce 0.5s var(--ease-spring);
}
@keyframes iconBounce {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-10px) scale(1.12); }
  70%  { transform: translateY(-4px) scale(1.05); }
  100% { transform: translateY(-6px) scale(1.08); }
}
.category-card h5 { font-size: 0.92rem; font-weight: 700; color: var(--black); margin-bottom: 5px; }
.category-card span { font-size: 0.78rem; color: var(--gray-400); }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl); padding: 32px;
  transition: all 0.3s var(--ease-smooth);
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: -10px; right: 20px;
  font-family: var(--font-serif); font-size: 8rem;
  color: var(--yellow-light); line-height: 1;
  pointer-events: none; z-index: 0;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--gray-200);
}
.testimonial-stars { color: var(--yellow); font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 3px; position: relative; z-index: 1; }
.testimonial-text  {
  font-family: var(--font-serif); font-size: 1.08rem;
  color: var(--charcoal); line-height: 1.75;
  margin-bottom: 24px; font-style: italic;
  position: relative; z-index: 1;
}
.testimonial-author{ display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.testimonial-avatar{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--black); font-size: 14px; flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.testimonial-card:hover .testimonial-avatar { transform: scale(1.1) rotate(5deg); }
.testimonial-name  { font-size: 0.9rem; font-weight: 700; color: var(--black); }
.testimonial-role  { font-size: 0.78rem; color: var(--gray-400); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--black); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.form-control {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r); padding: 13px 16px;
  color: var(--black); font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,203,0,0.12);
}
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: 0.75rem; color: var(--gray-400); margin-top: 5px; }
.form-error { font-size: 0.75rem; color: var(--error);    margin-top: 5px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Filters ────────────────────────────────────────────────── */
.filters-bar {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl); padding: 20px 22px;
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm); margin-bottom: 36px;
}
.filter-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.filter-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); }
.filter-control {
  background: var(--gray-50); border: 1.5px solid var(--gray-100);
  border-radius: var(--r); padding: 10px 14px;
  color: var(--black); font-size: 0.875rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  outline: none;
}
.filter-control:focus { border-color: var(--yellow); background: var(--white); box-shadow: 0 0 0 3px rgba(255,203,0,0.10); }
.filter-control option { background: var(--white); }

/* ── Cards / Panels ─────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 28px;
}
.card-yellow, .card-gold { border-color: rgba(255,203,0,0.35); background: var(--yellow-light); }
.card-gray   { background: var(--gray-50); border-color: var(--gray-100); }
.card-dark   { background: var(--charcoal); border-color: rgba(255,255,255,0.08); color: var(--white); }
.card-hover  { transition: all 0.3s var(--ease-smooth); cursor: pointer; }
.card-hover:hover {
  border-color: var(--gray-200);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Auth ───────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 24px 60px;
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid var(--gray-100); padding: 52px 44px;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideUp 0.5s var(--ease-smooth);
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-logo  { text-align: center; margin-bottom: 28px; }
.auth-title { text-align: center; font-size: 2rem; margin-bottom: 6px; }
.auth-sub   { text-align: center; color: var(--gray-400); font-size: 0.9rem; margin-bottom: 32px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 24px 0;
  color: var(--gray-300); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }
.auth-footer { text-align: center; font-size: 0.875rem; color: var(--gray-400); margin-top: 24px; }
.auth-footer a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-layout {
  display: grid; grid-template-columns: 256px 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}
.sidebar {
  background: var(--white); border-right: 1px solid var(--gray-100);
  padding: 28px 16px;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 24px; border-bottom: 1px solid var(--gray-100); margin-bottom: 20px;
}
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--black); flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.sidebar-user:hover .sidebar-avatar { transform: scale(1.08) rotate(5deg); }
.sidebar-user-name  { font-size: 0.875rem; font-weight: 700; color: var(--black); }
.sidebar-user-role  { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); font-weight: 700; }
.sidebar-section-label {
  font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gray-300); font-weight: 700; padding: 0 12px; margin: 16px 0 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r); font-size: 0.875rem; font-weight: 500;
  color: var(--gray-400); transition: all var(--t-fast); cursor: pointer;
}
.sidebar-link:hover  { color: var(--black); background: var(--gray-50); }
.sidebar-link.active {
  color: var(--black); background: var(--yellow-light);
  font-weight: 600;
  border-left: 2px solid var(--yellow);
}
.sidebar-link .badge-count {
  margin-left: auto; background: var(--yellow); color: var(--black);
  font-size: 0.63rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-full);
}
.dashboard-main { padding: 40px 44px; background: var(--gray-50); overflow-y: auto; }
.dashboard-header { margin-bottom: 36px; }
.dashboard-header h1 { font-size: 1.9rem; margin-bottom: 4px; }
.dashboard-header p  { color: var(--gray-400); font-size: 0.9rem; }

/* Stats */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card  {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 24px 20px;
  transition: all 0.3s var(--ease-smooth);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); margin-bottom: 10px; }
.stat-card-value { font-family: var(--font-serif); font-size: 2.3rem; color: var(--black); line-height: 1; }
.stat-card-sub   { font-size: 0.75rem; color: var(--gray-400); margin-top: 5px; }
.stat-card-accent { border-top: 3px solid var(--yellow); }

/* ── Table ──────────────────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  padding: 12px 16px; text-align: left;
  font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray-400); font-weight: 700; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.data-table td {
  padding: 15px 16px; color: var(--black);
  border-bottom: 1px solid var(--gray-50);
  transition: background var(--t-fast);
}
.data-table tbody tr:hover td { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Status badges ──────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
}
.status-pending  { background: var(--warning-bg); color: var(--warning); }
.status-approved { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--error-bg);   color: var(--error); }
.status-active   { background: var(--success-bg); color: var(--success); }
.status-sold     { background: var(--info-bg); color: var(--info); }
.status-let      { background: var(--info-bg); color: var(--info); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container { position: fixed; top: 88px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border: 1px solid var(--gray-100);
  border-left: 3px solid var(--yellow); border-radius: var(--r-md);
  padding: 14px 18px; display: flex; align-items: flex-start; gap: 13px;
  min-width: 300px; max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-smooth);
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--error); }
.toast-info    { border-left-color: var(--info); }
.toast-title   { font-size: 0.875rem; font-weight: 700; color: var(--black); }
.toast-msg     { font-size: 0.82rem; color: var(--gray-400); margin-top: 2px; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── Bidding Panel ──────────────────────────────────────────── */
.bid-panel { background: var(--white); border: 1.5px solid var(--gray-100); border-radius: var(--r-xl); padding: 28px; }
.bid-current-price { font-family: var(--font-serif); font-size: 2.8rem; color: var(--black); line-height: 1; letter-spacing: -0.02em; }
.bid-countdown { font-size: 0.82rem; color: var(--gray-400); margin: 8px 0 22px; display: flex; align-items: center; gap: 6px; }
.bid-history { max-height: 240px; overflow-y: auto; }
.bid-history-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.84rem; color: var(--gray-400); }
.bid-history-item .bid-amount { font-weight: 700; color: var(--black); }
.bid-form { display: flex; gap: 10px; margin-top: 18px; }
.bid-form input { flex: 1; background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: var(--r); padding: 13px 16px; color: var(--black); font-size: 1rem; outline: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.bid-form input:focus { border-color: var(--yellow); background: var(--white); box-shadow: 0 0 0 3px rgba(255,203,0,0.12); }

/* ── Chat ───────────────────────────────────────────────────── */
.chat-panel { display: flex; flex-direction: column; height: 420px; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-xl); overflow: hidden; }
.chat-header { padding: 16px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 72%; padding: 10px 14px; border-radius: var(--r-md); font-size: 0.875rem; line-height: 1.55; }
.message-mine   { background: var(--yellow); color: var(--black); align-self: flex-end; border-bottom-right-radius: var(--r-xs); }
.message-theirs { background: var(--gray-100); color: var(--black); align-self: flex-start; border-bottom-left-radius: var(--r-xs); }
.message-time { font-size: 0.64rem; color: rgba(0,0,0,0.35); margin-top: 4px; text-align: right; }
.chat-footer { padding: 12px 14px; background: var(--gray-50); border-top: 1px solid var(--gray-100); display: flex; gap: 8px; }
.chat-input { flex: 1; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r); padding: 10px 14px; color: var(--black); font-size: 0.875rem; resize: none; outline: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.chat-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,203,0,0.10); }

/* ── Property detail ────────────────────────────────────────── */
.property-detail-hero { position: relative; height: 500px; overflow: hidden; border-radius: var(--r-xl); margin-bottom: 28px; }
.property-detail-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-smooth); }
.property-detail-hero:hover img { transform: scale(1.03); }
.property-detail-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%); }
.property-detail-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 36px 40px; }
.property-thumb-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 32px; }
.property-thumb { border-radius: var(--r-sm); overflow: hidden; height: 72px; cursor: pointer; border: 2.5px solid transparent; transition: all var(--t-fast); }
.property-thumb.active { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255,203,0,0.3); }
.property-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-smooth); }
.property-thumb:hover img { transform: scale(1.08); }
.property-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.property-specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--gray-100); border-radius: var(--r-lg); overflow: hidden; margin: 24px 0; }
.property-spec-item { background: var(--white); padding: 20px 16px; text-align: center; transition: background var(--t-fast); }
.property-spec-item:hover { background: var(--yellow-light); }
.property-spec-value { font-family: var(--font-serif); font-size: 1.7rem; color: var(--black); line-height: 1; margin-bottom: 5px; }
.property-spec-label { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--black); color: var(--white); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 60px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.85; margin: 18px 0 22px; max-width: 300px; }
.footer-reg {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r); padding: 14px 16px;
  font-size: 0.75rem; line-height: 1.85; color: rgba(255,255,255,0.72);
}
.footer-reg strong { color: var(--yellow); display: block; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }
.footer-heading { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); font-weight: 700; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 0.875rem; color: rgba(255,255,255,0.80);
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}
.footer-link:hover { color: var(--yellow); transform: translateX(3px); }
.footer-officers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.officer-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-sm); padding: 11px; transition: background var(--t-fast); }
.officer-item:hover { background: rgba(255,203,0,0.08); border-color: rgba(255,203,0,0.20); }
.officer-name { font-size: 0.82rem; font-weight: 600; color: var(--white); }
.officer-role { font-size: 0.67rem; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; }
.officer-info { font-size: 0.67rem; color: rgba(255,255,255,0.62); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.60); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.65); transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: var(--yellow); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 52px; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--gray-200); color: var(--gray-400);
  background: var(--white);
  transition: all 0.2s var(--ease-spring);
}
.page-btn:hover  { border-color: var(--yellow); color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.page-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--black); box-shadow: var(--shadow-yellow); }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-100); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px; font-size: 0.875rem; font-weight: 500; color: var(--gray-400);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--t-fast); background: none;
  border-top: none; border-left: none; border-right: none;
}
.tab-btn:hover  { color: var(--black); }
.tab-btn.active { color: var(--black); border-bottom-color: var(--yellow); font-weight: 700; }
.tab-content    { display: none; }
.tab-content.active { display: block; animation: fadeSlideUp 0.25s var(--ease-smooth); }

/* ── Admin Panel ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* Dark Sidebar */
.admin-sidebar {
  background: #111827;
  border-right: none;
  padding: 0;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.admin-sidebar-logo {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.admin-sidebar-identity {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.admin-sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-sidebar-name { font-size: 0.83rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-role { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); }
.sidebar-nav { padding: 12px 10px; flex: 1; }
.sidebar-section-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.28);
  padding: 18px 10px 5px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 0.855rem; font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s ease;
  margin-bottom: 1px; text-decoration: none;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.sidebar-link.active { color: #111; background: var(--yellow); font-weight: 600; }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.75; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-link:hover svg { opacity: 1; }
.sidebar-badge {
  margin-left: auto;
  background: #ef4444; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  min-width: 18px; text-align: center; line-height: 1.4;
}
.sidebar-link.active .sidebar-badge { background: rgba(0,0,0,0.2); color: #111; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 10px 10px; }

/* Admin content area */
.admin-main { background: #f4f5f7; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid #e8e8e8;
  padding: 0 40px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; flex-shrink: 0;
}
.admin-topbar-title { font-size: 0.9rem; font-weight: 600; color: #111; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.admin-content { padding: 32px 40px; flex: 1; }
.admin-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.admin-header h1 { font-family: var(--font-serif); font-size: 1.75rem; color: var(--black); line-height: 1.1; }
.admin-header-sub { font-size: 0.8rem; color: #888; margin-top: 3px; }

/* Stat cards */
.stat-cards { display: grid; gap: 18px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border: 1px solid #eaeaea;
  border-radius: 12px; padding: 22px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 0;
}
.stat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-1px); }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fffbeb; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.stat-card-icon svg { width: 18px; height: 18px; }
.stat-card-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #888; margin-bottom: 5px; }
.stat-card-value { font-family: var(--font-serif); font-size: 2rem; color: #111; line-height: 1; margin-bottom: 6px; }
.stat-card-sub { font-size: 0.76rem; color: #999; }
.stat-card-accent { border-top: 3px solid var(--yellow); }
.stat-card-danger  { border-top: 3px solid #ef4444; }
.stat-card-success { border-top: 3px solid #10b981; }
.stat-card-info    { border-top: 3px solid #3b82f6; }
.stat-card-warn    { border-top: 3px solid #f59e0b; }

/* Quick action grid */
.admin-quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.admin-quick-action {
  background: #fff; border: 1px solid #eaeaea; border-radius: 10px;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; font-weight: 600; color: #333;
  transition: all 0.15s; text-decoration: none;
}
.admin-quick-action:hover { background: #fffbeb; border-color: rgba(255,203,0,0.4); color: #111; box-shadow: 0 2px 12px rgba(255,203,0,0.15); }
.admin-quick-action svg { width: 18px; height: 18px; flex-shrink: 0; color: #888; }
.admin-quick-action:hover svg { color: var(--yellow); }
.admin-quick-action-icon { width: 36px; height: 36px; border-radius: 8px; background: #f4f5f7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Data table in admin */
.card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 24px; }
.data-table-wrap { overflow-x: auto; margin: -4px; padding: 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table thead th { padding: 10px 14px; text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #999; border-bottom: 1px solid #eaeaea; white-space: nowrap; }
.data-table tbody td { padding: 13px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafafa; }

/* Status / badge */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 9px; border-radius: 999px; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-approved, .status-active   { background: #dcfce7; color: #16a34a; }
.status-pending                    { background: #fef3c7; color: #d97706; }
.status-rejected, .status-cancelled{ background: #fee2e2; color: #dc2626; }
.status-refunded                   { background: #ede9fe; color: #7c3aed; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }
.badge-sale { background: #fef3c7; color: #92400e; }
.badge-rent { background: #dbeafe; color: #1d4ed8; }

/* Activity feed */
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.activity-dot-yellow { background: var(--yellow); }
.activity-dot-green  { background: #10b981; }
.activity-dot-red    { background: #ef4444; }
.activity-dot-blue   { background: #3b82f6; }
.activity-dot-purple { background: #8b5cf6; }
.activity-time { font-size: 0.72rem; color: #999; white-space: nowrap; }
.activity-text { font-size: 0.84rem; color: #444; flex: 1; min-width: 0; }
.activity-text strong { color: #111; font-weight: 600; }

/* Form controls in admin */
.form-control { width: 100%; padding: 9px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 0.875rem; color: #111; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.form-control:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,203,0,0.15); }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; color: #555; margin-bottom: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Admin-specific button additions */
.btn-warning { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-warning:hover { background: #d97706; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 32px; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.2rem; color: #111; margin-bottom: 6px; }
.empty-state p { font-size: 0.875rem; color: #888; }

/* Admin alert banners (scoped to admin layout) */
.admin-layout .alert { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.admin-layout .alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.admin-layout .alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.admin-layout .alert-warn    { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.admin-layout .alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── About page ─────────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--black);
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=70&auto=format') center/cover no-repeat;
  opacity: 0.12;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: var(--white); }
.about-hero p  { color: rgba(255,255,255,0.62); }
.about-hero .section-overline { color: var(--yellow); }

/* ── Section divider line ───────────────────────────────────── */
.section-divider {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-mid));
  border-radius: 2px; margin: 12px 0 28px;
}

/* ── Companies House badge ──────────────────────────────────── */
.companies-house-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 7px 18px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 24px; display: inline-flex;
}

/* ── Trust band (dark section with white text) ──────────────── */
.trust-band {
  background: var(--black); padding: 96px 0;
  position: relative; overflow: hidden;
}
.trust-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(255,203,0,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.trust-band .trust-band-inner { position: relative; z-index: 1; }
.trust-band h2 { color: var(--white); }
.trust-band p  { color: rgba(255,255,255,0.60); }
.trust-band .section-overline { color: var(--yellow); }

/* ── Officer cards ──────────────────────────────────────────── */
.officer-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: all 0.3s var(--ease-smooth);
}
.officer-card:hover {
  border-color: rgba(255,203,0,0.40);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.officer-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--yellow-light);
  border: 2px solid rgba(255,203,0,0.30);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-spring);
}
.officer-card:hover .officer-avatar {
  background: var(--yellow); border-color: var(--yellow);
  transform: scale(1.05) rotate(-5deg);
}
.officer-avatar-letter {
  font-family: var(--font-serif); font-size: 1.6rem;
  color: var(--black); line-height: 1;
}
.officer-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--black); margin-bottom: 4px; }
.officer-role-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--yellow-hover); font-weight: 700; margin-bottom: 10px;
}
.officer-detail { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 3px; }

/* ── Company detail rows ────────────────────────────────────── */
.co-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--gray-100);
}
.co-detail-row:last-child { border-bottom: none; }
.co-detail-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray-400); font-weight: 600; flex-shrink: 0; margin-right: 16px;
  padding-top: 2px;
}
.co-detail-value { font-size: 0.9rem; color: var(--black); text-align: right; font-weight: 500; }
.co-detail-value.accent { color: var(--yellow-hover); font-weight: 700; font-family: var(--font-serif); font-size: 1rem; }

/* ── Milestone cards ────────────────────────────────────────── */
.milestone-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 28px 20px; text-align: center;
  transition: all 0.3s var(--ease-smooth);
}
.milestone-card:hover {
  border-color: rgba(255,203,0,0.40);
  box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.milestone-year {
  font-family: var(--font-serif); font-size: 2.6rem;
  color: var(--yellow-hover); line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em;
}
.milestone-label { font-size: 0.84rem; color: var(--gray-500); line-height: 1.55; }

/* ── Contact page ───────────────────────────────────────────── */
.contact-header {
  background: var(--white); padding: calc(var(--nav-h) + 56px) 0 56px;
  border-bottom: 1px solid var(--gray-100);
}
.contact-header .section-overline { color: var(--yellow-hover); }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--gray-100);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--yellow-light); border: 1px solid rgba(255,203,0,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  transition: all 0.3s var(--ease-spring);
}
.contact-info-item:hover .contact-icon {
  background: var(--yellow); transform: scale(1.05) rotate(-5deg);
}
.contact-info-label {
  font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray-400); font-weight: 700; margin-bottom: 5px; display: block;
}
.contact-info-link { font-size: 0.9rem; color: var(--charcoal); transition: color 0.2s; }
.contact-info-link:hover { color: var(--yellow-hover); }
.contact-info-text { font-size: 0.88rem; color: var(--gray-500); line-height: 1.7; }

/* ── Properties page header ─────────────────────────────────── */
.prop-page-hero {
  padding: calc(var(--nav-h) + 52px) 0 52px;
  background: var(--black);
  position: relative; overflow: hidden;
}
.prop-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(255,203,0,0.09) 0%, transparent 55%);
  pointer-events: none;
}
.prop-page-hero .container { position: relative; z-index: 1; }
.prop-page-hero h1 { color: var(--white); }
.prop-page-hero p  { color: rgba(255,255,255,0.55); }
.prop-page-hero .section-overline { color: var(--yellow); }

/* ── Alert / notice boxes ───────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 20px; font-size: 0.875rem; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(0,138,130,0.2); }
.alert-error   { background: var(--error-bg);   color: var(--error);   border-color: rgba(217,48,37,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(255,152,0,0.2); }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: rgba(26,115,232,0.2); }

/* ── Utilities ──────────────────────────────────────────────── */
.w-full          { width: 100%; }
.d-none          { display: none !important; }
.mt-8  { margin-top: 8px; }   .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px;} .mb-16 { margin-bottom: 16px;} .mb-24 { margin-bottom: 24px;} .mb-32 { margin-bottom: 32px;} .mb-48 { margin-bottom: 48px;}
.pt-nav          { padding-top: var(--nav-h); }
.rounded         { border-radius: var(--r); }
.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ── Reveal animation utility ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Skeleton loader ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Blink (original, kept for compatibility) ───────────────── */
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stat-cards  { grid-template-columns: 1fr 1fr; }
  .steps       { grid-template-columns: 1fr 1fr; gap: 28px; }
  .step-connector { display: none; }
  .hero-search-box { flex-wrap: wrap; }
  .hero-search-field { min-width: 130px; }
  .property-detail-grid { grid-template-columns: 1fr 320px; gap: 24px; }
}
@media (max-width: 900px) {
  :root { --section-py: 72px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-main   { padding: 28px 24px; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--gray-100); padding: 20px 16px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; height: auto; max-height: 64px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .admin-sidebar-identity, .sidebar-nav, .sidebar-divider, .sidebar-section-label, .admin-sidebar > div:last-child { display: none; }
  .admin-sidebar-logo { padding: 14px 16px; border-bottom: none; }
  .admin-quick-actions { grid-template-columns: 1fr 1fr; }
  .property-detail-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats-bar .hero-stat:nth-child(3),
  .hero-stats-bar .hero-stat:nth-child(4) { display: none; }
  .property-detail-hero { height: 380px; border-radius: var(--r-lg); }
}
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions .btn:not(:last-child) { display: none; }
  .hero-inner { padding: 32px 0; }
  .hero-search-wrap { margin-bottom: 32px; }
  .hero-search-box { flex-direction: column; border-radius: var(--r-lg); gap: 0; padding: 10px; }
  .hero-search-field { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 10px 14px; }
  .hero-search-field:last-of-type { border-bottom: none; }
  .hero-search-btn  { width: 100%; height: 50px; border-radius: var(--r); margin-left: 0; margin-top: 8px; }
  .hero-search-tabs { border-radius: var(--r-full); }
  .hero-stats-bar   { display: none; }
  .hero-content     { padding-bottom: 0; }
  .hero-counter     { bottom: 16px; right: 16px; }
  .property-specs   { grid-template-columns: 1fr 1fr; }
  .filters-bar      { border-radius: var(--r-lg); padding: 16px; }
  .admin-content    { padding: 20px 16px; }
  .admin-topbar     { padding: 0 16px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .container { padding: 0 16px; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-officers { grid-template-columns: 1fr; }
  .stat-cards   { grid-template-columns: 1fr 1fr; }
  .steps        { grid-template-columns: 1fr; }
  .auth-card    { padding: 32px 20px; }
  .dashboard-main { padding: 20px 16px; }
  .admin-content { padding: 14px; }
  .admin-quick-actions { grid-template-columns: 1fr; }
  .property-thumb-strip { grid-template-columns: repeat(4,1fr); }
  .property-thumb-strip .property-thumb:last-child { display: none; }
  #hero { min-height: 580px; max-height: none; height: 100svh; }
  .testimonial-card::before { font-size: 5rem; }
  /* Toast: prevent overflow on narrow screens */
  .toast-container { right: 12px; left: 12px; align-items: stretch; }
  .toast { min-width: 0; max-width: 100%; }
  /* Property grid: prevent card overflow */
  .property-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Bid panel */
  .bid-panel { padding: 18px; }
  .bid-current-price { font-size: 2.2rem; }
}
/* Short-viewport hero — prevent stats bar overlap on laptops */
@media (max-height: 760px) and (min-width: 769px) {
  .hero-content { align-items: flex-start; padding-top: 36px; padding-bottom: 96px; }
  .hero-inner { padding: 0; }
  .hero-title { font-size: clamp(2.4rem, 4.2vw, 4rem); margin-bottom: 14px; }
  .hero-sub { margin-bottom: 20px; font-size: 0.95rem; }
  .hero-actions { margin-bottom: 20px; }
  .hero-pill { margin-bottom: 16px; }
  .hero-search-wrap { margin-bottom: 0; }
  .hero-counter { bottom: 108px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.4rem; }
  .hero-pill  { font-size: 0.62rem; padding: 6px 12px; }
  .btn-xl { padding: 16px 32px; font-size: 0.95rem; }
  .auth-card { padding: 24px 16px; }
  .nav-actions { gap: 4px; }
}
