/* realestatedevelopments.bz - V3 Light Aspirational */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Backgrounds */
  --cream:     #f8f7f4;
  --white:     #ffffff;
  --sand:      #f2ede4;
  --sand-2:    #ede7db;

  /* Text */
  --navy:      #0e1f2e;
  --body:      #3a4f60;
  --muted:     #7a8fa0;

  /* Brand */
  --teal:      #0b9488;
  --teal-dk:   #08756b;
  --teal-lt:   #e4f4f3;
  --amber:     #c9913a;
  --amber-lt:  #fdf3e4;

  /* UI */
  --border:    #e0e8ee;
  --border-2:  #ccd6df;
  --radius:    8px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--body);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'DM Serif Display', Georgia, serif; }

/* ---- NAV ---- */
.nav {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.2px;
  margin-right: auto;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--teal-dk) !important; color: #fff !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero.jpg");
  background-size: cover;
  background-position: center 40%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,25,38,0.42) 0%, rgba(10,25,38,0.60) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
}
.hero-stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: #ffffff;
}
.hero-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dk); }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.45); backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.65); }
.btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--border-2); color: var(--navy); }
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-gold { background: var(--amber); color: #fff; }
.btn-gold:hover { background: #b07d30; }
.btn-sm { padding: 8px 18px; font-size: 11px; }

/* ---- SECTIONS ---- */
.section { padding: 72px 32px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--sand); }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin-bottom: 36px; font-size: 14px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-bg { background: var(--white); }


/* ---- HOMEPAGE STATS BAR (below hero slider) ---- */
.hero-stats-bar {
  background: var(--white);
  border-top: 4px solid var(--amber);
  border-bottom: 1px solid var(--border);
}
.hero-stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  padding: 20px 32px; gap: 16px; flex-wrap: wrap;
}
.hsb-item { text-align: center; flex: 1; min-width: 100px; }
.hsb-val {
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--navy); line-height: 1.1; margin-bottom: 4px;
}
.hsb-lbl {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
@media(max-width:600px) {
  .hero-stats-inner { padding: 16px 24px; }
  .hsb-val { font-size: 20px; }
}

/* ---- OPTIN STRIP ---- */
.optin-strip { background: var(--white); border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); padding: 44px 32px; text-align: center; }
.optin-strip h3 { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 8px; font-weight: 400; }
.optin-strip p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.optin-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.optin-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
  background: var(--cream);
  color: var(--navy);
  outline: none;
  font-family: 'Inter', sans-serif;
}
.optin-form input::placeholder { color: var(--muted); }
.optin-form input:focus { border-color: var(--teal); }
.optin-form button {
  padding: 13px 22px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.optin-form button:hover { background: var(--teal-dk); }
.sub { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---- DISTRICT GRID ---- */
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.district-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 24px 22px;
  text-align: left;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.district-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(11,148,136,0.1); }
.district-card .icon { display: none; }
.district-card strong { display: block; font-family: 'DM Serif Display', serif; font-size: 19px; font-weight: 400; margin-bottom: 4px; color: var(--navy); }
.district-card small { font-size: 13px; color: var(--muted); display: block; line-height: 1.5; }
.district-count { display: inline-block; font-size: 11px; font-weight: 600; color: var(--teal); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- LISTING GRID ---- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--body);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover { border-color: var(--teal); box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-3px); }
.listing-card.is-paid { border-color: var(--amber); }
.card-img { height: 210px; background: var(--sand); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.listing-card:hover .card-img img { transform: scale(1.04); }
.card-img .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: 'DM Serif Display', serif; font-size: 19px; font-weight: 400; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.card-meta { font-size: 11px; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.card-specs span { display: flex; align-items: center; gap: 4px; }
.card-price { font-family: 'DM Serif Display', serif; font-size: 21px; color: var(--teal); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---- BADGE ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-active { background: rgba(11,148,136,0.1); color: var(--teal); border: 1px solid rgba(11,148,136,0.25); }
.badge-soon { background: var(--amber-lt); color: var(--amber); border: 1px solid rgba(201,145,58,0.3); }
.badge-sold { background: #fef2f2; color: #dc5050; border: 1px solid rgba(220,80,80,0.25); }
.featured-badge { background: var(--amber); color: #fff; }

/* ---- FILTER BAR ---- */
.filter-bar { background: var(--white); border: 1.5px solid var(--border); padding: 18px 24px; margin-bottom: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar label { font-size: 11px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-bar select, .filter-bar input { padding: 9px 13px; border: 1.5px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--navy); background: var(--cream); min-width: 140px; font-family: 'Inter', sans-serif; }
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--teal); }

/* ---- LISTING PAGE ---- */
.listing-page { max-width: 960px; margin: 0 auto; padding: 40px 32px 80px; }
.listing-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 6px; overflow: hidden; margin-bottom: 32px; height: 340px; }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; }
.listing-gallery .main-img { grid-row: span 2; }
.listing-header { margin-bottom: 24px; }
.listing-header h1 { font-family: 'DM Serif Display', serif; font-size: clamp(24px, 3vw, 36px); font-weight: 400; color: var(--navy); margin-bottom: 8px; line-height: 1.2; }
.listing-location { color: var(--muted); font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.listing-specs { display: flex; gap: 32px; flex-wrap: wrap; padding: 20px 0; border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); margin-bottom: 28px; }
.spec-item .val { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--teal); }
.spec-item .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.listing-desc { font-size: 16px; line-height: 1.85; color: var(--body); margin-bottom: 32px; }
.inquiry-box { background: var(--white); border: 1.5px solid var(--border); padding: 28px; margin-bottom: 28px; }
.inquiry-box h3 { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; color: var(--navy); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--navy); background: var(--cream); font-family: 'Inter', sans-serif; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }

