/* ============================================================
   Navy split panel: a photo on one side; heading, text, gold-dot points,
   an icon row and a link on the other. Stacked below 961px.
   Home (Amenities, Life at the park), The Park (Getting here).
   (prototype: .split, .split-media, .split-copy, .amenities)
   ============================================================ */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: var(--color-surface-dark);
	color: var(--color-on-dark);
}

.split__media {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.split__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center var(--photo-y, 50%);
}

.split__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	padding: var(--space-section) var(--gutter-r) var(--space-section) var(--gutter-l);
}

.split__title {
	font-size: var(--size-h2);
	line-height: 1.08;
}

.split__text {
	max-width: 600px;
	color: var(--color-on-dark-strong);
	font-size: 15px;
	line-height: 1.85;
}

.split__points {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.split__points li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	font-weight: 500;
}

.split__points li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent);
}

/* Icon row: always one line (Miles 2026-11-24: the park's six like the
   Amenities' five). Columns of the prototype's width (60 / 64 / 72px) and
   gap (10 / 16 / 22px) keep its even rhythm and its word-by-word labels
   ("Sleeps / six"); when the panel is narrower the columns shrink evenly,
   but never below their longest word (min-content), so "Restaurant" never
   runs into its neighbour (it did in the prototype at 834 and 402). The
   list itself keeps the full width, so the rule above it does too.
   --icons (the count) is set by template-parts/components/split.php. */
.split__icons {
	--icon-w: 60px;
	--icon-gap: 8px; /* phones: a touch under the prototype's 10px so six fit at 375 */
	display: grid;
	grid-template-columns: repeat(var(--icons, 5), minmax(min-content, var(--icon-w)));
	justify-content: start;
	gap: 18px var(--icon-gap);
	margin: 12px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--color-on-dark-rule);
	list-style: none;
}

/* Below about 375px six labels cannot share one line: two rows of three. */
@media (max-width: 374px) {
	.split__icons:has(> li:nth-child(6)) {
		grid-template-columns: repeat(3, minmax(min-content, var(--icon-w)));
	}
}

.split__icons li {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 10px;
	color: var(--color-on-dark-soft);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em; /* phones; the prototype's 0.16em from 481px */
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

.split__icons .icon {
	color: var(--color-accent);
	transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
	.split__icons li:hover .icon {
		transform: translateY(-4px);
	}
}

.split__link {
	align-self: flex-start;
	margin-top: 6px;
	color: var(--color-on-dark);
}

@media (min-width: 481px) {
	.split__media {
		aspect-ratio: 4 / 3;
	}

	.split__icons {
		--icon-w: 64px;
		--icon-gap: 16px;
	}

	.split__icons li {
		letter-spacing: 0.16em;
	}
}

/* Side by side from 961px; the reversed panel puts its photo on the right. */
@media (min-width: 961px) {
	.split {
		grid-template-columns: 1fr 1fr;
	}

	.split__media {
		min-height: 600px;
		aspect-ratio: auto;
	}

	.split--rev .split__media {
		order: 2;
	}

	/* The text's outer edge (the screen side) is 6vw from the screen, as in
	   the prototype, but never further out than the content column, so on
	   wide screens it lines up with every other section instead of hugging
	   the screen edge far from its photo (Miles 2026-11-24, at 2560px). Its
	   inner edge (beside the photo) stops growing at 96px, so the text keeps
	   the width it has at 1440. Up to about 1440px it is exactly as before. */
	.split__copy {
		padding: var(--space-section) max(24px, 6vw, var(--content-edge-r)) var(--space-section) clamp(24px, 6vw, 96px);
	}

	.split--rev .split__copy {
		padding-right: clamp(24px, 6vw, 96px);
		padding-left: max(24px, 6vw, var(--content-edge-l));
	}

	.split__text {
		max-width: 470px;
	}
}

@media (min-width: 1181px) {
	.split__icons {
		--icon-w: 72px;
		--icon-gap: 22px;
		row-gap: 20px;
	}
}
