/* =========================================================================
   Ponte Villas — experience detail pages (Revamp 8.3)
   Loaded together with experiences.css on pages carrying the post meta
   _pv_experience_detail = 1 (Spa & Wellness, Diving & Snorkelling).

   experiences.css provides the shared dark page hero (.pv-exp-hero) and the
   .pv-exp-eyebrow treatment; this sheet adds the detail composition —
   breadcrumb, intro grid, three supporting points, 4:3 gallery, closing CTA
   — and the Revamp 8 mobile flow: image-first hero, copy beneath it,
   stacked information blocks and a smaller safe-area-aware WhatsApp button.
   ========================================================================= */

/* Section rhythm — prototype .section / .section--tight / .section--flush-top. */
.pv-exd-section { padding-block: clamp(4.25rem, 7vw, 7rem); }
.pv-exd-section.pv-exd-section--tight { padding-block: clamp(3.25rem, 5vw, 5rem); }
.pv-exd-section.pv-exd-section--flush-top { padding-top: 0; }

.pv-exd-section > .e-con-inner,
.pv-exd-breadcrumb-wrap > .e-con-inner { padding-inline: var(--pv-gutter); }

/* Breadcrumb — desktop only (the 8.3 mobile flow drops it). */
.pv-exd-breadcrumb p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 0;
	padding-block: 1.5rem;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .76rem;
	color: var(--e-global-color-muted, rgba(66, 46, 36, .72));
}

