#map {
	position: relative;
	aspect-ratio: 21 / 9;
}

#map-overview img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#map:has(#map-overview) .leaflet-overlay-pane {
	visibility: hidden;
}

.wrap-gr {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-gap: 24px;
}

.slider2 {
	display: grid;
	grid-template-columns: repeat(50, minmax(288px, 1fr));
	grid-gap: 24px;
}

.wrap-gr a,
.slider2 a {
	text-decoration: none;
}

.trek {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	color: #fff;
}

.trek img {
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
	filter: brightness(0.8);
	position: absolute;
}

.v2 img {
	filter: brightness(1) !important;
}

.trek:hover img {
	filter: brightness(1.1);
}

.trek__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 1;
	height: 100%;
	width: 100%;
}

.trek__content__bottom {
	display: flex;
	justify-content: space-between;
	width: 100%;
	background-color: #fff;
	color: #000;
	border-bottom: 1px solid var(--bs-border-color);
	border-left: 1px solid var(--bs-border-color);
	border-right: 1px solid var(--bs-border-color);
}

.trek__title {
	font-family: "header", helvetica, sans-serif;
	text-shadow: 0 0 8px #000;
	overflow: hidden;
}

.v2 .trek__title {
	font-family: "header", helvetica, sans-serif;
	border-top: 1px solid var(--bs-border-color);
	border-left: 1px solid var(--bs-border-color);
	border-right: 1px solid var(--bs-border-color);
	background: #fff;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: none;
}

.trek__icon {
	width: 18px;
	height: 18px;
	margin-right: 0.5rem;
}

.trek__badge {
	background: #d20000;
	color: #ffffff;
}

.leaflet-popup-content-wrapper {
	overflow: hidden;
}

.popup-presentation-rando .leaflet-popup-content-wrapper {
	padding: 0 !important;
}

.popup-presentation-rando .leaflet-popup-content {
	margin: 0 !important;
}

.leaflet-popup-randos {
	display: flex;
	align-items: center;
}

.leaflet-popup-randos > div:nth-child(1) {
	flex: 0 0 64px;
	height: 64px;
	background-size: cover;
	background-position: center;
	margin-right: 8px;
}

.leaflet-popup-randos > div:nth-child(2) {
	flex: 1 0 150px;
	max-height: 64px;
}

.wrap-popup-randos-sm {
	position: absolute;
	z-index: 998;
	width: 100%;
	height: 100%;
}

.popup-randos-sm {
	position: absolute;
	bottom: 0;
	z-index: 999;
	width: calc(100% - 57px);
	margin: 16px 32px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

.departement {
	position: relative;
	margin: 2rem auto 0;
	padding: 1rem 3rem;
	font-size: 1.2rem;
	display: block;
	border-radius: 50px;
	width: 260px;
	text-align: center;
	border: 1px solid #999;
	background-color: #fff;
	color: #333;
	font-weight: bold;
}

.tips-bar a:hover {
	text-decoration: underline;
}

.slider-wrap {
	height: 355px;
}

@media screen and (max-width: 576px) {
	.wrap-gr .trek {
		aspect-ratio: auto;
		height: 256px;
	}

	.slider2 {
		grid-template-columns: repeat(50, minmax(240px, 1fr));
	}

	#map {
		aspect-ratio: 1;
		height: auto !important;
	}

	.slider2-wrap {
		padding-bottom: 8px;
	}
}