/* ---- QUIZ CTA ---- */
.quiz-cta { background: var(--teal); padding: 72px 32px; text-align: center; }
.quiz-cta h2 { font-family: 'DM Serif Display', serif; font-size: clamp(24px, 3vw, 36px); font-weight: 400; color: #fff; margin-bottom: 14px; }
.quiz-cta p { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 auto 32px; line-height: 1.65; }

/* ---- FOOTER ---- */
.footer { background: var(--navy); padding: 60px 32px 28px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 220px; }
.footer-col h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 9px; transition: color 0.15s; font-size: 13px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

/* ---- ADMIN ---- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1.5px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1.5px solid var(--border); }
.admin-table th { background: var(--sand); color: var(--navy); padding: 12px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.action-links { display: flex; gap: 10px; }
.action-links a { font-size: 13px; color: var(--teal); text-decoration: none; font-weight: 600; }
.action-links a.del { color: #dc5050; }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: var(--teal-lt); color: var(--teal-dk); border: 1px solid rgba(11,148,136,0.25); }
.alert-error { background: #fef2f2; color: #dc5050; border: 1px solid rgba(220,80,80,0.2); }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 16px; border: 1.5px solid var(--border); font-size: 13px; text-decoration: none; color: var(--muted); }
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 600; }

/* ---- PLACEHOLDER ---- */
.img-placeholder { width: 100%; height: 100%; background: var(--sand-2); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- RESPONSIVE ---- */
@media(max-width: 900px) {
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { padding: 0 20px; }
  .section { padding: 52px 20px; }
}
@media(max-width: 600px) {
  .nav-links { display: none; }
  .hero { height: 500px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 20px; }
  .district-grid { grid-template-columns: 1fr 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-gallery { grid-template-columns: 1fr; height: auto; }
  .listing-gallery .main-img { grid-row: span 1; height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .optin-form { flex-direction: column; }
  .optin-form input { border-right: 1px solid rgba(255,255,255,0.2); border-radius: 5px; }
  .optin-form button { border-radius: 5px; }
}
img.img-error { display: none; }

/* ---- FEATURED SLIDER ---- */
.dev-slider {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}
.dev-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
  padding-bottom: 100px; /* clear the stats strip */
}
.dev-slide.active { opacity: 1; z-index: 1; }
.dev-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.dev-slide.active .dev-slide-bg { transform: scale(1.04); }
.dev-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,24,40,0.88) 0%, rgba(10,24,40,0.55) 55%, rgba(10,24,40,0.15) 100%),
    linear-gradient(to top, rgba(8,18,30,0.75) 0%, transparent 40%);
}
.dev-slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}
.dev-slide-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.5);
  padding: 5px 14px;
  margin-bottom: 20px;
}
.dev-slide-title {
  font-size: clamp(38px, 5.5vw, 74px);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 16px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  max-width: 680px;
  letter-spacing: -0.02em;
}
.dev-slide-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}
.dev-slide-specs {
  display: none; /* data now lives in stats strip */
}
.dev-slide-cta { font-size: 12px; }

