:root {
	--fc-alentour-fond: rgba(0, 0, 0, .5);
	--fc-alentour-texte: #303030;
	--fc-alentour-principale: #3689c6;
	--fc-alentour-radius: 1.5rem;
}

#fc-alentours {
	flex-direction: row;
}

@media screen and (max-width: 1023px) {
	#fc-alentours {
		flex-direction: column;
	}
}

/*MAP*/

#map-alentours {
	position: sticky;
	top: 2rem;
	width: 100%;
	height: 100vmin;
	min-width: 435px;
	z-index: 0;
}

#map-alentours #map {
	height: calc(100vmin - 2rem);
	border-radius: var(--fc-alentour-radius);
}

@media screen and (max-width: 1023px) {
	#map-alentours {
		position: relative;
		min-width: unset;
		top: 0;
	}
}

/*PAGINATION*/

#page_navigation {
	display: flex;
	align-items: center;
	margin-top: 1rem;
}

#page_navigation.hide {
	display: none;
}

#page_navigation .previous_link,
#page_navigation .next_link {
	font-size: 1.5rem;
}

#page_navigation .previous_link,
#page_navigation .next_link,
#page_navigation .page_link {
	color: var(--fc-alentour-texte);
	padding: .5rem;
	outline: none;
	text-decoration: none;
	transition: all .3s;
}

#page_navigation .page_link.active_page {
	background: var(--fc-alentour-principale);
	border-radius: var(--fc-alentour-radius);
	color: #ffffff;
	padding: 1px 10px;
	font-weight: bold;
}

#page_navigation .previous_link:hover,
#page_navigation .next_link:hover,
#page_navigation .page_link:hover {
	opacity: .5;
}

/*LISTING ALENTOURS*/

#listing {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

@media screen and (max-width: 1023px) {
	#listing {
		gap: .75rem;
	}
}

.lieu-alentour {
	flex: 1 40%;
	max-width: calc(calc(100% - 2rem) / 2);
	border-radius: var(--fc-alentour-radius);
}

@media screen and (max-width: 1023px) {
	.lieu-alentour {
		max-width: calc(calc(100% - .75rem) / 2);
	}
}

.visuel,
.visuel-defaut {
	position: relative;
	display: block;
	height: 14vmax;
	min-height: 150px;
	border-radius: var(--fc-alentour-radius);
	overflow: hidden;
	/* transition: all .3s ease; */
}

.visuel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
}

.visuel-defaut {
	background-color: var(--fc-alentour-texte);
}

.texte-lieu {
	color: white;
	background-color: var(--fc-alentour-fond);
	width: 100%;
	padding: .5rem 1rem;
	box-sizing: border-box;
	position: absolute;
	bottom: 0;
	z-index: 1;
}
@media screen and (max-width: 1023px) {
	.texte-lieu {
		padding: .5rem;
	}
}

.categorie-lieu {
	font-size: .75rem;
	margin: 0;
}

.categorie-lieu i {
	margin-right: .5rem;
}

.titre-lieu {
	margin: 0;
	/* text-transform: uppercase; */
}
@media screen and (max-width: 1023px) {
	.titre-lieu {
		font-size: .85rem;
	}
}

a .titre-lieu:after {
	content: '\f178';
	font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro"; /*penser à changer pour la 6*/
	font-weight: 300;
	color: white;
	margin-left: 1rem;
	transition: all .3s;
}

a:hover .titre-lieu:after {
	margin-left: .5rem;
}

/*MARKER*/

.leaflet-marker-icon.leaflet-interactive div[class*="fa-"] {
	position: relative;
	font-size: 3.125rem;
	height: 3.125rem;
	width: 3.125rem;
	text-align: center;
	color: var(--fc-alentour-principale);
	transition: all .3s;
}

.leaflet-marker-icon.leaflet-interactive div i {
	font-size: 1rem;
	width: 3.125rem;
	color: #ffffff;
	position: absolute;
	top: .625rem;
	left: 0;
}

