/* =============================================
   USA Property Hunters - Buyer Site Styles
   Professional Dark Navy Theme
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #101845;
  --bg-secondary: #151E52;
  --bg-card: #1C2760;
  --bg-card-hover: #243070;
  --border-color: rgba(148, 163, 184, 0.1);
  --border-subtle: rgba(148, 163, 184, 0.06);
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-red-glow: rgba(239, 68, 68, 0.18);
  --accent-green: #22c55e;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --overlay: rgba(0, 0, 0, 0.7);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(148, 163, 184, 0.05);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(148, 163, 184, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 88px 0; }
.section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.section-subtitle {
  color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; line-height: 1.7;
}

.badge {
  display: inline-block; padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.badge-type { background: rgba(30, 64, 175, 0.88); color: #dbeafe; }
.badge-occupancy { background: rgba(37, 99, 235, 0.88); color: #fff; }

.icon { width: 16px; height: 16px; display: inline-block; vertical-align: text-bottom; stroke-width: 2; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 20px; height: 20px; }
.icon-sm { width: 14px; height: 14px; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(16, 24, 69, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 88px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 72px; width: auto; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition); position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-red); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
  padding: 8px 18px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-phone:hover { background: rgba(239, 68, 68, 0.2); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 88px; position: relative; overflow: hidden;
  background:
    linear-gradient(175deg, rgba(16, 24, 69, 0.90) 0%, rgba(21, 30, 82, 0.80) 50%, rgba(16, 24, 69, 0.92) 100%),
    url('hero-bg.png') center/cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 55%);
  pointer-events: none;
}
.hero .container {
  text-align: center; padding-top: 80px; padding-bottom: 80px;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  padding: 8px 22px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--accent-red);
  margin-bottom: 32px; letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.12; margin-bottom: 24px;
  max-width: 820px; margin-left: auto; margin-right: auto;
  letter-spacing: -0.03em;
}
.hero h1 .highlight { color: var(--accent-red); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 48px; line-height: 1.75;
}

/* ---------- Buttons ---------- */
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; border: none;
  transition: all var(--transition); letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent-red); color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05); color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Hero Stats ---------- */
.hero-stats {
  display: flex; justify-content: center; gap: 0;
  margin-top: 72px;
}
.hero-stat { padding: 24px 48px; position: relative; }
.hero-stat + .hero-stat::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); height: 40px; width: 1px;
  background: rgba(148, 163, 184, 0.15);
}
.hero-stat h3 {
  font-size: 1.75rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.02em;
}
.hero-stat p {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px;
}

/* ---------- How It Works ---------- */
.how-it-works { background: var(--bg-secondary); position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step-card {
  background: var(--bg-card); border: none;
  border-radius: var(--radius-md); padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), rgba(239, 68, 68, 0.1));
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent-red-glow);
  color: var(--accent-red); font-size: 1.2rem; font-weight: 800;
  border-radius: var(--radius-md); margin-bottom: 20px;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--accent-red-glow);
  border-radius: var(--radius-md); margin-bottom: 18px;
}
.step-icon svg { width: 26px; height: 26px; stroke: var(--accent-red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ---------- AI-Powered Section ---------- */
.ai-section { background: var(--bg-primary); position: relative; overflow: hidden; padding-bottom: 0; }
.ai-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(239, 68, 68, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.ai-section .container { position: relative; z-index: 1; }
.ai-section .section-subtitle { max-width: 800px; margin: 0 auto; }
.ai-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.ai-pillar {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.ai-pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}
.ai-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.ai-pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--accent-red-glow); border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.ai-pillar-icon svg { width: 28px; height: 28px; stroke: var(--accent-red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-pillar h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.ai-pillar p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Status Badges ---------- */
.badge-status { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 5px 10px; border-radius: var(--radius-sm); }
.badge-available { background: rgba(34, 197, 94, 0.88); color: #fff; }
.badge-pending { background: rgba(234, 179, 8, 0.88); color: #422006; }
.badge-closed { background: rgba(220, 38, 38, 0.88); color: #fff; }

.property-card.status-closed { opacity: 0.7; }
.property-card.status-closed:hover { opacity: 0.85; }

.zillow-note {
  margin-top: 24px; padding: 14px 20px;
  background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 0.85rem; line-height: 1.6;
}
.zillow-note strong { color: var(--text-primary); }

/* ---------- Listings Section ---------- */
.listings-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 36px;
}
.listings-count {
  background: var(--bg-card); color: var(--text-secondary);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* ---------- Property Cards ---------- */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card {
  background: var(--bg-card); border: none;
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.property-image {
  position: relative; width: 100%; height: 240px;
  background: var(--bg-secondary); overflow: hidden;
}
.property-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 40%, transparent 70%, rgba(0,0,0,0.3) 100%);
  pointer-events: none; z-index: 1;
}
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-image[data-gallery]:hover img { transform: scale(1.08); }
.property-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }

.property-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.property-address { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; line-height: 1.35; }

.property-details {
  display: flex; gap: 16px; margin-bottom: 16px;
  font-size: 0.85rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color); padding-bottom: 16px;
}
.property-details span { display: flex; align-items: center; gap: 6px; }

.property-description {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 16px;
}
.property-pricing { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.sale-price { font-size: 1.2rem; font-weight: 700; color: var(--accent-green); letter-spacing: -0.01em; }
.rent-estimate { font-size: 1.2rem; font-weight: 700; color: var(--accent-green); }

.property-links { display: flex; gap: 8px; margin-bottom: 20px; margin-top: auto; }
.property-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  padding: 6px 14px; background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm); border: 1px solid var(--border-color);
  transition: all var(--transition);
}
.property-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.08); }
.property-card .btn-primary { width: 100%; }

.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: var(--bg-secondary);
}
.img-placeholder svg { width: 48px; height: 48px; }

