/* Brett Donelson Real Estate - Site Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter+Tight:wght@500;600;700;800&display=swap');

:root {
  --navy: #1B2A4E;
  --navy-deep: #131F3A;
  --navy-soft: #2A3A5F;
  --bone: #F5F2EC;
  --bone-warm: #EDE8DC;
  --paper: #FAF8F3;
  --ink: #1A1A1A;
  --slate: #5B6275;
  --slate-light: #8B91A1;
  --rule: rgba(27, 42, 78, 0.15);
  --gold: #B8956A;

  --serif: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max: 1440px;
  --gutter: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Type system */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow-light { color: rgba(255,255,255,0.85); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7.4vw, 104px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; }

.italic-accent { font-weight: 500; color: var(--slate); font-style: normal; }

p { text-wrap: pretty; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(80px, 10vw, 160px) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
  background: var(--navy);
  color: var(--bone);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--bone); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--bone); }

.btn .arrow {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: var(--paper);
  color: var(--navy);
  border-bottom: 1px solid var(--rule);
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo .logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 12px 22px;
  border: 1px solid currentColor;
  font-size: 11px !important;
}
.nav-cta-mobile { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta-mobile { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--bone);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(19, 31, 58, 0.45) 0%,
    rgba(19, 31, 58, 0.15) 35%,
    rgba(19, 31, 58, 0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(60px, 8vw, 110px);
  padding-top: 140px;
}
.hero-single {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .em { font-weight: 500; color: rgba(255,255,255,0.78); }
.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 400;
  max-width: 460px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 12px;
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 32px;
}
.hero-meta .stat .num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-meta .stat .lbl {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-mark {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-mark::before {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bone);
  animation: dropline 2.4s ease-in-out infinite;
}
@keyframes dropline {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
@media (max-width: 900px) {
  .hero-mark, .scroll-cue { display: none; }
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-head .lead-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-head .lead-num::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--rule);
}
@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* Philosophy / pull quote */
.philosophy {
  background: var(--bone);
  position: relative;
}
/* Philosophy split */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-photo {
  aspect-ratio: 3 / 4.4;
  background-size: cover;
  background-position: center 25%;
  background-color: var(--navy-deep);
}
.philosophy-body .pull {
  margin-top: 20px;
  text-align: left;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.18;
}
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--navy);
}
.philosophy .pull em { font-style: normal; color: var(--slate); font-weight: 500; }
.philosophy .signature {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.philosophy .signature .rule {
  width: 40px;
  height: 1px;
  background: var(--rule);
}

/* Plan / Process */
.plan {
  background: var(--paper);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.plan-step {
  padding: 56px 40px;
  border-right: 1px solid var(--rule);
  position: relative;
  cursor: pointer;
  transition: background 0.4s ease;
}
.plan-step:last-child { border-right: none; }
.plan-step:hover { background: var(--bone); }
.plan-step .num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
  opacity: 0.18;
  transition: opacity 0.4s ease;
}
.plan-step:hover .num { opacity: 0.45; }
.plan-step h3 {
  margin-top: 28px;
  color: var(--navy);
}
.plan-step p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 320px;
}
.plan-step .marker {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plan-step:hover .marker { width: 100%; }
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .plan-step:last-child { border-bottom: none; }
}

/* About Brett */
.about {
  background: var(--navy);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.about .container {
  position: relative;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-portrait {
  aspect-ratio: 3 / 4.2;
  max-width: 360px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.about-portrait .portrait-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.about h2 { color: var(--bone); }
.about h2 .em { font-style: italic; color: rgba(245, 242, 236, 0.7); }
.about-body {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 242, 236, 0.78);
  max-width: 540px;
}
.about-body p + p { margin-top: 18px; }
.about-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 540px;
}
.about-stats .num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
}
.about-stats .lbl {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
}

/* Photo split feature */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split-feature { grid-template-columns: 1fr; } }
.split-feature-img {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
}
.split-feature-body .lead-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.split-feature-body .lead-num::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--rule);
}
.split-feature-text {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 540px;
}
.photo-split { background: var(--bone); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 800px) { .split-grid { grid-template-columns: 1fr; } }
.split-card {
  display: flex;
  flex-direction: column;
}
.split-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
}
.split-cap {
  padding: 28px 4px 0;
}
.cap-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}
.split-cap p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 480px;
}

