/*
 * Inprodi Feature — scoped, self-contained section styles.
 *
 * Namespaced under .inprodi-feature, no global reset. Left: heading (Playfair,
 * 2 lines, italic bottom) + description (Inter) + outline CTA. Right: a vertical
 * list of large destination names. The section background is an autoplay carousel
 * that crossfades between two layers to the active destination's image (JS).
 * Fixed 850px height on desktop; content fills it.
 */

.inprodi-feature,
.inprodi-feature *,
.inprodi-feature *::before,
.inprodi-feature *::after {
	box-sizing: border-box;
}

.inprodi-feature {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Two crossfading background layers (swapped by JS per destination). */
.inprodi-feature__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.8s ease;
	will-change: opacity;
}

.inprodi-feature__bg video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Dark overlay so the white text stays readable over any photo. */
.inprodi-feature::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.4);
	pointer-events: none;
}


.inprodi-feature__container {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 80rem; /* max-w-7xl */
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.inprodi-feature__grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	gap: 2.5rem;
}

/* Left: heading + description + CTA */
.inprodi-feature__intro {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 1.5rem;
	padding-top: 4rem; /* 64px — top edge of the section on mobile */
	padding-bottom: 0;
}

.inprodi-feature__heading {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #ffffff;
	font-family: 'Playfair Display', serif;
	font-weight: 500;
	font-size: 2.25rem; /* 36px mobile */
	line-height: 1.15;
	text-align: center;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.inprodi-feature__heading-top {
	text-transform: none;
	letter-spacing: normal;
}

.inprodi-feature__heading-bottom {
	/* Playfair italic accent (client rollback to Playfair). */
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 1em;
	line-height: 1.2;
}

.inprodi-feature__desc {
	margin: 0;
	max-width: 30rem;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--nk-font-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	text-align: center;
}

/* Outline CTA — transparent, white text, pushed to the bottom. */
.inprodi-feature__btn {
	margin-top: auto;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 12px;
	background-color: transparent;
	border: 1px solid #d1d5db;
	color: #ffffff;
	font-family: var(--nk-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.inprodi-feature__btn:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
}

.inprodi-feature__btn-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.inprodi-feature__btn:hover .inprodi-feature__btn-icon {
	transform: translateX(3px);
}

/* Right: vertical destinations list (large names, no line) */
.inprodi-feature__destinations {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end; /* right-aligned list */
	gap: 1rem;
	padding-top: 0;
	padding-bottom: 4rem; /* 64px — bottom edge of the section on mobile */
}

.inprodi-feature__destination {
	cursor: pointer;
}

/* Los destinos que llevan a su ficha se envuelven en un <a> real. Es
   transparente de estilo: el aspecto sigue viviendo en __destination-name, así
   que enlazado y no enlazado se ven exactamente igual. */
.inprodi-feature__destination-link {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

.inprodi-feature__destination-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 6px;
	border-radius: 2px;
}

.inprodi-feature__destination-name {
	display: inline-block;
	color: rgba(255, 255, 255, 0.4);
	font-family: 'Geist', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 2.25rem; /* 36px mobile */
	line-height: 1.2;
	text-align: right;
	transition: color 0.4s ease, transform 0.4s ease;
}

.inprodi-feature__destination:hover .inprodi-feature__destination-name {
	color: rgba(255, 255, 255, 0.7);
}

.inprodi-feature__destination.is-active .inprodi-feature__destination-name {
	color: #ffffff;
	transform: translateX(-8px); /* subtle inward shift to mark the active one */
}

/* sm */
@media (min-width: 640px) {
	.inprodi-feature__container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* md */
@media (min-width: 768px) {
	.inprodi-feature__heading {
		font-size: 4rem; /* 64px */
	}
	.inprodi-feature__destination-name {
		font-size: 3.5rem; /* 56px */
	}
}

/* lg */
@media (min-width: 1024px) {
	.inprodi-feature {
		min-height: 850px; /* fixed height on desktop */
	}
	.inprodi-feature__grid {
		flex: 1 1 auto;
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
	.inprodi-feature__intro {
		align-items: flex-start;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
	.inprodi-feature__heading {
		align-items: flex-start;
		text-align: left;
	}
	.inprodi-feature__desc {
		text-align: left;
	}
	.inprodi-feature__destinations {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.inprodi-feature__bg,
	.inprodi-feature__destination-name,
	.inprodi-feature__btn,
	.inprodi-feature__btn-icon {
		transition: none;
	}
}