/* ---------- Image Count Badge ---------- */
.property-image[data-gallery] { cursor: pointer; }
.image-count-badge {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px);
  color: #fff; padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  display: flex; align-items: center; gap: 4px; pointer-events: none;
}

/* ---------- Image Gallery ---------- */
.gallery-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center; justify-content: center;
}
.gallery-overlay.active { display: flex; }

.gallery-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255, 255, 255, 0.06); border: none;
  color: rgba(255, 255, 255, 0.7); font-size: 1.6rem; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: all var(--transition);
}
.gallery-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08); border: none;
  color: rgba(255, 255, 255, 0.7); font-size: 1.4rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: all var(--transition);
}
.gallery-nav:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-content {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; max-width: 90vw; max-height: 90vh;
  min-height: 200px; position: relative;
}
.gallery-content img {
  max-width: 90vw; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius-sm); transition: opacity 0.15s ease;
}
.gallery-content img.gallery-loading { opacity: 0; }
.gallery-spinner {
  display: none; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%; animation: gallery-spin 0.6s linear infinite;
}
.gallery-spinner.active { display: block; }
@keyframes gallery-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.gallery-counter {
  color: rgba(255, 255, 255, 0.5); font-size: 0.85rem;
  margin-top: 20px; font-weight: 500; letter-spacing: 0.5px;
}

/* ---------- Loading Skeleton ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skeleton-card {
  background: var(--bg-card); border: none;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.skeleton-img { width: 100%; height: 240px; background: var(--bg-secondary); animation: pulse 2s infinite; }
.skeleton-body { padding: 24px; }
.skeleton-line {
  height: 16px; border-radius: 6px; background: rgba(148, 163, 184, 0.06);
  margin-bottom: 12px; animation: pulse 2s infinite;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w100 { width: 100%; height: 44px; margin-top: 16px; border-radius: var(--radius-sm); }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--text-secondary);
  background: var(--bg-card); border: 1px dashed rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md); grid-column: 1 / -1;
}
.empty-state svg { margin-bottom: 16px; color: var(--text-muted); }
.empty-state h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-primary); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 500px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 28px 0;
}
.modal-header h2 { font-size: 1.3rem; font-weight: 700; }
.modal-header .modal-property {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-top: 4px; display: flex; align-items: center; gap: 6px;
}
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; line-height: 1; transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 28px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text-primary);
}
.form-group label .required { color: var(--accent-red); }
.form-control {
  width: 100%; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem;
  transition: all var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; display: none; }

/* ---------- Custom Select Dropdown ---------- */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-secondary);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}
.custom-select-trigger:hover {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.custom-select-trigger.placeholder {
  color: var(--text-muted);
}
.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.06);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.15) transparent;
}
.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-track { background: transparent; }
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 3px;
}
.custom-select.open .custom-select-options,
.custom-select-options.active { display: block; }
.custom-select-option {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}
.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.custom-select-option.selected {
  background: rgba(239, 68, 68, 0.12);
  color: var(--text-primary);
  font-weight: 500;
}

