/* =========================================================
   HAVEN — Premium Real Estate Design System
   ========================================================= */

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

:root {
  /* Colors — Light */
  --bg: #F8F6F2;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2EFE9;
  --border: #E4DFD8;
  --border-light: #EDE9E3;
  --text: #1A1916;
  --text-2: #5C5850;
  --text-3: #9A9488;
  --accent: #6B7C5E;
  --accent-light: #EEF1EB;
  --accent-hover: #5A6B4E;
  --bronze: #B5895A;
  --bronze-light: #F5EDE0;
  --error: #C0392B;
  --success: #27AE60;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.06);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  /* Typography */
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  /* Spacing */
  --nav-h: 68px;
  --container: 1280px;
  --gap: 24px;
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 220ms;
}

[data-theme="dark"] {
  --bg: #111110;
  --bg-alt: #161614;
  --surface: #1C1C1A;
  --surface-2: #242422;
  --border: #2E2E2A;
  --border-light: #262624;
  --text: #EDE9E3;
  --text-2: #9A9488;
  --text-3: #5C5850;
  --accent: #8FA07E;
  --accent-light: #1E2419;
  --accent-hover: #A0B48E;
  --bronze: #C49A6E;
  --bronze-light: #2A2018;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-2); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }
input, select, textarea { font-family: var(--font-sans); font-size: 14px; }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.container--wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(248,246,242,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
[data-theme="dark"] .nav {
  background: rgba(17,17,16,0.88);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--text); cursor: pointer;
  transition: opacity var(--dur) var(--ease);
}
.nav__logo:hover { opacity: 0.7; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 6px 14px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border-radius: var(--radius-sm); cursor: pointer; letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__icon-btn:hover { color: var(--text); background: var(--surface-2); }
.nav__icon-btn svg { width: 18px; height: 18px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; font-size: 13.5px; font-weight: 500;
  background: var(--text); color: var(--bg);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  letter-spacing: 0.01em; border: 1.5px solid var(--text);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; font-size: 13.5px; font-weight: 500;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--text-2); background: var(--surface-2); }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; font-size: 14px; font-weight: 500;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: none;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Mobile Nav */
.nav__hamburger {
  display: none; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer;
}
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999; padding: 24px;
  flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav__link {
  padding: 14px 16px; font-size: 1.05rem; color: var(--text-2); cursor: pointer;
  border-radius: var(--radius-md); border-bottom: 1px solid var(--border-light);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mobile-nav__link:hover { color: var(--text); background: var(--surface-2); }
.mobile-nav__divider { height: 1px; background: var(--border); margin: 8px 0; }

/* --- Page Wrapper --- */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* --- Hero --- */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: #111;
}
.hero__img {
  position: absolute; inset: 0; z-index: 0;
  transition: transform 0.6s var(--ease);
}
.hero:hover .hero__img { transform: scale(1.02); }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,10,9,0.8) 0%, rgba(10,10,9,0.25) 50%, rgba(10,10,9,0.1) 100%);
}
.hero__content {
  position: relative; z-index: 2; padding: 72px 0;
  color: #fff;
}
.hero__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero__eyebrow::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,0.4); }
.hero__title { font-size: clamp(2.8rem, 6vw, 5.5rem); color: #fff; line-height: 1.1; margin-bottom: 20px; font-weight: 300; }
.hero__title em { font-style: italic; }
.hero__desc { font-size: 1.05rem; color: rgba(255,255,255,0.72); margin-bottom: 40px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__btn-primary {
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  background: #fff; color: #111; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--dur) var(--ease);
  border: 1.5px solid #fff;
}
.hero__btn-primary:hover { background: transparent; color: #fff; }
.hero__btn-secondary {
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.hero__btn-secondary:hover { border-color: rgba(255,255,255,0.8); color: #fff; }

/* --- Search Bar --- */
.search-bar {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px 8px 8px 24px;
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  position: relative; z-index: 10;
}
.search-tabs {
  display: flex; gap: 0; padding: 4px; background: var(--surface-2);
  border-radius: var(--radius-sm); margin-right: 16px; flex-shrink: 0;
}
.search-tab {
  padding: 6px 16px; font-size: 13px; font-weight: 500;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.search-tab.active { background: var(--text); color: var(--bg); }
.search-field {
  flex: 1; display: flex; flex-direction: column; padding: 4px 16px;
  border-right: 1px solid var(--border); min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.search-field input, .search-field select {
  border: none; background: none; outline: none; font-size: 14px; color: var(--text);
  padding: 2px 0; min-width: 0; width: 100%;
}
.search-field input::placeholder { color: var(--text-3); }
.search-submit {
  flex-shrink: 0; padding: 12px 28px; background: var(--text); color: var(--bg);
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: opacity var(--dur) var(--ease);
  display: flex; align-items: center; gap: 8px; margin-left: 8px;
}
.search-submit:hover { opacity: 0.82; }
.search-submit svg { width: 16px; height: 16px; }
.search-hero { margin-top: -48px; position: relative; }

/* --- Section Headers --- */
.section-header { margin-bottom: 48px; }
.section-header .eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-header .eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--accent); }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; max-width: 520px; color: var(--text-2); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }

/* --- Property Cards --- */
.property-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  cursor: pointer; position: relative;
}
.property-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.property-card__img {
  height: 220px; position: relative; overflow: hidden; background: var(--surface-2);
}
.property-card__img img { transition: transform 0.5s var(--ease); }
.property-card:hover .property-card__img img { transform: scale(1.05); }
.property-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 3px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-new { background: var(--accent); color: #fff; }
.badge-rent { background: var(--bronze); color: #fff; }
.badge-sale { background: var(--text); color: var(--bg); }
.badge-sold { background: var(--error); color: #fff; }
.property-card__save {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--dur) var(--ease);
  border: none;
}
.property-card__save:hover { background: #fff; transform: scale(1.1); }
.property-card__save svg { width: 16px; height: 16px; color: var(--text-2); }
.property-card__save.saved svg { color: var(--error); fill: var(--error); }
.property-card__body { padding: 20px; }
.property-card__price { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.property-card__address { font-size: 13px; color: var(--text-2); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.property-card__stats {
  display: flex; gap: 16px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.property-card__stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.property-card__stat svg { width: 14px; height: 14px; color: var(--text-3); }
.property-card__type { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-top: 12px; }

/* Large property card variant */
.property-card--large .property-card__img { height: 320px; }
.property-card--featured {
  grid-column: span 2;
}
.property-card--featured .property-card__img { height: 380px; }

/* --- Location Cards --- */
.location-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/5; cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.location-card:hover { transform: translateY(-4px); }
.location-card:hover img { transform: scale(1.06); }
.location-card img { transition: transform 0.5s var(--ease); height: 100%; }
.location-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.location-card__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; }
.location-card__city { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 4px; }
.location-card__count { font-size: 12px; color: rgba(255,255,255,0.7); }
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.stat-item { background: var(--surface); padding: 36px 32px; }
.stat-item__value { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 400; color: var(--text); line-height: 1; margin-bottom: 8px; }
.stat-item__label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; }
.stat-item__change { font-size: 13px; font-weight: 500; }
.stat-item__change.up { color: var(--success); }
.stat-item__change.down { color: var(--error); }

/* --- Neighborhood Cards --- */
.neighborhood-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: all var(--dur) var(--ease); background: var(--surface);
}
.neighborhood-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.neighborhood-card__img { height: 180px; overflow: hidden; }
.neighborhood-card__img img { transition: transform 0.5s var(--ease); }
.neighborhood-card:hover .neighborhood-card__img img { transform: scale(1.05); }
.neighborhood-card__body { padding: 20px; }
.neighborhood-card__name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.neighborhood-card__city { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.neighborhood-card__price { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); }
.neighborhood-card__count { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--text); color: var(--bg);
  padding: 96px 0; text-align: center;
}
.cta-banner h2 { color: inherit; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 36px; }
[data-theme="dark"] .cta-banner p { color: rgba(17,17,16,0.65); }
.cta-banner__btns { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cta-btn-light {
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  background: var(--bg); color: var(--text);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--dur) var(--ease); border: 1.5px solid transparent;
}
.cta-btn-light:hover { background: transparent; color: var(--bg); border-color: var(--bg); }
.cta-btn-outline {
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--bg);
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
[data-theme="dark"] .cta-btn-outline { color: var(--text); border-color: rgba(17,17,16,0.3); }
.cta-btn-outline:hover { border-color: var(--bg); }

/* --- Filters / Sidebar --- */
.filters-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-select {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: 13.5px; cursor: pointer;
  outline: none; transition: border-color var(--dur) var(--ease);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9488' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}
.filter-select:focus { border-color: var(--accent); }

/* Split Layout */
.split-layout { display: grid; grid-template-columns: 1fr 420px; gap: 0; min-height: calc(100vh - var(--nav-h)); align-items: start; }
.split-layout__listings { padding: 32px; overflow-y: auto; }
.split-layout__map { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; }

/* --- Map Demo --- */
.map-container {
  width: 100%; height: 100%; background: var(--surface-2);
  position: relative; overflow: hidden;
}
.map-bg {
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(200,195,188,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,195,188,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: #E8E4DC;
}
[data-theme="dark"] .map-bg { background-color: #1A1A18; background-image: linear-gradient(rgba(60,58,52,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(60,58,52,0.5) 1px, transparent 1px); }
.map-marker {
  position: absolute; transform: translate(-50%, -100%);
  cursor: pointer; transition: transform var(--dur) var(--ease);
}
.map-marker:hover { transform: translate(-50%, -110%) scale(1.1); }
.map-marker__pin {
  background: var(--text); color: var(--bg);
  padding: 5px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-md); position: relative;
}
.map-marker__pin::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--text);
}
.map-marker.active .map-marker__pin { background: var(--accent); color: #fff; }
.map-marker.active .map-marker__pin::after { border-top-color: var(--accent); }

/* --- Agent Cards --- */
.agent-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; cursor: pointer; background: var(--surface);
  transition: all var(--dur) var(--ease); text-align: center;
}
.agent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.agent-card__avatar {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px; border: 3px solid var(--border);
}
.agent-card__name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.agent-card__title { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.agent-card__stats { display: flex; justify-content: center; gap: 24px; }
.agent-card__stat { font-size: 13px; color: var(--text-2); }
.agent-card__stat span { display: block; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.agent-rating { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; }
.star { color: var(--bronze); font-size: 14px; }

/* --- Journal / Article Cards --- */
.article-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: var(--surface);
  transition: all var(--dur) var(--ease);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__img { height: 220px; overflow: hidden; background: var(--surface-2); }
.article-card__img img { transition: transform 0.5s var(--ease); }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__body { padding: 24px; }
.article-card__category {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 10px;
}
.article-card__title { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; color: var(--text); }
.article-card__desc { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; }
.article-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.article-card__meta span { display: flex; align-items: center; gap: 4px; }

/* Featured article */
.article-featured {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr;
  transition: all var(--dur) var(--ease);
}
.article-featured:hover { box-shadow: var(--shadow-md); }
.article-featured__img { height: 360px; overflow: hidden; }
.article-featured__img img { height: 100%; transition: transform 0.5s var(--ease); }
.article-featured:hover .article-featured__img img { transform: scale(1.04); }
.article-featured__body { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }

/* --- Property Detail --- */
.property-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 560px; }
.gallery-main { grid-row: span 2; position: relative; overflow: hidden; border-radius: var(--radius-md) 0 0 var(--radius-md); cursor: pointer; }
.gallery-thumb { overflow: hidden; position: relative; cursor: pointer; }
.gallery-thumb:last-child { border-radius: 0 0 var(--radius-md) 0; }
.gallery-thumb:first-of-type + .gallery-thumb { border-radius: 0 var(--radius-md) 0 0; }
.gallery-thumb img { transition: transform 0.4s var(--ease); }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-more {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 500; font-size: 15px;
  cursor: pointer;
}

.property-detail-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.property-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-2);
}
.feature-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.amenity-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--surface-2); border-radius: 20px;
  font-size: 13px; color: var(--text-2); margin: 4px;
}

/* Contact Card */
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; margin-bottom: 16px;
}
.contact-card__agent { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.contact-card__agent-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.contact-card__agent-name { font-weight: 600; font-size: 1rem; }
.contact-card__agent-title { font-size: 13px; color: var(--text-2); }
.contact-card__agent-rating { font-size: 12px; color: var(--bronze); margin-top: 2px; }
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font-size: 14px; outline: none; transition: border-color var(--dur) var(--ease);
}
.form-input:focus { border-color: var(--accent); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* Mortgage Calculator */
.calculator { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.calc-result {
  background: var(--accent-light); border-radius: var(--radius-md);
  padding: 24px; margin-top: 20px; text-align: center;
}
.calc-result__monthly { font-family: var(--font-serif); font-size: 2.5rem; color: var(--text); }
.calc-result__label { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.calc-breakdown__item { text-align: center; padding: 12px; background: var(--surface); border-radius: var(--radius-sm); }
.calc-breakdown__item strong { display: block; font-size: 1.1rem; color: var(--text); }
.calc-breakdown__item small { font-size: 12px; color: var(--text-3); }

/* --- Saved / Compare --- */
.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.empty-state { text-align: center; padding: 96px 32px; }
.empty-state__icon { font-size: 3rem; margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 12px; color: var(--text); }
.empty-state p { color: var(--text-2); max-width: 340px; margin: 0 auto 28px; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { padding: 12px 24px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); border-bottom: 1px solid var(--border); }
.compare-table td { padding: 16px 24px; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text-2); }
.compare-table tr:first-child td { font-weight: 600; color: var(--text); font-size: 1rem; }
.compare-img { width: 100%; height: 180px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }

/* --- Account --- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 60px; }
.auth-image-side { background: #111; position: relative; overflow: hidden; }
.auth-image-side img { opacity: 0.7; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 8px; }
.auth-form p { color: var(--text-2); margin-bottom: 36px; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }
.dashboard-sidebar { border-right: 1px solid var(--border); padding: 32px 0; }
.dashboard-nav { }
.dashboard-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; font-size: 14px; color: var(--text-2);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.dashboard-nav-item:hover, .dashboard-nav-item.active { color: var(--text); background: var(--surface-2); }
.dashboard-nav-item svg { width: 17px; height: 17px; }
.dashboard-content { padding: 40px; }

/* --- Valuation Form --- */
.valuation-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; max-width: 680px; margin: 0 auto; }
.valuation-result { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 48px; max-width: 680px; margin: 32px auto 0; text-align: center; }
.valuation-range { font-family: var(--font-serif); font-size: 2.8rem; color: var(--text); margin: 16px 0; }
.valuation-disclaimer { font-size: 12px; color: var(--text-3); font-style: italic; margin-top: 16px; }

/* --- Lightbox Gallery --- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  background: rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background var(--dur) var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background var(--dur) var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 13px; }
.lightbox__thumbs { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.lightbox__thumb { width: 56px; height: 40px; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: 0.5; transition: opacity var(--dur) var(--ease); }
.lightbox__thumb.active, .lightbox__thumb:hover { opacity: 1; }

/* --- List Property Steps --- */
.step-indicator { display: flex; align-items: center; margin-bottom: 48px; }
.step { display: flex; align-items: center; gap: 10px; }
.step__num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; border: 2px solid var(--border); color: var(--text-3);
  transition: all var(--dur) var(--ease);
}
.step.active .step__num { border-color: var(--accent); background: var(--accent); color: #fff; }
.step.done .step__num { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.step__label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.step.active .step__label { color: var(--text); }
.step__line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }

/* --- Explore Page Categories --- */
.explore-category {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: transform var(--dur) var(--ease);
}
.explore-category:hover { transform: translateY(-3px); }
.explore-category:hover img { transform: scale(1.05); }
.explore-category img { height: 280px; transition: transform 0.5s var(--ease); }
.explore-category__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%);
}
.explore-category__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; }
.explore-category__label { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 4px; }
.explore-category__count { font-size: 13px; color: rgba(255,255,255,0.7); }
.explore-featured { grid-column: span 2; }
.explore-featured img { height: 400px; }