.leaflet-marker-icon > div {
	text-shadow: 0 .125rem .25rem rgba(0,0,0,.25);
}

.leaflet-marker-icon.hovered-marker {
	z-index: 1000 !important;
}

.leaflet-marker-icon.hovered-marker > div {
	filter: brightness(1.25);
	-webkit-filter: brightness(1.25);
	transform: scale(1.25);
	text-shadow: 0 .25rem .5rem rgba(0,0,0,.5);
}

/*MARKER POPUP*/

#marker-popup .marker-popup_container {
	display: none;
	background: #ffffff;
}

.leaflet-popup {
	position: absolute;
	margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
	border-radius: var(--fc-alentour-radius);
	border: 1px solid white;
}

.leaflet-popup-content {
	width: 300px !important;
	height: 200px;
	background-color: var(--fc-alentour-texte);
	border-radius: var(--fc-alentour-radius);
}

.leaflet-popup-content img {
	height: 200px;
	width: 300px;
	object-fit: cover;
	border-radius: var(--fc-alentour-radius);
}

.leaflet-popup-content .texte-lieu {
	border-radius: 0 0 var(--fc-alentour-radius) var(--fc-alentour-radius);
	bottom: 1px;
	width: 300px;
}

.leaflet-marker-icon.leaflet-interactive.pointerEvent {
	pointer-events: none;
}

.leaflet-popup-tip-container {
	width: 24px;
	height: 12px;
	left: 0;
	right: 0;
	margin: 0 auto;
}

.leaflet-popup-tip-container .leaflet-popup-tip {
	box-sizing: border-box;
}

.leaflet-container a.leaflet-popup-close-button {
	top: .5rem;
	right: .5rem;
	background: var(--fc-alentour-fond);
	color: white;
	border-radius: 100%;
	width: .75rem;
	height: .75rem;
	padding: .25rem;
	font-size: 1rem;
	line-height: .75rem;
	font-weight: 300;
	text-align: center;
}

@media screen and (max-width:1023px) {
	.leaflet-container a.leaflet-popup-close-button {
		padding: .5rem;
	}
}

/*INPUT & LABEL*/
#listing-alentours .filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-bottom: 2rem;
}

@media screen and (max-width: 1023px) {
	#listing-alentours .filtres {
		gap: .75rem 1.5rem;
	}
}

#listing-alentours input {
	display: none;
}

#listing-alentours label {
	position: relative;
	font-size: .875rem;
	color: var(--fc-alentour-texte);
	cursor: pointer;
	display: flex;
	gap: 8px;
	align-items: center;
	user-select: none;
}

#listing-alentours label:before {
	content: '';
	border: 1px solid var(--fc-alentour-texte);
	border-radius: 3px;
	display: inline-block;
	width: 16px;
	height: 16px;
}

#listing-alentours label:after {
	content: '';
	position: absolute;
	top: 50%;
	left: -1px;
	width: 4px;
	height: 8px;
	border-right: #ffffff 2px solid;
	border-bottom: #ffffff 2px solid;
	transform: rotate(45deg) scale(0) translateY(-100%);
	transition: transform .3s ease;
}

/*COMPORTEMENT A LA COCHE*/

#listing-alentours input:checked ~ label:before {
	background: var(--fc-alentour-principale);
	border: 1px solid var(--fc-alentour-principale);
}

#listing-alentours input:checked ~ label:after {
	transform: rotate(45deg) scale(1) translateY(-100%);
}

/*BACKDROP FILTER*/
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
	:root {
		--fc-alentour-fond: rgba(110, 110, 110, .3);
	}
	.texte-lieu {
		backdrop-filter: blur(.5rem);
		-webkit-backdrop-filter: blur(.5rem);
	}
	.leaflet-container a.leaflet-popup-close-button {
		backdrop-filter: blur(.5rem);
		-webkit-backdrop-filter: blur(.5rem);
	}
}

/*CAMPING*/
#listing-alentours [data-cat*="camping"] {
	display: none !important;
}
