/* Maintained page-specific layout and interaction styles. */

/* Home: rotating historic photographs behind the enquiry-first hero. */
.pp-home-hero--carousel {
	position: relative;
	isolation: isolate;
	background: var(--pp-color-sea-dark);
}

.pp-home-hero__slides,
.pp-home-hero__slide {
	position: absolute;
	inset: 0;
}

.pp-home-hero__slides {
	z-index: -2;
	overflow: hidden;
}

.pp-home-hero__slide {
	background-image: var(--pp-home-slide-image);
	background-position: center;
	background-size: cover;
	opacity: 0;
	transform: scale(1.015);
	transition: opacity 900ms ease, transform 6500ms linear;
}

.pp-home-hero__slide.is-active {
	opacity: 1;
	transform: scale(1.045);
}

.pp-home-hero--carousel::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(14, 33, 31, 0.84), rgba(14, 33, 31, 0.14) 74%);
	pointer-events: none;
}

.pp-home-hero__controls {
	position: absolute;
	right: max(var(--pp-gutter), calc((100vw - var(--pp-wide)) / 2));
	bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	z-index: 3;
}

.pp-home-hero__control,
.pp-home-hero__dot {
	min-height: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(14, 33, 31, 0.45);
	color: #fff;
	box-shadow: none;
	transform: none;
}

.pp-home-hero__control {
	display: inline-grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	font-size: 1.3rem;
}

.pp-home-hero__autoplay-icon {
	display: block;
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}

.pp-home-hero__autoplay-icon[hidden] {
	display: none;
}

.pp-home-hero__dots {
	display: flex;
	gap: 0.4rem;
}

.pp-home-hero__dot {
	width: 0.72rem;
	height: 0.72rem;
	padding: 0;
}

.pp-home-hero__dot.is-active {
	background: #fff;
}

.pp-home-hero__control:hover,
.pp-home-hero__control:focus-visible,
.pp-home-hero__dot:hover,
.pp-home-hero__dot:focus-visible {
	background: var(--pp-color-sea);
	transform: none;
}

/* Home: keep YouTube out of the critical path until a visitor chooses to play it. */
.pp-video-facade {
	position: relative;
	width: min(100%, 45rem);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.pp-video-facade__button {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0.35rem;
	background: #111;
	color: #fff;
	box-shadow: none;
	cursor: pointer;
	transform: none;
}

.pp-video-facade__thumbnail,
.pp-video-facade__iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.pp-video-facade__thumbnail {
	object-fit: cover;
}

.pp-video-facade__iframe {
	border: 0;
}

.pp-video-facade__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.18);
}

.pp-video-facade__play {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(14, 33, 31, 0.86);
	font-size: 1.65rem;
	line-height: 1;
	padding-left: 0.15rem;
}

.pp-video-facade__label {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: rgba(14, 33, 31, 0.86);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
}

.pp-video-facade__button:hover,
.pp-video-facade__button:focus-visible {
	transform: none;
}

.pp-video-facade__button:hover .pp-video-facade__play,
.pp-video-facade__button:focus-visible .pp-video-facade__play {
	background: var(--pp-color-sea);
}

/* Accommodation and Contact own their page compositions explicitly. */
.pp-accommodation-layout,
.pp-contact-layout {
	display: grid;
	width: min(calc(100% - (2 * var(--pp-gutter))), 65rem);
	margin-inline: auto;
	border: 1px solid var(--pp-color-border);
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: 0 0.2rem 0.75rem rgba(24, 48, 45, 0.04);
	padding: 1.5rem;
	align-items: start;
}

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

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

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

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

.pp-accommodation-layout {
	grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
	gap: clamp(2rem, 2.5vw, 2.5rem);
	margin-block: 1.75rem 3rem;
	padding: clamp(1.5rem, 2.5vw, 1.75rem);
}

.pp-accommodation-media {
	display: grid;
	gap: 0.875rem;
	min-width: 0;
}

.pp-accommodation-media :where(p, figure) {
	display: contents;
}

.pp-accommodation-media a {
	display: block;
}

.pp-accommodation-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.35rem;
}

.pp-accommodation-media > p:empty,
.pp-accommodation-details > p:empty {
	display: none;
}

