/* Section wrapper — full-bleed cream, 50px top / 60px bottom padding */
.bsw-space-tiles.wp-block-group.alignfull {
	background: #f8f7f4;
	padding: 50px 20px 60px !important;
	margin-block: 0 !important;
}

/* Tiles row — up to three 392px cards centered in a 1216 row, 20px apart.
   The page has one card per space; spaces.js hides the active space's card,
   leaving the other three. */
.bsw-space-tiles__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	max-width: 1216px;
	margin-inline: auto;
}

.bsw-space-tiles__card {
	width: 392px;
	background: #fff;
	padding: 29px 27.5px 40px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Photo — 337 square, hover zoom like the galleries */
.bsw-space-tiles__photo {
	width: 337px;
	height: 337px;
	overflow: hidden;
	line-height: 0;
}

.bsw-space-tiles__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease-in-out;
}

.bsw-space-tiles__card:hover .bsw-space-tiles__photo img {
	transform: scale(1.05);
}

/* Name — Cardo uppercase mauve, wide-tracked, centered (wraps to two lines) */
h3.bsw-space-tiles__name {
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: normal !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	color: #aa747c !important;
	text-align: center;
	margin: 20px 0 0 !important;
	max-width: 299px;
}

/* Gold rule */
.bsw-space-tiles__rule {
	display: block;
	width: 43px;
	height: 1px;
	background: #baaa7c;
	margin-top: 13px;
}

/* Specs — bulleted, Cardo 16/29, left-aligned within the card */
ul.bsw-space-tiles__specs {
	list-style: disc;
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 16px;
	line-height: 29px;
	color: #554b4b;
	width: 337px;
	margin: 20px 0 0 !important;
	padding-left: 24px;
	box-sizing: border-box;
}

ul.bsw-space-tiles__specs li {
	margin: 0;
}

/* Explore button — small filled mauve, 281×41, pushed to the card bottom */
.bsw-space-tiles__cta {
	text-transform: capitalize;
	margin-top: auto;
	width: 281px;
	min-height: 41px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #aa747c;
	color: #fff !important;
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 18px;
	text-align: center;
	text-decoration: none;
	padding: 4px 12px;
	box-sizing: border-box;
	transition: background-color 0.2s ease;
}

.bsw-space-tiles__cta:hover {
	background: #94565f;
}

/* The specs block sits above a flexible gap so the button aligns to the
   bottom of the tallest card; add the design's 14px min gap */
ul.bsw-space-tiles__specs {
	margin-bottom: 14px !important;
}

@media (max-width: 767px) {
	.bsw-space-tiles.wp-block-group.alignfull {
		padding: 50px 24px 60px !important;
	}

	.bsw-space-tiles__row {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	/* Cards go full-width (capped at the 392 design width) */
	.bsw-space-tiles__card {
		width: 100%;
		max-width: 392px;
	}
}
