/* BayAreaHomes.com Main Stylesheet - Architectural Gazette & 1970s Broadsheet Aesthetic */

:root {
      --bah-forest: #2F5D50;
      --bah-forest-dark: #1E3D34;
      --bah-forest-deep: #162E27;
      --bah-sage: #8FAE9D;
      --bah-sage-light: #EBF2EE;
      --bah-sage-tint: #D6E3DC;
      --bah-newsprint: #F7F5F0;
      --bah-ink: #1C1917;
      --bah-ink-muted: #57534E;
      --bah-paper: #FFFFFF;
      --bah-border: rgba(47, 93, 80, 0.22);
      --font-serif: 'Playfair Display', Georgia, serif;
      --font-quote: 'Newsreader', Georgia, serif;
      --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --font-cinzel: 'Cinzel', serif;
    }

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

    body.bayareahomes-body {
      margin: 0;
      padding: 0;
      background-color: var(--bah-newsprint);
      color: var(--bah-ink);
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
    }

    .bah-header {
      background-color: var(--bah-paper);
      border-bottom: 1px solid var(--bah-border);
      padding: 0 0 16px;
    }

    .bah-top-corridor-bar {
      background-color: var(--bah-newsprint);
      color: #44403C;
      padding: 9px 16px;
      font-family: var(--font-cinzel);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      border-bottom: 1px solid rgba(47, 93, 80, 0.15);
    }

    .bah-top-corridor-bar .dot {
      color: var(--bah-forest);
      font-weight: bold;
    }

    .bah-masthead-inner {
      max-width: 1240px;
      margin: 20px auto 0;
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 6px;
    }

    .bah-masthead-brand-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
      width: 100%;
    }

    .bah-logo-img {
      width: 80px;
      height: 80px;
      object-fit: contain;
      flex-shrink: 0;
    }

    .bah-title-block {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .bah-kicker-tag {
      font-family: var(--font-cinzel);
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: var(--bah-forest);
      background-color: var(--bah-sage-light);
      padding: 3px 10px;
      border: 1px solid rgba(143, 174, 157, 0.5);
      display: inline-block;
      margin-bottom: 6px;
    }

    .bah-masthead-title {
      font-family: var(--font-serif);
      font-size: clamp(2.5rem, 5.5vw, 4.25rem);
      font-weight: 900;
      margin: 0;
      line-height: 1.05;
      color: var(--bah-ink);
      letter-spacing: -0.02em;
    }

    .bah-masthead-title a {
      color: inherit;
      text-decoration: none;
    }

    .bah-masthead-title .green-accent {
      color: var(--bah-forest);
      font-style: italic;
    }

    .bah-masthead-title .com-accent {
      font-size: 0.65em;
      color: var(--bah-sage);
      font-weight: 400;
      letter-spacing: normal;
    }

    .bah-masthead-subheadline {
      font-family: var(--font-quote);
      font-style: italic;
      font-size: 18px;
      color: var(--bah-ink-muted);
      margin: 6px 0 0;
      text-align: center;
    }

    .bah-dateline-bar {
      border-top: 3px double var(--bah-forest);
      border-bottom: 3px double var(--bah-forest);
      padding: 10px 16px;
      margin: 20px 0 0;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 12px;
    }

    @media (min-width: 640px) {
      .bah-dateline-bar {
        flex-direction: row;
      }
    }

    .bah-dateline-nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-family: var(--font-cinzel);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    .bah-dateline-nav a {
      color: var(--bah-forest);
      text-decoration: none;
      padding: 2px 6px;
      border-radius: 2px;
      transition: color 0.15s ease, background-color 0.15s ease;
    }

    .bah-dateline-nav a:hover {
      color: var(--bah-forest-deep);
      background-color: var(--bah-sage-light);
    }

    .bah-dateline-nav .dot {
      color: var(--bah-forest);
      font-weight: bold;
    }

    .dateline-date {
      font-family: var(--font-quote);
      font-style: italic;
      font-size: 15px;
      color: var(--bah-ink);
      font-weight: bold;
      text-transform: none;
      flex-shrink: 0;
    }

    .bah-container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Combined Section */
    .bah-combined-top-section {
      padding: 24px 0 48px;
      border-bottom: 1px solid var(--bah-border);
    }

    .bah-atlas-editorial-lead {
      margin-bottom: 36px;
    }

    .bah-atlas-headline {
      font-family: var(--font-serif);
      font-size: clamp(1.85rem, 3.8vw, 2.75rem);
      font-weight: 900;
      margin: 8px 0 12px;
      color: var(--bah-ink);
      letter-spacing: -0.01em;
      line-height: 1.15;
    }

    .bah-atlas-quote {
      font-family: var(--font-quote);
      font-style: italic;
      font-size: 18px;
      color: var(--bah-forest);
      border-left: 4px solid var(--bah-forest);
      padding: 8px 16px;
      background-color: rgba(255, 255, 255, 0.7);
      margin: 14px 0;
      line-height: 1.5;
    }

    .bah-atlas-description {
      font-size: 14px;
      color: #44403C;
      line-height: 1.65;
      max-width: 960px;
      margin: 0;
    }

    .bah-section-header {
      border-bottom: 2px solid var(--bah-forest);
      padding-bottom: 12px;
      margin-bottom: 28px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .bah-section-kicker {
      font-family: var(--font-cinzel);
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--bah-forest);
    }

    .bah-section-title {
      font-family: var(--font-serif);
      font-size: clamp(1.75rem, 3.5vw, 2.5rem);
      font-weight: 900;
      margin: 0;
      color: var(--bah-ink);
      letter-spacing: -0.01em;
    }

    .bah-3col-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
    }

    @media (min-width: 768px) {
      .bah-3col-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1080px) {
      .bah-3col-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .bah-card {
      background-color: var(--bah-paper);
      border: 1px solid var(--bah-border);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .bah-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(47, 93, 80, 0.12);
    }

    .bah-card-kicker {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 16px;
      background-color: var(--bah-sage-light);
      border-bottom: 1px solid var(--bah-border);
      font-family: monospace;
      font-size: 10px;
      text-transform: uppercase;
      color: var(--bah-forest);
      font-weight: bold;
    }

    .bah-card-hero {
      position: relative;
      height: 240px;
      overflow: hidden;
      background-color: var(--bah-forest-deep);
    }

    .bah-card-hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .bah-hero-vignette {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(22, 46, 39, 0.9) 0%, rgba(22, 46, 39, 0.2) 50%, transparent 100%);
      pointer-events: none;
    }

    .bah-card-badges-left {
      position: absolute;
      top: 12px;
      left: 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      z-index: 2;
    }

    .bah-status-badge {
      background-color: var(--bah-forest);
      color: #FFFFFF;
      font-family: var(--font-cinzel);
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 3px 8px;
      border: 1px solid var(--bah-sage);
    }

    .bah-builder-tag {
      position: absolute;
      top: 12px;
      right: 12px;
      background-color: #FFFFFF;
      color: var(--bah-ink);
      font-family: var(--font-cinzel);
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 3px 8px;
      border: 1px solid var(--bah-forest);
      z-index: 2;
    }

    .bah-price-ribbon {
      position: absolute;
      bottom: 12px;
      left: 16px;
      right: 16px;
      z-index: 2;
      color: #FFFFFF;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
    }

    .bah-price-eyebrow {
      font-family: var(--font-cinzel);
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--bah-sage);
      display: block;
    }

    .bah-price-value {
      font-family: var(--font-serif);
      font-size: 22px;
      font-weight: 800;
      margin: 2px 0 0;
      color: #FFFFFF;
    }

    .bah-card-body {
      padding: 20px 18px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .bah-community-title {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 800;
      line-height: 1.25;
      margin: 0 0 8px;
    }

    .bah-community-title a {
      color: var(--bah-ink);
      text-decoration: none;
    }

    .bah-community-title a:hover {
      color: var(--bah-forest);
    }

    .bah-editorial-headline {
      font-family: var(--font-quote);
      font-style: italic;
      font-size: 13.5px;
      line-height: 1.45;
      color: var(--bah-ink-muted);
      margin: 0 0 12px;
      padding-left: 10px;
      border-left: 3px solid var(--bah-forest);
    }

    .bah-community-desc {
      font-size: 13px;
      color: #44403C;
      line-height: 1.55;
      margin: 0 0 16px;
      flex: 1;
    }

    .bah-incentive-box {
      margin-bottom: 14px;
      padding: 8px 10px;
      background-color: var(--bah-sage-light);
      border: 1px solid rgba(47, 93, 80, 0.25);
      font-size: 11.5px;
      font-weight: 600;
      color: var(--bah-forest-dark);
    }

    .bah-btn-tour {
      width: 100%;
      background-color: var(--bah-forest);
      color: #FFFFFF;
      padding: 10px;
      font-family: var(--font-cinzel);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      text-align: center;
      border: none;
      cursor: pointer;
      text-decoration: none;
      display: block;
      transition: background-color 0.2s ease;
    }

    .bah-btn-tour:hover {
      background-color: var(--bah-forest-dark);
    }

    /* Map Section */
    .bah-map-section {
      padding: 48px 0;
      background-color: var(--bah-newsprint);
      border-bottom: 1px solid var(--bah-border);
    }

    .bah-map-wrapper {
      background-color: #FFFFFF;
      border: 2px solid var(--bah-border);
      padding: 24px;
      border-radius: 4px;
      box-shadow: 0 4px 16px rgba(47, 93, 80, 0.06);
    }

    .bah-svg-container {
      max-width: 600px;
      margin: 0 auto 24px;
      text-align: center;
    }

    .bah-filter-toggle-bar {
      border-top: 1px solid var(--bah-border);
      padding-top: 20px;
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px;
    }

    .bah-filter-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
    }

    .bah-filter-label {
      font-family: var(--font-cinzel);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--bah-forest);
    }

    .bah-filter-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: center;
    }

    .bah-filter-btn {
      padding: 6px 12px;
      font-family: monospace;
      font-size: 11px;
      background-color: var(--bah-newsprint);
      border: 1px solid var(--bah-border);
      color: var(--bah-ink);
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.15s ease;
    }

    .bah-filter-btn:hover {
      background-color: var(--bah-sage-light);
      border-color: var(--bah-forest);
    }

    .bah-filter-btn.active {
      background-color: var(--bah-forest);
      color: #FFFFFF;
      border-color: var(--bah-forest-dark);
      font-weight: bold;
    }

    /* News Section (Below Map) */
    .bah-news-section {
      background-color: #FFFFFF;
      border-bottom: 1px solid var(--bah-border);
      padding: 44px 0;
    }

    .bah-news-header-bar {
      border-top: 3px double var(--bah-forest);
      border-bottom: 3px double var(--bah-forest);
      padding: 8px 12px;
      margin-bottom: 24px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .bah-news-header-title {
      font-family: var(--font-cinzel);
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--bah-forest);
    }

    .bah-news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
    }

    .bah-news-article {
      background-color: var(--bah-newsprint);
      border: 1px solid var(--bah-border);
      padding: 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .bah-news-meta {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid var(--bah-border);
      padding-bottom: 6px;
      margin-bottom: 8px;
      font-family: monospace;
      font-size: 10px;
      color: #78716C;
    }

    .bah-news-headline {
      font-family: var(--font-serif);
      font-size: 16px;
      font-weight: 800;
      color: var(--bah-ink);
      margin: 0 0 8px;
      line-height: 1.25;
    }

    .bah-news-blurb {
      font-size: 12px;
      color: #44403C;
      line-height: 1.55;
      margin: 0 0 12px;
    }

    .bah-news-expanded {
      display: none;
      font-size: 12px;
      color: #33302E;
      line-height: 1.55;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed rgba(47, 93, 80, 0.3);
    }

    .bah-news-btn-more {
      font-family: var(--font-cinzel);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--bah-forest);
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* Buyer's Advocate (At the bottom) */
    .bah-buyers-guide-section,
    .bah-knowledge-section {
      padding: 48px 0 60px;
      background-color: var(--bah-newsprint);
      border-bottom: 1px solid var(--bah-border);
    }

    .bah-buyers-guide-grid,
    .bah-knowledge-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 28px;
    }

    @media (min-width: 900px) {
      .bah-buyers-guide-grid,
      .bah-knowledge-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .bah-article-card {
      background-color: #FFFFFF;
      border: 2px solid var(--bah-border);
      padding: 26px 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .bah-article-card:hover {
      border-color: var(--bah-forest);
      box-shadow: 0 6px 18px rgba(47, 93, 80, 0.1);
    }

    .bah-article-meta {
      font-family: monospace;
      font-size: 11px;
      color: #78716C;
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid var(--bah-border);
      padding-bottom: 8px;
      margin-bottom: 12px;
    }

    .bah-article-title {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 800;
      color: var(--bah-ink);
      line-height: 1.25;
      margin: 0 0 10px;
    }

    .bah-article-byline {
      font-size: 12px;
      color: var(--bah-ink-muted);
      margin-bottom: 12px;
    }

    .bah-article-excerpt {
      font-size: 13px;
      color: #44403C;
      line-height: 1.6;
      margin: 0 0 20px;
    }

    .bah-continued-link {
      font-family: var(--font-quote);
      font-style: italic;
      font-size: 15px;
      font-weight: 700;
      color: var(--bah-forest);
      text-decoration: underline;
      text-underline-offset: 4px;
      display: inline-block;
      transition: color 0.15s ease;
    }

    .bah-continued-link:hover {
      color: var(--bah-forest-deep);
    }

    /* Footer */
    .bah-footer {
      background-color: #FFFFFF;
      border-top: 3px double var(--bah-forest);
      padding: 44px 20px;
      text-align: center;
      font-size: 12px;
      color: var(--bah-ink-muted);
    }