/* Listings (legacy — unused but harmless) */
.listings { display: none; }
.testimonial { display: none; }
  background: var(--bone);
}
.listings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 60px;
}
.listing {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--navy-deep);
}
.listing.feat {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 4 / 5;
}
.listing.r1 { aspect-ratio: 4 / 3; }
.listing.r2 { aspect-ratio: 4 / 3; }
.listing.r3 { aspect-ratio: 1 / 1; grid-column: 2 / 4; }
.listing-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.listing:hover .listing-img { transform: scale(1.04); }
.listing-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(19, 31, 58, 0.85) 100%);
}
.listing-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  background: rgba(245, 242, 236, 0.92);
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.listing-tag.off { background: var(--navy); color: var(--bone); }
.listing-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: var(--bone);
}
.listing-meta .loc {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}
.listing-meta h3 {
  margin-top: 8px;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--bone);
  font-weight: 400;
}
.listing-meta .stats {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.listing-meta .stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.listing-meta .stats span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  margin-left: 16px;
  opacity: 0.6;
}
@media (max-width: 900px) {
  .listings-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .listing.feat { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .listing.r3 { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Lead magnet */
.magnet {
  background: var(--paper);
  position: relative;
  padding: clamp(60px, 7vw, 100px) 0;
}
.magnet-card {
  background: var(--navy);
  color: var(--bone);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.magnet-portrait {
  background-size: cover;
  background-position: center 30%;
  min-height: 380px;
}
.magnet-content {
  padding: clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .magnet-card { grid-template-columns: 1fr; }
  .magnet-portrait { min-height: 320px; }
}
.magnet-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
.magnet-card::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.magnet-card h2 { color: var(--bone); position: relative; z-index: 1; }
.magnet h2 { font-size: clamp(28px, 3vw, 40px); }
.magnet p { font-size: 15px; max-width: 480px; }
.magnet-card .em { font-style: italic; color: rgba(245,242,236,0.7); }
.magnet-card p {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245,242,236,0.75);
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.magnet-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.magnet-form input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: all 0.3s;
}
.magnet-form input:focus { border-color: var(--bone); background: rgba(255,255,255,0.1); }
.magnet-form input::placeholder { color: rgba(245,242,236,0.4); }
.magnet-form .btn {
  background: var(--bone);
  color: var(--navy);
  justify-content: center;
}
.magnet-form .btn:hover { background: white; }
.magnet-form .err {
  font-size: 12px;
  color: #FFB4A8;
  margin-top: -8px;
}
.magnet-form .ok {
  font-size: 14px;
  color: var(--bone);
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.3);
}
@media (max-width: 800px) {
  .magnet-card { grid-template-columns: 1fr; gap: 40px; }
}

/* Testimonial */
.testimonial {
  background: var(--bone);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper);
  padding: 48px 44px;
  border: 1px solid var(--rule);
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.8;
  color: var(--navy);
  opacity: 0.2;
  position: absolute;
  top: 24px;
  right: 32px;
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--navy);
  font-style: italic;
}
.testimonial-card .attrib {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
}
.testimonial-card .who {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.testimonial-card .role {
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Contact */
.contact {
  background: var(--paper);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { color: var(--navy); }
.contact-info .em { font-style: italic; }
.contact-info .lede {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 440px;
}
.contact-details {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-details .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.contact-details .lbl {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 4px;
}
.contact-details .val {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.contact-details .val small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
  margin-top: 4px;
  font-weight: 300;
}
.contact-form {
  background: white;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--rule);
}
.contact-form h3 {
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 32px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.field select { padding-right: 24px; appearance: none; cursor: pointer; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--navy);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--slate-light);
}
.field textarea { min-height: 100px; resize: vertical; }
.field.err input, .field.err textarea, .field.err select {
  border-bottom-color: #B33A3A;
}
.field .errmsg {
  font-size: 11px;
  color: #B33A3A;
  letter-spacing: 0.04em;
  text-transform: none;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.contact-form .btn { margin-top: 16px; width: 100%; justify-content: center; }
.success-state {
  text-align: center;
  padding: 48px 24px;
}
.success-state .check {
  width: 56px;
  height: 56px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--navy);
}
.success-state h3 { color: var(--navy); margin-bottom: 12px; }
.success-state p { color: var(--slate); }

/* Footer */
.footer {
  background: #ffffff;
  color: var(--slate);
  padding: 80px 0 40px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid { border-bottom-color: var(--rule); }
.footer-brand .footer-logo-pill {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand .logo-img {
  height: 45px;
  width: auto;
  display: block;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.7;
  font-size: 13px;
  color: rgba(245,242,236,0.55);
}
.footer-col h4 {
  font-family: var(--sans);
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { transition: color 0.2s; color: var(--slate); }
.footer-col a:hover { color: var(--navy); }
.footer-col ul { color: var(--slate); }
.footer-bottom {
  padding-top: 32px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245,242,236,0.45);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a { color: var(--slate); }
.footer-bottom .legal a:hover { color: var(--navy); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(19, 31, 58, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  max-width: 1100px;
  width: 100%;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  max-height: 80vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.4s;
}
.lightbox.open .lightbox-inner { transform: none; }
@media (max-width: 800px) { .lightbox-inner { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; } }
.lightbox-img {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.lightbox-body {
  padding: 48px;
  overflow-y: auto;
}
.lightbox-body .tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.lightbox-body h3 {
  margin-top: 12px;
  color: var(--navy);
  font-size: 32px;
  font-weight: 400;
}
.lightbox-body .price {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
}
.lightbox-body .specs {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lightbox-body .specs .s .n {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
}
.lightbox-body .specs .s .l {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}
.lightbox-body .desc {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}
.lightbox-body .btn { margin-top: 28px; width: 100%; justify-content: center; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  color: var(--bone);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   Live Listings (IDX Broker via Netlify Function)
   Uses fresh class names (.listings-live, .lcard) so the legacy
   `.listings { display: none; }` rule above doesn't hide us.
   ============================================================ */
.listings-live {
  background: var(--bone);
}
.listings-live .sec-head {
  margin-bottom: 56px;
}
.listings-live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) {
  .listings-live-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .listings-live-grid { grid-template-columns: 1fr; gap: 20px; }
}

.lcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
}
.lcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(19, 31, 58, 0.25);
}
.lcard-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.lcard-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 242, 236, 0.55);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lcard-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(245, 242, 236, 0.94);
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}
.lcard-tag.off {
  background: var(--navy);
  color: var(--bone);
}
.lcard-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.lcard-loc {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.lcard-addr {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
  line-height: 1.25;
}
.lcard-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.lcard-stats {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.lcard-stats span {
  display: inline-flex;
  align-items: center;
}
.lcard-stats span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  margin-left: 16px;
}

/* States */
.listings-status {
  padding: 40px 0;
  text-align: center;
}
.listings-empty {
  font-size: 15px;
  color: var(--slate);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.listings-empty a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

/* Skeleton loaders */
.listings-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) {
  .listings-skeleton { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .listings-skeleton { grid-template-columns: 1fr; }
}
.lskel {
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(
    90deg,
    rgba(27, 42, 78, 0.06) 0%,
    rgba(27, 42, 78, 0.12) 50%,
    rgba(27, 42, 78, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: lskel 1.4s ease-in-out infinite;
  border: 1px solid var(--rule);
}
@keyframes lskel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.listings-foot {
  margin-top: 56px;
  text-align: center;
}
.listings-debug {
  margin-top: 16px;
  font-family: monospace;
  font-size: 11px;
  color: var(--slate-light);
}

/* === Search All Listings (IDX Widget) === */
.search-listings {
  padding: 96px 0 80px;
  background: var(--cream, #f9f7f4);
}
.search-listings .section-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.search-listings .section-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.search-listings .section-sub {
  font-size: 16px;
  color: var(--slate-light, #6b7280);
  margin-bottom: 40px;
  max-width: 560px;
}
.idx-widget-wrap {
  width: 100%;
  min-height: 500px;
}

/* === Search All Listings section (IDX Widget) — v2 === */
.search-listings {
  background: #fff;
}
.search-listings-header {
  background: var(--navy);
  padding: 80px 0 60px;
}
.search-listings-header .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 14px;
}
.search-listings-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.search-listings-header h2 .italic-accent {
  color: var(--gold, #b8964f);
}
.search-listings-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  line-height: 1.6;
}
.search-listings-widget {
  width: 100%;
}
.search-listings-widget > div {
  width: 100%;
  min-height: 600px;
}
/* Override IDX widget styles to look clean */
.search-listings-widget iframe {
  width: 100% !important;
  min-height: 700px !important;
  border: none !important;
}

/* === Vail Valley Listings Section (v3 — clean like mattblakerealestate.com) === */
.vv-listings {
  padding: 88px 0 72px;
  background: #fff;
}
.vv-listings-head {
  margin-bottom: 48px;
}
.vv-listings-head .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.vv-listings-head h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.15;
}
.vv-listings-sub {
  font-size: 16px;
  color: var(--slate-light, #6b7280);
  max-width: 520px;
}
/* Let the IDX widget cards display in a row — override IDX defaults */
.vv-widget-target {
  width: 100%;
}
.vv-widget-target > div,
.vv-widget-target > ul,
.vv-widget-target .IDX-showcaseContainer,
.vv-widget-target .IDX-showcaseWrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.vv-widget-target .IDX-showcaseItem,
.vv-widget-target li {
  flex: 1 1 calc(25% - 18px) !important;
  min-width: 220px !important;
  max-width: calc(25% - 18px) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.08) !important;
  background: #fff !important;
}
.vv-widget-target img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
}
.vv-listings-foot {
  margin-top: 48px;
  text-align: center;
}
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* === Listings Section (clean property cards) === */
.idx-section {
  padding: 88px 0 80px;
  background: #fff;
}
.idx-head {
  margin-bottom: 48px;
}
.idx-head .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.idx-head h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.15;
}
.idx-sub {
  font-size: 16px;
  color: #6b7280;
  max-width: 540px;
}
/* 4-column card grid */
.idx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .idx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .idx-grid { grid-template-columns: 1fr; } }

.idx-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.idx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
}
.idx-card-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.idx-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
}
.idx-badge.active  { background: var(--navy, #1B2A4E); }
.idx-badge.pending { background: var(--gold, #b8964f); }
.idx-card-body {
  padding: 18px 20px 20px;
}
.idx-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.idx-card-addr {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}
.idx-card-city {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}
.idx-card-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
/* Skeleton loading cards */
.idx-card-skel {
  height: 320px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: lskel 1.4s ease-in-out infinite;
  pointer-events: none;
}
/* View All button */
.idx-foot {
  margin-top: 48px;
  text-align: center;
}
.idx-view-all {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.idx-view-all:hover {
  background: var(--navy);
  color: #fff;
}

/* ============================================================
   INNER PAGES — Neighborhood & Search
   ============================================================ */

/* Nav dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-trigger {
  cursor: pointer;
  font-size: inherit;
  color: inherit;
  user-select: none;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 200px;
  z-index: 999;
  padding: 8px 0;
}
/* Invisible bridge so cursor can travel from trigger to menu without gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.nav-dropdown-menu a:hover { background: #f9f7f4; }

/* Inner page hero */
.inner-hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,.75) 0%, rgba(10,15,30,.2) 60%, transparent 100%);
}
.inner-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
  color: #fff;
}
.inner-hero-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.inner-hero-content h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 12px;
}
.inner-hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
}

/* Neighborhood about section */
.hood-about {
  padding: 88px 0 80px;
  background: #fff;
}
.hood-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .hood-about-grid { grid-template-columns: 1fr; gap: 40px; } }
.hood-about-text .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.hood-about-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hood-about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 32px;
}
.btn-navy {
  display: inline-block;
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity .2s;
}
.btn-navy:hover { opacity: .85; }
.hood-features {
  background: #f9f7f4;
  border-radius: 8px;
  padding: 36px 32px;
}
.hood-features-head {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 20px;
}
.hood-features ul { list-style: none; padding: 0; margin: 0 0 28px; }
.hood-features li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: #1f2937;
  padding: 8px 0;
  border-bottom: 1px solid #ede9e3;
}
.hood-features li:last-child { border-bottom: none; }
.hood-check { color: var(--gold, #b8964f); font-weight: 700; flex-shrink: 0; }
.hood-stats-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #ede9e3;
}
.hood-stats-box > div:last-child { border-bottom: none; }
.hood-stats-box span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  font-weight: 600;
}

