/*
Theme Name:  Scout The Villages
Theme URI:   https://scoutthevillages.com
Description: Custom lightweight theme for Scout The Villages — a 55+ real estate site focused on The Villages, FL. Built for Showcase IDX integration.
Version:     1.0
Author:      Scout Eveleth
Author URI:  https://scoutthevillages.com
License:     Private
Text Domain: scout-the-villages
*/

/* ============================================================
   SCOUT THE VILLAGES — Global Stylesheet
   ============================================================ */

/* 1. RESET + CSS VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #B91C1C;
  --red-mid:    #991B1B;
  --red-light:  #FEF2F2;
  --dark:       #1a1a1a;
  --text:       #1a1a1a;
  --muted:      #6b6b6b;
  --faint:      #e8e5e0;
  --bg:         #f9f8f6;
  --white:      #ffffff;
  --border:     rgba(0,0,0,0.1);
}

/* 1b. ACCESSIBILITY UTILITIES
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* 2. BASE TYPOGRAPHY
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.22;
  color: var(--text);
  font-weight: 600;
}
h2 { font-size: clamp(1.7rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
h3 { margin-bottom: 10px; }

a { color: inherit; text-decoration: none; }
p { line-height: 1.85; }

/* 3. LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

.section       { padding: 72px 0; }
.section-alt   { background: var(--bg); }
.section-dark  { background: #1a1a1a; padding: 72px 0; }
.section-red   { background: var(--red); padding: 72px 0; }

.divider    { border: none; border-top: 1px solid var(--faint); }
.divider-sm { border: none; border-top: 1px solid var(--faint); margin: 36px 0; }

.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block; }
.s-title { font-size: clamp(1.7rem, 2.8vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.s-body  { font-size: 1rem; color: var(--muted); font-weight: 300; line-height: 1.85; max-width: 520px; }
.s-head  { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* 4. REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.ready { opacity: 0; transform: translateY(14px); }
.reveal.ready.in { opacity: 1; transform: none; }

/* 5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-red              { background: var(--red); color: var(--white); }
.btn-red:hover        { background: var(--red-mid); }
.btn-white            { background: var(--white); color: var(--red); }
.btn-white:hover      { background: var(--red-light); }
.btn-ghost            { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost:hover      { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.5); }
.btn-outline          { background: transparent; color: var(--text); border: 1px solid var(--faint); }
.btn-outline:hover    { background: var(--red-light); border-color: var(--red); color: var(--red); }
.btn-outline-white         { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover   { background: rgba(255,255,255,0.1); }

/* 6. NAVIGATION
   ============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--faint);
  transition: box-shadow 0.2s;
}
#nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: 'Lora', serif; font-size: 17px; font-weight: 600; color: var(--text); white-space: nowrap; }
.logo-sub  { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; margin-top: 2px; white-space: nowrap; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg); color: var(--red); }
.nav-links .nav-cta { background: var(--red); color: var(--white); padding: 8px 20px; margin-left: 8px; border-radius: 6px; white-space: nowrap; }
.nav-links .nav-cta:hover { background: var(--red-mid); color: var(--white); }

/* Phone number — shared base */
.nav-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-phone:hover { color: var(--red); }
.nav-phone svg   { flex-shrink: 0; }
/* Desktop: inside nav-links list item */
.nav-links .nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  min-height: 48px;
}
/* Mobile sticky: shown next to hamburger; hidden on desktop */
.nav-phone--sticky { display: none; }

/* Dropdown trigger button */
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn { background: var(--bg); color: var(--red); }

.nav-dropdown-chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }

/* Dropdown menu */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--faint);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  min-width: 210px;
  padding: 6px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--red); }
.nav-dropdown-all { font-weight: 500; color: var(--red) !important; }
.nav-dropdown-all:hover { background: var(--red-light) !important; }

.nav-dropdown-divider { border-top: 1px solid var(--faint); margin: 4px 8px; }

/* Sub-menus (nested inside Resources dropdown) */
.nav-sub { position: relative; }
.nav-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-sub-btn:hover,
.nav-sub.open .nav-sub-btn { background: var(--bg); color: var(--red); }
.nav-sub-chevron { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.2s; }
.nav-sub.open .nav-sub-chevron { transform: rotate(90deg); }

.nav-sub-menu {
  display: none;
  position: absolute;
  top: -6px;
  right: calc(100% + 6px);
  left: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--faint);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 6px;
  z-index: 201;
}
.nav-sub.open .nav-sub-menu { display: block; }
.nav-sub-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.nav-sub-menu a:hover { background: var(--bg); color: var(--red); }

/* Dropdown/sub-menu hover is JS-driven (150ms open delay, 300ms close grace period).
   No CSS :hover rules here — they have no delay or keyboard support. */

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }

/* 7. HERO (homepage)
   ============================================================ */
