/* Davis Bartels Real Estate Blog Theme v2
   Warm, editorial, premium. Gold accents. Fast loading. */

:root {
  --bg: #faf8f5;
  --bg-alt: #f2eeea;
  --surface: #e8e4de;
  --gold: #b8a07a;
  --gold-dark: #9c8760;
  --gold-light: rgba(184,160,122,0.1);
  --accent-dark: #1a2a36;
  --dark: #0f0f0e;
  --text: #2a2826;
  --text-muted: #7a7568;
  --border: #e0dbd3;
  --display: "Cormorant Garamond", Georgia, serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --content-width: 760px;
  --page-width: 1100px;
}

/* ─── Reset ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* ─── Site Header ───────────────────────────────────── */

.site-header {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  color: #5a564a;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--dark);
}

/* ─── Page Headers ──────────────────────────────────── */

.page-header {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--dark);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #5a564a;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Post Grid ─────────────────────────────────────── */

.post-grid {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

/* Featured first card spans full width */
.post-grid .post-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.post-grid .post-card:first-child .post-card-image-link {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}
.post-grid .post-card:first-child .post-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.post-grid .post-card:first-child .post-card-title {
  font-size: 24px;
}

/* ─── Post Card ─────────────────────────────────────── */

.post-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  height: 220px;
}
.post-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image {
  transform: scale(1.05);
}
/* Clip the zoom */
.post-card { overflow: hidden; }

.post-card-body {
  padding: 24px;
}

.post-card-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7a6840;
  font-weight: 700;
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.post-card-tag:hover {
  color: var(--gold);
}

.post-card-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 400;
}

.post-card-title a {
  color: var(--dark);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--gold-dark);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.meta-sep {
  margin: 0 6px;
  color: var(--border);
}

/* ─── Single Post ───────────────────────────────────── */

.post-full {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.post-header {
  padding: 64px 0 40px;
  text-align: center;
}

.post-category {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid var(--gold);
  padding: 4px 14px;
  border-radius: 20px;
}

.post-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  color: var(--dark);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.post-author {
  font-weight: 500;
  color: var(--text);
}

.post-image {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  display: block;
}

/* ─── Post Content Typography ───────────────────────── */

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--dark);
  margin: 48px 0 16px;
  line-height: 1.3;
  font-weight: 700;
}
.post-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.75em;
  background: var(--gold);
  margin-right: 12px;
  border-radius: 2px;
  vertical-align: middle;
}

.post-content h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--dark);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 20px 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-alt);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 6px 6px 0;
}

.post-content strong {
  font-weight: 700;
  color: var(--dark);
}

.post-content a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--gold);
}

/* ─── CTA Box ───────────────────────────────────────── */

.cta-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 40px;
  margin: 64px 0;
  text-align: center;
}

.cta-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--gold-dark);
  color: white;
}

/* ─── Related Posts ──────────────────────────────────── */

.related-posts {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 48px;
}

.related-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.related-card:hover {
  background: var(--surface);
}

.related-card h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
  font-weight: 400;
}

.related-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Author Page ───────────────────────────────────── */