.pv-exd-breadcrumb a { color: inherit; }
.pv-exd-breadcrumb a:hover { color: var(--e-global-color-secondary, #8B7061); }
.pv-exd-breadcrumb .pv-sep { opacity: .5; }

/* Intro — copy left, 4:3 media right, vertically centred. */
.pv-exd-intro {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(1.5rem, 3.2vw, 3rem);
	align-items: center;
}

.pv-exd-copy { max-width: 34rem; gap: 0; }

/* Elementor 4.2 zeroes widget-wrapper margin-bottom at (0,3,0)
   (.e-con .elementor-widget.elementor-widget { margin-block-end: 0 }), so
   the rhythm margins are written as margin-block-end at (0,4,0). */
.pv-exd-copy > .elementor-widget.elementor-widget.pv-exp-eyebrow {
	margin-block-end: var(--pv-eyebrow-gap, .82rem);
}

.pv-exd-copy > .elementor-widget.elementor-widget.pv-exd-title {
	margin-block-end: var(--pv-heading-copy-gap, 1rem);
}

.pv-exd-title .elementor-heading-title { max-width: 14ch; }

.pv-exd-text p {
	font-size: var(--pv-body-main, 1rem);
	line-height: var(--pv-body-leading, 1.78);
	color: var(--e-global-color-muted, rgba(66, 46, 36, .72));
	margin: 0 0 1rem;
}

/* Text link — same treatment as the rest of the site (the kit's hover
   background is already taken back globally by global.css section 11e). */
.pv-textlink .elementor-button {
	display: inline-block;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--e-global-color-text, #422E24);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--e-global-color-line, rgba(66, 46, 36, .14));
	border-radius: 0;
	padding: 0 0 .45rem;
	transition: border-color .45s var(--pv-ease), color .45s var(--pv-ease);
}

.pv-textlink .elementor-button:hover {
	color: var(--e-global-color-secondary, #8B7061);
	border-bottom-color: var(--e-global-color-secondary, #8B7061);
}

/* Intro media — fixed 4:3 crop; the height chain matches the pattern
   experiences.css already needs for this Elementor version. */
.pv-exd-media {
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
	padding: 0;
	background: var(--e-global-color-sagewash, #E2DED9);
}

.pv-exd-media > .e-con-inner { height: 100%; padding: 0; }
.pv-exd-media .elementor-widget-image { width: 100%; height: 100%; }
.pv-exd-media .elementor-widget-container,
.pv-exd-media figure { height: 100%; }
.pv-exd-media img { width: 100%; height: 100%; object-fit: cover; }

/* Supporting points — three columns inside the same global container. */
.pv-exd-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.2rem, 3vw, 2.5rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.pv-exd-point {
	min-width: 0;
	gap: .55rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--e-global-color-line, rgba(66, 46, 36, .14));
}

.pv-exd-point-text p {
	font-size: var(--pv-body-card, .9375rem);
	line-height: var(--pv-body-card-leading, 1.72);
	color: var(--e-global-color-muted, rgba(66, 46, 36, .72));
	margin: 0;
}

/* Gallery — equal-width 4:3 pair, one shared top edge (Revamp 8.1). */
.pv-exd-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	align-items: start;
}

.pv-exd-gallery > .elementor-widget-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.pv-exd-gallery > .elementor-widget-image .elementor-widget-container,
.pv-exd-gallery > .elementor-widget-image figure { height: 100%; }

.pv-exd-gallery > .elementor-widget-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Closing CTA — hairline top, copy left, solid button right. */
.pv-exd-cta {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	border-top: 1px solid var(--e-global-color-line, rgba(66, 46, 36, .14));
	padding-top: clamp(2rem, 4vw, 3rem);
}

.pv-exd-cta-copy { gap: .7rem; max-width: 42rem; }

.pv-exd-cta-title .elementor-heading-title { max-width: 16ch; }

.pv-exd-cta-text p {
	font-size: var(--pv-body-main, 1rem);
	line-height: var(--pv-body-leading, 1.78);
	color: var(--e-global-color-muted, rgba(66, 46, 36, .72));
	margin: 0;
	max-width: 42ch;
}

/* Solid CTA button — Sage Deep fill, Ink on hover; scoped past the kit's
   (0,1,1) default and (0,2,1) hover/focus button rules. */
.pv-exd-cta .pv-exd-cta-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 48px;
	padding: 1.05rem 2.1rem;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--e-global-color-ondark, #F4F2ED);
	background-color: var(--e-global-color-primary, #8B7061);
	border: 1px solid var(--e-global-color-primary, #8B7061);
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	transition: background-color .45s var(--pv-ease), color .45s var(--pv-ease), border-color .45s var(--pv-ease);
}

.pv-exd-cta .pv-exd-cta-btn .elementor-button:hover {
	background-color: var(--e-global-color-text, #422E24);
	border-color: var(--e-global-color-text, #422E24);
	color: var(--e-global-color-ondark, #F4F2ED);
}

.pv-exd-cta .pv-exd-cta-btn .elementor-button:focus:not(:hover) {
	background-color: var(--e-global-color-primary, #8B7061);
	border-color: var(--e-global-color-primary, #8B7061);
	color: var(--e-global-color-ondark, #F4F2ED);
}

.pv-exd-cta .pv-exd-cta-btn .elementor-button:focus-visible {
	outline: 2px solid var(--e-global-color-text, #422E24);
	outline-offset: 3px;
}

/* Responsive — prototype breakpoints. The 720 block comes after 900 so the
   8.3 mobile flow wins where they overlap. */
@media (max-width: 900px) {
	.pv-exd-intro { grid-template-columns: 1fr; gap: 2rem; }
	.pv-exd-points { grid-template-columns: 1fr 1fr; }
	.pv-exd-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	/* Image-first hero: the photo becomes a normal 4:3 block at the top,
	   the copy reads beneath it on paper, in ink. */
	body.pv-exp-detail .pv-exp-hero {
		display: block;
		min-height: 0;
		color: var(--e-global-color-text, #422E24);
		background: var(--e-global-color-paper, #F4F2ED);
	}

	body.pv-exp-detail.admin-bar .pv-exp-hero { min-height: 0; }

	body.pv-exp-detail .pv-exp-hero::after { display: none; }

	body.pv-exp-detail .pv-exp-hero-media {
		position: relative;
		inset: auto;
		aspect-ratio: 4 / 3;
		overflow: hidden;
	}

	body.pv-exp-detail .pv-exp-hero-media img { width: 100%; height: 100%; object-fit: cover; }

	body.pv-exp-detail .pv-exp-hero-inner { padding-top: 2rem; padding-bottom: 0; }

	body.pv-exp-detail .pv-exp-hero .pv-exp-eyebrow {
		color: var(--e-global-color-muted, rgba(66, 46, 36, .72));
		margin-bottom: .8rem;
	}

	body.pv-exp-detail .pv-exp-hero-title .elementor-heading-title,
	body.pv-exp-detail .pv-exp-hero-title {
		color: var(--e-global-color-text, #422E24);
		font-size: clamp(2.3rem, 11vw, 3.3rem);
		max-width: 12ch;
	}

	body.pv-exp-detail .pv-exp-hero-lead {
		color: var(--e-global-color-muted, rgba(66, 46, 36, .72));
		margin-top: 1rem;
		font-size: var(--pv-body-main, 1rem);
		line-height: var(--pv-body-leading, 1.78);
	}

	.pv-exd-breadcrumb-wrap { display: none; }

	.pv-exd-section.pv-exd-section--tight { padding-block: 3.5rem; }

	.pv-exd-intro { gap: 1.75rem; }
	.pv-exd-copy { max-width: none; }
	.pv-exd-title .elementor-heading-title { max-width: 12ch; }
	.pv-exd-text p { margin-bottom: 1.2rem; }

	/* Points become a compact stacked list. */
	.pv-exd-points { margin-top: 2.4rem; gap: 0; grid-template-columns: 1fr; }

	.pv-exd-point {
		padding: 1.35rem 0;
		border-top: 1px solid var(--e-global-color-line, rgba(66, 46, 36, .14));
	}

	.pv-exd-point:last-child {
		border-bottom: 1px solid var(--e-global-color-line, rgba(66, 46, 36, .14));
	}

	.pv-exd-gallery { gap: .85rem; }

	.pv-exd-cta { flex-direction: column; align-items: flex-start; padding-top: 2rem; }

	/* Smaller, safe-area-aware WhatsApp float on detail pages. */
	body.pv-exp-detail .pv-wa {
		width: 44px;
		height: 44px;
		left: 1rem;
		bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 560px) {
	.pv-exd-points,
	.pv-exd-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.pv-textlink .elementor-button,
	.pv-exd-cta .pv-exd-cta-btn .elementor-button { transition-duration: .001ms; }
}

/* Elementor editor canvas — the hero rules in experiences.css already put
   the absolutely positioned hero media back in flow; nothing else on these
   pages is hidden or out of flow. */
