/* Floor Plan Cards block — 2×2 grid of unit cards */

.floorplans--section {
	background-color: var(--color-body-cream);
}

.floorplans--container {
	width: 100%;
	max-width: var(--theme-content-width, 1400px);
	margin-inline: auto;
	padding-inline: var(--theme-content-padding, 15px);
}

.floorplans--grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border: 1px solid var(--color-gold);
}

.floorplans--card {
	display: flex;
	flex-direction: column;
	padding: 30px 15px 45px;
	border-bottom: 1px solid var(--color-gold);
	justify-content: space-between;
}

/* Single-column: the last card meets the grid's own bottom border, so drop its
   divider to avoid a doubled 1px line at the bottom edge. */
.floorplans--card:last-child {
	border-bottom: 0;
}

.floorplans--card-image {
	margin-bottom: 25px;
}

.floorplans--card-image img {
	width: 100%;
	height: auto;
	max-height: 320px;
}

.floorplans--card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
}

.floorplans--card-info {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.floorplans--card-title {
	font-family: var(--theme-font-serif, "Garamond Premier Pro", serif);
	font-size: 1.75rem;
	color: var(--color-text-black);
	margin: 0 0 4px;
}

.floorplans--card-sqft {
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--color-text-black);
	margin: 0 0 14px;
}

.floorplans--card-price {
	font-size: 0.8rem;
	font-style: italic;
	color: var(--color-text-black);
	margin: 0 0 24px;
}

/* Author wraps the price number in a <span> via the CMS — render it larger,
   bold, and upright (not italic) so the figure stands out from the copy. */
.floorplans--card-price span {
	font-size: 1.5rem;
	font-weight: 700;
	font-style: normal;
}

.floorplans--card-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: auto;
}

.floorplans--cta {
	letter-spacing: 0.08em;
	padding: 9px 16px;
	min-width: 150px;
	text-align: center;
}

.floorplans--placeholder {
	text-align: center;
	color: var(--color-hero-grey);
	padding: 40px 0;
}

/* Tablet+ : 2 columns with gold dividers between cells */
@media (min-width: 756px) {
	.floorplans--grid {
		grid-template-columns: 1fr 1fr;
	}

	.floorplans--card {
		padding: 40px 35px 50px;
	}

	/* gold rule between the two columns */
	.floorplans--card:nth-child(odd) {
		border-right: 1px solid var(--color-gold);
	}

	/* drop the trailing bottom border on the last row */
	.floorplans--card:nth-last-child(-n+2):nth-child(odd),
	.floorplans--card:nth-last-child(-n+2):nth-child(odd) ~ .floorplans--card {
		border-bottom: 0;
	}
}

@media (min-width: 992px) {
	.floorplans--card-title {
		font-size: 2rem;
	}

	.floorplans--card-image {
		margin-bottom: 40px;
	}
}