/* Slider controls */
.dev-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(-50px); /* offset up above stats strip */
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.dev-slider-arrow:hover { background: rgba(255,255,255,0.22); }
.dev-slider-prev { left: 20px; }
.dev-slider-next { right: 20px; }

.dev-slider-dots {
  position: absolute;
  bottom: 106px; /* sit above stats strip */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.dev-dot.active { background: var(--amber); transform: scale(1.4); }

/* ---- HERO DEV STATS STRIP ---- */
.hero-dev-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(8,18,30,0.84);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-dev-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-dev-stat {
  padding: 20px 0;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.hero-dev-stat:first-child { text-align: left; }
.hero-dev-stat:last-child { border-right: none; text-align: right; }
.hero-dev-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 7px;
}
.hero-dev-stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--amber);
  line-height: 1.1;
  transition: opacity 0.25s ease;
}
.hero-dev-stat-val.fading { opacity: 0; }

/* Page header + body */
.dev-page-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: 22px 32px;
}
.dev-page-header-inner { max-width: 1200px; margin: 0 auto; }
.dev-page-header h1 { font-size: 22px; color: var(--navy); margin: 0 0 2px; }
.dev-page-header p { font-size: 13px; color: var(--muted); margin: 0; }

.dev-page-body { max-width: 1200px; margin: 0 auto; padding: 28px 32px 72px; }

@media(max-width: 768px) {
  .dev-slider { height: 75vh; min-height: 480px; }
  .dev-slide-content { padding: 0 24px; }
  .dev-slide-tag { margin-bottom: 12px; }
  .dev-slider-arrow { display: none; }
  .hero-dev-stats-inner { padding: 0 20px; grid-template-columns: repeat(2, 1fr); }
  .hero-dev-stat { padding: 14px 0; }
  .hero-dev-stat:first-child { text-align: center; }
  .hero-dev-stat:last-child { text-align: center; }
  .hero-dev-stat:nth-child(2) { border-right: none; }
  .hero-dev-stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.07); }
  .hero-dev-stat-val { font-size: 20px; }
  .dev-slider-dots { bottom: 130px; }
}
@media(max-width: 480px) {
  .dev-slider { height: 70vh; min-height: 400px; }
  .dev-slide-content { padding: 0 20px; }
}

/* ===== COMPAT ALIASES (legacy var names -> V3 tokens) ===== */
:root {
  --dark:       var(--navy);
  --text:       var(--body);
  --mid:        var(--muted);
  --gold:       var(--amber);
  --teal-light: var(--teal-lt);
  --teal-dark:  var(--teal-dk);
}

/* ===== PAGE HERO (inner pages full-bleed image header) ===== */
.page-hero {
  position: relative;
  min-height: 310px;
  background: var(--navy) url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80') center 60%/cover no-repeat;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(14,31,46,0.82) 0%,
    rgba(14,31,46,0.60) 55%,
    rgba(14,31,46,0.32) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  width: 100%;
}
.page-hero-breadcrumb {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: var(--teal);
}
.page-hero-breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}
.page-hero-breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  color: var(--white);
  font-size: 42px;
  margin: 0 0 14px;
  line-height: 1.12;
}
.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  margin: 0 0 0;
  max-width: 620px;
  line-height: 1.65;
}
.page-hero .hero-count {
  color: rgba(255,255,255,0.50);
  font-size: 13px;
  margin-top: 12px;
}
@media(max-width:768px) {
  .page-hero { min-height: 230px; }
  .page-hero-inner { padding: 32px 20px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15px; }
}