.hero {
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero .container { position: relative; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}
.hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 8. PATH CARDS
   ============================================================ */
.path-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.path-card {
  border: 1.5px solid var(--faint);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.path-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(185,28,28,0.1);
  transform: translateY(-3px);
}
.path-card .card-icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.path-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.path-card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* 9. WHY SCOUT
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.why-list { list-style: none; }
.why-item { display: flex; gap: 18px; margin-bottom: 32px; align-items: flex-start; }
.why-item:last-child { margin-bottom: 0; }
.why-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--red-light);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.why-item h4 { font-family: 'Lora', serif; font-size: 1rem; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.why-photo {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px solid var(--faint);
}

/* 10. AREA CARDS
   ============================================================ */
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.area-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--faint);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.area-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.area-card-img {
  height: 160px;
  background: linear-gradient(135deg, #7f1d1d, #B91C1C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.area-card-body { padding: 20px; background: var(--white); }
.area-card-body h3 { font-family: 'Lora', serif; font-size: 1.1rem; margin-bottom: 6px; }
.area-card-body p { font-size: 0.875rem; color: var(--muted); margin-bottom: 12px; }
.area-card-link { font-size: 0.875rem; font-weight: 500; color: var(--red); display: inline-flex; align-items: center; gap: 4px; }

/* 11. IDX WRAPPER
   ============================================================ */
.idx-wrapper { background: var(--bg); border-radius: 10px; border: 1px solid var(--faint); padding: 24px; min-height: 300px; }
.idx-wrapper-placeholder { padding: 60px 24px; text-align: center; color: var(--muted); }
.idx-wrapper-placeholder strong { display: block; margin-bottom: 8px; font-size: 1rem; }
.idx-wrapper-placeholder p { font-size: 0.875rem; }

/* IDX placeholder — used by template-parts/idx-placeholder.php (property type / search pages)
   and by template-parts/idx-embed.php (village pages, Provision Error state) */
.idx-placeholder {
  background: #F3F4F6;
  border: 2px dashed #9CA3AF;
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  margin-top: 16px;
}
.idx-placeholder p          { margin: 0; color: #374151; font-size: 1rem; }
.idx-placeholder-inner      { max-width: 420px; margin: 0 auto; }
.idx-placeholder-icon       { font-size: 2.5rem; margin-bottom: 12px; }
.idx-placeholder-label      { font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; }
.idx-placeholder-note       { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

/* 12. REVIEWS
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.review-card {
  background: var(--white);
  border: 1px solid var(--faint);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.review-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 12px; letter-spacing: 3px; }
.review-text { color: var(--text); font-size: 0.95rem; margin-bottom: 16px; font-style: italic; line-height: 1.7; }
.review-author { font-weight: 600; font-size: 0.875rem; color: var(--muted); }

/* 13. ABOUT SCOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.about-photo {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px solid var(--faint);
}
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 24px; }

/* 14. CTA BAND
   ============================================================ */
.cta-band { background: var(--red); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 15. FOOTER
   ============================================================ */
footer { background: #1a1a1a; color: rgba(255,255,255,0.65); }
.footer-main { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-name { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.footer-descriptor { font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-license { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-sister {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-sister:hover { color: rgba(255,255,255,0.75); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-col h4 + h4 { margin-top: 24px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.15s; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-contact-list span { font-size: 0.875rem; }
.footer-serving {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.footer-serving-text { font-size: 0.875rem; text-align: center; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.footer-bottom-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal { font-size: 0.8rem; }
.footer-legal-links { display: flex; gap: 12px; align-items: center; font-size: 0.8rem; }
.footer-legal-links a { color: rgba(255,255,255,0.4); transition: color 0.15s; text-decoration: none; }
.footer-legal-links a:hover { color: var(--white); }

/* 16. INTERIOR PAGE HERO
   ============================================================ */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--faint); padding: 44px 0; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.page-hero .hero-desc { font-size: 1.05rem; color: var(--muted); max-width: 580px; margin: 0; }

/* 17. BREADCRUMB
   ============================================================ */
.breadcrumb { padding: 14px 0; font-size: 0.825rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; }

/* 18. GLANCE TABLE
   ============================================================ */
.glance-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.glance-table th,
.glance-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--faint); }
.glance-table th {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  width: 36%;
}
.glance-table td { font-weight: 500; }

/* 19. FAQ BLOCK
   ============================================================ */
.faq-list { list-style: none; max-width: 760px; }
.faq-item { border-top: 1px solid var(--faint); }
.faq-item:last-child { border-bottom: 1px solid var(--faint); }
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.faq-btn::after { content: '+'; font-size: 1.4rem; color: var(--red); flex-shrink: 0; transition: transform 0.2s; line-height: 1; }
.faq-item.open .faq-btn::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 4px 0 20px; color: var(--text); font-size: 1rem; line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* 20. POPULAR SEARCHES + NEIGHBORHOODS HUB
   ============================================================ */
.popular-searches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.popular-search-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1.5px solid var(--faint);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.popular-search-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* Questions list */
.questions-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.questions-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--faint);
}
.questions-num { font-size: 1.4rem; font-weight: 700; color: var(--red); min-width: 28px; line-height: 1.3; flex-shrink: 0; }
.questions-item strong { display: block; margin-bottom: 4px; font-size: 0.975rem; }
.questions-item span { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.questions-item a { color: var(--red); }

/* Neighborhood section wrapper */
.nhd-section { border-top: 3px solid var(--red); padding-top: 40px; }

/* Area stats bar */
.nhd-section-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--faint);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 28px;
}
.nhd-stat {
  flex: 1;
  min-width: 140px;
  padding: 14px 18px;
  border-right: 1px solid var(--faint);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nhd-stat:last-child { border-right: none; }
.nhd-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.nhd-stat-value { font-size: 0.9rem; font-weight: 500; color: var(--text); }

/* Coming soon note */
.nhd-coming-soon { margin-top: 16px; font-size: 0.825rem; color: var(--muted); }
.nhd-coming-soon a { color: var(--red); }

/* 20b. RELATED NEIGHBORHOODS
   ============================================================ */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  border: 1px solid var(--faint);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.related-card:hover { border-color: var(--red); box-shadow: 0 2px 12px rgba(185,28,28,0.08); }
.related-card h4 { font-family: 'Lora', serif; font-size: 0.95rem; margin-bottom: 4px; }
.related-card p { margin: 0; font-size: 0.825rem; color: var(--muted); }

/* 21. NEIGHBORHOOD PAGE SPECIFICS
   ============================================================ */
.why-buyers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.why-buyers-card { background: var(--white); border-radius: 10px; padding: 28px; border: 1px solid var(--faint); }
.why-buyers-card .card-icon-circle {
  width: 44px; height: 44px;
  background: var(--red-light); color: var(--red);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; margin-bottom: 16px;
}
.why-buyers-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-buyers-card p  { font-size: 0.9rem; color: var(--muted); margin: 0; }

.amenity-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.amenity-card { background: var(--white); border-radius: 10px; padding: 24px; border: 1px solid var(--faint); }
.amenity-card h3 { font-size: 1rem; margin-bottom: 14px; color: var(--red); }
.amenity-card ul { list-style: none; font-size: 0.9rem; color: var(--muted); line-height: 2.0; }
.amenity-card strong { color: var(--text); }

/* IDX placeholder — see section 11 for canonical rule */

/* Neighborhood Content (shared template wrapper) ------------------- */
.neighborhood-content .section { padding-top: 56px; padding-bottom: 56px; }

.neighborhood-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.neighborhood-pill-link {
  display: block; padding: 10px 14px;
  border: 1.5px solid var(--red); border-radius: 6px;
  font-size: 0.9rem; color: var(--red); font-weight: 600;
  text-decoration: none; background: var(--red-light);
  transition: background 0.15s;
}
.neighborhood-pill-link:hover { background: var(--red); color: var(--white); }
.neighborhood-pill-plain {
  display: block; padding: 10px 14px;
  border: 1px dashed var(--faint); border-radius: 6px;
  font-size: 0.9rem; color: var(--muted);
}

/* Neighborhood photo cards */
.neighborhood-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .neighborhood-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .neighborhood-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.neighborhood-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark);
    border: 1px solid var(--faint);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neighborhood-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.neighborhood-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.neighborhood-card__placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: var(--muted);
}

.neighborhood-card__name {
    display: block;
    padding: 12px 16px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--white);
    text-align: center;
}

.neighborhood-card--plain {
    opacity: 0.6;
    cursor: default;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.two-col--wide { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }

.callout {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
}
.callout p { margin: 0; font-size: 0.95rem; line-height: 1.8; }

.stat-highlight { font-size: 1.5rem; font-weight: 700; color: var(--red); display: block; margin-bottom: 4px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.dist-list { list-style: none; line-height: 2.4; font-size: 0.95rem; }
[id] { scroll-margin-top: 84px; }

/* 22. AREAS HUB — COMPARE TABLE + DETAIL LAYOUT
   ============================================================ */

/* Comparison table */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid var(--faint); margin-bottom: 16px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.compare-table thead th {
  background: var(--dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}
.compare-table thead th:first-child { background: #111; width: 170px; }
.compare-table tbody tr:nth-child(even) td { background: var(--bg); }
.compare-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--faint); vertical-align: top; line-height: 1.5; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-row-label { font-weight: 600; color: var(--text); background: var(--bg) !important; white-space: nowrap; }
.compare-best { color: #166534; font-weight: 500; }
.compare-high { color: #991b1b; font-weight: 500; }
.compare-note { font-size: 0.825rem; color: var(--muted); margin-top: 8px; }
.compare-note a { color: var(--red); }

/* Area detail layout (text + data card side by side) */
.area-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.area-detail-grid--flip { grid-template-columns: 340px 1fr; }

/* Area data card */
.area-data-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--faint); }
.area-data-card-header { padding: 22px 24px; }
.area-data-card-header h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.area-data-card-body { background: var(--white); }
.area-data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--faint);
  font-size: 0.875rem;
}
.area-data-row:last-child { border-bottom: none; }
.area-data-label { color: var(--muted); flex-shrink: 0; }
.area-data-value { font-weight: 600; color: var(--text); text-align: right; }
.area-data-value.best { color: #166534; }
.area-data-value.high { color: #991b1b; }

/* Area detail content */
.area-detail-content h2 { margin-bottom: 16px; }
.area-detail-content p { color: var(--muted); margin-bottom: 16px; }
.area-bullets { list-style: none; padding: 0; margin: 16px 0; }
.area-bullets li {
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--faint);
  line-height: 1.5;
}
.area-bullets li:last-child { border-bottom: none; }
.area-bullets li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--red); border-radius: 2px; }

/* Right for you callout */
.area-right-for {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid var(--faint);
  font-size: 0.9rem;
  margin: 20px 0;
  line-height: 1.7;
}
.area-right-for strong { display: block; color: var(--red); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* Featured research card variant */
.research-card--featured { border-color: var(--red); background: var(--red-light); }
.research-card--featured h3 { color: var(--red); }
.research-card--featured .research-link { color: var(--red-mid); }

/* 22b. LAYOUT UTILITIES
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.comparison-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }

/* 22b. FORMS
   ============================================================ */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-field label .req { color: var(--red); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--faint);
  border-radius: 6px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-notice { padding: 16px 20px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
.form-notice--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-notice--error   { background: var(--red-light); border: 1px solid rgba(185,28,28,0.25); color: #991b1b; }
.form-honeypot { display: none !important; visibility: hidden !important; }

/* 23. AREA DETAIL PAGES — COMPARE + UTILITIES
   ============================================================ */
.two-col--top { align-items: start; }
.h-small { font-size: 1rem; margin-top: 24px; margin-bottom: 12px; }
.link-red { color: var(--red); }

/* Area compare grid (North / Central / South pages) */
.area-compare-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.area-compare-card { background: var(--white); border: 1px solid var(--faint); border-radius: 10px; padding: 24px; }
.area-compare-card--current { border: 2px solid var(--red); }
.area-compare-label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.area-compare-label--current { color: var(--red); }
.area-compare-label--link { color: var(--dark); text-decoration: none; }
.area-compare-label--link:hover { color: var(--red); }
.area-compare-list { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; line-height: 2.2; }
.area-compare-pro::before { content: "✓ "; color: #16a34a; font-weight: 600; }
.area-compare-con::before { content: "△ "; color: var(--muted); }
.area-compare-note { margin-top: 20px; font-size: 0.875rem; }

/* Contact page specifics */
.contact-method { margin-bottom: 28px; }
.contact-method-label { font-size: 1rem; font-weight: 600; margin-bottom: 6px; font-family: 'Lora', serif; }
.contact-method-phone { font-size: 1.25rem; font-weight: 700; color: var(--red); text-decoration: none; display: block; }
.contact-method-email { font-size: 1rem; font-weight: 500; color: var(--red); text-decoration: none; display: block; }
.contact-method-note { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 4px; margin-bottom: 0; }
.contact-method-note strong { color: var(--text); }
.contact-method-value { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.contact-form-card { background: var(--bg); border-radius: 12px; padding: 40px; border: 1px solid var(--faint); }
.contact-form-card h3 { margin-bottom: 8px; }
.contact-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.contact-step { display: flex; gap: 18px; align-items: flex-start; }
.contact-step-num { font-size: 1.75rem; font-weight: 700; color: var(--red); line-height: 1; flex-shrink: 0; min-width: 36px; font-family: 'Lora', serif; }
.contact-step h4 { font-size: 0.95rem; margin-bottom: 6px; }
.contact-step p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* Seller page specifics */
.seller-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.seller-fact-card { background: var(--white); border: 1px solid var(--faint); border-radius: 10px; padding: 24px; }
.seller-fact-icon { width: 40px; height: 40px; background: var(--red-light); color: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.seller-fact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.seller-fact-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin: 0; }
.why-photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* Key facts strip (buyers hub) */
.key-facts-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 36px; }
.key-fact { background: var(--bg); border-radius: 10px; padding: 28px; border-top: 3px solid var(--red); }
.key-fact-num { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--red); margin-bottom: 14px; font-family: 'DM Sans', sans-serif; text-transform: uppercase; }
.key-fact-text { font-size: 0.9rem; line-height: 1.8; margin-bottom: 14px; }

/* Neighborhood link grid (central + south area pages) */
.nhd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 28px; }
.nhd-grid-card { display: block; background: var(--white); border: 1px solid var(--faint); border-radius: 8px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.nhd-grid-card:hover { border-color: var(--red); }
.nhd-grid-name { display: block; color: var(--dark); font-size: 0.95rem; font-weight: 700; }
.nhd-grid-meta { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.nhd-footer-note { margin-top: 20px; font-size: 0.85rem; color: var(--muted); }

/* Golf cart destination cards */
.cart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.cart-card { background: var(--white); border: 1px solid var(--faint); border-radius: 10px; padding: 20px 22px; }
.cart-card strong { display: block; margin-bottom: 6px; }
.cart-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* New vs resale pros/cons */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.pros-cons-col h3 { font-size: 1rem; margin-bottom: 12px; }
.pros-cons-col ul { list-style: none; padding: 0; font-size: 0.9rem; line-height: 2.2; }

/* Property-type sidebar info card */
.info-card { background: var(--bg); border: 1px solid var(--faint); border-radius: 10px; padding: 28px; }
.info-card h3 { margin-bottom: 4px; }

/* 24. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .path-cards        { grid-template-columns: repeat(2, 1fr); }
  .area-cards        { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid      { grid-template-columns: 1fr 1fr; }
  .why-grid          { grid-template-columns: 1fr; gap: 48px; }
  .why-photo         { aspect-ratio: 16/9; }
  .about-grid        { grid-template-columns: 1fr; gap: 40px; }
  .about-photo       { aspect-ratio: 16/9; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 36px; }
  .related-grid      { grid-template-columns: 1fr 1fr; }
  .why-buyers-grid   { grid-template-columns: 1fr 1fr; }
  .amenity-grid      { grid-template-columns: 1fr 1fr; }
  .two-col           { grid-template-columns: 1fr; gap: 40px; }
  .two-col--wide     { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout    { grid-template-columns: 1fr; gap: 48px; }
  .comparison-2col   { grid-template-columns: 1fr; gap: 24px; }
  .area-compare-grid { grid-template-columns: 1fr; }
  .key-facts-strip   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body          { font-size: 16px; }
  .container    { padding: 0 20px; }
  .section      { padding: 56px 0; }
  .hero         { padding: 70px 0; }

  .nav-toggle   { display: flex; }
  #nav          { position: relative; }
  .nav-inner    { position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--faint);
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  #nav.nav-open .nav-links { display: flex; }
  .nav-links > li { position: static; width: 100%; }
  .nav-links a  { font-size: 16px; padding: 12px 14px; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-phone-li { display: none; }
  .nav-phone--sticky {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 4px;
    min-height: 48px;
    padding: 8px;
  }

  /* Mobile dropdowns expand inline */
  .nav-dropdown-btn { width: 100%; font-size: 16px; padding: 12px 14px; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 4px 16px;
    min-width: 0;
    border-left: 2px solid var(--faint);
    margin: 2px 14px 8px;
  }
  .nav-dropdown-menu a { font-size: 15px; padding: 9px 12px; }
  .nav-dropdown-divider { margin: 4px 4px; }
  .nav-dropdown-all { padding: 9px 12px !important; }

  /* Mobile sub-menus expand inline (no fly-out) */
  .nav-sub { position: static; }
  .nav-sub-btn { width: 100%; font-size: 16px; padding: 10px 14px 10px 20px; justify-content: space-between; border-left: 2px solid var(--faint); margin: 2px 0; border-radius: 0; }
  .nav-sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: 2px solid var(--faint);
    padding: 0 0 4px 0;
    margin: 0 14px 4px 34px;
    min-width: 0;
    background: transparent;
  }
  .nav-sub-menu a { font-size: 15px; padding: 9px 12px; min-height: 48px; display: flex; align-items: center; }

  .path-cards        { grid-template-columns: 1fr 1fr; gap: 12px; }
  .area-cards        { grid-template-columns: 1fr; }
  .reviews-grid      { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 32px; }
  .related-grid      { grid-template-columns: 1fr; }
  .why-buyers-grid   { grid-template-columns: 1fr; }
  .amenity-grid      { grid-template-columns: 1fr; }

  .hero-btns        { flex-direction: column; align-items: center; }
  .cta-band-btns    { flex-direction: column; align-items: center; }
  .footer-bottom-bar .container { flex-direction: column; text-align: center; }

  .grid-2col         { grid-template-columns: 1fr; gap: 0; }
  .comparison-2col   { grid-template-columns: 1fr; gap: 20px; }
  .contact-steps     { grid-template-columns: 1fr; gap: 20px; }
  .contact-form-card { padding: 28px 24px; }

  .hero h1 { font-size: 2rem; }
  .hero .hero-sub { font-size: 1rem; }
}

/* ── HOMEPAGE SPECIFIC ──────────────────────────────────────────────────── */
.home-hero { background: var(--dark); padding: 88px 0; position: relative; overflow: hidden; }
.home-hero::after { content: ''; position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 560px; height: 560px; border-radius: 50%; border: 60px solid rgba(255,255,255,0.03); pointer-events: none; }
.home-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.home-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--white); letter-spacing: -0.03em; margin-bottom: 18px; line-height: 1.1; }
.home-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.6); font-weight: 300; line-height: 1.85; margin-bottom: 36px; max-width: 520px; }
.home-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero search bar */
.hero-search { margin-top: 36px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-search-label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.hero-search-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.hero-search-select {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.9);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, background 0.15s;
}
.hero-search-select:focus { outline: none; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.hero-search-select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hero-search-select option { background: #1a1a1a; color: #fff; }

/* Browse Paths tile grid */
.browse-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.browse-tile {
  border: 1.5px solid var(--faint);
  border-radius: 10px;
  padding: 24px 20px 20px;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.browse-tile:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(185,28,28,0.1); transform: translateY(-3px); }
.browse-tile-icon {
  width: 44px;
  height: 44px;
  background: var(--red-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.browse-tile-icon svg { width: 20px; height: 20px; stroke: var(--red); }
.browse-tile h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.browse-tile p { font-size: 0.85rem; color: var(--muted); margin: 0 0 auto; line-height: 1.5; }
.browse-tile-link { display: block; font-size: 0.85rem; font-weight: 500; color: var(--red); margin-top: 14px; }

/* Area card label + meta tags */
.area-card-label { font-size: 0.75rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.area-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.area-card-meta span { font-size: 0.78rem; background: var(--bg); color: var(--muted); padding: 3px 10px; border-radius: 20px; border: 1px solid var(--faint); white-space: nowrap; }

/* Research & Compare grid */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.research-card {
  border: 1px solid var(--faint);
  border-radius: 10px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.research-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(185,28,28,0.08); }
.research-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--text); line-height: 1.35; }
.research-card p { font-size: 0.875rem; color: var(--muted); margin: 0 0 auto; line-height: 1.75; }
.research-link { display: block; font-size: 0.875rem; font-weight: 500; color: var(--red); margin-top: 20px; }

/* IDX full-width container */
.idx-full { width: 100%; }
.idx-full > * { max-width: 100% !important; }

.area-search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-search-card { background: var(--white); border: 1px solid var(--faint); border-radius: 10px; padding: 28px 26px; }
.area-search-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.area-search-card p { font-size: 13px; color: var(--muted); font-weight: 300; margin-bottom: 16px; line-height: 1.6; }

.home-about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: start; }
.home-about-photo { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: var(--faint); }
.home-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--faint); border-radius: 10px; padding: 32px 28px; text-decoration: none; display: block; transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: 0 8px 32px rgba(185,28,28,0.08); transform: translateY(-2px); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--dark); }
.service-card p { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.75; margin-bottom: 18px; }
.service-link { font-size: 13.5px; font-weight: 500; color: var(--red); }

@media (max-width: 900px) {
  .nhd-section-stats { flex-direction: column; }
  .nhd-stat { border-right: none; border-bottom: 1px solid var(--faint); }
  .nhd-stat:last-child { border-bottom: none; }
  .area-detail-grid,
  .area-detail-grid--flip { grid-template-columns: 1fr; gap: 36px; }
  .area-detail-grid--flip .area-data-card { order: -1; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .home-hero-inner { padding: 60px 0 52px; }
  .home-hero-actions { flex-direction: column; align-items: flex-start; }
  .area-search-grid { grid-template-columns: 1fr; }
  .home-about-grid { grid-template-columns: 1fr; }
  .home-about-photo { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .browse-tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-search-form { flex-direction: column; }
  .hero-search-select { min-width: 100%; }
  .browse-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .browse-tile { padding: 20px 16px 16px; }
  .research-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Village Page Template Styles (per village-page-spec.md)
   Corresponds to template-neighborhood.php — do not remove without
   checking that template first.
   ===================================================================== */

/* ── Byline ─────────────────────────────────────────────────────────── */
.byline {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 14px 0 20px;
  line-height: 1.5;
  border-bottom: 1px solid var(--faint);
  display: flex;
  align-items: center;
  gap: 16px;
}
.byline a       { color: var(--text); text-decoration: none; }
.byline a:hover { color: var(--red); }
.byline strong  { color: var(--text); }
.byline__text   { min-width: 0; }
.byline__name,
.byline__date   { display: block; }
.byline__headshot {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.byline__headshot--placeholder {
  background: #F3F4F6;
  border: 2px dashed #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.byline__headshot--placeholder svg { width: 28px; height: 28px; }

/* ── Hero fact-box section ──────────────────────────────────────────── */
.section-hero-facts { padding-top: 56px; padding-bottom: 56px; }

/* ── Hero layout (v6) — photo + Quick Answer side-by-side ──────────── */
.hero-qa-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.hero-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-qa-grid .quick-answer-callout { margin: 0; }

.hero-photo figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* ── Standalone fact box section ───────────────────────────────────── */
.section-village-factbox { padding-top: 0; padding-bottom: 56px; }

/* ── Village content sections (9–17) — tighter rhythm for dense content */
#village-content .section { padding: 48px 0; }

/* ── Fact grid — 2-column with gap-as-border ────────────────────────── */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--faint);
}
.fact-grid .fact-row      { background: var(--bg); border-bottom: none; }
.fact-grid .fact-row--bond { background: var(--red-light); }

/* Both variants share the card shell */
.fact-box,
.fact-box--full-width {
  background: var(--bg);
  border: 1px solid var(--faint);
  border-radius: 10px;
  overflow: hidden;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--faint);
  font-size: 0.875rem;
}
.fact-row:last-child  { border-bottom: none; }
.fact-row--bond       { background: var(--red-light); }

.fact-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  flex-shrink: 0;
}
.fact-value           { font-weight: 600; color: var(--text); text-align: right; }
.fact-value--red      { color: var(--red); }

/* ── Quick Answer callout ───────────────────────────────────────────── */
.quick-answer-callout {
  background: var(--bg);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.quick-answer-callout::before {
  content: 'Quick Answer';
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.quick-answer-callout p { margin: 0; font-size: 1rem; line-height: 1.8; }

/* ── Jump-to nav ────────────────────────────────────────────────────── */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}
.jump-nav__label {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}
.jump-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--faint);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.jump-nav a:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red);
}

/* ── IDX embed container ────────────────────────────────────────────── */
.idx-embed { margin-top: 8px; }

/* ── Prose block — "Why buyers look" paragraphs ─────────────────────── */
.prose-block > p              { margin-bottom: 20px; }
.prose-block > p:last-child   { margin-bottom: 0; }

/* ── Scout's local insight callout ─────────────────────────────────── */
.scout-insight-callout {
  background: #FCEBEB;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 48px;
}
.scout-insight-callout p { margin: 0; font-size: 0.95rem; line-height: 1.8; font-style: italic; }

/* ── Character and amenity photo slots (2:1 ratio) ──────────────────── */
.village-character-photo,
.village-amenity-photo {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 0 28px;
}
.village-character-photo img,
.village-amenity-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.village-character-photo figcaption,
.village-amenity-photo figcaption {
  font-size: 0.8rem; color: var(--muted);
  margin-top: 6px; font-style: italic;
}

/* ── Photo placeholders (staging preview, SCOUT_SHOW_PHOTO_PLACEHOLDERS = true) */
.photo-placeholder {
  background: #F3F4F6;
  border: 2px dashed #9CA3AF;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 6px;
}
.photo-placeholder p { margin: 0; color: #374151; }
.photo-placeholder__name    { font-weight: 700; font-size: 1.125rem; }
.photo-placeholder__spec    { font-size: 0.9375rem; }
.photo-placeholder__subject { font-size: 0.9375rem; font-style: italic; }
.photo-placeholder--hero      { aspect-ratio: 4 / 3; }
.photo-placeholder--character,
.photo-placeholder--amenity   { aspect-ratio: 2 / 1; margin: 0 0 28px; }
.photo-placeholder--headshot  { aspect-ratio: 3 / 4; }

/* ── IDX placeholder — canonical rule is in section 11 (IDX WRAPPER) ── */

/* ── Village map — 16:7 aspect ratio, rounded corners ──────────────── */
.village-map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
  aspect-ratio: 16 / 7;
}
.village-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ── Driving directions (subsection under map) ──────────────────────── */
.driving-directions         { margin-top: 32px; }
.directions-list {
  padding-left: 24px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 2.0;
  color: var(--text);
}
.directions-times {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── What's near section ────────────────────────────────────────────── */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.nearby-category__heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 10px;
}
.nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nearby-list li {
  font-size: 1rem;
  line-height: 1.65;
  padding: 7px 0;
  border-bottom: 1px solid var(--faint);
  color: var(--text);
}
.nearby-list li:last-child { border-bottom: none; }

/* ── What to check before you buy ──────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 760px;
}
.check-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--faint);
}
.check-item:first-child    { border-top: 1px solid var(--faint); }
.check-heading {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.check-detail {
  display: block;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}
.check-bonds-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
}
.check-bonds-link:hover { text-decoration: underline; }

/* ── FAQ section — static (non-accordion) village page pattern ──────── */
/* Override the global display:none rule for answers that follow a
   .faq-question heading. The old accordion uses .faq-btn (not
   .faq-question), so those pages are unaffected. */
.faq-question + .faq-answer { display: block; }

.faq-question {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 0 4px;
  margin: 0;
  line-height: 1.45;
}

/* ── Village page mobile overrides (600px) ──────────────────────────── */
/* Supplements the existing 900px and 640px breakpoints in this file.   */
@media (max-width: 600px) {
  /* Hero: photo + QA → stack */
  .hero-qa-grid  { grid-template-columns: 1fr; }

  /* Fact grid: 2-col → 1-col */
  .fact-grid     { grid-template-columns: 1fr; }

  /* What's near: 3-col → 1-col */
  .nearby-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Jump nav: 48px tap targets per ux-55-plus.md */
  .jump-nav a { height: 48px; padding: 0 16px; }
}

/* =====================================================================
   BLOG INFRASTRUCTURE
   Corresponds to home.php (Posts page), single.php, archive.php.
   Uses existing CSS variables and color patterns throughout.
   ===================================================================== */

/* ── Blog hero — dark, matches .home-hero background ───────────────── */
.blog-hero {
  background: var(--dark);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.blog-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.22;
}
.blog-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 540px;
  margin: 0;
  line-height: 1.7;
}
/* Single post variant — narrower H1 for long post titles */
.blog-hero--post h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  max-width: 760px;
}
/* Breadcrumb inside dark hero — override light-bg colours */
.blog-hero .breadcrumb {
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  padding-top: 0;
}
.blog-hero .breadcrumb a            { color: rgba(255,255,255,0.55); }
.blog-hero .breadcrumb a:hover      { color: var(--white); }
.blog-hero .breadcrumb .sep         { color: rgba(255,255,255,0.35); }

/* ── Blog post grid — 2 columns → 1 column on mobile ───────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

/* ── Blog card — matches .area-card / .related-card card shell ──────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--faint);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* 16:9 image slot — matches .blog-card__image */
.blog-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.03); }

