/**
 * ============================================================
 * AURA REALTY — Master Stylesheet
 * ============================================================
 * Design system inspired by realtor.com with a premium,
 * modern aesthetic. Uses CSS custom properties for theming,
 * mobile-first responsive design, and rich micro-animations.
 * ============================================================
 */

/* ─── Design Tokens ─── */
:root {
  /* Primary Palette */
  --color-primary: #d92228;
  --color-primary-dark: #b91c1e;
  --color-primary-light: #ff4347;

  /* Neutrals */
  --color-navy: #1a1a2e;
  --color-dark: #16213e;
  --color-gray-900: #1f2937;
  --color-gray-800: #2d3748;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-gray-50: #f9fafb;
  --color-white: #ffffff;

  /* Accent */
  --color-accent: #0d6efd;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
  --sidebar-width: 320px;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline.btn--white-bg {
  border-color: var(--color-gray-300);
  color: var(--color-gray-700);
}

.btn--outline.btn--white-bg:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-400);
  color: var(--color-gray-900);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-gray-800);
}

.btn--white:hover {
  background: var(--color-gray-100);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-700);
}

.btn--ghost:hover {
  background: var(--color-gray-100);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

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

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Baseline Hides (Mobile assets hidden on desktop) */
.mobile-toggle,
.mobile-profile-toggle,
.sidebar-close,
.nav-sidebar-header,
.nav-sidebar-footer,
.nav-backdrop {
  display: none !important;
}

/* ─── Site Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--header-height);
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.site-header.header--transparent {
  background: transparent;
}

.site-header.header--transparent.scrolled {
  background: rgba(255, 255, 255, 0.97);
}

.site-header.header--transparent:not(.scrolled) .nav-link,
.site-header.header--transparent:not(.scrolled) .logo-text {
  color: var(--color-white);
}

.site-header.header--transparent:not(.scrolled) .auth-login-btn {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header.header--transparent:not(.scrolled) .auth-login-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-gray-900);
  z-index: 10;
}

.logo-icon {
  width: 38px;
  height: 38px;
  /* background: var(--color-primary); */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
}

.logo-text span {
  color: var(--color-primary);
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(217, 34, 40, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* Auth Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 10;
}

.auth-login-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-gray-700);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-login-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.auth-register-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
}

.auth-user-menu {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  font-size: 14px;
  font-weight: 500;
}

.auth-user-menu i {
  font-size: 22px;
  color: var(--color-gray-500);
}

.auth-logout-btn {
  color: var(--color-gray-500);
  cursor: pointer;
  font-size: 13px;
}

.auth-logout-btn:hover {
  color: var(--color-primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-gray-700);
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Premium property background v5 */
  background: url('../images/hero-bg-v5.jpg') center/cover no-repeat;
  z-index: 0;
  transform-origin: center;
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.0);
  }

  to {
    transform: scale(1.07);
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.35);
  /* Lighter dark overlay so city is clearly visible */
  z-index: 0;
}

/* Sold Homes Hero Variant */
.hero--sold::before {
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&h=900&fit=crop') center/cover no-repeat;
}

.hero--sold::after {
  background: rgba(10, 10, 20, 0.50);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #ffffff;
  color: var(--color-primary-dark);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  margin: 0 auto var(--space-lg) auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-badge i {
  color: #ffc107;
  font-size: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-primary-light), #ff8a8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 19px;
  font-weight: 500;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Box */
.hero-search-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.hero-search-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.hero-tab {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-tab.active {
  font-weight: 700;
}

.hero-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-white);
}

/* Dynamic Hero Panels */
.hero-panels-container {
  position: relative;
  min-height: 70px;
}

.hero-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.hero-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base Form Styling (Replaces old .hero-search) */
.hero-pane-form {
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

.hero-pane-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-pane-input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-pane-input.flex-grow {
  flex: 1;
}

.hero-pane-input i {
  color: var(--color-gray-400);
  font-size: 18px;
}

.hero-pane-input input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--color-gray-800);
}

.hero-pane-input input::placeholder {
  color: var(--color-gray-400);
}

.hero-pane-divider {
  width: 1px;
  height: 24px;
  background: var(--color-gray-200);
  margin: 0 var(--space-xs);
}

