/* ======================
   NEIGHBORHOOD SECTION
   ====================== */

/* Base Section - Matching Availability */
#neighborhood {
  padding-top: 0; /* let the bridge image kiss the glass container */
  margin-top: -20px;
  /* Inherit background from page */
}



/* Typography - Matching Availability */
#neighborhood .section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--eleanor-charcoal);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

#neighborhood .section-subtitle {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

.neighborhood-tabs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.neighborhood-header {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.neighborhood-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.58);
  max-width: 680px;
  margin: 0 auto;
}

/* Tab Navigation - Matching Availability Filter Style */
.tab-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.60);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.70rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.75);
}

.tab-btn.active {
  background: var(--eleanor-charcoal);
  color: #fff;
}

/* Tab Content - Matching Availability Card Style */
.tab-content {
  display: none;
  border-radius: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-content.active {
  display: block;
  animation: neighborhoodFadeUp 0.5s ease;
}

@keyframes neighborhoodFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Typography - Matching Availability */
.tab-content h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 1rem;
}

.tab-content h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--eleanor-charcoal);
  margin-bottom: 0.75rem;
}

.tab-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--font-body-size);
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 1.25rem;
}

/* Living Grid */
.living-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
}

/* Cards - Glass Card Style from Availability */
.living-benefits-card,
.why-card {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.living-benefits-card {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--font-body-size);
  color: rgba(0, 0, 0, 0.75);
}

.benefit-item i {
  color: var(--eleanor-pink, #f6d2d6);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 1rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list i {
  color: var(--eleanor-green, #c9d7d0);
  margin-right: 10px;
}

.why-list p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--font-body-size);
  color: rgba(0, 0, 0, 0.75);
}

/* Map Section */
.map-section {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Transit Lines */
.transit-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}

.transit-line {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eleanor-charcoal);
}

.transit-distance {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
}

.transit-note {
  margin-top: 12px;
  font-style: italic;
  color: var(--eleanor-pink, #f6d2d6);
  font-size: 0.9rem;
}

/* Subway Icons */
.subway-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Number lines */
.subway-1 { background: #ee352e; color: #fff; }
.subway-2 { background: #ee352e; color: #fff; }
.subway-3 { background: #ee352e; color: #fff; }
.subway-4 { background: #00933c; color: #fff; }
.subway-5 { background: #00933c; color: #fff; }
.subway-6 { background: #00933c; color: #fff; }
.subway-7 { background: #b933ad; color: #fff; }

/* Letter lines */
.subway-a { background: #0039a6; color: #fff; }
.subway-c { background: #0039a6; color: #fff; }
.subway-e { background: #0039a6; color: #fff; }
.subway-b { background: #ff6319; color: #fff; }
.subway-d { background: #ff6319; color: #fff; }
.subway-f { background: #ff6319; color: #fff; }
.subway-m { background: #ff6319; color: #fff; }
.subway-g { background: #6cbe45; color: #fff; }
.subway-j { background: #996633; color: #fff; }
.subway-z { background: #996633; color: #fff; }
.subway-l { background: #a7a9ac; color: #fff; }
.subway-n { background: #fccc0a; color: #000; }
.subway-q { background: #fccc0a; color: #000; }
.subway-r { background: #fccc0a; color: #000; }
.subway-w { background: #fccc0a; color: #000; }
.subway-s { background: #808183; color: #fff; }

/* Location Cards */
.location-card {
  display: flex;
  gap: 20px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-image {
  flex: 0 0 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15));
}

.card-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-details h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eleanor-charcoal);
}

.distance-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  font-style: italic;
}

.distance-info i {
  color: var(--eleanor-green, #c9d7d0);
}

/* Park Grid */
.park-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.park-card {
  position: relative;
  border-radius: 16px;
  min-height: 320px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.park-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.park-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: #fff;
  z-index: 1;
}

.park-content h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.park-content p {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--font-body-size);
  line-height: 1.5;
}

/* Responsive styles moved to main styles.css */