/* Fallback gradient when no featured image is set */
.blog-card__image--placeholder {
  background: linear-gradient(135deg, var(--faint), #d4cfc9);
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Date meta — DM Sans, muted, small */
.blog-card__meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 400;
}

/* Post title — Lora, matching .related-card h4 weight */
.blog-card__title {
  font-family: 'Lora', serif;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.blog-card__title a:hover { color: var(--red); }

/* Excerpt — DM Sans body, muted, flex-grows to push link to bottom */
.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.blog-card__excerpt p { margin: 0; }

/* "Read more →" — matches .btn-outline behaviour */
.blog-card__link {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--faint);
  border-radius: 6px;
  padding: 9px 18px;
  text-decoration: none;
  align-self: flex-start;
  min-height: 44px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.blog-card__link:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red);
}

/* ── Pagination — centred, 48px tap targets per ux-55-plus.md ───────── */
.blog-pagination { margin-top: 16px; display: flex; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--faint);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.blog-pagination .page-numbers a:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red);
}
.blog-pagination .page-numbers .current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 600;
}
.blog-pagination .page-numbers .dots { border: none; min-width: 0; }

/* ── Single post — rich prose content ──────────────────────────────── */
/* .prose-block--blog adds styles for headings, lists, images, and links
   that the_content() can produce. These extend .prose-block without
   affecting the village page usage of that class (village pages use
   esc_html() per paragraph, so no block-level HTML is output there). */