.hero-pane-select select {
  border: none;
  background: transparent;
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  padding: 8px 4px;
  -webkit-appearance: none;
  appearance: none;
}

.hero-pane-form .btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Specific Panel Layouts */
.hero-pane-content-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  text-align: left;
}

.hero-pane-content-box.center-aligned {
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.hero-pane-text-area h3 {
  color: var(--color-gray-900);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-pane-text-area p {
  color: var(--color-gray-500);
  font-size: 14px;
  margin: 0;
}

.hero-pane-content-box.center-aligned h3 {
  font-size: 20px;
  color: var(--color-gray-900);
}

.hero-pane-action-area {
  display: flex;
  gap: var(--space-sm);
}

.hero-pane-form.inline-flex-form {
  padding: 4px;
  width: auto;
  min-width: 380px;
}

.hero-pane-form.simple-input-form {
  padding: 4px;
}

.hero-pane-form.inline-flex-form .btn,
.hero-pane-form.simple-input-form .btn {
  border-radius: var(--radius-full);
  padding: 10px 20px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-stat {
  text-align: center;
  color: var(--color-white);
}

.hero-stat__number {
  font-size: 38px;
  font-weight: 800;
  display: block;
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-stat__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin-top: 4px;
}

/* ─── Section Styles ─── */
.section {
  padding: var(--space-4xl) 0;
}

.section--gray {
  background: var(--color-gray-50);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.section-header__tag {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section--dark .section-header h2 {
  color: var(--color-white);
}

.section-header p {
  color: var(--color-gray-500);
  font-size: 16px;
}

.section--dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Property Cards ─── */
.property-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.property-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-card__image img {
  transform: scale(1.06);
}

.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-card__featured {
  position: absolute;
  top: 12px;
  right: 52px;
  background: var(--color-warning);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.property-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-gray-600);
  font-size: 16px;
  backdrop-filter: blur(4px);
}

.property-card__favorite:hover,
.property-card__favorite.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.property-card__content {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.property-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.property-card__meta {
  display: flex;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.property-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-card__meta i {
  color: var(--color-gray-400);
  font-size: 13px;
}

.property-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card__address {
  font-size: 13px;
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}

.property-card__address i {
  color: var(--color-primary);
  margin-right: 4px;
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray-100);
}

.property-card__type {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-500);
  background: var(--color-gray-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ─── Carousel ─── */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
  gap: var(--space-lg);
}

.carousel-track .property-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  color: var(--color-gray-700);
  font-size: 18px;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.carousel-btn--prev {
  left: -8px;
}

.carousel-btn--next {
  right: -8px;
}

/* ─── Neighborhoods Grid ─── */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.neighborhood-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.neighborhood-card:hover img {
  transform: scale(1.08);
}

.neighborhood-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-white);
  transition: background var(--transition-base);
}

.neighborhood-card:hover .neighborhood-card__overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(217, 34, 40, 0.7) 100%);
}

.neighborhood-card__overlay h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.neighborhood-card__overlay p {
  font-size: 14px;
  opacity: 0.85;
}

.neighborhood-card__overlay span {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 2px;
}

/* ─── Testimonials ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
  color: var(--color-warning);
  font-size: 16px;
  margin-bottom: var(--space-md);
  display: flex;
  gap: 2px;
}

.testimonial-card__text {
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  color: var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  color: var(--color-gray-800);
}

.testimonial-card__author span {
  font-size: 13px;
  color: var(--color-gray-500);
}

/* ─── Features Grid (Why Choose) ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(217, 34, 40, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 26px;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-lg);
  /* Small margin as requested */
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  top: -200px;
  right: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  bottom: -150px;
  left: -50px;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
}

.newsletter-form .btn {
  background: var(--color-navy);
  color: var(--color-white);
}

.newsletter-form .btn:hover {
  background: var(--color-dark);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  font-size: 15px;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

/* ─── Page Header (Inner Pages) ─── */
.page-header {
  background: linear-gradient(135deg, var(--color-navy), #0f3460);
  padding: calc(var(--header-height) + 40px) 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&h=400&fit=crop') center/cover no-repeat;
  opacity: 0.1;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: var(--space-sm);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.page-header .breadcrumb a:hover {
  color: var(--color-white);
}

.page-header .breadcrumb span {
  color: var(--color-primary-light);
}

/* ─── Listings Page Layout ─── */
.listings-page {
  padding-top: var(--header-height);
}

.listings-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

/* Filter Sidebar */
.filter-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--color-white);
  border-right: 1px solid var(--color-gray-200);
  padding: var(--space-lg);
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
}

.filter-sidebar h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  margin-bottom: var(--space-lg);
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-gray-700);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--color-primary);
}