.author-header {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-location {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Pagination ────────────────────────────────────── */

.pagination {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.pagination-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-dark);
}

.pagination-link:hover {
  color: var(--gold);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Error Page ────────────────────────────────────── */

.error-page {
  text-align: center;
  padding: 120px 24px;
}

.error-code {
  font-family: var(--serif);
  font-size: 96px;
  color: var(--border);
  line-height: 1;
}

.error-message {
  font-size: 18px;
  color: var(--text-muted);
  margin: 16px 0 32px;
}

.btn-back {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.btn-back:hover {
  background: var(--gold-dark);
  color: white;
}

/* ─── Footer ────────────────────────────────────────── */

.site-footer {
  background: var(--accent-dark);
  color: #a0a0a0;
  padding: 64px 0 0;
}

.footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3.footer-heading {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 400;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13px;
  color: #999;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #666;
}
.footer-license {
  font-size: 11px !important;
  color: #555 !important;
  margin-top: 8px;
}
.footer-disclaimer {
  font-size: 10px !important;
  color: #4a4a4a !important;
  max-width: 700px;
  margin: 10px auto 0;
  line-height: 1.5;
  opacity: 0.7;
}

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .post-title {
    font-size: 28px;
  }

  .post-content {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 22px;
  }

  .post-content h3 {
    font-size: 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .author-header {
    flex-direction: column;
    text-align: center;
  }

  .cta-box {
    padding: 20px;
    margin: 32px 0;
  }

  .cta-box h3 {
    font-size: 18px;
  }

  .cta-box p {
    font-size: 14px;
  }

  /* Mobile table scroll */
  .data-table,
  .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .data-table th,
  .data-table td,
  .post-content th,
  .post-content td {
    padding: 10px 12px;
    white-space: nowrap;
  }

  /* TOC mobile */
  .toc {
    padding: 16px 20px;
  }

  .toc a {
    font-size: 13px;
  }

  /* FAQ mobile */
  .faq-item {
    padding: 16px;
  }

  .faq-item h3 {
    font-size: 15px;
  }

  .faq-item p {
    font-size: 14px;
  }

  /* SVG charts mobile */
  .data-chart svg {
    padding: 8px;
  }

  /* Author box mobile */
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  /* Video embed mobile */
  .video-embed {
    margin: 0 -16px 24px;
    border-radius: 0;
  }

  /* Images should never overflow */
  .post-content img,
  .post-body-image img,
  .listing-photo img,
  .listing-hero img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .logo-img {
    height: 28px;
  }

  .page-header {
    padding: 24px 16px 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .post-full {
    padding: 0 16px 48px;
  }

  .post-header {
    padding: 24px 0 20px;
  }

  .post-title {
    font-size: 24px;
  }

  .post-content {
    font-size: 15px;
  }

  .post-content h2 {
    font-size: 20px;
    margin: 32px 0 12px;
  }

  .post-card-body {
    padding: 16px;
  }

  .post-card-title {
    font-size: 17px;
  }

  .post-card-image-link {
    height: 160px;
  }

  /* Tap targets minimum 44px for mobile SEO */
  .site-nav a,
  .pagination-link,
  .cta-button,
  .toc a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-col a {
    display: inline-block;
    padding: 4px 0;
    min-height: 44px;
    line-height: 36px;
  }
}

/* ─── Table of Contents ─────────────────────────────── */

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.toc h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  font-size: 14px;
  color: var(--gold-dark);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.toc a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.toc a:hover {
  color: var(--gold);
}

/* ─── Data Tables ───────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:nth-child(even) td {
  background: var(--bg-alt);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.post-content th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.post-content tr:nth-child(even) td {
  background: var(--bg-alt);
}

/* ─── FAQ Section ───────────────────────────────────── */

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: var(--bg);
}

.faq-item h3 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ─── Body Images ───────────────────────────────────── */

.post-body-image {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-body-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body-image figcaption {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0 0;
  text-align: center;
  font-style: italic;
}

/* ─── Author Box ────────────────────────────────────── */

.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 32px 0;
}

.author-box-avatar {
  width: 80px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.author-box-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 4px;
}

.author-box-title {
  font-size: 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.author-box-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Video Embed ───────────────────────────────────── */

.video-embed {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ─── Ghost Content Cards ───────────────────────────── */

.kg-width-wide { margin-left: -5%; margin-right: -5%; }
.kg-width-full { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.kg-width-wide img, .kg-width-full img { max-width: 100%; }

/* ─── Listing Posts ─────────────────────────────────── */

.listing-hero {
  margin: 0 0 32px;
  text-align: center;
}
.listing-hero img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.listing-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px auto 32px;
  max-width: 600px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
}

.listing-photo {
  margin: 24px 0;
  text-align: center;
}
.listing-photo img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.listing-map {
  margin: 32px 0;
  text-align: center;
}
.listing-map iframe {
  width: 100%;
  max-width: 900px;
  height: 400px;
  border: 0;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Author section */
.post-content .kg-image-card,
.post-content figure {
  text-align: center;
}
.post-content .kg-image-card img,
.post-content figure img {
  display: block;
  margin: 0 auto;
}

.post-body-image {
  text-align: center;
  margin: 24px 0;
}
.post-body-image img {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .listing-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat {
    flex: 0 0 45%;
  }
  .stat-value {
    font-size: 18px;
  }
}

/* ─── Data Charts ──────────────────────────────────── */

.data-chart {
  margin: 28px 0;
  text-align: center;
}
.data-chart svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.chart-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* ─── Local Guide / Neighborhoods Hub ─────────────────── */

.neighborhoods-hero {
  text-align: center;
  padding: 72px 24px 40px;
  max-width: var(--page-width);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  margin: 0 6px;
  color: var(--border);
}

.neighborhoods-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--dark);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.neighborhoods-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Guide Tabs */
.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 2px solid var(--border);
}
.guide-tab {
  padding: 14px 22px;
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.guide-tab:hover { color: var(--dark); }
.guide-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.guide-tab-panel { display: none; }
.guide-tab-panel.active { display: block; }
.guide-loading { text-align: center; padding: 48px; color: var(--text-muted); }
.guide-empty { text-align: center; padding: 48px; color: var(--text-muted); font-size: 15px; }

.neighborhoods-controls {
  max-width: var(--page-width);
  margin: 0 auto 32px;
  padding: 24px 24px 0;
}

.hood-search {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-family: var(--sans);
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.hood-search:focus {
  border-color: var(--gold);
}
.hood-search::placeholder {
  color: var(--text-muted);
}

.hood-filters {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hood-filter-pill {
  padding: 8px 18px;
  font-size: 14px;
  font-family: var(--sans);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.hood-filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.hood-filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

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

.neighborhoods-loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

.hood-city-section {
  margin-bottom: 48px;
}

.hood-city-header {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--dark);
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.hood-city-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.hood-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hood-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hood-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hood-card-img {
  height: 160px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
}

.hood-card-body {
  padding: 16px;
}

.hood-card-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--dark);
  margin: 0 0 6px;
}

.hood-card-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.hood-card-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hood-stat {
  display: flex;
  flex-direction: column;
}

.hood-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.hood-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hood-card-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--gold-dark);
  background: rgba(200,169,107,0.1);
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.hood-city-wrapper {
  display: flex;
  flex-direction: column;
}
.hood-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(184,160,122,0.14);
  border: none;
  border-top: 1px solid rgba(184,160,122,0.25);
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: -4px;
  text-align: center;
  letter-spacing: 0.3px;
}
.hood-expand-btn:hover {
  background: rgba(184,160,122,0.25);
  color: #8a754f;
}
.hood-expand-btn.open {
  border-radius: 0;
  background: rgba(184,160,122,0.22);
}
.hood-expand-arrow {
  font-size: 11px;
  transition: transform 0.2s;
}
.hood-expand-btn.open .hood-expand-arrow {
  transform: rotate(0deg);
}
.hood-expand-label { flex: 1; text-align: center; }
.hood-drawer {
  display: none;
  padding: 12px 16px 16px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hood-drawer.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.hood-neighborhood-item {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.hood-neighborhood-item:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
}

/* Drawer tract items */
.drawer-section-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-dark);
  padding: 8px 10px 2px;
  margin-top: 4px;
}
.drawer-section-label:first-child { margin-top: 0; }
.drawer-subarea-label a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}
.drawer-subarea-label a:hover { color: var(--gold); }
a.drawer-tract-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
a.drawer-tract-item:hover { background: var(--gold-light); color: inherit; }
.drawer-tract-name {
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-tract-price {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.drawer-tract-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}
.hood-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 400px;
  overflow-y: auto;
}

.neighborhoods-seo-content {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.neighborhoods-cta {
  max-width: var(--content-width);
  margin: 0 auto 48px;
  padding: 0 24px;
}

/* ─── Enhanced Neighborhood Tag Pages ──────────────────── */

.hood-hero {
  position: relative;
  padding: 48px 24px;
  text-align: center;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hood-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(17,17,16,0.4), rgba(17,17,16,0.6));
}
.hood-hero > * {
  position: relative;
  z-index: 1;
}
.hood-hero .breadcrumb a,
.hood-hero .breadcrumb {
  color: rgba(255,255,255,0.8);
}
.hood-hero .breadcrumb a:hover {
  color: #fff;
}
.hood-hero .breadcrumb-sep {
  color: rgba(255,255,255,0.4);
}

.hood-name {
  font-family: var(--serif);
  font-size: 42px;
  color: #fff;
  margin: 8px 0 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hood-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
}

.hood-stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hood-stats-bar .hood-stat {
  align-items: center;
  text-align: center;
}
.hood-stats-bar .hood-stat-value {
  font-size: 16px;
  color: var(--gold-dark);
}
.hood-stats-bar .hood-stat-label {
  font-size: 11px;
}

.hood-section-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--dark);
  max-width: var(--page-width);
  margin: 32px auto 16px;
  padding: 0 24px;
}

