/*
 * Cross-page visual consistency for secondary pages.
 *
 * Home keeps its immersive hero. Secondary pages share a compact scenic
 * masthead, a 65rem content axis and a consistent hand-off into page content.
 */

:root {
	--pp-page-content: 65rem;
	--pp-page-gap: clamp(1.5rem, 3vw, 1.75rem);
}

.pp-page-hero--compact {
	min-height: 13rem;
}

.pp-page-hero--compact .pp-page-hero__inner {
	width: min(calc(100% - (2 * var(--pp-gutter))), var(--pp-page-content));
	padding-block: 2rem;
}

.pp-page-hero--compact h1 {
	max-width: none;
	margin: 0.12em 0 0;
	font-size: clamp(2rem, 3.2vw, 2.5rem);
	text-wrap: pretty;
}

.pp-page-hero--compact .pp-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
}

.pp-page-hero--compact p:not(.pp-eyebrow) {
	max-width: 46rem;
	margin-top: 0.65rem;
	font-size: clamp(1rem, 0.98rem + 0.15vw, 1.08rem);
	line-height: 1.55;
}

/* Keep the main secondary-page compositions on one shared content axis. */
.pp-content-page--availability .entry-content,
.pp-booking-compact-note,
.pp-final-booking-form__inner,
.pp-location-layout,
.pp-accommodation-layout,
.pp-contact-layout {
	width: min(calc(100% - (2 * var(--pp-gutter))), var(--pp-page-content));
	max-width: var(--pp-page-content);
}

/* Use the same visual hand-off from a compact masthead into page content. */
.pp-content-page--availability .entry-content {
	padding-top: var(--pp-page-gap);
}

.pp-location-layout,
.pp-accommodation-layout,
.pp-contact-layout {
	margin-top: var(--pp-page-gap);
}

.pp-booking-compact-note {
	margin-top: var(--pp-page-gap);
}

.pp-page-hero--compact + .entry-content {
	padding-top: var(--pp-page-gap);
}

/*
 * Booking journey: keep the owner-led process visible wherever visitors enter
 * it without making the sequence look like an automated checkout control.
 * Navigable steps get a small explicit control at the far edge while the row
 * itself stays static so an accidental tap cannot navigate away.
 */
.pp-booking-journey {
	width: min(calc(100% - (2 * var(--pp-gutter))), var(--pp-page-content));
	max-width: var(--pp-page-content);
	margin: var(--pp-page-gap) auto 0;
}

.pp-booking-journey h2 {
	margin: 0 0 0.65rem;
	font-size: 1.2rem;
	line-height: 1.25;
}

.pp-booking-journey__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	border-radius: 0.5rem;
	background: var(--pp-color-border);
	padding: 1px;
	overflow: hidden;
	list-style: none;
}

.pp-booking-journey__step {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr);
	align-items: start;
	gap: 0.65rem;
	max-width: none;
	min-width: 0;
	background: #fff;
	padding: 0.9rem 1rem;
}

/*
 * Keep navigation out of the content grid. A narrow full-height edge target
 * leaves more width for the copy, which prevents longer labels/descriptions
 * wrapping into an extra line while still keeping the row itself non-clickable.
 */
.pp-booking-journey__step.has-navigation {
	position: relative;
	padding-right: 2.35rem;
}

.pp-booking-journey__step.is-current {
	background: var(--pp-color-sand);
	box-shadow: inset 0 3px var(--pp-color-sea);
}

.pp-booking-journey__number {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: var(--pp-color-sky);
	color: var(--pp-color-sea-dark);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1;
}

.pp-booking-journey__step.is-current .pp-booking-journey__number {
	background: var(--pp-color-sea);
	color: #fff;
}

.pp-booking-journey__copy,
.pp-booking-journey__copy > span {
	display: block;
	min-width: 0;
}

.pp-booking-journey__copy strong {
	display: block;
	color: var(--pp-color-ink);
	font-size: 0.92rem;
	line-height: 1.3;
}

.pp-booking-journey__copy > span {
	margin-top: 0.2rem;
	color: var(--pp-color-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.pp-booking-journey__nav {
	position: absolute;
	inset-block: 0;
	right: 0.2rem;
	display: inline-grid;
	place-items: center;
	width: 1.9rem;
	border-radius: 999px;
	color: var(--pp-color-sea-dark);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 150ms ease, transform 150ms ease;
}

.pp-booking-journey__nav:hover,
.pp-booking-journey__nav:focus-visible {
	background: var(--pp-color-sky);
	color: var(--pp-color-sea-dark);
	transform: translateX(0.1rem);
}

.pp-booking-journey__nav:focus-visible {
	outline: 3px solid var(--pp-color-sea);
	outline-offset: -3px;
}

/* The current step already has strong visual and semantic state indicators. */
.pp-booking-journey__current {
	display: none;
}

@media (max-width: 56rem) {
	.pp-booking-journey__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.pp-page-hero--compact {
		min-height: 14rem;
	}

	.pp-page-hero--compact .pp-page-hero__inner {
		padding-block: 1.75rem;
	}

	.pp-page-hero--compact h1 {
		font-size: clamp(2rem, 8vw, 2.5rem);
	}
}

@media (max-width: 34rem) {
	.pp-booking-journey__steps {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pp-booking-journey__nav {
		transition: none;
	}
}