/* Neighborhood listings iframe */
.hood-listings {
  padding: 72px 0 0;
  background: #f9f7f4;
}
.hood-listings .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.hood-listings h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.hood-listings-sub { font-size: 15px; color: #6b7280; margin-bottom: 0; }
.hood-iframe-wrap { margin-top: 40px; }
.hood-iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* Other neighborhoods grid */
.hood-others {
  padding: 88px 0 80px;
  background: #fff;
}
.hood-others .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.hood-others h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}
.hood-others-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .hood-others-grid { grid-template-columns: repeat(2, 1fr); } }
.hood-card {
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.hood-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.hood-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.hood-card-body { padding: 16px; background: #fff; }
.hood-card-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.hood-card-range { font-size: 13px; color: #6b7280; }

/* Search page */
.search-page-wrap { background: #f9f7f4; }
.search-page-iframe {
  width: 100%;
  height: 900px;
  border: none;
  display: block;
}

/* === Search Page — Browse by Area grid === */
.search-areas {
  padding: 80px 0 72px;
  background: #fff;
}
.search-areas-head {
  margin-bottom: 40px;
}
.search-areas-head .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.search-areas-head h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}
.search-areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .search-areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .search-areas-grid { grid-template-columns: repeat(2, 1fr); } }
.search-area-card {
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.search-area-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.search-area-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.search-area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,.72) 0%, transparent 55%);
}
.search-area-body {
  position: relative;
  z-index: 1;
  padding: 14px;
  color: #fff;
}
.search-area-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.search-area-range {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

/* === Neighborhood listing cards section === */
.hood-listings-cards {
  padding: 72px 0 80px;
  background: #f9f7f4;
}
.hood-listings-cards .lead-num {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #b8964f);
  margin-bottom: 12px;
}
.hood-listings-cards h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

/* === No listings fallback === */
.hood-no-listings {
  margin-top: 40px;
  padding: 56px 48px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-align: center;
  max-width: 560px;
}
.hood-no-listings-icon { font-size: 48px; margin-bottom: 20px; }
.hood-no-listings h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.hood-no-listings p { font-size: 16px; color: #6b7280; line-height: 1.6; }

/* ============================================================
   MOBILE NAV & RESPONSIVE FIXES
   ============================================================ */

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}
@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
}