/* --- Tabs --- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-2);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--dur) var(--ease);
  margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 48px; }
.page-btn {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; color: var(--text-2);
  border: 1px solid transparent; transition: all var(--dur) var(--ease);
}
.page-btn:hover { background: var(--surface-2); color: var(--text); }
.page-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* --- Loading Skeleton --- */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { height: 320px; border-radius: var(--radius-md); }
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 3px; }

/* --- Toast --- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text); color: var(--bg); padding: 12px 20px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); transition: transform 0.3s var(--ease);
  max-width: 300px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* --- Footer --- */
.footer {
  background: var(--text); color: var(--bg); padding: 72px 0 32px;
}
[data-theme="dark"] .footer { background: #0A0A09; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer__brand { }
.footer__logo { font-family: var(--font-serif); font-size: 2rem; letter-spacing: 0.12em; margin-bottom: 12px; }
.footer__tagline { color: rgba(255,255,255,0.45); font-size: 13.5px; line-height: 1.6; max-width: 240px; margin-bottom: 24px; }
[data-theme="dark"] .footer__tagline { color: rgba(17,17,16,0.45); }
.footer__social { display: flex; gap: 12px; }
.footer__social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); cursor: pointer; transition: all var(--dur) var(--ease);
}
.footer__social-link:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
[data-theme="dark"] .footer__social-link { border-color: rgba(17,17,16,0.2); color: rgba(17,17,16,0.6); }
.footer__col h5 { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
[data-theme="dark"] .footer__col h5 { color: rgba(17,17,16,0.4); }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.7); cursor: pointer; transition: color var(--dur) var(--ease); }
[data-theme="dark"] .footer__col a { color: rgba(17,17,16,0.7); }
.footer__col a:hover { color: #fff; }
[data-theme="dark"] .footer__col a:hover { color: rgba(17,17,16,1); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
[data-theme="dark"] .footer__bottom { border-color: rgba(17,17,16,0.1); }
.footer__copyright { font-size: 13px; color: rgba(255,255,255,0.4); }
[data-theme="dark"] .footer__copyright { color: rgba(17,17,16,0.4); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.4); cursor: pointer; transition: color var(--dur) var(--ease); }
[data-theme="dark"] .footer__links a { color: rgba(17,17,16,0.4); }
.footer__links a:hover { color: rgba(255,255,255,0.8); }

/* --- Neighborhood Detail --- */
.neighborhood-hero { height: 480px; position: relative; overflow: hidden; }
.neighborhood-hero img { height: 100%; }
.neighborhood-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%); }
.neighborhood-hero__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px; color: #fff; }
.place-card {
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.place-card__name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.place-card__type { font-size: 12px; color: var(--text-3); }
.place-card__rating { font-size: 12px; color: var(--bronze); margin-top: 4px; }

/* Sell page */
.sell-feature { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border-light); }
.sell-feature:last-child { border-bottom: none; }
.sell-feature__icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sell-feature__icon svg { width: 22px; height: 22px; color: var(--accent); }
.sell-feature__title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.sell-feature__text { font-size: 13.5px; color: var(--text-2); }

