/* =========================================================================
   Ponte Villas — Stay page CSS (Elementor Phase 3A)
   Deploy to wp-content/mu-plugins/ponte-villas-global/stay.css
   Enqueued by ponte-villas-global.php only on the page with slug "stay".

   SCOPE — translated from prototype/assets/css/style.css v2.4, limited to
   what Elementor's controls cannot express:
     1. page hero (full-bleed media + gradient, 64svh)
     2. the two group compositions: 1.25/1 offset duo, 3-up trio with the
        middle card dropped
     3. card image crops and the cream hover veil
     4. the 900 / 720 / 560 breakpoints Elementor's kit does not offer
     5. section rhythm and the statement indent

   NOTE ON DUPLICATION — the section rhythm, statement, eyebrow, textlink
   and full-bleed rules below also exist in home.css. They are repeated
   rather than shared because home.css is front-page-only and global.css is
   frozen for this phase. When a third page needs them, lift this block and
   the matching one in home.css into global.css and delete both copies.

   Colour values reference Elementor global colour variables; the hex after
   the comma is the fallback used before the kit stylesheet loads.
   ========================================================================= */

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

/* Shared scaffolding (see NOTE ON DUPLICATION above) --------------------- */

.pv-stay-section { padding-block: var(--pv-section-y); }
.pv-stay-section--flush-top { padding-top: 0; }

.pv-stay-section > .e-con-inner,
.pv-ph-inner > .e-con-inner,
.pv-fb-inner > .e-con-inner {
	padding-inline: var(--pv-gutter);
}

.pv-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);
}

.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, #2B2C28);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--e-global-color-line, rgba(43, 44, 40, .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, #7E9481);
	border-bottom-color: var(--e-global-color-secondary, #7E9481);
}

/* 1. PAGE HERO ----------------------------------------------------------
   Shorter than the homepage hero (64svh, not full viewport) and bottom
   aligned. 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. */

.pv-page-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-page-hero { min-height: calc(64svh - var(--pv-admin-bar)); }

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

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

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

.pv-page-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-ph-inner {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(2.6rem, 6vw, 4.5rem);
}

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

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

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

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

/* 2. STATEMENT ---------------------------------------------------------- */

.pv-statement {
	padding-left: clamp(0rem, 11vw, 13rem);
	max-width: 60rem;
}

.pv-statement-text p {
	max-width: 24ch;
	font-size: clamp(1.35rem, 2.9vw, 2.35rem);
	line-height: 1.42;
	letter-spacing: -.01em;
}

/* 3. STAY GROUPS -------------------------------------------------------- */

.pv-stay-group + .pv-stay-group { margin-top: clamp(4.5rem, 10vw, 9rem); }
.pv-stay-group { gap: 0; padding: 0; }

/* Title left, category right, sharing one baseline over a hairline. */
.pv-group-head {
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding: 0 0 1.2rem;
	margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--e-global-color-line, rgba(43, 44, 40, .14));
}

.pv-group-head .pv-eyebrow { white-space: nowrap; }

/* Private Villas — one large card, one smaller card dropped down. */
.pv-stay-duo {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
	padding: 0;
}

.pv-duo-b { padding-top: clamp(2rem, 8vw, 7rem); }
.pv-stay-duo .pv-s-media { aspect-ratio: 4 / 3; }
.pv-stay-duo .pv-duo-b .pv-s-media { aspect-ratio: 3 / 2; }

/* Rooms & Suites — three up, middle one dropped. */
.pv-stay-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.2rem, 3vw, 2.4rem);
	align-items: start;
	padding: 0;
}

.pv-stay-trio > *:nth-child(2) { padding-top: clamp(2rem, 7vw, 5.5rem); }
.pv-stay-trio .pv-s-media { aspect-ratio: 4 / 3; }

/* 4. CARDS -------------------------------------------------------------- */

.pv-stay-card {
	position: relative;
	gap: 0;
	padding: 0;
	align-items: flex-start;
}

.pv-s-media {
	position: relative;
	overflow: hidden;
	margin: 0 0 1.1rem;
	width: 100%;
}

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

/* Cream veil on hover — the photo itself never moves or scales. */
.pv-s-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-stay-card:hover .pv-s-media::after,
.pv-stay-card:focus-within .pv-s-media::after { opacity: .22; }

.pv-s-cat {
	display: block;
	margin-bottom: .5rem;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--e-global-color-muted, #6B6A63);
}

.pv-s-title { margin-bottom: .6rem; }
.pv-s-text p { max-width: 34ch; margin-bottom: 1.1rem; }

/* One anchor per card — the visible "View details" link — stretched over
   the whole card. The card is clickable everywhere but there is still only
   a single link and a single tab stop, and the photo is not a second
   anchor pointing at the same place. */
.pv-s-link .elementor-button::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

/* 5. FULL-BLEED BREAK --------------------------------------------------- */

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

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

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

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

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

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

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

/* 6. RESPONSIVE — the prototype's own breakpoints ------------------------ */

@media (max-width: 900px) {
	.pv-stay-duo { grid-template-columns: 1fr; gap: 2rem; }
	.pv-duo-b { padding-top: 0; }
	.pv-stay-duo .pv-duo-b .pv-s-media { aspect-ratio: 4 / 3; }

	.pv-stay-trio { grid-template-columns: 1fr 1fr; }
	.pv-stay-trio > *:nth-child(2) { padding-top: 0; }

	.pv-statement { padding-left: 0; }
}

@media (max-width: 560px) {
	.pv-stay-trio { grid-template-columns: 1fr; }
}

/* 7. REDUCED MOTION ----------------------------------------------------- */

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

/* 8. 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. */

body.elementor-editor-active .pv-page-hero,
body.elementor-editor-active .pv-fullbleed {
	min-height: 0;
	/* The copy in both is on-dark. With the photo back in flow there is
	   nothing behind the text, so give the editor a dark bed to keep it
	   legible while it is being edited. */
	background: var(--e-global-color-text, #2B2C28);
}

body.elementor-editor-active .pv-ph-media,
body.elementor-editor-active .pv-fb-media {
	position: relative;
	inset: auto;
}

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

body.elementor-editor-active .pv-s-link .elementor-button::after { display: none; }
