/**
 * Product-specific composition for Valle de la Luna.
 * Shared identity, typography, color, FAQ and JMDS components remain global.
 */

.jmpe-valle-luna-single {
	min-width: 0;
	overflow: clip;
	color: var(--jm-color-text);
	background: var(--jm-color-bg);
}

.jmpe-valle-luna-single,
.jmpe-valle-luna-single * {
	box-sizing: border-box;
}

.jmpe-valle-luna-single :where(section, article, div, figure, picture, img) {
	min-width: 0;
}

.jmpe-valle-luna-single .jm-hero__inner {
	max-width: var(--jm-container-wide);
	padding-block-start: clamp(7.5rem, 11vw, 10rem);
	padding-block-end: clamp(4rem, 8vw, 7rem);
}

.jmpe-valle-luna-single .jm-hero__content {
	position: relative;
	z-index: 1;
}

.jmpe-valle-luna-single .jm-hero__claim {
	max-width: 29ch;
}

.jmpe-valle-luna-single .jm-hero__media {
	aspect-ratio: 8 / 5;
	border-color: rgba(252, 250, 246, 0.22);
	background: var(--jm-color-night-surface);
}

.jmpe-valle-luna-single :is(.jmpe-valle-luna-media, .jmpe-valle-luna-media img) {
	display: block;
	width: 100%;
	height: 100%;
}