.pp-accommodation-details {
	min-width: 0;
	max-width: 62ch;
	font-size: 1rem;
	line-height: 1.55;
}

.pp-accommodation-details > :last-child {
	margin-bottom: 0;
}

.pp-accommodation-details :where(h2, h3, h4) {
	margin: 1.75rem 0 0.6rem;
	color: var(--pp-color-sea);
	font-family: inherit;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.pp-accommodation-details :where(h2, h3, h4):first-of-type {
	margin-top: 0;
}

.pp-accommodation-details :where(p, li) {
	max-width: none;
	margin-block: 0 1rem;
}

/* Contact: secondary address rail and one continuous booking/enquiry region. */
.pp-contact-page-header {
	width: min(calc(100% - (2 * var(--pp-gutter))), 65rem);
	margin-inline: auto;
	padding: 2rem 0 1.25rem;
	text-align: center;
}

.pp-contact-page-header h1 {
	margin: 0;
	font-size: clamp(2rem, 3vw, 2.5rem);
}

.pp-contact-layout {
	grid-template-columns: 14rem minmax(0, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
	font-size: 1rem;
	line-height: 1.5;
}

.pp-contact-side,
.pp-contact-main {
	min-width: 0;
}

.pp-contact-side :where(h2, h3, h4),
.pp-contact-main .pp-contact-booking-panel :where(h2, h3) {
	margin: 0 0 0.625rem;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	text-wrap: pretty;
}

.pp-contact-side :where(p, li) {
	max-width: none;
	margin: 0 0 1rem;
}

.pp-contact-side img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
}

.pp-contact-photo {
	margin: 0;
}

.pp-contact-main .pp-contact-booking-panel {
	width: 100%;
	max-width: none;
	margin: 0 0 1.25rem;
	border: 0;
	border-bottom: 1px solid var(--pp-color-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding: 0 0 1rem;
}

.pp-contact-main .pp-contact-booking-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pp-contact-main > :where(h2, h3) {
	margin: 0 0 0.625rem;
	font-size: 1.75rem;
	line-height: 1.25;
}

.pp-contact-main > p {
	max-width: none;
	margin: 0 0 1rem;
}

.pp-contact-main .pp-button {
	margin-top: 0.5rem;
	background: var(--pp-color-sea);
	color: #fff;
}

.pp-contact-main .pp-button:hover,
.pp-contact-main .pp-button:focus-visible {
	background: var(--pp-color-sea-dark);
}

.pp-contact-main .wpcf7 {
	width: 100%;
	max-width: none;
	margin-top: 1.25rem;
}

.pp-contact-main .wpcf7-form {
	column-gap: 1rem;
	row-gap: 1rem;
}

.pp-contact-main .wpcf7-form p:empty {
	display: none;
}

.pp-contact-main .wpcf7-form :is(input, textarea) {
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
}

.pp-contact-main .wpcf7-form textarea {
	display: block;
	height: 11rem;
	resize: vertical;
}

.pp-contact-main .wpcf7-quiz {
	display: block;
	max-width: 24rem;
}

@media (max-width: 48rem) {
	.pp-home-hero__controls {
		right: var(--pp-gutter);
		bottom: 1rem;
	}

	.pp-accommodation-layout,
	.pp-contact-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		padding: 1.25rem;
	}

	.pp-accommodation-media {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.pp-accommodation-details {
		max-width: none;
	}

	.pp-contact-side {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
		column-gap: 1rem;
		align-items: start;
	}

	.pp-contact-side > :where(h2, h3, h4, p) {
		grid-column: 1;
	}

	.pp-contact-side > p:has(img),
	.pp-contact-side > .pp-contact-photo {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin: 0;
	}
}

@media (max-width: 34rem) {
	.pp-accommodation-media {
		grid-template-columns: minmax(0, 1fr);
	}

	.pp-contact-side {
		display: block;
	}

	.pp-contact-side img {
		max-width: 14rem;
	}

	.pp-home-hero__dots {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pp-home-hero__slide {
		transition: none;
		transform: none;
	}

	.pp-home-hero__slide.is-active {
		transform: none;
	}
}