.hood-local-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--dark);
  margin: 0 0 16px;
}

.hood-local-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hood-local-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.hood-local-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 12px;
}
.hood-local-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hood-local-card li {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.hood-local-card li:last-child {
  border-bottom: none;
}
.hood-local-card a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.hood-local-card a:hover {
  color: var(--gold);
  text-decoration: underline;
}

#hood-local {
  max-width: var(--page-width);
  margin: 32px auto;
  padding: 0 24px;
}

#hood-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
#hood-stats .hood-stat {
  align-items: center;
  text-align: center;
}
#hood-stats .hood-stat-value {
  font-size: 16px;
  color: var(--gold-dark);
}

/* City Description */
.hood-description-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hood-desc-content {
  max-width: var(--content-width);
  margin: 32px auto 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.hood-desc-content p { margin: 0 0 16px; }

/* Highlights */
#hood-highlights {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hood-highlights-list {
  max-width: var(--content-width);
  margin: 0 auto 32px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.hood-highlights-list li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hood-highlights-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Tract Grid & Cards */
#hood-tracts {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}
.tract-type-label {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold-dark);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.tract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
a.tract-card, .tract-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.tract-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.tract-card:target {
  box-shadow: 0 0 0 3px var(--gold);
  scroll-margin-top: 80px;
}
.tract-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tract-card-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  flex: 1;
}
.tract-badge-gated {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 2px 8px;
  border-radius: 10px;
}
.tract-card-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.tract-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tract-card-details span {
  white-space: nowrap;
}
.tract-card-hoa {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tract-card-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* Sub-area blocks */
.subarea-block {
  margin-bottom: 32px;
}
.subarea-header {
  margin-bottom: 12px;
}
.subarea-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--dark);
  margin: 0 0 6px;
}
.subarea-name a {
  color: var(--dark);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 0.2s;
}
.subarea-name a:hover { color: var(--gold-dark); }
.subarea-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}

