.route-card {
	position: relative;
	display: block;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background-color: var(--color-cream-dark);
}

.route-card__image {
	position: absolute;
	inset: 0;
}

.route-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.route-card__info {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
	background-color: var(--color-cream);
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 16px 32px rgba(32, 37, 31, 0.25);
}

.route-card__title {
	font-size: 19px;
	margin: 0 0 14px;
}

.route-card__stats {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.route-card__stat {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex-direction: column;
	flex: 1;
	padding-left: 12px;
	border-left: 1px solid rgba(32, 37, 31, 0.15);
}

.route-card__stat:first-child {
	padding-left: 0;
	border-left: none;
}

.route-card__stat-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--color-green-800);
	color: var(--color-tan-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.route-card__stat-icon svg {
	width: 15px;
	height: 15px;
}

.route-card__stat-text {
	display: flex;
	flex-direction: column;
}

.route-card__stat-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.8;
}

.route-card__stat-value {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	text-transform: capitalize;
}

/* En mòbil les dades es mantenen en fila (en columna tapaven la foto), però més compactes */
@media (max-width: 560px) {
	.route-card__info {
		left: 14px;
		right: 14px;
		bottom: 14px;
		padding: 14px 16px;
	}

	.route-card__title {
		font-size: 17px;
		margin-bottom: 10px;
	}

	.route-card__stats {
		gap: 8px;
	}

	.route-card__stat {
		gap: 6px;
		padding-left: 8px;
	}

	.route-card__stat-icon {
		width: 26px;
		height: 26px;
	}

	.route-card__stat-icon svg {
		width: 13px;
		height: 13px;
	}

	.route-card__stat-label {
		font-size: 10px;
	}

	.route-card__stat-value {
		font-size: 14px;
	}
}
/* Variant per a llistats (pàgina de Rutes): títol sobre la foto i xifres grans */
.route-card--list {
	background-color: var(--color-green-950);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.route-card--list[hidden] {
	display: none;
}

.route-card--list:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(32, 37, 31, 0.25);
}

.route-card--list .route-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(32, 37, 31, 0) 40%, rgba(32, 37, 31, 0.85) 100%);
}

.route-card--list .route-card__body {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
}

.route-card--list .route-card__title {
	color: var(--color-white);
	text-align: center;
	font-size: 22px;
	margin: 0 8px 14px;
}

.route-card--list .route-card__info {
	position: static;
	padding: 14px 16px;
}

.route-card--list .route-card__stat {
	gap: 6px;
}

.route-card--list .route-card__stat-label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
}

.route-card--list .route-card__stat-value {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
}

.route-card__num {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	margin-right: 2px;
}

.route-card__word {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 16px;
}