.filter-group .price-range {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.filter-group .price-range span {
  color: var(--color-gray-400);
  font-size: 14px;
}

#clear-filters {
  width: 100%;
  margin-top: var(--space-sm);
}

/* Filter Toggle (Mobile) */
.filter-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
}

/* Listings Results */
.listings-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-white);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.listings-toolbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

#results-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gray-700);
}

.listings-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.view-toggle {
  display: flex;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle button {
  padding: 8px 12px;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  color: var(--color-gray-500);
  transition: all var(--transition-fast);
  font-size: 14px;
}

.view-toggle button.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.map-list-toggle {
  display: flex;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-list-toggle button {
  padding: 8px 16px;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  color: var(--color-gray-500);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-list-toggle button.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Listings Grid */
.listings-results {
  padding: var(--space-lg);
  flex: 1;
}

.listings-grid {
  display: grid;
  gap: var(--space-lg);
}

.listings-grid.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.listings-grid.list-view {
  grid-template-columns: 1fr;
}

.listings-grid.list-view .property-card {
  display: flex;
}

.listings-grid.list-view .property-card__image {
  width: 300px;
  height: auto;
  flex-shrink: 0;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl);
  color: var(--color-gray-400);
}

.no-results i {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.no-results h3 {
  font-size: 20px;
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
}

/* Map Panel */
.listings-map-panel {
  display: none;
  height: 500px;
  border-bottom: 1px solid var(--color-gray-200);
}

.listings-map-panel.active {
  display: block;
}

#listings-map {
  width: 100%;
  height: 100%;
}

/* Custom Map Markers */
.custom-marker {
  background: none;
  border: none;
}

.marker-pin {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-white);
}

.map-popup {
  min-width: 200px;
}

/* ─── Modal Overlay ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal--sm {
  max-width: 440px;
}

.modal--md {
  max-width: 600px;
}

.modal--lg {
  max-width: 900px;
}

.modal--xl {
  max-width: 1100px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-gray-100);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
}

.modal-close {
  width: 36px;
  height: 36px;
  background: var(--color-gray-100);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gray-500);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

.modal-body {
  padding: var(--space-xl);
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-gray-800);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 34, 40, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-row .form-group {
  flex: 1;
}

.form-message {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-top: var(--space-md);
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-divider {
  text-align: center;
  color: var(--color-gray-400);
  font-size: 13px;
  margin: var(--space-md) 0;
  position: relative;
}

.form-divider::before,
.form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--color-gray-200);
}

.form-divider::before {
  left: 0;
}

.form-divider::after {
  right: 0;
}

.form-footer {
  text-align: center;
  font-size: 14px;
  color: var(--color-gray-500);
  margin-top: var(--space-md);
}

.form-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Property Inquiry Form (in modal) */
.property-inquiry-form {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-200);
}

.property-inquiry-form h3 {
  font-size: 16px;
  margin-bottom: var(--space-md);
}

.property-inquiry-form input,
.property-inquiry-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  font-size: 14px;
  outline: none;
}

.property-inquiry-form input:focus,
.property-inquiry-form textarea:focus {
  border-color: var(--color-primary);
}

/* ─── Property Detail (in modal) ─── */
.property-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.property-detail__gallery {
  position: sticky;
  top: 0;
}

.property-detail__main-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
}

.property-detail__thumbs {
  display: flex;
  gap: var(--space-sm);
}

.property-detail__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  border: 2px solid transparent;
}

.property-detail__thumb.active,
.property-detail__thumb:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

.property-detail__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.property-detail__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
}

.property-detail__address {
  color: var(--color-gray-500);
  font-size: 14px;
  margin-bottom: var(--space-lg);
}

.property-detail__address i {
  color: var(--color-primary);
  margin-right: 4px;
}

.property-detail__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}

.feature-item i {
  color: var(--color-primary);
  font-size: 20px;
  margin-bottom: 4px;
  display: block;
}

.feature-item span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  display: block;
}