/* Schools */
#hood-schools {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}
.school-district {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.school-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.school-card h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
.school-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.school-card li {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.school-card li:last-child { border-bottom: none; }

/* Dining type badges */
.dining-type {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Map */
#hood-map {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ─── Price Chart ──────────────────────────────────────── */
.chart-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}
.chart-wrap canvas {
  max-height: 350px;
}
.chart-summary {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ─── Walk Score Gauges ────────────────────────────────── */
.walkscore-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}
.walkscore-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 16px 0;
}
.walkscore-gauge {
  text-align: center;
}
.walkscore-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 8px;
}
.walkscore-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.walkscore-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 8px auto 0;
  line-height: 1.5;
}
.walkscore-note a { color: var(--gold-dark); }

/* ─── Photo Gallery ───────────────────────────────────── */
.gallery-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  position: relative;
}
.gallery-viewport {
  overflow: hidden;
  border-radius: 8px;
}
.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}
.gallery-slide {
  flex: 0 0 100%;
  padding: 0;
}
.gallery-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.gallery-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
  line-height: 1;
}
.gallery-btn:hover { background: #fff; }
.gallery-btn-prev { left: 12px; }
.gallery-btn-next { right: 12px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-dot.active {
  background: var(--gold);
}

/* ─── Video Embeds ────────────────────────────────────── */
.videos-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-title {
  font-size: 13px;
  color: var(--text);
  padding: 10px 14px;
  margin: 0;
}

/* ─── Related Tracts (on tract pages) ─────────────────── */
.related-tracts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 32px;
}
.related-tract-link {
  display: block;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-tract-link:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: var(--text);
}
.related-tract-link strong {
  font-size: 14px;
  color: var(--dark);
}
.related-tract-link span {
  font-size: 12px;
  color: var(--gold-dark);
}

/* ─── Leaflet Map Overrides ───────────────────────────── */
.map-poi-marker {
  background: none !important;
  border: none !important;
}
.map-tract-marker {
  background: none !important;
  border: none !important;
}
.tract-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.tract-pin-hover .tract-pin,
.map-tract-marker:hover .tract-pin {
  transform: scale(1.5);
  background: var(--gold-dark);
}
.tract-popup { font-family: var(--sans); min-width: 180px; }
.tract-popup strong { font-family: var(--serif); font-size: 15px; color: var(--dark); display: block; margin-bottom: 4px; }
.tract-popup-link { display: inline-block; margin-top: 8px; color: var(--gold-dark); font-weight: 600; text-decoration: none; font-size: 13px; }
.tract-popup-link:hover { color: var(--gold); }

.hood-map-helper {
  font-size: 13px;
  color: var(--text-muted);
  margin: -8px 0 12px;
  font-style: italic;
}

/* ─── Post Author Box ──────────────────────────────────── */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 48px 0 32px;
  padding: 24px;
  background: rgba(184,160,122,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.post-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.post-author-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--dark);
  margin: 0 0 4px;
  font-weight: 500;
}
.post-author-bio {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.post-author-bio a { color: var(--gold-dark); text-decoration: none; font-weight: 600; }
.post-author-bio a:hover { color: var(--gold); }
@media (max-width: 600px) {
  .post-author-box { flex-direction: column; text-align: center; }
}

/* ─── Email Signup Box ──────────────────────────────────── */
.blog-signup-box {
  margin: 40px 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(184,160,122,0.12) 0%, rgba(184,160,122,0.04) 100%);
  border: 1px solid rgba(184,160,122,0.25);
  border-radius: 12px;
  text-align: center;
}
.blog-signup-inner { max-width: 520px; margin: 0 auto; }
.blog-signup-box h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.2;
}
.blog-signup-box p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.blog-signup-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-signup-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.blog-signup-form input[type="email"]:focus {
  border-color: var(--gold-dark);
}
.blog-signup-form button {
  padding: 12px 24px;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 600;
  background: var(--gold-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.blog-signup-form button:hover { background: #8a754f; }
.blog-signup-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.blog-signup-msg {
  margin: 12px 0 0 !important;
  font-size: 13px !important;
  min-height: 18px;
  font-style: italic;
}
.blog-signup-msg.success { color: #2e7d32 !important; font-style: normal !important; }
.blog-signup-msg.error   { color: #c62828 !important; font-style: normal !important; }

/* ─── About Page ────────────────────────────────────────── */
.about-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 16px 0 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--surface);
}
.about-hero-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.about-hero h1 {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.1;
}
.about-subtitle {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--gold-dark);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .about-hero { flex-direction: column; text-align: center; gap: 20px; }
  .about-hero-img { width: 140px; height: 140px; }
  .about-hero h1 { font-size: 30px; }
}

/* ─── Tract Page Content Sections ─────────────────────── */
table.quick-facts,
table.market-snapshot {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-family: var(--sans);
  font-size: 15px;
}
table.quick-facts th,
table.quick-facts td,
table.market-snapshot th,
table.market-snapshot td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface);
}
table.quick-facts th,
table.market-snapshot th {
  background: rgba(184,160,122,0.08);
  color: var(--gold-dark);
  font-weight: 600;
  width: 40%;
}
table.quick-facts tr:last-child td,
table.quick-facts tr:last-child th,
table.market-snapshot tr:last-child td,
table.market-snapshot tr:last-child th {
  border-bottom: none;
}

