/* ============================================================
   BRANT COUNTY HOMES — Design System & Styles
   Brant County, Ontario — Paris, Brantford & Surrounding Areas
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #3A6B4F;       /* Brant County Green */
  --color-secondary: #8B8680;     /* Heritage Stone */
  --color-accent: #2C5F8A;        /* Grand River Blue */
  --color-bg: #FAF8F5;            /* Warm White */
  --color-heading: #2A2A2A;       /* Deep Charcoal */
  --color-highlight: #C8956C;     /* Golden Hour */
  --color-white: #FFFFFF;
  --color-border: #E8E4DF;
  --color-text: #4A4A4A;
  --color-text-light: #7A7A7A;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(42, 42, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(42, 42, 42, 0.08);
  --shadow-lg: 0 8px 40px rgba(42, 42, 42, 0.12);
  --shadow-hover: 0 12px 48px rgba(42, 42, 42, 0.15);

  --nav-height: 72px;
  --container-max: 1200px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-highlight); }
ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: #2D5740;
  border-color: #2D5740;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
  background: transparent;
}

.nav--solid {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
}
.nav--solid .nav__logo { color: var(--color-heading); }

.nav__logo-icon { font-size: 1.4rem; color: var(--color-highlight); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav--solid .nav__link { color: var(--color-text); }
.nav__link:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.1); }
.nav--solid .nav__link:hover { color: var(--color-primary); background: rgba(58, 107, 79, 0.06); }
.nav__link--active { color: var(--color-white); }
.nav--solid .nav__link--active { color: var(--color-primary); }

