/* static/css/futurebay_magazine.css */
/* ==========================================================================
   FutureBay.com - Bay Area Homes Style Stylesheet
   Pure Vanilla CSS ("Small Pipe" Protocol - Zero Node.js / NPM Dependencies)
   Serves directly from Nginx static root on PX5 via 'collectstatic'
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --fb-ink: #1c1917;
  --fb-paper: #fffdf9;
  --fb-cream: #fbf8f2;
  --fb-gold: #b45309;
  --fb-gold-hover: #92400e;
  --fb-border: rgba(41, 37, 36, 0.18);
  --fb-border-light: rgba(41, 37, 36, 0.10);
  --fb-font-serif: 'Playfair Display', Georgia, serif;
  --fb-font-quote: 'Newsreader', Georgia, serif;
  --fb-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --fb-font-cinzel: 'Cinzel', serif;
}

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

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

.futurebay-header {
  background-color: var(--fb-paper);
  border-bottom: 1px solid var(--fb-border);
  padding: 36px 16px 22px;
  text-align: center;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.masthead-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #78716c;
  margin-bottom: 10px;
}

.masthead-top-bar .dot {
  color: var(--fb-gold);
  font-weight: 700;
}

.futurebay-masthead-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--fb-ink);
  line-height: 1;
}

.futurebay-masthead-title .masthead-logo-link {
  text-decoration: none;
  color: var(--fb-ink);
  display: inline-block;
  transition: opacity 0.2s ease;
}

.futurebay-masthead-title .masthead-logo-link:hover {
  opacity: 0.9;
}

.futurebay-masthead-title .masthead-logo-bay {
  font-style: italic;
  font-weight: 400;
  color: var(--fb-gold);
  margin-left: 1px;
}

.vintage-rule-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 0;
}

.rule-line {
  flex: 1;
  max-width: 160px;
  height: 2px;
  background-color: var(--fb-ink);
}

.rule-badge {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fb-gold);
  white-space: nowrap;
}

.masthead-subtitle {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 14.5px;
  color: #57534e;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 1970s Newspaper Masthead Dateline Bar */
.futurebay-dateline-bar {
  border-top: 3px double #292524;
  border-bottom: 3px double #292524;
  padding: 10px 16px;
  margin: 20px auto 0;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #44403c;
}

@media (min-width: 640px) {
  .futurebay-dateline-bar {
    flex-direction: row;
    padding: 10px 20px;
    gap: 16px;
  }
}

.dateline-region {
  font-family: var(--fb-font-cinzel);
  font-size: 10.5px;
  font-weight: 600;
  color: #78716c;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dateline-date {
  font-family: var(--fb-font-quote);
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  color: var(--fb-ink);
  text-transform: none;
  letter-spacing: normal;
}

.dateline-edition {
  font-family: var(--fb-font-cinzel);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fb-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.futurebay-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.futurebay-hero {
  background-color: #f7f3eb;
  border-bottom: 1px solid var(--fb-border);
  margin-bottom: 40px;
  padding: 40px 24px;
}

.hero-inner {
  max-width: 900px;
}

.hero-kicker {
  display: inline-block;
  background-color: var(--fb-gold);
  color: #fff;
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--fb-font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero-quote {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 18px;
  color: #44403c;
  margin: 0 0 14px;
  border-left: 3px solid var(--fb-gold);
  padding-left: 16px;
}

.hero-text {
  font-size: 14px;
  color: #57534e;
  margin: 0;
}

.futurebay-section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--fb-ink);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.section-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fb-gold);
  letter-spacing: 0.15em;
  display: block;
}

.section-title {
  font-family: var(--fb-font-serif);
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 0;
}

.section-count {
  font-family: monospace;
  font-size: 12px;
  color: #78716c;
  margin: 0;
}

.futurebay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

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

.futurebay-card {
  background-color: var(--fb-paper);
  border: 1px solid var(--fb-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;
}

.futurebay-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.futurebay-card-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: #f5f0e6;
  border-bottom: 1px solid var(--fb-border-light);
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: #78716c;
}

.futurebay-card-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #292524;
}

