.dustline-explora {
	--dl-arena: #f4ead9;
	--dl-tierra: #6b4a2b;
	--dl-terracota: #c1440e;
	--dl-negro: #1c1c1c;
	font-family: inherit;
	max-width: 1100px;
	margin: 0 auto;
}

/* ---------- Selector de rutas ---------- */

.dustline-selector {
	text-align: center;
	padding: 1.5rem 1rem 2.5rem;
}

.dustline-selector-titulo {
	font-family: Poppins, sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: uppercase;
	color: #9d5918;
	margin-bottom: 1.75rem;
}

.dustline-tarjetas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
}

.dustline-tarjeta {
	--dl-ruta-color: #c1440e;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding: 2rem 1.25rem 1.75rem;
	background: linear-gradient(160deg, #fff, var(--dl-arena));
	border: 2px solid transparent;
	border-radius: 16px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(28, 20, 10, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
}

.dustline-tarjeta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: var(--dl-ruta-color);
}

.dustline-tarjeta:hover,
.dustline-tarjeta:focus-visible {
	transform: translateY(-4px);
	border-color: var(--dl-ruta-color);
	box-shadow: 0 12px 28px rgba(28, 20, 10, 0.18);
}

.dustline-tarjeta-nombre {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dl-negro);
}

.dustline-tarjeta-stats {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 0.9rem;
	color: var(--dl-tierra);
	font-weight: 600;
}

.dustline-tarjeta-dificultad {
	color: var(--dl-ruta-color);
	letter-spacing: 0.15em;
	font-size: 1rem;
}

.dustline-tarjeta-cta {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--dl-ruta-color);
}

/* ---------- Sección del mapa ---------- */

.dustline-mapa-seccion {
	position: relative;
}

.dustline-volver {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
	padding: 0.5rem 1rem;
	background: var(--dl-negro);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dustline-volver:hover {
	background: var(--dl-terracota);
}

.dustline-map-canvas {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(28, 20, 10, 0.18);
}

/* ---------- Leyenda de rutas (dentro del mapa) ---------- */

.dl-legend {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
	padding: 0.6rem 0.75rem;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	font-size: 0.8rem;
	max-width: 200px;
}

.dl-legend-titulo {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1c1c1c;
	margin-bottom: 0.15rem;
}

.dl-legend-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.dl-legend-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	flex-shrink: 0;
}

/* ---------- Selector de estilos de mapa ---------- */

.dl-estilos {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	gap: 4px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
	padding: 4px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.dl-estilos-btn {
	border: none;
	background: transparent;
	padding: 0.35rem 0.65rem;
	font-size: 0.72rem;
	font-weight: 600;
	border-radius: 7px;
	cursor: pointer;
	color: #444;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.dl-estilos-btn:hover {
	background: rgba(193, 68, 14, 0.12);
}

.dl-estilos-btn.activo {
	background: var(--dl-terracota);
	color: #fff;
}

/* ---------- Marcadores ---------- */

.dl-marker {
	width: 32px;
	height: 32px;
	cursor: pointer;
}

.dl-marker-halo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.dl-marker:hover .dl-marker-halo {
	animation: dl-halo-marker 1.1s ease-out infinite;
}

@keyframes dl-halo-marker {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(2.4);
		opacity: 0;
	}
}

.dl-marker-inner {
	position: absolute;
	left: 0;
	bottom: 50%;
	width: 100%;
	height: 100%;
}

.dl-marker-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
	pointer-events: none;
}

.dl-marker-icono {
	position: absolute;
	left: 50%;
	top: 37%;
	transform: translate(-50%, -50%);
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
}

/* ---------- Popup ---------- */

.dl-popup .mapboxgl-popup-content {
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(250, 244, 233, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(157, 89, 24, 0.35);
	box-shadow: 0 10px 26px rgba(28, 36, 75, 0.22);
}

.dl-popup .mapboxgl-popup-tip {
	display: none;
}

.dl-popup .mapboxgl-popup-close-button {
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	color: #1c244b;
	background: rgba(28, 36, 75, 0.12);
}

.dl-popup .mapboxgl-popup-close-button:hover {
	background: rgba(28, 36, 75, 0.22);
	color: #1c244b;
}

.dl-popup-imagen {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.dl-popup-body {
	padding: 1rem 1.15rem 1.15rem;
}

.dl-popup-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-family: Poppins, sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #faf4e9;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	margin-bottom: 0.55rem;
}

.dl-popup-titulo {
	font-family: "TASA ORBITER", sans-serif;
	margin: 0 28px 0.25rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: #1c244b;
}

.dl-popup-km {
	font-size: 0.78rem;
	color: #9d5918;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.dl-popup-desc {
	font-size: 0.88rem;
	line-height: 1.5;
	color: #3a3a38;
}

.dl-popup-desc p:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
	.dustline-selector-titulo {
		font-size: 1.4rem;
	}
	.dustline-tarjeta {
		padding: 1.5rem 1rem;
	}
	.dl-legend {
		max-width: 150px;
		font-size: 0.72rem;
	}
	.dl-estilos {
		flex-wrap: wrap;
		max-width: calc(100% - 24px);
	}
	.dl-estilos-btn {
		font-size: 0.66rem;
		padding: 0.3rem 0.5rem;
	}
}