.feature-item label {
  font-size: 12px;
  color: var(--color-gray-500);
}

.property-detail__desc {
  color: var(--color-gray-600);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.property-detail__agent {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  color: var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
  flex-shrink: 0;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info {
  display: flex;
  flex-direction: column;
}

.agent-info strong {
  font-size: 15px;
  color: var(--color-gray-800);
}

.agent-info span {
  font-size: 13px;
  color: var(--color-gray-500);
}

/* ─── About Page ─── */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-story__content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: var(--space-md);
}

.about-story__content p {
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-story__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-story__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
}

.stat-item__number {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-white);
  display: block;
}

.stat-item__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.value-card {
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(217, 34, 40, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 22px;
  color: var(--color-primary);
}

.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card__photo {
  width: 100px;
  height: 100px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 60px;
  color: var(--color-gray-300);
  overflow: hidden;
  flex-shrink: 0;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 2px;
}

.team-card__role {
  display: inline-block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.team-card__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-100);
}

.team-card__stats div {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.team-card__stats strong {
  font-size: 16px;
  color: var(--color-gray-900);
}

.team-card__stats span {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-gray-500);
  letter-spacing: 0.5px;
}

.team-card__bio {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-card__contact {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.team-card__contact a {
  width: 38px;
  height: 38px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  transition: all var(--transition-fast);
}

.team-card__contact a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ─── Services Page ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(217, 34, 40, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__features {
  list-style: none;
}

.service-card__features li {
  font-size: 13px;
  color: var(--color-gray-600);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-card__features i {
  color: var(--color-success);
  font-size: 12px;
}

/* Process Timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: var(--space-2xl);
  padding: 0 var(--space-lg);
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 80px;
  right: 80px;
  height: 3px;
  background: var(--color-gray-200);
}

.timeline-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.timeline-step__number {
  width: 64px;
  height: 64px;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.timeline-step:hover .timeline-step__number {
  background: var(--color-primary);
  color: var(--color-white);
}

.timeline-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: 4px;
}

.timeline-step p {
  font-size: 13px;
  color: var(--color-gray-500);
  max-width: 180px;
  margin: 0 auto;
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--color-primary);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--color-gray-50);
}

.accordion-header i {
  transition: transform var(--transition-base);
  color: var(--color-gray-400);
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-body__inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ─── Contact Page ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(217, 34, 40, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.5;
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-100);
}

.contact-form-wrapper h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

#contact-map {
  height: 300px;
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   SPLIT SECTIONS — Savills-Inspired Layout
   ───────────────────────────────────────────── */

/**
 * Outer wrapper
 * Each split section is a full-width flex row.
 * Panels are 50/50, image side and text side.
 */
.split-section {
  display: flex;
  align-items: stretch;
  min-height: 540px;
  overflow: hidden;
  margin-bottom: var(--space-3xl);
}

.split-section:last-of-type {
  margin-bottom: 0;
}

/* Alternating dark background variant */
.split-section--dark {
  background: var(--color-navy);
}

/* Light background variant */
.split-section--light {
  background: var(--color-white);
}

/* ── Panels ── */
.split-section__panel {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Text panel — padding and max content width */
.split-section__panel--text {
  padding: 80px 64px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* Image panel — no padding, image fills container */
.split-section__panel--image {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-100);
}

/* ── Image Stack (layered images effect) ── */
.split-img-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Primary large image */
.split-img-primary {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.split-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.split-img-primary:hover img {
  transform: scale(1.04);
}

/**
 * Stat overlay badge — like Savills "OVER 170 YEARS OF ADVICE"
 * Dark semi-transparent panel bottom-left of image
 */
.split-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55%;
  background: rgba(26, 26, 46, 0.88);
  backdrop-filter: blur(6px);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 4px solid var(--color-primary);
}

/* Accent variant (red/primary colored top border highlight) */
.split-img-overlay--accent {
  border-top-color: var(--color-primary);
  background: rgba(217, 34, 40, 0.88);
}

.split-overlay__number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
}

.split-overlay__number sup {
  font-size: 0.45em;
  vertical-align: super;
}

.split-overlay__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.5;
}

/**
 * Floating secondary image tile
 * Positioned bottom-right, partially overlapping the primary image
 */
.split-img-float {
  position: absolute;
  bottom: 32px;
  right: -24px;
  width: 44%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--color-white);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  /* staggered entrance delay via CSS custom property */
  transition-delay: var(--delay, 0s);
  z-index: 2;
}

.split-img-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.split-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom variant — anchors float tile to bottom-right differently */
.split-img-float--bottom {
  bottom: 24px;
  right: -20px;
}

/* Reversed stack — float tile moves to bottom-left */
.split-img-stack--reverse .split-img-float {
  right: auto;
  left: -24px;
}

/* ── Text Content ── */

/* Small uppercase tag above the heading */
.split-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* Section heading */
.split-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-gray-900);
  margin-bottom: 16px;
}

