/* ============================================================
   Ponte Villas — Experiences page (Elementor Phase 4A)
   Loaded only on is_page('experiences'). Prototype-specific
   composition only — shared mechanics (Global Colours/Fonts,
   --pv-gutter, .pv-reveal, focus-visible, body lock) already
   live in global.css and are reused as-is, not redefined here
   except where a page-local value (--pv-section-y) matches the
   same pattern already used independently by home.css/stay.css/
   room.css.
============================================================ */

:root {
	--pv-section-y: clamp(5rem, 13vw, 12rem);
}

.pv-exp-section > .e-con-inner,
.pv-exp-hero-inner > .e-con-inner,
.pv-exp-fullbleed-inner > .e-con-inner {
	padding-inline: var(--pv-gutter);
}

.pv-exp-eyebrow {
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--e-global-color-muted, #6B6A63);
}

/* ============================================================
   1. PAGE HERO — dark image hero, bottom-aligned, 64svh.
   The media widget is taken out of flow; nothing here waits on
   JavaScript and the image is never faded in — it is the LCP
   element, so no .pv-reveal is applied to it or its container.
============================================================ */

.pv-exp-hero {
	position: relative;
	min-height: 64svh;
	justify-content: flex-end;
	overflow: hidden;
	padding: 0;
	color: var(--e-global-color-ondark, #F1EFE9);
}

body.admin-bar .pv-exp-hero { min-height: calc(64svh - var(--pv-admin-bar)); }

.pv-exp-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	margin: 0;
}

.pv-exp-hero-media .elementor-widget-container,
.pv-exp-hero-media figure { height: 100%; }

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

.pv-exp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(30, 36, 32, .34), rgba(30, 36, 32, .08) 45%, rgba(30, 36, 32, .6));
}

.pv-exp-hero-inner {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(2.6rem, 6vw, 4.5rem);
}

.pv-exp-hero-inner > .e-con-inner { gap: 0; align-items: flex-start; }

.pv-exp-hero .pv-exp-eyebrow {
	margin-bottom: 1.1rem;
	color: rgba(241, 239, 233, .7);
}

