/**
 * destinations.css — Estilos de la Sección Los Mejores Destinos del Perú.
 *
 * Cuadrícula Bento / Asimétrica de destinos con imágenes reales,
 * badges de ubicación, tipografía corporativa y soporte de modo oscuro.
 *
 * @package Machupicchu_Travel_Narcy
 * @since   1.0.0
 */

/* -------------------------------------------------------------------------
 * 1. Contenedor Principal y Sección
 * ---------------------------------------------------------------------- */
.section-destinations {
	position: relative;
	background-color: var(--mtn-bg, #ffffff);
	padding: clamp(60px, 7vw, 96px) 0;
	transition: background-color 0.3s ease;
}

.dest-container {
	max-width: var(--mtn-header-max, 1600px);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
}

/* -------------------------------------------------------------------------
 * 2. Encabezado de la Sección (Unificado con About y Tours)
 * ---------------------------------------------------------------------- */
.dest-header {
	max-width: 900px;
	margin: 0 auto clamp(36px, 5vw, 54px);
	text-align: center;
}

.dest-main-title {
	font-family: var(--mtn-font-heading);
	font-size: clamp(26px, 3.2vw, 40px);
	font-weight: 700;
	color: var(--mtn-heading, #142016);
	line-height: 1.25;
	margin: 0 0 16px;
	letter-spacing: -0.5px;
	transition: color 0.3s ease;
}

.dest-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 20px;
	width: 120px;
}

.dest-divider-line {
	flex: 1;
	height: 1px;
	background: #dc3545;
	opacity: 0.5;
}

.dest-divider-dash {
	width: 24px;
	height: 3.5px;
	background: #b91c1c;
	border-radius: 2px;
}

.dest-subtitle {
	font-family: var(--mtn-font-body);
	font-size: clamp(14px, 1.1vw, 15.5px);
	line-height: 1.65;
	color: var(--mtn-muted, #5b665b);
	margin: 0 auto;
	max-width: 840px;
	text-align: center;
	transition: color 0.3s ease;
}

/* -------------------------------------------------------------------------
 * 3. Grid Asimétrico / Bento de Destinos
 * ---------------------------------------------------------------------- */
.dest-bento-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr 1fr;
	grid-template-rows: 270px 270px;
	gap: 20px;
}

.dest-card-tall {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.dest-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	display: block;
	text-decoration: none;
	background-color: #142016;
	border: 1px solid var(--mtn-border, #e8ebe8);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.dest-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
	border-color: rgba(26, 122, 60, 0.4);
}

/* Imagen de fondo de cada tarjeta */
.dest-image-wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.dest-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-card:hover .dest-img {
	transform: scale(1.07);
}

/* Capa de degradado oscuro */
.dest-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.72) 100%);
	transition: background 0.35s ease;
}

.dest-card:hover .dest-card-overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.8) 100%);
}

/* Contenido centrado: Icono + Título */
.dest-card-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	z-index: 2;
}

.dest-icon-badge {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	margin-bottom: 12px;
	background: rgba(20, 32, 22, 0.35);
	backdrop-filter: blur(4px);
	transition: all 0.3s ease;
}

.dest-card:hover .dest-icon-badge {
	border-color: #ffffff;
	background: var(--mtn-green, #1a7a3c);
	color: #ffffff;
	transform: scale(1.1);
	box-shadow: 0 4px 14px rgba(26, 122, 60, 0.5);
}

.dest-card-name {
	font-family: var(--mtn-font-heading);
	font-size: 19px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
	transition: transform 0.3s ease;
}

.dest-card:hover .dest-card-name {
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
 * 4. Botón Inferior: Ver todos los destinos
 * ---------------------------------------------------------------------- */
.dest-action-wrap {
	margin-top: clamp(32px, 4vw, 48px);
	text-align: center;
}

.dest-btn-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 28px;
	background: var(--mtn-green, #1a7a3c);
	color: #ffffff;
	font-family: var(--mtn-font-body);
	font-size: 13.5px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(26, 122, 60, 0.3);
	transition: all 0.25s ease;
}

.dest-btn-all:hover,
.dest-btn-all:focus-visible {
	background: var(--mtn-green-dark, #14612f);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(26, 122, 60, 0.45);
}

.dest-btn-icon {
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dest-btn-arrow {
	transition: transform 0.2s ease;
	font-size: 16px;
	line-height: 1;
}

.dest-btn-all:hover .dest-btn-arrow {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
 * 5. Modo Oscuro
 * ---------------------------------------------------------------------- */
[data-theme="dark"] .section-destinations,
.dark-mode .section-destinations {
	background-color: var(--mtn-bg, #101512);
}

[data-theme="dark"] .dest-card,
.dark-mode .dest-card {
	border-color: var(--mtn-border, #233126);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dest-card:hover,
.dark-mode .dest-card:hover {
	border-color: var(--mtn-green, #3ec774);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------------
 * 6. Responsividad
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.dest-bento-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		gap: 16px;
	}

	.dest-card-tall {
		grid-column: 1 / span 2;
		height: 320px;
	}

	.dest-card-standard {
		height: 240px;
	}
}

@media (max-width: 640px) {
	.dest-bento-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.dest-card-tall,
	.dest-card-standard {
		grid-column: 1;
		height: 220px;
	}
}