/* Dark panel overrides */
.split-section--dark .split-title {
  color: var(--color-white);
}

/* Thin red rule under the heading — like Savills's underline accent */
.split-rule {
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin-bottom: 20px;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.split-section__panel--text:hover .split-rule {
  width: 72px;
}

/* Body copy */
.split-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-gray-600);
  max-width: 460px;
  margin-bottom: 28px;
}

.split-section--dark .split-desc {
  color: rgba(255, 255, 255, 0.7);
}

/**
 * Arrow CTA link — like "EXPLORE OUR LATEST RESEARCH ›"
 * Uppercase text with animated arrow on hover
 */
.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-primary);
  transition: gap 0.25s ease, color 0.25s ease;
}

.split-cta:hover {
  gap: 14px;
  color: var(--color-primary-dark);
}

.split-cta i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.split-cta:hover i {
  transform: translateX(4px);
}

.split-section--dark .split-cta {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.split-section--dark .split-cta:hover {
  color: rgba(255, 255, 255, 0.75);
}

/**
 * Agent portrait — squircle style with white border
 * Sits above the stats row in the dark "Why Choose Us" panel
 */
.split-agent-portrait {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.split-agent-portrait img {
  /* Squircle: large border-radius for rounded-square look */
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-agent-portrait:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.split-agent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.split-agent-info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.2px;
}

.split-agent-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
}

/**
 * Stats row — mirrors Savills "42,000 people / 70 countries"
 * Three compact stat blocks in a flex row
 */
.split-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}


.split-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.split-stat__number {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.split-stat__number sup {
  font-size: 0.5em;
  vertical-align: super;
}

.split-stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
}

/**
 * Checklist — bulleted feature list in Section 3
 */
.split-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-gray-600);
  line-height: 1.5;
}

.split-checklist i {
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── Split Section Responsive ── */

/* Tablet: stack panels vertically */
@media (max-width: 900px) {
  .split-section {
    flex-direction: column;
    min-height: auto;
  }

  /* On dark section, image goes on top */
  .split-section--dark {
    flex-direction: column-reverse;
  }

  .split-img-stack {
    min-height: 340px;
  }

  .split-img-primary {
    min-height: 320px;
  }

  .split-img-overlay {
    width: 60%;
    padding: 20px;
  }

  .split-img-float {
    width: 38%;
    right: 12px;
    bottom: 16px;
  }

  .split-img-stack--reverse .split-img-float {
    right: 12px;
    left: auto;
  }

  .split-section__panel--text {
    padding: 48px 32px;
  }

  .split-stats {
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .split-img-float {
    display: none;
    /* hide floating tile to avoid clutter */
  }

  .split-img-overlay {
    width: 80%;
    padding: 16px;
  }

  .split-overlay__number {
    font-size: 36px;
  }

  .split-section__panel--text {
    padding: 36px 20px;
  }

  .split-title {
    font-size: 26px;
  }

  .split-stats {
    gap: 16px;
  }

  .split-stat__number {
    font-size: 24px;
  }
}

/* ─── Scroll Animations ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive Design ─── */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .neighborhoods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .carousel-track .property-card {
    flex: 0 0 calc(50% - 12px);
  }

  .property-detail {
    grid-template-columns: 1fr;
  }

  .property-detail__features {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-timeline {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .process-timeline::before {
    display: none;
  }

  .timeline-step {
    flex: 0 0 calc(50% - 12px);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    border-right: none;
    padding-top: var(--space-3xl);
  }

  .filter-sidebar.active {
    display: block;
  }
}

/* ─── App Download Section V2 (Refined Compact Banner) ─── */
/* ─── Compact App Download Banner (Static Image) ─── */
.app-download-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  background-color: #f8f9fa;
  min-height: 120px;
  /* Adjusted for a smaller, symmetrical gap */
  margin: var(--space-lg) 0;
}

.app-download-banner img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Sold Homes Page ─── */
.sold-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #2d1b69 100%);
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
}

.sold-hero__content h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.sold-hero__content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

.sold-hero .section-header__tag {
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.preapproval-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preapproval-banner__image {
  flex: 0 0 40%;
}

.preapproval-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.preapproval-banner__content {
  flex: 1;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) 0;
}

.preapproval-banner__content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: var(--space-md);
}