.prose-block--blog h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 36px 0 16px; }
.prose-block--blog h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.prose-block--blog h4 { font-size: 1rem;   margin: 20px 0 10px; }
.prose-block--blog p  { margin-bottom: 20px; }
.prose-block--blog p:last-child { margin-bottom: 0; }
.prose-block--blog ul,
.prose-block--blog ol { padding-left: 24px; margin-bottom: 20px; line-height: 1.85; }
.prose-block--blog li { margin-bottom: 8px; }
.prose-block--blog img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px 0; }
.prose-block--blog figure { margin: 28px 0; }
.prose-block--blog figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; font-style: italic; text-align: center; }
.prose-block--blog blockquote {
  border-left: 3px solid var(--red);
  background: var(--red-light);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 28px 0;
}
.prose-block--blog blockquote p { margin: 0; font-style: italic; }
.prose-block--blog a { color: var(--red); text-decoration: underline; }
.prose-block--blog a:hover { color: var(--red-mid); }
.prose-block--blog hr { border: none; border-top: 1px solid var(--faint); margin: 36px 0; }
.prose-block--blog strong { font-weight: 600; }

/* ── Post tag pills (single.php below content) ──────────────────────── */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--faint);
}
.blog-tags__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}
/* Matches .popular-search-pill pattern */
.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--faint);
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.blog-tag-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

/* ── Blog responsive breakpoints ────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .blog-hero       { padding: 44px 0; }
  .blog-hero--post h1 { font-size: 1.5rem; }
  .blog-card__content { padding: 18px; }
}