.nav__cta {
  padding: 10px 24px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.nav__cta:hover {
  background: #2D5740;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav--solid .nav__toggle span { background: var(--color-heading); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/hero.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 42, 42, 0.45) 0%,
    rgba(42, 42, 42, 0.3) 50%,
    rgba(42, 42, 42, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.hero__title em {
  color: var(--color-highlight);
  font-style: italic;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Search bar */
.hero__search {
  display: flex;
  max-width: 560px;
  margin: 0 auto 48px;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__search-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-heading);
  background: transparent;
  outline: none;
}
.hero__search-input::placeholder { color: var(--color-secondary); }

.hero__search-btn {
  padding: 16px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.hero__search-btn:hover { background: #2D5740; }

/* Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero__stat { text-align: center; }
.hero__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
}
.hero__stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section__title { margin-bottom: 16px; }

.section__subtitle {
  color: var(--color-secondary);
  font-size: 1.05rem;
}

.section__footer {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   LISTINGS GRID
   ============================================================ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.listing-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.listing-card__image {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #ddd 0%, #eee 100%);
  overflow: hidden;
}
.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.listing-card:hover .listing-card__image img { transform: scale(1.05); }

/* Photo carousel */
.listing-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.listing-card__slide--active { opacity: 1; position: relative; }

.listing-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.listing-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease;
}
.listing-card__dot--active { background: var(--color-white); }
.listing-card__dot:hover { background: rgba(255, 255, 255, 0.85); }

.listing-card__photo-count {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  background: rgba(42, 42, 42, 0.6);
  color: var(--color-white);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  z-index: 3;
}

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

.listing-card__body { padding: 20px; }

.listing-card__price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.listing-card__address {
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 14px;
}

.listing-card__details {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.listing-card__detail {
  font-size: 0.85rem;
  color: var(--color-text);
}
.listing-card__detail strong {
  font-weight: 600;
  color: var(--color-heading);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--color-white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__grid--single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.about__content .section__tag { text-align: left; }
.about__content .section__title { text-align: left; margin-bottom: 24px; }
.about__content p {
  margin-bottom: 16px;
  color: var(--color-text);
  line-height: 1.8;
}

.about__highlights {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about__highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 107, 79, 0.08);
  border-radius: 10px;
  font-size: 1.2rem;
}

.about__highlight strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-bottom: 2px;
}
.about__highlight p {
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-heading);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__grid--compact {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__nav h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer__nav a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--color-highlight); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
}

.footer__disclaimer {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HOMES PAGE — page-level body class
   ============================================================ */
.homes-page {
  padding-bottom: 0;
}

/* ============================================================
   HOMES PAGE HEADER
   ============================================================ */
.homes-header {
  padding: calc(var(--nav-height) + 48px) 0 40px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.homes-header .section__tag {
  display: block;
  margin-bottom: 10px;
}

.homes-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-heading);
  margin-bottom: 10px;
}

.homes-header__subtitle {
  font-size: 1.05rem;
  color: var(--color-secondary);
}

/* ============================================================
   SALES HERO (homes.html)
   ============================================================ */
.sales-hero {
  padding: 48px 0 40px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.sales-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.sales-hero__photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sales-hero__photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.sales-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: 16px;
}

.sales-hero__title em {
  color: var(--color-highlight);
  font-style: italic;
}

.sales-hero__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sales-hero__points {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.sales-hero__points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.sales-hero__points li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  color: var(--color-highlight);
  font-size: 0.65rem;
  top: 5px;
}

.sales-hero__points li strong {
  color: var(--color-heading);
}

.sales-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sales-hero__phone {
  font-size: 0.9rem;
  color: var(--color-secondary);
  text-decoration: none;
}
.sales-hero__phone:hover {
  color: var(--color-primary);
}

/* ============================================================
   NAV — always-solid variant
   ============================================================ */
.nav--always-solid {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav--always-solid .nav__logo { color: var(--color-heading); }
.nav--always-solid .nav__link { color: var(--color-text); }
.nav--always-solid .nav__link:hover {
  color: var(--color-primary);
  background: rgba(58, 107, 79, 0.06);
}
.nav--always-solid .nav__link--active { color: var(--color-primary); }
.nav--always-solid .nav__toggle span { background: var(--color-heading); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 900;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  transition: box-shadow var(--transition);
}

.filter-bar--stuck {
  box-shadow: var(--shadow-md);
}

.filter-bar__inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-bar__search-wrap {
  flex: 1;
  min-width: 200px;
}

.filter-bar__search {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-heading);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
}
.filter-bar__search:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
}
.filter-bar__search::placeholder { color: var(--color-secondary); }

.filter-bar__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-bar__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
}

.filter-bar__select {
  padding: 10px 32px 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-heading);
  background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  min-width: 140px;
}
.filter-bar__select:focus { border-color: var(--color-primary); }

/* ============================================================
   SEGMENTED BUTTONS (beds / baths)
   ============================================================ */