.futurebay-card-hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.futurebay-card:hover .hero-image {
  transform: scale(1.04);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.badge-container {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(28, 25, 23, 0.92);
  color: #fef3c7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.badge-icon {
  width: 11px;
  height: 11px;
  color: #fed7aa;
}

.price-ribbon {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

.price-eyebrow {
  display: block;
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fed7aa;
}

.price-value {
  font-family: var(--fb-font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

.builder-meta {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fb-gold);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.builder-meta .bullet {
  color: #a8a29e;
  margin: 0 4px;
}

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

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

.community-title a:hover {
  color: var(--fb-gold);
}

.editorial-headline {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: #44403c;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 2px solid var(--fb-gold);
}

.community-description {
  font-size: 13px;
  color: #57534e;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.geocode-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #78716c;
  background-color: #f7f3eb;
  padding: 6px 10px;
  border: 1px solid var(--fb-border-light);
  margin-bottom: 16px;
}

.geo-icon {
  width: 13px;
  height: 13px;
  color: var(--fb-gold);
  flex-shrink: 0;
}

.card-action-bar {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-primary {
  flex: 1;
  background-color: var(--fb-ink);
  color: #ffffff;
  border: 1px solid var(--fb-ink);
  text-align: center;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #44403c;
}

.btn-secondary {
  flex: 1;
  background-color: transparent;
  color: var(--fb-ink);
  border: 1px solid rgba(41, 37, 36, 0.3);
  text-align: center;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: #f7f3eb;
  border-color: var(--fb-ink);
}

.btn-editorial-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #fbf5eb;
  color: #78350f;
  border: 1px solid rgba(180, 83, 9, 0.35);
  font-family: var(--fb-font-cinzel);
  font-weight: 700;
  transition: all 0.15s ease-in-out;
}

.btn-editorial-review .book-icon {
  width: 14px;
  height: 14px;
  color: #b45309;
  transition: color 0.15s ease;
}

.btn-editorial-review:hover {
  background-color: #b45309;
  color: #ffffff;
  border-color: #b45309;
}

.btn-editorial-review:hover .book-icon {
  color: #ffffff;
}

/* 2-Action Secondary Bar on Magazine Cards (Editorial & Super Compare) */
.grid-2-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.grid-2-actions .btn-editorial-review {
  padding: 8px 10px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  background-color: #f7f3eb;
  color: #1c1917;
  border: 1px solid rgba(41, 37, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  border-radius: 2px;
}

.grid-2-actions .btn-editorial-review:hover {
  background-color: #1c1917;
  color: #fef3c7;
  border-color: #1c1917;
}

.grid-2-actions .btn-editorial-review:hover .book-icon {
  color: #f59e0b;
}

/* 3-Action Secondary Bar on Magazine Cards (Legacy / Fallback) */
.grid-3-actions {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.grid-3-actions .btn-editorial-review {
  padding: 6px 8px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  background-color: #f7f3eb;
  color: #1c1917;
  border: 1px solid rgba(41, 37, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.grid-3-actions .btn-editorial-review:hover {
  background-color: #e7e0d3;
  color: #1c1917;
}

.btn-compare-toggle {
  padding: 8px 10px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  background-color: #fffaf0;
  color: #92400e;
  border: 1.5px solid #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08);
}

.btn-compare-toggle:hover {
  background-color: #b45309;
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.25);
}

.btn-compare-toggle:hover .scale-icon {
  color: #ffffff;
}

.btn-compare-toggle.is-compared {
  background-color: #1c1917 !important;
  color: #fef3c7 !important;
  border-color: #b45309 !important;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.3) !important;
}

.btn-compare-toggle.is-compared .scale-icon {
  color: #f59e0b !important;
}

.btn-compare-toggle .scale-icon {
  width: 14px;
  height: 14px;
  color: #b45309;
  transition: color 0.15s ease;
}

.btn-schema-toggle {
  padding: 6px 4px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  background-color: #fffdf9;
  color: #78716c;
  border: 1px solid rgba(41, 37, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-schema-toggle:hover {
  background-color: #f7f3eb;
  color: #1c1917;
}

.btn-schema-toggle .code-icon {
  width: 13px;
  height: 13px;
  color: #78716c;
}

/* Builder Filter Bar */
.builder-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-filter-label {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78716c;
}

.builder-pill {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: #f7f3eb;
  color: #57534e;
  border: 1px solid rgba(41, 37, 36, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.builder-pill:hover {
  background-color: #e7e0d3;
  color: #1c1917;
}

.builder-pill.active {
  background-color: #1c1917;
  color: #ffffff;
  border-color: #1c1917;
}

/* 2-Column County Directory Layout matching FB-Home-1 */
.directory-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .directory-grid-2col {
    grid-template-columns: 1fr;
  }
}

.directory-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background-color: #fffdf9;
  border: 1px solid rgba(41, 37, 36, 0.2);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.directory-card-btn:hover {
  background-color: #f2ece2;
  border-color: rgba(41, 37, 36, 0.4);
}

.directory-card-btn.active {
  background-color: #1c1917 !important;
  color: #ffffff !important;
  border-color: #1c1917 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.directory-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.directory-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.directory-card-sub {
  font-family: monospace;
  font-size: 9.5px;
  line-height: 1.2;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.directory-card-btn.active .directory-card-sub {
  color: #fed7aa !important;
}

.directory-card-badge {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background-color: #f5efe6;
  border: 1px solid rgba(41, 37, 36, 0.15);
  color: #44403c;
  flex-shrink: 0;
}

.directory-card-btn.active .directory-card-badge {
  background-color: #b45309 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
}

.detail-main {
  padding-top: 32px;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.back-link {
  color: var(--fb-gold);
  text-decoration: none;
}

.detail-brand {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #78716c;
}

.detail-article {
  background-color: var(--fb-paper);
  border: 1px solid var(--fb-border);
}

.detail-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: #1c1917;
}

.detail-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: #fff;
}

.detail-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fed7aa;
}

.detail-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: 6px 0;
  line-height: 1.15;
}

.detail-price {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 24px;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-pullquote {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: #292524;
  border-left: 4px solid var(--fb-gold);
  padding-left: 18px;
  margin: 0 0 28px;
}

.prose-subheading {
  font-family: var(--fb-font-serif);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--fb-border-light);
  padding-bottom: 6px;
  margin: 24px 0 12px;
}

.sidebar-card {
  background-color: #fbf8f2;
  border: 1px solid var(--fb-border);
  padding: 24px;
}

.sidebar-heading {
  font-family: var(--fb-font-serif);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.sidebar-sub {
  font-size: 12px;
  color: #57534e;
  margin: 0 0 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: #44403c;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(41, 37, 36, 0.25);
  background-color: #ffffff;
  font-size: 13px;
  color: var(--fb-ink);
}

.full-width {
  width: 100%;
  display: block;
  padding: 10px;
  margin-top: 8px;
}

/* ==============================================================================
   Northern California Employment Corridor Matrix & Commute Cartography
   ============================================================================== */
.employment-corridor-matrix-section {
  width: 100%;
  max-width: 1360px;
  margin: 40px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.matrix-container {
  background-color: #fbf8f2;
  border: 1px solid rgba(41, 37, 36, 0.22);
  padding: 24px;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.matrix-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.15);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.matrix-kicker {
  font-family: var(--fb-font-cinzel), 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.matrix-title {
  font-family: var(--fb-font-serif), 'Newsreader', 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.matrix-subtitle {
  font-size: 13px;
  color: #57534e;
  line-height: 1.5;
  margin: 0;
}

.matrix-map-link {
  font-size: 12px;
  font-family: monospace;
  font-weight: 600;
  color: #b45309;
  background: #ffffff;
  border: 1px solid rgba(180, 83, 9, 0.35);
  padding: 8px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.matrix-map-link:hover {
  background: #f7f3eb;
  border-color: rgba(180, 83, 9, 0.7);
  color: #78350f;
}

.matrix-origin-cluster {
  border-bottom: 1px solid rgba(41, 37, 36, 0.12);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.matrix-origin-label {
  font-family: var(--fb-font-cinzel), 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #78716c;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-origin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matrix-origin-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  background: #ffffff;
  color: #44403c;
  border: 1px solid rgba(41, 37, 36, 0.22);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.matrix-origin-btn:hover {
  background: #f7f3eb;
  border-color: rgba(41, 37, 36, 0.4);
}

.matrix-origin-btn.active {
  background: #1c1917;
  color: #fef3c7;
  border-color: #1c1917;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.matrix-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
}

.matrix-map-card {
  background: #f3eee4;
  border: 1px solid rgba(41, 37, 36, 0.18);
  padding: 14px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.matrix-map-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: monospace;
  color: #78716c;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.12);
  margin-bottom: 10px;
}

.matrix-map-origin-badge {
  color: #b45309;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #b45309;
  animation: fb-pulse 1.8s infinite;
  display: inline-block;
}

@keyframes fb-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(180, 83, 9, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(180, 83, 9, 0);
  }
}

.matrix-map-canvas-wrap {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background: #fdfbf7;
  border: 1px solid rgba(41, 37, 36, 0.1);
  border-radius: 2px;
}

.matrix-map-svg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 380px !important;
  display: block !important;
  user-select: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.matrix-map-legend {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(41, 37, 36, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #57534e;
}

.matrix-legend-items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.matrix-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 10px;
}

.matrix-legend-line {
  width: 14px;
  height: 3px;
  display: inline-block;
  border-radius: 1px;
}

.matrix-dest-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.matrix-dest-header {
  font-family: var(--fb-font-cinzel), 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #78716c;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.matrix-dest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.matrix-dest-item {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid rgba(41, 37, 36, 0.14);
  background: #ffffff;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.18s ease;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}

.matrix-dest-item:hover {
  background: #faf7f0;
  border-color: rgba(41, 37, 36, 0.35);
  transform: translateY(-1px);
}

.matrix-dest-item.active {
  background: #fffdf7;
  border-color: #b45309;
  border-left: 4px solid #b45309;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.12);
}

.matrix-dest-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.matrix-dest-name {
  font-family: var(--fb-font-serif), 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #1c1917;
  letter-spacing: -0.01em;
}

.matrix-dest-time {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.matrix-dest-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #78716c;
  font-family: monospace;
}

.matrix-callout-box {
  padding: 12px 14px;
  background: #1c1917;
  color: #f5f5f4;
  border-left: 3px solid #b45309;
  border-radius: 3px;
  margin-top: 10px;
  box-sizing: border-box;
}

.matrix-callout-route {
  font-weight: 700;
  color: #fef3c7;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--fb-font-sans), system-ui, sans-serif;
}

.matrix-callout-transit {
  font-size: 11px;
  color: #d6d3d1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  font-family: monospace;
}

/* ==============================================================================
   Future Infrastructure Editorial Banner (9-County Corridors)
   ============================================================================== */
.corridor-editorial-banner {
  background-color: #1c1917;
  color: #e7e5e4;
  padding: 48px 16px;
  border-top: 1px solid #44403c;
  margin-top: 36px;
}

.corridor-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.corridor-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.corridor-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.corridor-title {
  font-family: var(--fb-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.corridor-sub {
  font-size: 12px;
  color: #a8a29e;
  line-height: 1.6;
  margin: 0;
}

.corridor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.corridor-card {
  background-color: #292524;
  padding: 24px;
  border: 1px solid #44403c;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.corridor-badge {
  color: #fbbf24;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.corridor-card-title {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.corridor-card-desc {
  font-size: 12px;
  color: #a8a29e;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.corridor-status {
  font-size: 10px;
  font-family: monospace;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 2px;
  width: fit-content;
}

.corridor-status.operational {
  color: #34d399;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.corridor-status.tech-hub {
  color: #6ee7b7;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.corridor-status.planning {
  color: #fed7aa;
  background-color: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* ==============================================================================
   FutureBay Magazine Footer (Standard & Expanded Atlas)
   ============================================================================== */
.futurebay-footer {
  background-color: #fffdf9;
  color: #57534e;
  padding: 40px 16px 48px;
  border-top: 1px solid rgba(41, 37, 36, 0.2);
  margin-top: 0;
}

.footer-inner-expanded {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.1);
}

@media (min-width: 900px) {
  .footer-top-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-title {
  font-family: var(--fb-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 4px;
}

.footer-title .masthead-logo-bay {
  font-style: italic;
  font-weight: 400;
  color: var(--fb-gold);
  margin-left: 2px;
}

.footer-tld {
  font-style: normal;
  font-weight: 400;
  color: #78716c;
  font-size: 18px;
}

.footer-copy {
  font-size: 12px;
  color: #57534e;
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}

.footer-network-bold {
  font-weight: 600;
  color: #1c1917;
}

.footer-vip-badge {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78350f;
  font-weight: 600;
  background-color: #fbf5eb;
  padding: 8px 14px;
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 2px;
  white-space: nowrap;
  width: fit-content;
}

.footer-atlas-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(41, 37, 36, 0.1);
}

.footer-atlas-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .footer-atlas-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-atlas-title {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #78716c;
}

.footer-atlas-hint {
  font-size: 11px;
  color: #b45309;
}

.footer-atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.footer-county-btn {
  padding: 8px 10px;
  text-align: left;
  background-color: #fbf8f2;
  border: 1px solid rgba(41, 37, 36, 0.15);
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px;
  font-family: inherit;
  display: block;
  width: 100%;
}

.footer-county-btn:hover {
  background-color: #f0e9dc;
  border-color: rgba(41, 37, 36, 0.35);
}

.footer-county-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.footer-county-name {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1c1917;
}

.footer-county-badge {
  font-family: monospace;
  font-size: 9px;
  padding: 1px 5px;
  background-color: rgba(41, 37, 36, 0.1);
  color: #57534e;
  border-radius: 2px;
  white-space: nowrap;
}

.footer-county-sub {
  font-size: 10px;
  color: #78716c;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-bottom-row {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-regulatory-card {
  background-color: #f7f3eb;
  border: 1px solid rgba(41, 37, 36, 0.15);
  padding: 12px 16px;
  border-radius: 2px;
  max-width: 480px;
}

.footer-regulatory-title {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #78350f;
  margin-bottom: 4px;
}

.footer-regulatory-body {
  font-size: 11px;
  color: #292524;
  font-weight: 500;
  line-height: 1.5;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(41, 37, 36, 0.1);
  font-family: var(--fb-font-cinzel), 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-legal-link {
  color: #78350f;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-link:hover {
  color: #b45309;
  text-decoration: underline;
}

.footer-legal-divider {
  color: #a8a29e;
  font-size: 8px;
}

.footer-bottom-disclaimer {
  font-size: 10px;
  color: #78716c;
  max-width: 460px;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-bottom-disclaimer {
    text-align: right;
  }
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-regulatory {
  margin: 20px auto 16px;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(41, 37, 36, 0.15);
  border-radius: 2px;
  max-width: 540px;
  text-align: center;
}

.regulatory-heading {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78350f;
  margin: 0 0 6px;
}

.regulatory-text {
  font-family: var(--fb-font-sans);
  font-size: 12px;
  color: #44403c;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-disclaimer {
  font-size: 11px;
  color: #78716c;
  line-height: 1.5;
  margin: 0;
}

/* ==============================================================================
   VIP Tour Booking & Lead Intake Modal (1970s Print Style)
   ============================================================================== */
.card-tour-action {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(41, 37, 36, 0.15);
}

.btn-schedule-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--fb-ink);
  color: #fffefb;
  padding: 9px 12px;
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-schedule-preview:hover {
  background-color: var(--fb-gold);
}

.btn-schedule-preview .tour-icon {
  width: 14px;
  height: 14px;
  color: #fed7aa;
}

.btn-builder-site {
  font-size: 11px;
  color: var(--fb-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-builder-site:hover {
  color: #451a03;
}

/* Modal Overlay & Box */
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(28, 25, 23, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.fb-modal-box {
  background-color: #fffefb;
  border: 1px solid rgba(41, 37, 36, 0.25);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.5);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--fb-ink);
}

.fb-modal-header {
  background-color: var(--fb-ink);
  color: #fffefb;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-modal-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fed7aa;
  font-weight: 700;
}

.fb-modal-title {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 0;
  color: #ffffff;
}

.fb-modal-close {
  background: transparent;
  border: none;
  color: #d6d3d1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.fb-modal-close:hover {
  color: #ffffff;
}

.fb-modal-community-bar {
  background-color: #f7f3eb;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.12);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fb-modal-community-bar .fb-sep {
  color: #78716c;
  font-style: italic;
}

.fb-modal-community-bar .fb-price-badge {
  margin-left: auto;
  font-weight: 700;
  color: var(--fb-gold);
}

.fb-modal-advisory {
  margin: 16px 20px 12px;
  padding: 10px 14px;
  background-color: #fff8f0;
  border-left: 3px solid var(--fb-gold);
  font-size: 11px;
  line-height: 1.5;
  color: #78350f;
}

.fb-inquiry-form {
  padding: 12px 20px 20px;
}

.fb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 580px) {
  .fb-form-row {
    grid-template-columns: 1fr;
  }
}

.fb-form-group label {
  display: block;
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #44403c;
  margin-bottom: 4px;
}

.fb-form-group input,
.fb-form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(41, 37, 36, 0.25);
  background-color: #fbf8f2;
  font-size: 13px;
  color: var(--fb-ink);
  box-sizing: border-box;
}

.fb-form-group input:focus,
.fb-form-group select:focus {
  outline: none;
  border-color: var(--fb-gold);
  background-color: #ffffff;
}

.fb-form-checkbox {
  margin: 12px 0 16px;
  padding: 10px 12px;
  background-color: #f7f3eb;
  border: 1px solid rgba(41, 37, 36, 0.12);
}

.fb-form-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1c1917;
  font-weight: 600;
  cursor: pointer;
}

.fb-form-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--fb-gold);
}

/* ==========================================================================
   FutureBay County Filter & Regional Navigation (Phase 2 Expansion)
   ========================================================================== */
.futurebay-filter-section {
  max-width: 1200px;
  margin: 0 auto 32px auto;
  padding: 0 16px;
}

.futurebay-county-filter {
  background-color: var(--fb-paper);
  border: 1px solid var(--fb-border);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.12);
}

.filter-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fb-gold);
  font-weight: 700;
}

.filter-title {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--fb-ink);
  margin: 0;
}

.filter-active-indicator {
  font-size: 12px;
  color: #78716c;
  font-style: italic;
}

.county-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.county-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(41, 37, 36, 0.2);
  background-color: #fbf8f2;
  color: #44403c;
  font-family: var(--fb-font-sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  border-radius: 0;
  white-space: nowrap;
}

.county-filter-pill:hover {
  background-color: #f0e9dc;
  color: #1c1917;
  border-color: rgba(41, 37, 36, 0.4);
}

.county-filter-pill.active {
  background-color: #1c1917;
  color: #fffdf9;
  border-color: #1c1917;
}

.county-filter-pill.active .pill-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pill-count {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  background-color: rgba(41, 37, 36, 0.08);
  color: #57534e;
  font-weight: 700;
  border-radius: 10px;
}

.clear-filter-btn {
  font-family: var(--fb-font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  margin-left: auto;
}

.clear-filter-btn:hover {
  color: #78350f;
}

/* Archival Reference Footnote Citation */
.card-ref-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(41, 37, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 9px;
  color: #a8a29e;
}

.card-ref-footer .dossier-id {
  color: #a8a29e;
  letter-spacing: 0.02em;
}

.card-ref-footer .ref-link {
  color: #a8a29e;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.card-ref-footer .ref-link:hover {
  color: #78716c;
  text-decoration: underline;
}

/* ==========================================================================
   STRATEGIC BUYER PROTECTION TRIAD COMPONENT
   ========================================================================== */
.futurebay-buyer-protection-section {
  max-width: 1240px;
  margin: 24px auto 32px;
  padding: 0 16px;
}

.buyer-protection-card {
  background-color: #fffdf9;
  border: 2px solid #292524;
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.08);
  overflow: hidden;
}

.bp-header-strip {
  background-color: #1c1917;
  color: #fef3c7;
  padding: 10px 20px;
  border-bottom: 1px solid #292524;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .bp-header-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bp-badge-left {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fef3c7;
}

.bp-badge-right {
  font-family: monospace;
  font-size: 11px;
  color: #fed7aa;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-sep {
  color: #a8a29e;
}

.bp-body {
  padding: 24px 20px;
}

@media (min-width: 640px) {
  .bp-body {
    padding: 32px 28px;
  }
}

.bp-intro {
  max-width: 800px;
  margin-bottom: 24px;
}

.bp-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  color: var(--fb-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bp-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.95rem);
  font-weight: 800;
  color: var(--fb-ink);
  line-height: 1.25;
  margin: 0 0 10px;
}

.bp-quote {
  font-family: var(--fb-font-quote);
  font-size: 14.5px;
  font-style: italic;
  color: #57534e;
  line-height: 1.6;
  margin: 0;
}

.bp-stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.bp-stage-box {
  background-color: #fbf8f2;
  border: 1px solid rgba(41, 37, 36, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.bp-stage-box:hover {
  border-color: var(--fb-gold);
}

.stage-solution {
  background-color: #f0fdf4;
  border: 2px solid rgba(22, 101, 52, 0.45);
}

.stage-solution:hover {
  border-color: #166534;
}

.bp-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.1);
  margin-bottom: 12px;
}

.bp-stage-pill {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.pill-amber {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.3);
}

.pill-red {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.3);
}

.pill-green {
  background-color: #ffffff;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.3);
}

.bp-stage-heading {
  font-family: var(--fb-font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fb-ink);
  margin: 0 0 8px;
  line-height: 1.3;
}

.stage-solution .bp-stage-heading {
  color: #14532d;
}

.bp-stage-text {
  font-size: 12px;
  color: #44403c;
  line-height: 1.6;
  margin: 0;
}

.stage-solution .bp-stage-text {
  color: #166534;
}

.bp-stage-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(41, 37, 36, 0.1);
  font-family: monospace;
  font-size: 11px;
}

.text-amber { color: #d97706; }
.text-red { color: #b91c1c; font-weight: 600; }
.text-green { color: #166534; font-weight: 700; }

.bp-action-bar {
  margin-top: 24px;
  padding: 18px 22px;
  background-color: #f7f3eb;
  border: 1px solid rgba(41, 37, 36, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .bp-action-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bp-action-title {
  font-family: var(--fb-font-cinzel);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fb-ink);
  margin-bottom: 4px;
}

.bp-action-sub {
  font-size: 12px;
  color: #57534e;
  margin: 0;
}

.bp-claim-btn {
  background-color: #1c1917;
  color: #ffffff;
  padding: 12px 24px;
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bp-claim-btn:hover {
  background-color: var(--fb-gold);
}

/* ==========================================================================
   CEREMONIAL REGIONAL ATLAS MAP STYLING
   ========================================================================== */
.futurebay-map-container-wrap {
  margin-bottom: 24px;
}

.map-and-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .map-and-directory-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.map-card-shell {
  background-color: #fffdf9;
  border: 2px solid #292524;
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-card-header {
  background-color: #1c1917;
  color: #fef3c7;
  padding: 10px 16px;
  border-bottom: 1px solid #292524;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-header-title {
  font-family: var(--fb-font-cinzel);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-all-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fed7aa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.map-all-btn:hover {
  background-color: var(--fb-gold);
  color: #fff;
}

.map-svg-stage {
  position: relative;
  background-color: #f6f2e9;
  padding: 12px;
}

.map-graticule-top-left {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: monospace;
  font-size: 9px;
  color: #78716c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.map-graticule-top-right {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: monospace;
  font-size: 9px;
  color: #78716c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.futurebay-atlas-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-county-group {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.map-county-poly {
  fill: #fbf8f2;
  stroke: #292524;
  stroke-width: 1;
  stroke-opacity: 0.4;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.map-county-group:hover .map-county-poly {
  fill: #fef3c7;
  stroke: #b45309;
  stroke-width: 2;
  stroke-opacity: 0.9;
}

.map-county-group.active .map-county-poly {
  fill: #fed7aa;
  stroke: #b45309;
  stroke-width: 2.5;
  stroke-opacity: 1;
}

.map-county-label {
  font-family: var(--fb-font-serif);
  font-size: 9px;
  font-weight: 600;
  fill: #44403c;
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.map-county-group:hover .map-county-label,
.map-county-group.active .map-county-label {
  fill: #78350f;
  font-weight: 700;
}

.map-badge-rect {
  fill: #fffdf9;
  stroke: #292524;
  stroke-width: 1;
  transition: all 0.2s ease;
}

.map-county-group:hover .map-badge-rect {
  fill: #1c1917;
  stroke: #b45309;
}

.map-county-group.active .map-badge-rect {
  fill: #b45309;
  stroke: #78350f;
}

.map-badge-text {
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 700;
  fill: #1c1917;
  text-anchor: middle;
  pointer-events: none;
}

.map-county-group:hover .map-badge-text,
.map-county-group.active .map-badge-text {
  fill: #fef3c7;
}

.map-card-footnote {
  padding: 8px 14px;
  border-top: 1px solid rgba(41, 37, 36, 0.1);
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 11px;
  color: #78716c;
  background-color: #fffdf9;
}

/* ==============================================================================
   FUTUREBAY MAGAZINE CARD ENRICHMENTS (Floor Plans, Rate Box, Infrastructure)
   ============================================================================== */
.compass-icon {
  width: 12px;
  height: 12px;
  color: var(--fb-gold);
  flex-shrink: 0;
}

.card-badge-cluster {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.card-builder-cluster {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 10;
}

.move-in-badge {
  background-color: rgba(28, 25, 23, 0.88);
  backdrop-filter: blur(4px);
  color: #fed7aa;
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid rgba(180, 83, 9, 0.4);
  text-transform: uppercase;
}

.builder-tag {
  background-color: #ffffff;
  color: #1c1917;
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid #1c1917;
  text-transform: uppercase;
}

.price-specs-box {
  text-align: right;
}

.spec-sqft {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #1c1917;
}

.spec-beds {
  font-size: 10px;
  color: #78716c;
}

.masterplan-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 4px;
}

/* Floor Plans Container */
.card-floorplans {
  margin: 14px 0;
  padding: 10px 12px;
  background-color: #f7f3eb;
  border: 1px solid rgba(41, 37, 36, 0.15);
}

.card-floorplans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.1);
}

.card-floorplans-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78350f;
}

.layers-icon {
  width: 13px;
  height: 13px;
  color: #b45309;
}

.card-floorplans-sqft {
  font-family: monospace;
  font-size: 9.5px;
  color: #57534e;
}

.card-floorplans-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-floorplan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.plan-name {
  font-weight: 600;
  color: #1c1917;
}

.plan-meta {
  font-family: monospace;
  font-size: 10px;
  color: #78716c;
}

.card-floorplans-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
  text-decoration: none;
  transition: color 0.15s ease;
}

.card-floorplans-more:hover {
  color: #78350f;
  text-decoration: underline;
}

/* Builder Fixed Rate Box */
.card-rate-box {
  margin: 12px 0;
  padding: 8px 10px;
  background-color: #fff8f0;
  border: 1px solid rgba(180, 83, 9, 0.35);
}

.rate-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #78350f;
}

.rate-icon {
  width: 14px;
  height: 14px;
  color: #b45309;
  flex-shrink: 0;
}

.rate-text {
  line-height: 1.3;
}

/* Infrastructure Highlights */
.card-infrastructure {
  margin: 14px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(41, 37, 36, 0.12);
}

.card-infrastructure-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #78716c;
  margin-bottom: 6px;
}

.train-icon, .sparkle-icon {
  width: 13px;
  height: 13px;
  color: #b45309;
  flex-shrink: 0;
}

.card-infrastructure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-infrastructure-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  color: #44403c;
  line-height: 1.4;
}

.card-infrastructure-item .bullet {
  color: #b45309;
  font-weight: bold;
}

.card-infrastructure-item .item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geocode-address {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.geocode-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #166534;
  background-color: #dcfce7;
  padding: 2px 6px;
  border: 1px solid #86efac;
}

.check-icon {
  width: 11px;
  height: 11px;
}

/* ==============================================================================
   COMMUNITY DETAIL VIEW & MORTGAGE/BLUEPRINT COMPONENT STYLES
   ============================================================================== */
.detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 992px) {
  .detail-layout-grid {
    grid-template-columns: 1.8fr 1.2fr;
  }
}

.detail-section-block {
  background-color: #ffffff;
  border: 1px solid rgba(41, 37, 36, 0.15);
  padding: 24px;
  margin-bottom: 28px;
}

.detail-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.12);
}

.detail-block-title {
  font-family: var(--fb-font-cinzel);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1c1917;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mortgage Estimator Intelligence Grid */
.detail-mortgage-shell {
  background-color: #fffdf9;
  border: 2px solid #b45309;
  padding: 22px;
  margin-bottom: 30px;
}

.mortgage-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .mortgage-comparison-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mortgage-col-card {
  padding: 16px;
  border: 1px solid rgba(41, 37, 36, 0.15);
  background-color: #ffffff;
}

.mortgage-col-card.resale-loan {
  background-color: #f7f3eb;
  border-color: rgba(41, 37, 36, 0.2);
}

.mortgage-col-card.builder-rate {
  background-color: #fefce8;
  border: 2px solid #ca8a04;
}

.mortgage-col-card.savings-highlight {
  background-color: #f0fdf4;
  border: 2px solid #16a34a;
}

.mortgage-col-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.mortgage-col-price {
  font-family: var(--fb-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.mortgage-col-meta {
  font-size: 11px;
  color: #78716c;
  margin-top: 4px;
}

.carrying-cost-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(41, 37, 36, 0.2);
}

.carrying-cost-item {
  background-color: #f8f6f0;
  padding: 10px;
  border: 1px solid rgba(41, 37, 36, 0.1);
  text-align: center;
}

.carrying-item-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #78716c;
  font-weight: 600;
}

.carrying-item-val {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #1c1917;
  margin-top: 2px;
}

/* Floor Plan Blueprint Drafting UI */
.blueprint-card-shell {
  background-color: #0b192c;
  color: #e2e8f0;
  border: 1px solid #1e3a5f;
  margin-bottom: 24px;
}

.blueprint-header {
  padding: 10px 16px;
  background-color: #071322;
  border-bottom: 1px solid #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blueprint-kicker {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blueprint-canvas-wrap {
  position: relative;
  background-color: #09182a;
  padding: 20px;
  overflow: hidden;
}

.blueprint-svg {
  width: 100%;
  height: auto;
  max-width: 580px;
  margin: 0 auto;
  display: block;
}

/* Print 8.5" x 11" Handout Styles */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  .futurebay-header,
  .futurebay-footer,
  .btn-primary,
  .btn-secondary,
  .btn-schedule-preview,
  .detail-nav,
  .no-print {
    display: none !important;
  }
  .detail-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .print-only-dossier {
    display: block !important;
    page-break-after: always;
  }

  /* Dedicated VIP Tour Pass isolation when printing pass */
  body.printing-vip-pass * {
    visibility: hidden !important;
  }
  body.printing-vip-pass #printable-vip-card,
  body.printing-vip-pass #printable-vip-card * {
    visibility: visible !important;
  }
  body.printing-vip-pass #printable-vip-card {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 6.8in !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    border: 3px double #1c1917 !important;
    background: #ffffff !important;
    padding: 24px !important;
    z-index: 99999 !important;
  }
}

/* ==============================================================================
   FUTUREBAY HOMEPAGE - EDITORIAL MASTHEAD, HERO, TRIAD & MAP EXPANSION
   ============================================================================== */

/* 1. Masthead Header */
.masthead-dateline-bar {
  background-color: #1c1917;
  color: #e7e5e4;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 11px;
  border-bottom: 1px solid #44403c;
}

.masthead-dateline-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.masthead-dateline-left,
.masthead-dateline-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.masthead-sep {
  color: #78716c;
}

.masthead-status-live {
  color: #4ade80;
  font-weight: 700;
}

.masthead-license {
  color: #fed7aa;
}

.masthead-main {
  background-color: var(--fb-paper);
  border-bottom: 1px solid var(--fb-border);
  padding: 28px 16px 20px;
}

.masthead-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .masthead-main-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.masthead-brand-block {
  flex: 1;
}

.masthead-eyebrow {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fb-gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.masthead-title {
  margin: 0;
  font-family: var(--fb-font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.masthead-logo-link {
  text-decoration: none;
  color: var(--fb-ink);
}

.masthead-logo-bay {
  font-style: italic;
  font-weight: 400;
  color: var(--fb-gold);
}

.masthead-subline {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 13px;
  color: #78716c;
  margin-top: 4px;
}

.masthead-action-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .masthead-action-block {
    align-items: flex-end;
  }
}

.btn-vip-pass {
  background-color: #1c1917;
  color: #fff;
  border: 1px solid #1c1917;
  padding: 10px 18px;
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-vip-pass:hover {
  background-color: var(--fb-gold);
  border-color: var(--fb-gold);
}

.pass-icon {
  width: 14px;
  height: 14px;
  color: #fed7aa;
}

.masthead-phone-badge {
  font-family: monospace;
  font-size: 11px;
  color: #78716c;
}

/* 2. Hero Section */
.futurebay-hero-section {
  padding: 32px 16px 40px;
  background-color: #fbf8f2;
  border-bottom: 1px solid var(--fb-border);
}

.futurebay-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.futurebay-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .futurebay-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-directive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fb-gold);
  letter-spacing: 0.08em;
}

.sparkle-icon {
  width: 13px;
  height: 13px;
  color: var(--fb-gold);
}

.hero-headline {
  font-family: var(--fb-font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fb-ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.hero-pullquote {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #57534e;
  border-left: 3px solid var(--fb-gold);
  padding-left: 14px;
  margin: 4px 0;
}

.hero-description {
  font-size: 13px;
  line-height: 1.65;
  color: #44403c;
  margin: 0;
}

.hero-meta-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(41, 37, 36, 0.18);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #57534e;
}

.hero-meta-item.meta-green {
  color: #166534;
}

.hero-meta-item svg {
  width: 14px;
  height: 14px;
}

.meta-dot {
  color: #a8a29e;
}

.hero-image-col {
  width: 100%;
}

.hero-frame-card {
  background-color: #fffdf9;
  border: 1px solid var(--fb-border);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(41, 37, 36, 0.08);
}

.hero-aspect-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background-color: #1c1917;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.4) 45%, transparent 100%);
  pointer-events: none;
}

.hero-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px 14px;
  color: #ffffff;
}

.caption-eyebrow {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fbbf24;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.caption-title {
  font-family: var(--fb-font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}

.caption-sub {
  font-size: 11px;
  color: #d6d3d1;
  margin: 0;
  line-height: 1.4;
}

.hero-card-footnote {
  font-family: monospace;
  font-size: 10px;
  color: #78716c;
  padding: 6px 4px 2px;
  font-style: italic;
}

/* 3. Buyer Protection Triad */
.buyer-protection-triad-section {
  padding: 36px 16px;
  background-color: #fffdf9;
  border-bottom: 1px solid var(--fb-border);
}

.buyer-protection-triad-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.triad-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.triad-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fb-gold);
  display: block;
  margin-bottom: 6px;
}

.triad-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--fb-ink);
  margin: 0 0 8px;
}

.triad-subtitle {
  font-family: var(--fb-font-quote);
  font-style: italic;
  font-size: 14px;
  color: #78716c;
  margin: 0;
}

.triad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.triad-card {
  padding: 24px 20px;
  border: 1px solid var(--fb-border);
  background-color: #fbf8f2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.triad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 37, 36, 0.08);
}

.triad-card.step-warning {
  border-top: 3px solid #b45309;
}

.triad-card.step-example {
  border-top: 3px solid #dc2626;
}

.triad-card.step-solution {
  border-top: 3px solid #166534;
  background-color: #f0fdf4;
}

.triad-card-badge {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  display: inline-block;
  align-self: flex-start;
}

.warning-badge {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.example-badge {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.solution-badge {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.triad-card-title {
  font-family: var(--fb-font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fb-ink);
  margin: 0;
}

.triad-card-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: #44403c;
  margin: 0;
  flex: 1;
}

.triad-pitfalls-list {
  font-size: 12px;
  line-height: 1.55;
  color: #44403c;
  padding-left: 18px;
  margin: 0;
}

.triad-pitfalls-list li {
  margin-bottom: 6px;
}

.btn-triad-action {
  margin-top: 8px;
  padding: 8px 14px;
  background-color: #166534;
  color: #ffffff;
  border: 1px solid #166534;
  font-family: var(--fb-font-cinzel);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s ease;
}

.btn-triad-action:hover {
  background-color: #14532d;
}

/* 4. Regional Atlas & Map Section */
.regional-atlas-section {
  padding: 36px 16px;
  background-color: #f7f3eb;
  border-bottom: 1px solid var(--fb-border);
}

.regional-atlas-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.atlas-grid-section-header {
  border-bottom: 1px solid rgba(41, 37, 36, 0.15);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.atlas-grid-kicker {
  font-family: monospace;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fb-gold);
  display: block;
}

.atlas-grid-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--fb-ink);
}

.map-and-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 960px) {
  .map-and-directory-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.map-card-col {
  width: 100%;
}

.map-card-shell {
  background-color: #fffdf9;
  border: 2px solid #292524;
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.06);
  display: flex;
  flex-direction: column;
}

.map-card-header {
  background-color: #1c1917;
  color: #fef3c7;
  padding: 10px 16px;
  border-bottom: 1px solid #292524;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-compass-icon {
  width: 14px;
  height: 14px;
  color: #fed7aa;
}

.map-header-title {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-btn-all {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fed7aa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-btn-all:hover {
  background-color: var(--fb-gold);
  color: #fff;
}

.map-canvas-container {
  padding: 12px;
  background-color: #f6f2e9;
  position: relative;
}

.regional-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-water-label {
  font-family: serif;
  font-style: italic;
  font-size: 8px;
  fill: #60a5fa;
  pointer-events: none;
}

.map-county-group {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.map-county-poly {
  fill: #fffdf9;
  stroke: #292524;
  stroke-width: 1;
  stroke-opacity: 0.35;
  transition: all 0.2s ease;
}

.map-county-group:hover .map-county-poly {
  fill: #fef3c7;
  stroke: #b45309;
  stroke-width: 1.8;
  stroke-opacity: 0.9;
}

.map-county-group.active .map-county-poly {
  fill: #fed7aa;
  stroke: #b45309;
  stroke-width: 2.5;
  stroke-opacity: 1;
}

.map-admin-border {
  fill: none;
  stroke: #78716c;
  stroke-width: 0.6;
  stroke-dasharray: 2 2;
  stroke-opacity: 0.4;
  pointer-events: none;
}

.map-county-label {
  font-family: serif;
  font-size: 9.5px;
  font-weight: 600;
  fill: #44403c;
  text-anchor: middle;
  pointer-events: none;
  transition: all 0.15s ease;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

.map-county-group:hover .map-county-label {
  fill: #1c1917;
  font-weight: 700;
}

.map-county-group.active .map-county-label {
  fill: #78350f;
  font-weight: 700;
}

.map-badge-rect {
  fill: #fffdf9;
  stroke: #292524;
  stroke-width: 1;
  transition: all 0.2s ease;
}

.map-county-group:hover .map-badge-rect {
  fill: #1c1917;
  stroke: #b45309;
}

.map-county-group.active .map-badge-rect {
  fill: #b45309;
  stroke: #78350f;
  stroke-width: 1.5;
}

.map-badge-text {
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 700;
  fill: #1c1917;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.map-county-group:hover .map-badge-text {
  fill: #fef3c7;
}

.map-county-group.active .map-badge-text {
  fill: #fef3c7;
}

.map-card-footnote {
  background-color: #1c1917;
  color: #fed7aa;
  font-family: monospace;
  font-size: 10px;
  padding: 6px 14px;
  border-top: 1px solid #292524;
}

.directory-pills-col {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.active-region-card {
  padding: 14px 16px;
  background-color: #fbf8f2;
  border: 1px solid rgba(41, 37, 36, 0.2);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 5. Catalog Section */
.futurebay-catalog-section {
  padding: 36px 16px 48px;
  background-color: var(--fb-cream);
}

.futurebay-catalog-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--fb-ink);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.catalog-kicker {
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fb-gold);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.catalog-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--fb-ink);
  margin: 0;
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-count-badge {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  background-color: #1c1917;
  color: #fef3c7;
  padding: 5px 12px;
  border-radius: 2px;
}

.no-results-panel {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background-color: #fffdf9;
  border: 1px dashed var(--fb-border);
}

.no-results-title {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  color: var(--fb-ink);
  margin: 0 0 8px;
}

.no-results-desc {
  font-size: 13px;
  color: #78716c;
  margin: 0 0 16px;
}

.corridor-desc {
  font-size: 13px;
  color: #a8a29e;
  line-height: 1.5;
  margin: 0;
}
.fb-form-actions {
  margin-top: 16px;
}

/* ==========================================================================
   SUPER COMPARISON MATRIX & FLOATING DOCK (#5 FEATURE PARITY)
   ========================================================================== */
.super-compare-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(28, 25, 23, 0.96);
  border-top: 2px solid #b45309;
  color: #ffffff;
  padding: 10px 20px;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.super-compare-dock-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.super-compare-dock-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.super-compare-dock-title {
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fed7aa;
  text-transform: uppercase;
}

.dock-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dock-chip {
  background: #292524;
  border: 1px solid rgba(254, 215, 170, 0.3);
  padding: 4px 10px;
  font-size: 11px;
  color: #f5f5f4;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
}

.dock-chip-remove {
  background: none;
  border: none;
  color: #a8a29e;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

.dock-chip-remove:hover {
  color: #ef4444;
}

.super-compare-dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-dock-open {
  background: #b45309;
  color: #ffffff;
  border: 1px solid #d97706;
  font-family: var(--fb-font-cinzel);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-dock-open:hover {
  background: #d97706;
}

.btn-dock-clear {
  background: transparent;
  color: #a8a29e;
  border: 1px solid rgba(168, 162, 158, 0.4);
  font-size: 11px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-dock-clear:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.super-compare-grid {
  display: grid;
  grid-template-columns: 160px repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  min-width: 720px;
}

.super-compare-labels {
  color: #57534e;
  font-family: var(--fb-font-cinzel);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-top: 180px;
}

.super-compare-label-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(41, 37, 36, 0.1);
}

.super-compare-card {
  background: #ffffff;
  border: 1px solid rgba(41, 37, 36, 0.15);
  border-radius: 2px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.super-compare-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(41,37,36,0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #78716c;
  cursor: pointer;
  z-index: 2;
}

.super-compare-remove-btn:hover {
  color: #b45309;
  border-color: #b45309;
}

.super-compare-placeholder {
  border: 2px dashed rgba(41, 37, 36, 0.2);
  border-radius: 2px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #78716c;
  background: rgba(252, 250, 246, 0.5);
  min-height: 480px;
}

