/* ===== NEIGHBORHOODS PAGE ===== */

/* ---- Hero extras ---- */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

/* ---- Neighborhoods section ---- */
.neighborhoods-section {
  background: var(--color-bg);
}

/* ---- Featured Row (3 large cards) ---- */
.hood-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

/* ---- Standard Grid ---- */
.hood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ---- Card Base ---- */
.hood-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  display: flex;
  flex-direction: column;
}

.hood-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ---- Card Visual (gradient header) ---- */
.hood-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.hood-visual--sm {
  height: 120px;
}

.hood-card--lg .hood-visual {
  height: 200px;
}

/* Subtle noise texture overlay */
.hood-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.15;
  pointer-events: none;
}

/* Icon badge (featured cards) */
.hood-icon {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* Large initials watermark */
.hood-watermark {
  position: absolute;
  bottom: -8px;
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* ---- Card Body ---- */
.hood-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.hood-card--lg .hood-body {
  padding: var(--space-6);
}

.hood-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

.hood-card--lg .hood-name {
  font-size: var(--text-xl);
}

.hood-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

/* ---- Tags ---- */
.hood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
}

/* Tag color variants */
.tag--gated      { background: var(--color-ocean-light); color: var(--color-ocean); border-color: rgba(26,127,160,0.2); }
.tag--family     { background: var(--color-palm-light);  color: var(--color-palm);  border-color: rgba(74,158,110,0.2); }
.tag--golf       { background: #eaf5ee; color: #2a7a52; border-color: rgba(42,122,82,0.2); }
.tag--55plus     { background: #fff3ed; color: #b85c28; border-color: rgba(224,123,76,0.2); }
.tag--lakefront  { background: #e3f4f9; color: #1565a0; border-color: rgba(21,101,160,0.2); }
.tag--schools    { background: #fffbe6; color: #9a7000; border-color: rgba(154,112,0,0.2); }
.tag--luxury     { background: #f5f0ff; color: #6a3fbf; border-color: rgba(106,63,191,0.2); }
.tag--parks      { background: var(--color-palm-light); color: #2a6e4a; border-color: rgba(42,110,74,0.2); }
.tag--amenities  { background: var(--color-ocean-light); color: #0f6080; border-color: rgba(15,96,128,0.2); }

/* ===== MATCH (Not Sure Which Neighborhood) SECTION ===== */
.match-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.match-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: start;
}

/* ---- Content side ---- */
.match-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  max-width: 60ch;
}

.match-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
}

.match-point {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.match-point svg { flex-shrink: 0; }

.match-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Card aside ---- */
.match-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--space-16) + 4rem); /* account for sticky header */
}

.match-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.match-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.match-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

.match-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  margin-bottom: var(--space-2);
}

.match-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  max-width: 100%;
}

.match-list li svg { flex-shrink: 0; }

.match-card-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.match-card-note a {
  color: var(--color-primary);
  font-weight: 600;
}
.match-card-note a:hover { text-decoration: underline; }

/* ===== BOTTOM CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #0e3a4d 0%, #1a7fa0 60%, #4a9e6e 100%);
  color: #fff;
  text-align: center;
}

.cta-inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-4);
}

.cta-inner p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .hood-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .match-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .match-card {
    position: static;
    max-width: 480px;
  }
}

@media (max-width: 900px) {
  .hood-featured {
    grid-template-columns: 1fr 1fr;
  }
  .hood-featured .hood-card--lg:last-child {
    grid-column: 1 / -1;
  }
  .hood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hood-featured {
    grid-template-columns: 1fr;
  }
  .hood-featured .hood-card--lg:last-child {
    grid-column: auto;
  }
  .hood-grid {
    grid-template-columns: 1fr;
  }
  .match-card {
    max-width: 100%;
  }
  .match-actions {
    flex-direction: column;
  }
  .match-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-inline: auto;
  }
  .cta-actions .btn {
    justify-content: center;
  }
  .hero-badges {
    gap: var(--space-2);
  }
  .hero-badge {
    font-size: 0.65rem;
  }
}