.seg-group {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.seg-btn {
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  border: none;
  border-right: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.seg-btn:last-child { border-right: none; }
.seg-btn:hover { background: rgba(58, 107, 79, 0.06); color: var(--color-primary); }
.seg-btn--active {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}
.seg-btn--active:hover {
  background: #2D5740;
  color: var(--color-white);
}

/* ============================================================
   LISTINGS TOOLBAR
   ============================================================ */
.listings-section {
  padding: 40px 0 80px;
}

.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.listings-toolbar__count {
  font-size: 0.9rem;
  color: var(--color-secondary);
}
.listings-toolbar__count strong {
  color: var(--color-heading);
  font-weight: 600;
}

.listings-toolbar__right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* ============================================================
   VIEW TOGGLE
   ============================================================ */
.view-toggle {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  color: var(--color-secondary);
  border: none;
  border-right: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-toggle-btn:last-child { border-right: none; }
.view-toggle-btn:hover { background: rgba(58, 107, 79, 0.06); color: var(--color-primary); }
.view-toggle-btn--active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   LISTINGS GRID — list view variant
   ============================================================ */
.listings-grid--list {
  grid-template-columns: 1fr;
}

.listings-grid--list .listing-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.listings-grid--list .listing-card__image {
  height: 100%;
  min-height: 180px;
}

/* ============================================================
   LISTING CARD — extras for homes page
   ============================================================ */
.listing-card__type {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 3px 10px;
  background: rgba(42, 42, 42, 0.55);
  color: var(--color-white);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  z-index: 3;
}

.listing-card__cta-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.listing-card__insider {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.listing-card:hover .listing-card__insider { color: var(--color-highlight); }

/* ============================================================
   CTA CARD
   ============================================================ */
.listing-card--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2D5740 100%);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-decoration: none;
}
.listing-card--cta:hover {
  transform: translateY(-4px);
}

.cta-card__inner {
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-card__icon {
  font-size: 2rem;
  color: var(--color-highlight);
  display: block;
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
  line-height: 1.3;
}

.cta-card__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 280px;
}

.cta-card__btn {
  margin-top: 8px;
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  color: var(--color-white);
  font-size: 0.9rem;
  padding: 12px 24px;
}
.cta-card__btn:hover {
  background: #b8825a;
  border-color: #b8825a;
  color: var(--color-white);
}

.cta-card__phone {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}
.cta-card__phone:hover { color: var(--color-white); }

/* ============================================================
   LISTINGS EMPTY STATE
   ============================================================ */
.listings-empty__inner {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.listings-empty__icon {
  font-size: 3rem;
  color: var(--color-border);
  display: block;
}

.listings-empty__inner h3 {
  color: var(--color-heading);
}

.listings-empty__inner p {
  color: var(--color-secondary);
  max-width: 400px;
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--color-heading);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.sticky-cta__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-cta__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  flex: 1;
}

.sticky-cta__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.sticky-cta__btn {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.sticky-cta__btn--call {
  background: var(--color-highlight);
  color: var(--color-white);
}
.sticky-cta__btn--call:hover {
  background: #b8825a;
  color: var(--color-white);
}

.sticky-cta__btn--email {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.sticky-cta__btn--email:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__highlights { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav__links--open { display: flex; }
  .nav__link { color: var(--color-text) !important; padding: 12px 16px; }
  .nav__link:hover { background: rgba(58, 107, 79, 0.06) !important; color: var(--color-primary) !important; }
  .nav__cta { margin-top: 8px; text-align: center; }

  .hero__stats { gap: 24px; }
  .hero__stat-number { font-size: 1.5rem; }
  .hero__search { flex-direction: column; }
  .hero__search-btn { border-radius: 0; }

  .section { padding: 72px 0; }
  .listings-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .sales-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sales-hero__photo img { height: 220px; }
  .sales-hero { padding: 36px 0 32px; }

  .sticky-cta { display: block; }
  .homes-page .footer { padding-bottom: calc(72px + 32px); }

  .filter-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar__search-wrap { min-width: unset; }
  .filter-bar__group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .filter-bar__label { min-width: 44px; }
  .filter-bar__select { flex: 1; min-width: unset; }
  .seg-group { flex: 1; }
  .seg-btn { flex: 1; text-align: center; padding: 9px 8px; }
  .view-toggle { display: none; }
  .listings-toolbar { flex-direction: column; align-items: flex-start; }
  .listings-toolbar__right { width: 100%; justify-content: flex-start; }
  .listings-grid--list .listing-card { grid-template-columns: 1fr; }
  .listings-grid--list .listing-card__image { height: 220px; }
}

@media (max-width: 480px) {
  .hero__subtitle { font-size: 0.95rem; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .container { padding: 0 16px; }
  .homes-header { padding-top: calc(var(--nav-height) + 32px); }
  .sticky-cta__text { display: none; }
  .sticky-cta__inner { justify-content: center; }
  .sticky-cta__actions { width: 100%; }
  .sticky-cta__btn { flex: 1; text-align: center; }
  .sales-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .filter-bar__inner { flex-wrap: wrap; }
  .filter-bar__search-wrap { flex-basis: 100%; }
}