/* Mobile dropdown menu */
.nav-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 16px 0 24px;
  z-index: 55;
}
.nav-mobile-menu a,
.nav-mobile-section {
  display: block;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav-mobile-menu a:hover,
.nav-mobile-section:hover { background: #f9f7f4; }
.nav-mobile-hoods {
  background: #f9f7f4;
  padding: 4px 0;
}
.nav-mobile-hoods a {
  padding: 10px 36px;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 500;
  text-transform: none;
}

/* Desktop "Neighborhoods" dropdown in main nav */
.nav-hood-dropdown {
  position: relative;
  display: inline-block;
}
.nav-hood-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-hood-caret {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
  transform: translateY(1px);
}
.nav-hood-caret.open { transform: rotate(180deg) translateY(-1px); }
.nav-hood-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 60;
  text-transform: none;
  letter-spacing: 0.04em;
}
.nav-hood-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--navy);
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s;
}
.nav-hood-menu a:hover {
  opacity: 1;
  background: #f9f7f4;
}
.nav-hood-menu a::after { display: none; }

/* Mobile "Neighborhoods" expandable trigger */
.nav-hood-trigger-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile listing cards — 1 column */
@media (max-width: 600px) {
  .idx-grid { grid-template-columns: 1fr !important; }
  .idx-card-img { height: 200px; }
  .hood-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hood-others-grid { grid-template-columns: repeat(2, 1fr); }
  .search-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .inner-hero { height: 320px; }
  .inner-hero-content h1 { font-size: 36px; }
}

/* Tablet — 2 column listings */
@media (max-width: 900px) and (min-width: 601px) {
  .idx-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