/* About page */
.about-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card__photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.team-card__name { font-weight: 600; margin-bottom: 4px; }
.team-card__role { font-size: 13px; color: var(--text-2); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.breadcrumb span { cursor: pointer; transition: color var(--dur) var(--ease); }
.breadcrumb span:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border); }

/* Tags */
.tag {
  display: inline-flex; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; background: var(--surface-2);
  color: var(--text-2); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.tag:hover, .tag.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Banner */
.page-banner {
  background: var(--surface-2); padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { margin-bottom: 12px; }
.page-banner p { font-size: 1.05rem; color: var(--text-2); }

/* Nearby places */
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Progress bar */
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s var(--ease); }

/* Floor plan placeholder */
.floor-plan-placeholder { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 60px; text-align: center; color: var(--text-3); }

/* Reviews */
.review-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.review-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-3); }
.review-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px;
  border: 1px solid var(--border);
}
.theme-btn {
  width: 30px; height: 26px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3); transition: all var(--dur) var(--ease);
  font-size: 13px;
}
.theme-btn.active { background: var(--surface); color: var(--text); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Similar properties row */
.similar-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; }
.similar-scroll::-webkit-scrollbar { height: 4px; }
.similar-scroll::-webkit-scrollbar-track { background: var(--border-light); }
.similar-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.similar-card { flex: 0 0 280px; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* --- Responsive --- */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .property-detail-layout { grid-template-columns: 1fr 360px; gap: 32px; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(3, 1fr); }
  .property-card--featured { grid-column: span 1; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout__map { display: none; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: 360px; height: 360px; }
  .gallery-main { border-radius: var(--radius-md); }
  .gallery-thumb { display: none; }
  .property-detail-layout { grid-template-columns: 1fr; }
  .property-sidebar { position: static; }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-image-side { display: none; }
  .article-featured { grid-template-columns: 1fr; }
  .article-featured__img { height: 260px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container, .container--narrow, .container--wide { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .search-bar { flex-direction: column; padding: 16px; gap: 12px; border-radius: var(--radius-md); }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .search-field:last-of-type { border-bottom: none; }
  .search-submit { width: 100%; justify-content: center; margin-left: 0; }
  .search-tabs { width: 100%; }
  .hero__btn-primary, .hero__btn-secondary { padding: 12px 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__actions .btn-primary { display: none; }
  .mobile-nav { display: flex; }
  .property-gallery { height: 300px; }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-featured { grid-column: span 1; }
  .places-grid { grid-template-columns: repeat(2, 1fr); }
  .saved-grid { grid-template-columns: 1fr; }
  .calc-breakdown { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .step-indicator { overflow-x: auto; }
  .step__label { display: none; }
  .valuation-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .places-grid { grid-template-columns: 1fr; }
  .explore-category img { height: 200px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 16px; }
}