.tract-price-chart-placeholder {
  margin: 16px 0 24px;
  background: #fff;
  border: 1px solid var(--surface);
  border-radius: 8px;
  padding: 16px;
  min-height: 320px;
  position: relative;
}
.tract-chart-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.author-box {
  background: rgba(184,160,122,0.06);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 32px 0;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}
.author-box p { margin: 0 0 8px; }
.author-box p:last-child { margin: 0; color: var(--text-muted); font-size: 13px; }

.tract-page-map-wrap {
  margin: 32px 0;
}
.tract-page-map-heading {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--dark);
  margin: 0 0 8px;
}
.tract-page-map-helper {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.tract-pin-focus {
  width: 22px;
  height: 22px;
  background: var(--gold-dark);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  animation: tractPinPulse 2s ease-out infinite;
}
@keyframes tractPinPulse {
  0%   { box-shadow: 0 3px 10px rgba(0,0,0,0.35), 0 0 0 0 rgba(184,160,122,0.5); }
  70%  { box-shadow: 0 3px 10px rgba(0,0,0,0.35), 0 0 0 16px rgba(184,160,122,0); }
  100% { box-shadow: 0 3px 10px rgba(0,0,0,0.35), 0 0 0 0 rgba(184,160,122,0); }
}
.tract-pin-faded {
  width: 12px;
  height: 12px;
  background: rgba(184,160,122,0.75);
  border: 2px solid #fff;
}

/* ─── Hub Map ──────────────────────────────────────────── */
#hub-map-wrap {
  max-width: var(--page-width);
  margin: 0 auto 32px;
  padding: 0 24px;
}
#hub-map {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--surface);
}
.hub-city-marker { background: none !important; border: none !important; }
.hub-marker-pin {
  position: relative;
  background: var(--gold-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}
.hub-marker-pin:hover { transform: scale(1.08); background: #8a754f; }
.hub-marker-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--gold-dark);
}
.hub-popup { font-family: var(--sans); min-width: 200px; }
.hub-popup strong { font-family: var(--serif); font-size: 16px; color: var(--dark); display: block; margin-bottom: 4px; }
.hub-popup-tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-style: italic; }
.hub-popup-count { font-size: 12px; color: var(--gold-dark); font-weight: 600; margin-bottom: 8px; }
.hub-popup-cta { display: inline-block; color: var(--gold-dark); font-weight: 600; text-decoration: none; font-size: 13px; }
.hub-popup-cta:hover { color: var(--gold); }