.preapproval-banner__content p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
}

.preapproval-banner__content .split-checklist {
  margin-bottom: var(--space-xl);
}

.local-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.local-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.local-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.local-info-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(217, 34, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.local-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
}

.local-info-card p {
  color: var(--color-gray-500);
  font-size: 14px;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  /* Force desktop-only buttons to hide on mobile */
  .auth-login-btn,
  .auth-register-btn,
  .auth-user-menu {
    display: none !important;
  }

  .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    padding: 0 var(--space-md) !important;
  }

  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .logo-text {
    font-size: 18px;
  }

  .mobile-toggle,
  .mobile-profile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 11;
    background: none;
    border: none;
    color: var(--color-gray-800);
  }

  .mobile-toggle {
    font-size: 22px;
  }

  .mobile-profile-toggle {
    font-size: 26px;
  }

  /* Side Drawer Layout */
  .nav-links {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    z-index: 6000;
    transition: transform 0.3s ease;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
    transform: translateX(300px);
  }

  .nav-sidebar-header,
  .nav-sidebar-footer {
    display: flex !important;
    width: 100%;
  }

  .nav-sidebar-header {
    padding: 16px 20px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .sidebar-close {
    display: flex !important;
    font-size: 24px;
    color: var(--color-gray-600);
    background: none;
    border: none;
  }

  .nav-link {
    width: 100%;
    font-size: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-gray-50);
    display: flex;
    justify-content: space-between;
  }

  .nav-link::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
  }

  .nav-sidebar-footer {
    flex-direction: column;
    margin-top: auto;
    padding: 24px;
    background: var(--color-gray-50);
  }

  .sidebar-app-badge {
    width: 140px;
    margin-bottom: 16px;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5999;
    backdrop-filter: blur(2px);
  }

  .nav-backdrop.active {
    display: block !important;
  }

  /* ─── Hero Mobile Fixes ─── */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 20px) 0 40px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-search-tabs {
    background: transparent;
    padding: 0;
    margin-bottom: var(--space-md);
    justify-content: flex-start;
    gap: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
  }

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

  /* Hide scrollbar Chrome/Safari */

  .hero-tab {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 0;
    padding: 8px 4px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  /* Hide extra tabs on mobile to match realtor.com minimal layout */
  .hero-tab:nth-child(n+5) {
    display: none !important;
  }

  /* Always show the active tab, even if it's an 'extra' one */
  .hero-tab.active {
    display: flex !important;
  }

  .hero-tab.active {
    color: var(--color-white) !important;
    border-bottom-color: var(--color-white);
  }

  .hero-pane-form {
    background: var(--color-white) !important;
    border-radius: var(--radius-full) !important;
    padding: 4px 4px 4px 16px !important;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-pane-input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
  }

  .hero-pane-input {
    flex: 1;
  }

  .hero-pane-input input {
    font-size: 15px;
    /* Prevent auto-zoom on iOS */
    padding: 10px 0;
    width: 100%;
  }

  .hero-pane-select,
  .hero-pane-divider {
    display: none !important;
  }

  /* Tab Area Fixes */
  .hero-pane-content-box {
    flex-direction: column !important;
    text-align: center;
    padding: var(--space-lg) !important;
    gap: var(--space-md) !important;
  }

  .hero-pane-action-area {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  /* Layout Breakpoints */
  .features-grid,
  .neighborhoods-grid,
  .testimonials-grid,
  .team-grid,
  .services-grid,
  .values-grid,
  .footer-grid,
  .listings-grid.grid-view {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-track .property-card {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 16px);
  }
}

.logo-icon img {
  width: 40px;
  /* adjust as needed */
  height: 40px;
  object-fit: contain;
}

/* 🔥 Joint Development Flow */

.process-cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.cycle-step {
  text-align: center;
}

.circle {
  width: 60px;
  height: 60px;
  border: 2px solid red;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  background: #fff;
}

.arrow {
  font-size: 24px;
  color: #999;
}

.process-cycle-wrapper {
  text-align: center;
  margin: 40px 0;
}

.cycle-heading {
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
}

.joint-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.joint-line {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: 0;
}

.joint-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  /* 🔥 THIS IS IMPORTANT */
}