.jmpe-valle-luna-single .jmpe-valle-luna-media img {
	object-fit: cover;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__hero-picture img {
	object-position: 52% 50%;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
	gap: clamp(2rem, 7vw, 6rem);
	align-items: center;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text--wide {
	grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 1.18fr);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text--reverse .jmpe-valle-luna-single__media-text-copy {
	order: 2;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text-copy {
	max-width: var(--jm-reading-width);
}

.jmpe-valle-luna-single :is(
	.jmpe-valle-luna-single__media-text-copy,
	.jmpe-valle-luna-single__experience,
	.jmpe-valle-luna-single__fit,
	.jmpe-valle-luna-single__included,
	.jmpe-valle-luna-single__price,
	.jmpe-valle-luna-single__private,
	.jmpe-valle-luna-single__route,
	.jmpe-valle-luna-single__sunset,
	.jmpe-valle-luna-single__related
) h2 {
	max-width: 21ch;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__lead,
.jmpe-valle-luna-single .jmpe-valle-luna-single__private .jm-prose {
	font-size: var(--jm-type-body-large);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text-visual {
	aspect-ratio: 4 / 5;
	border: var(--jm-border-width) solid var(--jm-color-border);
	border-radius: var(--jm-radius-md);
	overflow: hidden;
	background: var(--jm-color-bg-soft);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__textures-visual {
	aspect-ratio: 4 / 3;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	margin-top: var(--jm-space-8);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence article {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	column-gap: var(--jm-space-4);
	border-top: var(--jm-border-width) solid var(--jm-color-border-strong);
	padding-top: var(--jm-space-5);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence article:last-child {
	grid-column: 2;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence-index {
	grid-row: 1 / span 2;
	margin: 0;
	color: var(--jm-color-accent-text);
	font-size: var(--jm-type-label);
	font-weight: var(--jm-font-weight-bold);
	letter-spacing: 0.08em;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence h3 {
	margin: 0 0 var(--jm-space-2);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence p:last-child {
	margin: 0;
	color: var(--jm-color-text-muted);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__pause {
	display: grid;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--jm-color-night);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__pause-picture {
	aspect-ratio: 16 / 9;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__fit-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
	margin-top: var(--jm-space-7);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__fit-layout ul {
	display: grid;
	gap: var(--jm-space-4);
	margin: 0;
	padding-left: 1.25rem;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__counterpoint,
.jmpe-valle-luna-single .jmpe-valle-luna-single__principle {
	margin: 0;
	border-top: 3px solid var(--jm-color-accent);
	padding-top: var(--jm-space-5);
	color: var(--jm-color-text-muted);
	font-family: var(--jm-font-display);
	font-size: clamp(1.4rem, 2.7vw, 2rem);
	font-weight: var(--jm-font-weight-medium);
	line-height: var(--jm-leading-heading);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__principle {
	margin-top: var(--jm-space-7);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__selection-action {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jm-space-4);
	align-items: center;
	margin-top: var(--jm-space-7);
	border-top: var(--jm-border-width) solid var(--jm-color-border);
	padding-top: var(--jm-space-6);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__selection-action p {
	max-width: 38rem;
	margin: 0;
	color: var(--jm-color-text-muted);
	font-size: var(--jm-type-small);
}

.jmpe-valle-luna-single .jmpe-button {
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: var(--jm-border-width) solid var(--jm-color-night);
	border-radius: var(--jm-radius-sm);
	padding: 0.7rem 1.2rem;
	color: var(--jm-color-night);
	background: var(--jm-color-surface);
	font: inherit;
	font-weight: var(--jm-font-weight-bold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--jm-duration-base) var(--jm-ease-standard), border-color var(--jm-duration-base) var(--jm-ease-standard), color var(--jm-duration-base) var(--jm-ease-standard);
}

.jmpe-valle-luna-single .jmpe-button:hover {
	color: var(--jm-color-warm-white);
	background: var(--jm-color-night);
}

.jmpe-valle-luna-single .jmpe-button.is-selected {
	border-color: var(--jm-color-accent);
	color: var(--jm-color-accent-text);
	background: var(--jm-color-accent-soft);
}

.jmpe-valle-luna-single :is(.jmpe-button, .jmpe-calculator input, dialog button, dialog a):focus-visible {
	outline: 3px solid var(--jm-color-focus) !important;
	outline-offset: 3px !important;
	box-shadow: var(--jm-shadow-focus) !important;
}

html.jmpe-selection-dialog-open {
	overflow: hidden;
}

.jmpe-valle-luna-single .jmpe-single-selection {
	display: flex;
	justify-content: flex-start;
	margin-top: var(--jm-space-4);
}

.jmpe-valle-luna-single .jmpe-single-selection__open {
	min-height: 3rem;
	border-color: transparent;
	padding-inline: 0;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.jmpe-valle-luna-single .jmpe-single-selection__dialog {
	width: min(42rem, calc(100vw - 2rem));
	max-width: none;
	max-height: min(44rem, calc(100dvh - 2rem));
	margin: auto;
	border: var(--jm-border-width) solid var(--jm-color-border-strong);
	border-radius: var(--jm-radius-md);
	padding: clamp(1.25rem, 4vw, 2rem);
	color: var(--jm-color-text);
	background: var(--jm-color-surface);
	box-shadow: 0 1rem 3rem rgba(15, 22, 24, 0.22);
	overflow: auto;
}

.jmpe-valle-luna-single .jmpe-single-selection__dialog::backdrop {
	background: rgba(15, 22, 24, 0.72);
}

.jmpe-valle-luna-single .jmpe-single-selection__header {
	display: flex;
	gap: var(--jm-space-4);
	align-items: flex-start;
	justify-content: space-between;
	border-bottom: var(--jm-border-width) solid var(--jm-color-border);
	padding-bottom: var(--jm-space-4);
}

.jmpe-valle-luna-single .jmpe-single-selection__header :is(h2, p) {
	margin-top: 0;
}

.jmpe-valle-luna-single .jmpe-single-selection__header h2 {
	margin-bottom: 0;
}

.jmpe-valle-luna-single .jmpe-single-selection__close {
	flex: 0 0 auto;
}

.jmpe-valle-luna-single .jmpe-selection__note,
.jmpe-valle-luna-single .jmpe-selection__empty {
	color: var(--jm-color-text-muted);
}

.jmpe-valle-luna-single .jmpe-selection__list {
	display: grid;
	gap: var(--jm-space-3);
	margin-block: var(--jm-space-5);
	padding: 0;
	list-style: none;
}

.jmpe-valle-luna-single .jmpe-selection__list li {
	border-bottom: var(--jm-border-width) solid var(--jm-color-border);
	padding-bottom: var(--jm-space-3);
}

.jmpe-valle-luna-single .jmpe-selection__cta.is-disabled {
	pointer-events: none;
	opacity: 0.55;
}

.jmpe-valle-luna-single [hidden] {
	display: none !important;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__included-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--jm-space-4);
	margin: var(--jm-space-7) 0 0;
	padding: 0;
	list-style: none;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__included-grid li {
	display: grid;
	gap: var(--jm-space-2);
	border-top: var(--jm-border-width) solid var(--jm-color-border-strong);
	padding-top: var(--jm-space-4);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__included-grid strong {
	color: var(--jm-color-text-strong);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__included-grid span {
	color: var(--jm-color-text-muted);
}

.jmpe-valle-luna-single .jm-price {
	margin-top: var(--jm-space-6);
}

.jmpe-valle-luna-single .jmpe-calculator {
	display: grid;
	grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 1fr);
	gap: var(--jm-space-5);
}

.jmpe-valle-luna-single .jmpe-calculator label,
.jmpe-valle-luna-single .jmpe-calculator__results {
	display: grid;
	gap: var(--jm-space-2);
}

.jmpe-valle-luna-single .jmpe-calculator label > span,
.jmpe-valle-luna-single .jmpe-calculator__results p > span {
	color: var(--jm-color-text-muted);
	font-size: var(--jm-type-small);
	font-weight: var(--jm-font-weight-semibold);
}

.jmpe-valle-luna-single .jmpe-calculator input {
	width: 100%;
	min-height: 3rem;
	border: var(--jm-border-width) solid var(--jm-color-border-strong);
	border-radius: var(--jm-radius-sm);
	padding: var(--jm-space-2) var(--jm-space-3);
	color: var(--jm-color-text);
	background: var(--jm-color-surface);
	font: inherit;
}

.jmpe-valle-luna-single .jmpe-calculator__results p {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--jm-space-3);
	margin: 0;
}

.jmpe-valle-luna-single .jmpe-calculator__results strong {
	color: var(--jm-color-text-strong);
	font-size: var(--jm-type-body-large);
}

.jmpe-valle-luna-single .jmpe-price-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.jmpe-valle-luna-single .jmpe-price-table table {
	width: 100%;
	min-width: 30rem;
	border-collapse: collapse;
}

.jmpe-valle-luna-single .jmpe-price-table :is(th, td) {
	border-bottom: var(--jm-border-width) solid var(--jm-color-border);
	padding: var(--jm-space-3);
	text-align: left;
}

.jmpe-valle-luna-single .jmpe-price-table th {
	font-size: var(--jm-type-small);
	font-weight: var(--jm-font-weight-semibold);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__price-cta {
	display: flex;
	margin-top: var(--jm-space-6);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__private .jm-prose p {
	color: var(--jm-color-on-dark-muted);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__route .jm-container {
	border-left: 3px solid var(--jm-color-accent);
	padding-left: clamp(1.25rem, 4vw, 3rem);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sunset .jm-container {
	display: grid;
	grid-template-columns: minmax(16rem, 0.68fr) minmax(0, 1.32fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: end;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__sunset-figure {
	margin: 0;
	aspect-ratio: 8 / 5;
	border-radius: var(--jm-radius-md);
	overflow: hidden;
	background: var(--jm-color-night);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__faq .jm-faq__title {
	max-width: 18ch;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--jm-space-4);
	margin-top: var(--jm-space-7);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid article {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border: var(--jm-border-width) solid var(--jm-color-border);
	border-radius: var(--jm-radius-md);
	padding: var(--jm-space-5);
	background: var(--jm-color-surface);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid h3 {
	margin-top: 0;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid h3 a {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	color: inherit;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid p {
	color: var(--jm-color-text-muted);
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid .jmpe-button {
	margin-top: auto;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__closing .jm-final-cta {
	padding-inline: 0;
	background: transparent;
}

.jmpe-valle-luna-single .jmpe-valle-luna-single__closing .jm-final-cta__content,
.jmpe-valle-luna-single .jmpe-valle-luna-single__closing .jm-final-cta__content h2 {
	max-width: var(--jm-reading-width);
}

.jmpe-valle-luna-single :is(.jm-hero--dark, .jmpe-valle-luna-single__closing) .jm-button:focus-visible {
	outline-color: var(--jm-color-accent-on-dark);
}

.jmpe-valle-luna-single .jmpe-admin-message {
	margin-top: var(--jm-space-4);
}

@media (max-width: 64rem) {
	.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence {
		grid-template-columns: 1fr;
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence article:last-child {
		grid-column: auto;
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 48rem) and (max-width: 70rem) {
	.jmpe-valle-luna-single .jm-hero__labels {
		min-height: 3.75rem;
		align-content: flex-start;
	}
}

@media (max-width: 47.99rem) {
	.jmpe-valle-luna-single .jm-hero__inner {
		padding-block-start: clamp(7rem, 24vw, 8.5rem);
	}

	.jmpe-valle-luna-single .jm-hero__media {
		aspect-ratio: 4 / 5;
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text,
	.jmpe-valle-luna-single .jmpe-valle-luna-single__fit-layout,
	.jmpe-valle-luna-single .jmpe-valle-luna-single__sunset .jm-container {
		grid-template-columns: 1fr;
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__media-text--reverse .jmpe-valle-luna-single__media-text-copy {
		order: initial;
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__sequence article {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__selection-action {
		align-items: stretch;
		flex-direction: column;
	}

	.jmpe-valle-luna-single .jmpe-valle-luna-single__selection-action .jmpe-button,
	.jmpe-valle-luna-single .jmpe-valle-luna-single__price-cta .jm-button {
		width: 100%;
	}

	.jmpe-valle-luna-single .jmpe-calculator {
		grid-template-columns: 1fr;
	}

	.jmpe-valle-luna-single .jmpe-price-table {
		overflow-x: visible;
	}

	.jmpe-valle-luna-single .jmpe-price-table table,
	.jmpe-valle-luna-single .jmpe-price-table thead,
	.jmpe-valle-luna-single .jmpe-price-table tbody,
	.jmpe-valle-luna-single .jmpe-price-table tr,
	.jmpe-valle-luna-single .jmpe-price-table th,
	.jmpe-valle-luna-single .jmpe-price-table td {
		display: block;
	}

	.jmpe-valle-luna-single .jmpe-price-table table {
		min-width: 0;
	}

	.jmpe-valle-luna-single .jmpe-price-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.jmpe-valle-luna-single .jmpe-price-table tr {
		margin-bottom: var(--jm-space-3);
		border: var(--jm-border-width) solid var(--jm-color-border);
		border-radius: var(--jm-radius-sm);
		background: var(--jm-color-surface);
	}

	.jmpe-valle-luna-single .jmpe-price-table :is(th, td) {
		border: 0;
	}

	.jmpe-valle-luna-single .jmpe-price-table td::before {
		content: attr(data-label) ": ";
		font-weight: var(--jm-font-weight-semibold);
	}
}

@media (max-width: 30rem) {
	.jmpe-valle-luna-single .jmpe-valle-luna-single__included-grid,
	.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid {
		grid-template-columns: 1fr;
	}

	.jmpe-valle-luna-single .jmpe-single-selection__header {
		display: grid;
	}

	.jmpe-valle-luna-single .jmpe-single-selection__close,
	.jmpe-valle-luna-single .jmpe-selection__cta,
	.jmpe-valle-luna-single .jmpe-valle-luna-single__related-grid .jmpe-button {
		width: 100%;
	}

	.jmpe-valle-luna-single .jmpe-calculator__results p {
		display: grid;
		gap: var(--jm-space-1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jmpe-valle-luna-single,
	.jmpe-valle-luna-single * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