/* ─── City Wrapper Flash (when clicked from hub map) ───── */
.hood-city-flash {
  animation: cityFlash 1.5s ease-out;
}
@keyframes cityFlash {
  0%   { box-shadow: 0 0 0 0 rgba(184,160,122,0.6); }
  50%  { box-shadow: 0 0 0 12px rgba(184,160,122,0.0); }
  100% { box-shadow: 0 0 0 0 rgba(184,160,122,0.0); }
}

/* ─── Neighborhoods Hero Helper Text ───────────────────── */
.neighborhoods-helper {
  max-width: 680px;
  margin: 8px auto 0;
  font-size: 14px;
  color: var(--gold-dark);
  font-style: italic;
  font-weight: 500;
}

/* ─── Responsive: Neighborhoods ────────────────────────── */

@media (max-width: 768px) {
  .neighborhoods-title { font-size: 28px; }
  .hood-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hood-local-grid { grid-template-columns: 1fr; }
  .hood-name { font-size: 32px; }
  #hood-stats { gap: 16px; flex-wrap: wrap; }
  .hood-filters { overflow-x: auto; flex-wrap: nowrap; }
  .guide-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .guide-tab { flex-shrink: 0; font-size: 13px; padding: 12px 16px; }
  .post-grid .post-card:first-child { grid-column: auto; display: block; grid-template-columns: none; }
  .post-grid .post-card:first-child .post-card-image-link { height: 220px; min-height: auto; aspect-ratio: 3 / 2; }
  .post-grid .post-card:first-child .post-card-body { padding: 24px; }
  .post-grid .post-card:first-child .post-card-title { font-size: 20px; }
  .tract-grid { grid-template-columns: repeat(2, 1fr); }
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
  .hood-highlights-list { grid-template-columns: 1fr; }
  .walkscore-grid { gap: 24px; }
  .gallery-slide img { height: 280px; }
  .videos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hood-card-grid { grid-template-columns: 1fr; }
  .hood-card-stats { flex-direction: column; gap: 4px; }
  #hood-stats { gap: 12px; padding: 16px; }
  .neighborhoods-hero { padding: 40px 16px 24px; }
  .guide-tab { font-size: 12px; padding: 10px 12px; }
  .tract-grid { grid-template-columns: 1fr; }
  .schools-grid { grid-template-columns: 1fr; }
  .walkscore-grid { gap: 16px; flex-wrap: wrap; }
  .walkscore-gauge svg { width: 90px; height: 90px; }
  .gallery-slide img { height: 220px; }
  .gallery-btn { width: 32px; height: 32px; font-size: 18px; }
}

/* ─── Post Template Background ─────────────────────────── */
body.post-template { background: var(--bg-alt); }
body.post-template .post-full { background: var(--bg); padding: 0 24px 64px; border-radius: 0 0 12px 12px; margin-top: -1px; }