/* ---- FEATURED BOX (paid/featured listings - full width horizontal) ---- */
.featured-boxes-section { padding: 0 0 8px; }
.featured-boxes-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.featured-boxes-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--amber-lt);
}
.featured-boxes { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.featured-box {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--amber);
  overflow: hidden;
  text-decoration: none;
  color: var(--body);
  transition: box-shadow 0.2s, transform 0.18s;
}
.featured-box:hover { box-shadow: 0 8px 40px rgba(201,145,58,0.15); transform: translateY(-2px); }
.featured-box-img {
  width: 42%;
  min-width: 300px;
  flex-shrink: 0;
  background: var(--sand);
  overflow: hidden;
  position: relative;
}
.featured-box-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-box:hover .featured-box-img img { transform: scale(1.04); }
/* ---- FEATURED BOX IMAGE SLIDER ---- */
.fb-slider { position: relative; width: 100%; height: 100%; min-height: 240px; }
.fb-slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fb-slide.active { opacity: 1; }
.fb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); color: #fff;
  border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 32px; text-align: center;
  cursor: pointer; z-index: 5;
  opacity: 0; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.featured-box:hover .fb-arrow { opacity: 1; }
.fb-prev { left: 10px; }
.fb-next { right: 10px; }
.fb-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.fb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: background 0.2s; cursor: pointer;
}
.fb-dot.active { background: #fff; }
.fb-slider[data-count="1"] .fb-arrow,
.fb-slider[data-count="1"] .fb-dots { display: none; }
.fb-img-placeholder { width: 100%; height: 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; background: var(--sand); color: var(--muted); font-size: 12px; }

.featured-box-img .img-placeholder { height: 100%; }
.featured-box-body {
  padding: 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.featured-box-eyebrow { display: flex; gap: 6px; align-items: center; }
.featured-box-title {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}
.featured-box-location { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.featured-box-specs { display: flex; gap: 10px; flex-wrap: wrap; }
.spec-chip {
  background: var(--cream);
  border: 1.5px solid var(--border);
  padding: 10px 16px;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-chip strong, .spec-chip .sv {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.2;
}
.spec-chip span, .spec-chip .sl { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 2px; }
.featured-box-infra { display: flex; gap: 6px; flex-wrap: wrap; }
.infra-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 2px;
}
.infra-pill.infra-yes { background: rgba(11,148,136,0.08); color: var(--teal-dk); border: 1px solid rgba(11,148,136,0.2); }
.featured-box-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media(max-width: 820px) {
  .featured-box { flex-direction: column; }
  .featured-box-img { width: 100%; height: 240px; }
  .featured-box-body { padding: 18px 20px; }
}

/* ---- UPDATED LISTING CARD (development-centric) ---- */
.card-type-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--amber);
  margin-bottom: 5px;
}
.card-infra {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.card-infra .ci {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
}
.ci-infra { color: var(--teal-dk); background: rgba(11,148,136,0.08); border: 1px solid rgba(11,148,136,0.18); }
.ci-water { color: #1d6db5; background: #eef4fc; border: 1px solid #c3d8f0; }
.card-lot-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.lot-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--sand);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
}
.lot-acres { font-size: 12px; color: var(--muted); }
.card-price { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--teal); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }

/* Slider stat pills - road/power/water indicators */
.dev-slide-infra {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.slide-infra-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ---- SLIDER HERO IMPROVEMENTS ---- */
.dev-slide-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 0 18px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}
.dev-slide-divider {
  width: 48px;
  height: 2px;
  background: var(--teal);
  margin: 14px 0;
}

/* Featured box: better mobile spec grid */
@media(max-width: 600px) {
  .featured-box-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .spec-chip { min-width: unset; }
  .featured-box-body { gap: 12px; }
}

/* ---- DISTRICT ARTICLE CONTENT ---- */
.district-article {
  background: var(--white);
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--border, #e8e8e8);
}
.district-article-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.district-article h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 16px;
}
.district-article h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--navy);
  margin: 28px 0 10px;
}
.district-article p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin: 0 0 14px;
}
@media (max-width: 768px) {
  .district-article-inner { padding: 28px 20px; }
  .district-article h2 { font-size: 19px; }
}