.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text-secondary); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--accent-red); width: 16px; height: 16px; }
.form-submit-btn { width: 100%; margin-top: 12px; }

/* ---------- JV Section ---------- */
.jv-section {
  position: relative; overflow: hidden;
  background:
    linear-gradient(170deg, rgba(16, 24, 69, 0.91) 0%, rgba(21, 30, 82, 0.84) 50%, rgba(16, 24, 69, 0.94) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=75') center/cover no-repeat;
}
.jv-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(239, 68, 68, 0.04) 0%, transparent 55%);
  pointer-events: none;
}
.jv-section .container { position: relative; z-index: 1; }
.jv-form-wrapper {
  max-width: 600px; margin: 48px auto 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 3000;
  padding: 16px 24px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  transform: translateY(120%); opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: rgba(6, 78, 59, 0.92); border: 1px solid #047857; color: #a7f3d0; }
.toast-error { background: rgba(127, 29, 29, 0.92); border: 1px solid #b91c1c; color: #fca5a5; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 36px; background: var(--bg-secondary);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
}
.footer-brand .footer-logo { height: 72px; width: auto; margin-bottom: 16px; border-radius: 6px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; max-width: 360px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; margin-bottom: 20px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px;
}
.footer-col a, .footer-col p {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 14px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .properties-grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section-padding { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 1rem; }

  /* Mobile Nav */
  .navbar .container { height: 72px; }
  .nav-logo img { height: 60px; }
  .nav-links {
    display: none; position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(16, 24, 69, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 8px 16px; gap: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 16px 8px;
    border-bottom: 1px solid var(--border-color); font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile Hero */
  .hero { min-height: auto; padding-top: 72px; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.2; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 32px; line-height: 1.65; }
  .hero-badge { font-size: 0.72rem; padding: 6px 16px; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 12px; }
  .hero-ctas .btn { width: 100%; max-width: 320px; padding: 16px 24px; font-size: 1rem; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 48px; }
  .hero-stat { padding: 16px 24px; flex: 0 0 auto; }
  .hero-stat h3 { font-size: 1.35rem; }
  .hero-stat p { font-size: 0.65rem; letter-spacing: 1px; }
  .hero-stat + .hero-stat::before {
    top: 50%; left: 0; transform: translateY(-50%);
    width: 1px; height: 32px;
  }

  /* Mobile Steps */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-card { padding: 28px 20px; }

  /* Mobile AI Section */
  .ai-pillars { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ai-pillar { padding: 24px 16px; }

  /* Mobile Property Cards */
  .properties-grid, .skeleton-grid { grid-template-columns: 1fr; gap: 20px; }
  .property-image { height: 220px; }
  .property-body { padding: 20px; }
  .property-address { font-size: 1rem; }
  .sale-price, .rent-estimate { font-size: 1.1rem; }
  .property-card .btn-primary { padding: 14px 20px; font-size: 0.95rem; }
  .property-links { flex-wrap: wrap; }
  .property-links a { padding: 8px 14px; font-size: 0.8rem; }
  .listings-header { margin-bottom: 24px; }

  /* Mobile Footer */
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Mobile Toast */
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; border-radius: var(--radius-sm); }

  /* Mobile JV Form */
  .jv-form-wrapper { padding: 24px 20px; margin-top: 32px; }
  .form-control { padding: 14px 14px; font-size: 1rem; }
  .form-submit-btn { padding: 16px; font-size: 1rem; }

  /* Mobile Custom Select - bottom sheet */
  .custom-select-trigger { padding: 14px 40px 14px 14px; font-size: 1rem; }
  .custom-select-options.active {
    position: fixed;
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 8px 8px 24px;
    z-index: 2001;
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    background: var(--bg-card);
  }
  .custom-select-options.active::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 2px;
    margin: 4px auto 12px;
  }
  .custom-select-option { padding: 14px 16px; font-size: 1rem; }
  .custom-select-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
  }
  .custom-select-backdrop.active { display: block; }

  /* Mobile Modal */
  .modal { border-radius: var(--radius-md); }
  .modal-header { padding: 24px 20px 0; }
  .modal-body { padding: 20px; }

  /* Mobile Gallery */
  .gallery-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 1.3rem; }
  .gallery-content img { max-width: 96vw; max-height: 75vh; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-stat { padding: 12px 16px; }
  .hero-stat h3 { font-size: 1.15rem; }
  .property-image { height: 200px; }
  .container { padding: 0 12px; }
}