.pv-exp-hero-title {
	max-width: 15ch;
	color: var(--e-global-color-ondark, #F1EFE9);
}

.pv-exp-hero-lead {
	max-width: 52ch;
	margin-top: 1.1rem;
	color: rgba(241, 239, 233, .85);
}

/* ============================================================
   2. INTRO + EXPERIENCE GALLERY
============================================================ */

.pv-exp-section { padding-block: var(--pv-section-y); }

.pv-exp-intro {
	/* pv-exp-section is content_width:full, so Elementor never renders an
	   .e-con-inner here to center against — this element must be its own
	   centered container, exactly like the prototype's "container exp-lead" div. */
	width: min(calc(100% - (2 * var(--pv-gutter))), 1360px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
}

.pv-exp-intro-title { max-width: 14ch; margin-bottom: 1.2rem; }

.pv-exp-intro-media {
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
	padding: 0;
	/* Shows only when the container has no image child — i.e. the two
	   placeholders awaiting real photography (see launch blockers). */
	background: var(--e-global-color-sagewash, #E4E8DF);
}

.pv-exp-intro-media .elementor-widget-container,
.pv-exp-intro-media figure { height: 100%; }

/* This Elementor version renders the image widget without an
   .elementor-widget-container, and its .e-con-inner is a column flex
   box (which only stretches width, not height) — so height:100% never
   reached the <img> without these two links in the chain. */
.pv-exp-intro-media > .e-con-inner,
.pv-experience-card-media > .e-con-inner {
	height: 100%;
	padding: 0;
}

.pv-exp-intro-media .elementor-widget-image,
.pv-experience-card-media .elementor-widget-image {
	width: 100%;
	height: 100%;
}

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

.pv-exp-gallery {
	/* Same content_width:full root cause as .pv-exp-intro above — this is
	   its own centered wrapper, matching the prototype's "container" div
	   that wraps .exp-stack. */
	width: min(calc(100% - (2 * var(--pv-gutter))), 1360px);
	margin-inline: auto;
	margin-top: clamp(3.5rem, 8vw, 7rem);
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 2.5vw, 2rem);
}

.pv-experience-card-title { margin-bottom: .7rem; }

.pv-experience-card-text p {
	font-size: .92rem;
	line-height: 1.85;
	color: var(--e-global-color-muted, #6B6A63);
	margin: 0;
}

.pv-experience-card-media {
	margin-bottom: 1.1rem;
	position: relative;
	overflow: hidden;
	padding: 0;
	background: var(--e-global-color-sagewash, #E4E8DF);
}

.pv-experience-card-media .elementor-widget-container,
.pv-experience-card-media figure { height: 100%; }

.pv-experience-card-media img { width: 100%; height: 100%; object-fit: cover; }

/* Cream veil on hover, matching the site-wide photo treatment — the
   photo itself never moves or scales. */
.pv-experience-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--e-global-color-paper, #F4F2ED);
	opacity: 0;
	transition: opacity .6s var(--pv-ease);
	pointer-events: none;
}

.pv-experience-card:hover .pv-experience-card-media::after,
.pv-experience-card:focus-within .pv-experience-card-media::after { opacity: .22; }

/* Twelve-column asymmetric placement, exactly as the prototype. */
.pv-experience-card-1 { grid-column: 1 / span 7; }
.pv-experience-card-1 .pv-experience-card-media { aspect-ratio: 16 / 10; }

.pv-experience-card-2 { grid-column: 9 / span 4; align-self: end; padding-bottom: 2rem; }
.pv-experience-card-2 .pv-experience-card-media { aspect-ratio: 4 / 3; }

.pv-experience-card-3 { grid-column: 1 / span 4; margin-top: clamp(1rem, 4vw, 3rem); }
.pv-experience-card-3 .pv-experience-card-media { aspect-ratio: 4 / 3; }
/* Source photo is portrait; cover-cropping into this 4/3 box would
   center on the horizon and clip the surfer — bias the crop upward. */
.pv-experience-card-3 .pv-experience-card-media img { object-position: center 38%; }

.pv-experience-card-4 { grid-column: 6 / span 7; margin-top: clamp(2rem, 6vw, 5rem); }
.pv-experience-card-4 .pv-experience-card-media { aspect-ratio: 16 / 10; }

.pv-experience-card-5 { grid-column: 2 / span 5; margin-top: clamp(1rem, 4vw, 3rem); }
.pv-experience-card-5 .pv-experience-card-media { aspect-ratio: 4 / 3; }

.pv-experience-card-6 { grid-column: 8 / span 5; align-self: end; }
.pv-experience-card-6 .pv-experience-card-media { aspect-ratio: 4 / 3; }

/* ============================================================
   3. FULL-BLEED BREAK
============================================================ */

.pv-exp-fullbleed {
	position: relative;
	min-height: clamp(20rem, 52vh, 34rem);
	justify-content: center;
	overflow: hidden;
	padding: 0;
	color: var(--e-global-color-ondark, #F1EFE9);
}

.pv-exp-fullbleed-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	margin: 0;
}

.pv-exp-fullbleed-media .elementor-widget-container,
.pv-exp-fullbleed-media figure { height: 100%; }

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

.pv-exp-fullbleed::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: rgba(30, 36, 32, .38);
}

.pv-exp-fullbleed-inner { position: relative; z-index: 2; }
.pv-exp-fullbleed-inner > .e-con-inner { align-items: center; }

.pv-exp-fullbleed-text p {
	max-width: 20ch;
	margin-inline: auto;
	font-size: clamp(1.4rem, 3.2vw, 2.6rem);
	line-height: 1.35;
}

/* ============================================================
   4. RESPONSIVE — the prototype's own breakpoints
============================================================ */

@media (max-width: 900px) {
	.pv-exp-intro { grid-template-columns: 1fr; gap: 2rem; }

	.pv-exp-gallery { grid-template-columns: 1fr; gap: 2.5rem; }

	.pv-experience-card-1,
	.pv-experience-card-2,
	.pv-experience-card-3,
	.pv-experience-card-4,
	.pv-experience-card-5,
	.pv-experience-card-6 {
		grid-column: 1 / -1;
		margin-top: 0;
		padding-bottom: 0;
	}

	.pv-experience-card-1 .pv-experience-card-media,
	.pv-experience-card-2 .pv-experience-card-media,
	.pv-experience-card-3 .pv-experience-card-media,
	.pv-experience-card-4 .pv-experience-card-media,
	.pv-experience-card-5 .pv-experience-card-media,
	.pv-experience-card-6 .pv-experience-card-media { aspect-ratio: 4 / 3; }
}

/* ============================================================
   5. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
	.pv-experience-card-media::after { transition-duration: .001ms; }
}

/* ============================================================
   6. Elementor editor canvas — the hero and full-bleed media are
   absolutely positioned and would be unselectable in the editor;
   put them back in flow there, matching the pattern already used
   on the Stay/Room page heroes.
============================================================ */

body.elementor-editor-active .pv-exp-hero,
body.elementor-editor-active .pv-exp-fullbleed {
	min-height: 0;
	background: var(--e-global-color-text, #2B2C28);
}

body.elementor-editor-active .pv-exp-hero-media,
body.elementor-editor-active .pv-exp-fullbleed-media {
	position: relative;
	inset: auto;
}

body.elementor-editor-active .pv-exp-hero::after,
body.elementor-editor-active .pv-exp-fullbleed::after { display: none; }

/* Placeholder containers get a visible dashed outline in the editor
   only, so an editor knows at a glance which slots await real photos
   — never shown to a site visitor. */
body.elementor-editor-active .pv-exp-intro-media:empty,
body.elementor-editor-active .pv-experience-card-media:empty {
	outline: 1px dashed var(--e-global-color-secondary, #7E9481);
	outline-offset: -1px;
}