.circle {
  width: 50px;
  height: 50px;
  border: 2px solid red;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin: auto;
}

.joint-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* 🔥 IMPORTANT */
  margin-top: 40px;
}

.joint-step {
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.joint-desc {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
  line-height: 1.4;
  max-width: 160px;
  /* 🔥 controls 2-line width */
  margin-left: auto;
  margin-right: auto;
}

.circle {
  width: 50px;
  height: 50px;
  border: 2px solid red;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin: auto;
}

/* ===== FIX TOP GAP (OUR PROCESS) ===== */
.section--gray {
  padding-top: 20px !important;
  padding-bottom: 40px;
}

/* remove extra space above Joint Development */
.process-cycle-wrapper {
  margin-top: 0 !important;
}

/* tighten section header spacing */
.section-header {
  margin-bottom: 20px !important;
}

/* optional – remove space from previous section */
.about-story {
  margin-bottom: 0 !important;
}

/* ===== FIX JOINT DEVELOPMENT ALIGNMENT ===== */
.joint-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
}

.joint-step {
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

/* ===== FORCE 2 LINE TEXT CLEAN ===== */
.joint-desc {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
  line-height: 1.4;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

/* circle style fix */
.circle {
  width: 50px;
  height: 50px;
  border: 2px solid red;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin: auto;
}

/* ===== FIX SIDE EMPTY SPACE ===== */
.process-cycle-wrapper {
  max-width: 1000px;
  /* 🔥 content width control */
  margin: 0 auto;
  /* center align */
  padding: 0 20px;
  /* small side spacing */
}

/* timeline also inside same width */
.joint-timeline {
  max-width: 1000px;
  margin: 20px auto 0 auto;
}

.container {
  max-width: 1100px;
  /* reduce from big width */
}

/* ===== REMOVE SIDE EMPTY SPACE COMPLETELY ===== */

/* reduce overall container width */
.container {
  max-width: 1000px !important;
}

/* center and tighten joint development block */
.process-cycle-wrapper {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* timeline width control */
.joint-timeline {
  max-width: 900px !important;
  margin: 20px auto 0 auto !important;
  justify-content: space-between;
}

/* reduce step spacing */
.joint-step {
  flex: 0 0 auto;
  /* 🔥 prevents stretching */
  width: 140px;
  /* 🔥 fixed width → removes big gaps */
}

/* center content properly */
.joint-step h4,
.joint-desc {
  text-align: center;
}

/* ===== MATCH JOINT DEVELOPMENT WITH JOINT VENTURES ===== */

/* use same size as timeline numbers */
.circle {
  width: 60px !important;
  height: 60px !important;
  border: 2px solid #e53935;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  margin: auto;
}

/* spacing between steps same feel */
.joint-step {
  flex: 1;
  max-width: 180px;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 10px auto 40px;
  color: #666;
  font-size: 16px;
}

/* Joint Development ONLY big size */
.joint-dev {
  max-width: 1100px;
  margin: 40px auto;
}

.joint-dev .timeline-step__number {
  width: 70px;
  height: 70px;
  font-size: 20px;
}

.joint-dev .timeline-step h4 {
  font-size: 18px;
}

.joint-dev .timeline-step p {
  font-size: 14px;
}

/* Joint Ventures normal size (leave default) */
.process-timeline {
  max-width: 900px;
  margin: 40px auto;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.timeline-step {
  text-align: center;
  flex: 1;
}

.timeline-step__number {
  width: 60px;
  height: 60px;
  border: 2px solid red;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: bold;
  font-size: 18px;
}

.process-timeline {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.timeline-step {
  width: 180px;
  /* 🔥 BOTH diagram same fixed size */
  text-align: center;
}

.timeline-step__number {
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin: 0 auto 10px;
}