/* ─── Scroll Animations ────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .post-card {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s ease forwards;
  }
  .post-card:nth-child(2) { animation-delay: 0.08s; }
  .post-card:nth-child(3) { animation-delay: 0.16s; }
  .post-card:nth-child(4) { animation-delay: 0.24s; }
  .post-card:nth-child(5) { animation-delay: 0.32s; }
  .post-card:nth-child(6) { animation-delay: 0.4s; }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Print ─────────────────────────────────────────── */

@media print {
  .site-header, .site-footer, .cta-box, .related-posts, .pagination { display: none; }
  .post-content { font-size: 12pt; }
  body { color: #000; background: #fff; }
}

/* ─── Sticky Mobile Call CTA ──────────────────────── */
.mobile-call-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  background: linear-gradient(135deg, #b8a07a 0%, #9c8760 100%);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(184, 160, 122, 0.35), 0 2px 6px rgba(0,0,0,0.1);
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: callPulse 2.4s ease-in-out infinite;
}
.mobile-call-cta:hover, .mobile-call-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 160, 122, 0.5), 0 3px 8px rgba(0,0,0,0.12);
}
.mobile-call-cta svg { flex-shrink: 0; }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(184, 160, 122, 0.35), 0 2px 6px rgba(0,0,0,0.1), 0 0 0 0 rgba(184, 160, 122, 0.5); }
  50% { box-shadow: 0 6px 20px rgba(184, 160, 122, 0.35), 0 2px 6px rgba(0,0,0,0.1), 0 0 0 12px rgba(184, 160, 122, 0); }
}
@media (max-width: 768px) {
  .mobile-call-cta { display: inline-flex; }
  body { padding-bottom: 80px; }
}

/* ─── Lead Capture Form ────────────────────────────── */
.lead-capture {
  background: linear-gradient(135deg, #faf8f5 0%, #f2eeea 100%);
  border: 1px solid #e8e4de;
  border-radius: 14px;
  padding: 32px 28px;
  margin: 36px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.lead-capture-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7a6840;
  font-weight: 700;
  margin-bottom: 8px;
}
.lead-capture h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: #111110;
  margin: 0 0 8px;
  line-height: 1.2;
}
.lead-capture p.lead-capture-sub {
  font-size: 15px;
  color: #5a564a;
  margin: 0 0 20px;
  line-height: 1.55;
}
.lead-form .lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d3c9;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #111110;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: #b8a07a;
  box-shadow: 0 0 0 3px rgba(184, 160, 122, 0.18);
}
.lead-form textarea { resize: vertical; min-height: 80px; }
.lead-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.lead-form button[type=submit] {
  background: #111110;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.lead-form button[type=submit]:hover { background: #b8a07a; }
.lead-form button[type=submit]:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #fff;
  color: #111110 !important;
  border: 1.5px solid #b8a07a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.lead-call-btn:hover { background: #b8a07a; color: #fff !important; }
.lead-form-msg { margin-top: 12px; font-size: 14px; color: #5a564a; }
.lead-form-msg.error { color: #b03a3a; }
.lead-form-success { text-align: center; padding: 8px 0; }
.lead-form-success h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #52966e;
  margin: 0 0 8px;
}
.lead-form-success a { color: #b8a07a; font-weight: 600; }
.lead-trust { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e8e4de; flex-wrap: wrap; }
.lead-trust-item { font-size: 12px; color: #6e6a60; display: inline-flex; align-items: center; gap: 6px; }
.lead-trust-item:before { content: "✓"; color: #52966e; font-weight: 700; }
@media (max-width: 640px) {
  .lead-capture { padding: 24px 20px; }
  .lead-form .lead-row { grid-template-columns: 1fr; }
  .lead-capture h3 { font-size: 24px; }
}

/* ─── Quick Answer Box (AEO) ──────────────────────── */
.quick-answer {
  background: #faf8f5;
  border-left: 4px solid #b8a07a;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.quick-answer-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7a6840;
  font-weight: 700;
  margin-bottom: 6px;
}
.quick-answer p {
  margin: 0;
  font-size: 16px;
  color: #111110;
  line-height: 1.55;
  font-weight: 500;
}
