/**
 * 360 Broadway - Nova Child: Number Cards Grid, Map Embed and Neighborhood Cards layouts.
 * Loaded only on pages that use it (see bw_css_components() in inc/enqueue.php).
 * Loads after style.css; rules keep their original order.
 */

.scores_section {
    padding: 80px 0;
}
.scores_content {
    margin-bottom: 50px;
}

@media all and (max-width:  767px) {
	.scores_section {
		    padding-bottom: 0;
		}
	.scores_section {padding-left: 20px;padding-right: 20px;
		}
	.map_section {padding: 0 20px;
		}
}

.iframe-map {
	border: 0;
}

@media (max-width: 768px) {
	.map_section {
			padding: 0;
		}
}

.features-section.neighborhood-attractions {
	background: var(--bw-secondary);
	padding: 2rem 0;
	position: relative;
}
.neighborhood-grid {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	position: relative;
}
.features-section-feature {
	background: var(--bw-white);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	position: relative;
	border-radius: 2px;
	overflow: hidden;
}
.features-section-feature .feature-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
	display: block;
}
.features-section-feature .feature-card-content {
	padding: 1.5rem 1rem;
}
.features-section-feature h3 {
	font-size: 1.35rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
	margin-bottom: 1.5rem;
	text-align: center;
	color: var(--bw-c-222);
}
.location-list ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0;
}
.location-list ul li {
	line-height: 1.8;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: var(--bw-c-444);
}
.location-list ul li a {
	color: var(--bw-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}
.location-list ul li a:hover {
	color: var(--bw-primary);
	text-decoration: underline;
}

@media (min-width: 992px) {
	.features-section.neighborhood-attractions {
			padding: 0 0 10rem;
		}
	.neighborhood-grid {
			grid-template-columns: repeat(2, 1fr);
			top: -5rem;
			margin-bottom: -5rem;
		}
	.neighborhood-grid > .features-section-feature:nth-child(even) {
			top: 10rem;
		}
	.features-section-feature .feature-card-content {
			padding: 2.5rem 3rem;
		}
}

/* The card grid rises 5rem into the section above (designed to sit under a
   page header). After a text section, start it lower so it doesn't cover the text. */
@media (min-width: 992px) {
	.textbox_section + .features-section.neighborhood-attractions {
		padding-top: 5rem;
	}
}

/* ── Bellaview: 4-card grid — clean aligned 2×2, no stagger ── */
@media (min-width: 992px) {
	.neighborhood-grid {
		top: 0;
		margin-bottom: 0;
		gap: 2rem;
	}
	.neighborhood-grid > .features-section-feature:nth-child(even) {
		top: 0;
	}
	.features-section.neighborhood-attractions {
		padding-bottom: 4rem;
	}
	.textbox_section + .features-section.neighborhood-attractions {
		padding-top: 2rem;
	}
}

/* ── Bellaview: neighborhood cards — cascading columns (client request) ── */
@media (min-width: 992px) {
	.neighborhood-grid {
		gap: 2.5rem 2rem;
	}
	.neighborhood-grid > .features-section-feature:nth-child(even) {
		margin-top: 5rem;
	}
	.neighborhood-grid > .features-section-feature:nth-child(4) {
		margin-top: 5rem;
	}
	.features-section.neighborhood-attractions {
		padding-bottom: 5rem;
	}
}

/* ── Bellaview: deepening cascade — row 2 steps lower, bottoms unaligned ── */
@media (min-width: 992px) {
	.neighborhood-grid > .features-section-feature:nth-child(2) {
		margin-top: 5rem;
	}
	.neighborhood-grid > .features-section-feature:nth-child(4) {
		margin-top: 10rem;
	}
	.features-section.neighborhood-attractions {
		padding-bottom: 7rem;
	}
}
