:root {
	--fc-alentour-fond: rgba(0, 0, 0, .5);
	--fc-alentour-texte: #606060;
	--fc-alentour-principale: var(--main-color);
	--fc-alentour-radius: 1rem;
}

#fc-alentours {
	flex-direction: column;
	margin: 2rem 5vw;
}

@media screen and (min-width: 1024px) {
	#fc-alentours {
		flex-direction: row;
		margin: 0 10vw;
	}
}

#fc-alentours p {
	font-size: 1rem;
	color: white;
	font-family: 'Quicksand';
    font-size: .85rem;
	line-height: 1rem;
}
@media screen and (min-width: 1024px) {
	#fc-alentours p {
		font-size: .95rem;
		line-height: 1.25rem;
	}
}

/*MAP*/

#map-alentours {
	position: relative;
	z-index: 1;
}
#map-alentours #map {
	max-height: 100vh;
	height: 24rem;
	border-radius: var(--fc-alentour-radius);
	margin-top: 2rem;
}
@media screen and (min-width: 1024px) {
	#map-alentours #map {
		height: 56rem;
		margin-top: 0;
	}
}

div .leaflet-container a.leaflet-popup-close-button {
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  top: 0.25rem;
  right: 0.25rem;
}

/*PAGINATION*/

#page_navigation {
	display: flex;
	align-items: center;
	margin-top: 1rem;
}

#page_navigation button {
	background: none;
	width: auto;
	font-family: "Karla", "Arial", "Helvetica", sans-serif;
	border: none;
	padding: .5rem 1rem;
	cursor: pointer;
}
#page_navigation button:after {
	display: none;
}

#page_navigation.hide {
	display: none;
}

#page_navigation .previous_link,
#page_navigation .next_link {
	font-size: 1rem;
}

#page_navigation .previous_link,
#page_navigation .next_link,
#page_navigation .page_link {
	color: var(--fc-alentour-texte);
	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;
	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: 1rem;
}

@media screen and (max-width: 1023px) {
	#listing {
		gap: .75rem;
	}
}

.lieu-alentour {
	flex: 1 40%;
	max-width: calc(calc(100% - 1rem) / 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;
	border-radius: var(--fc-alentour-radius);
}

.visuel-defaut,
.leaflet-popup-content {
	background-color: #d4dadc;
	-webkit-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z' fill='%23ffffff'/%3E%3C/svg%3E");
	-webkit-background-size: 16%;
	-webkit-background-position: center;
	-webkit-background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z' fill='%23ffffff'/%3E%3C/svg%3E");
	background-size: 16%;
	background-position: center;
	background-repeat: no-repeat;
}

.texte-lieu {
	color: white;
	background-color: var(--fc-alentour-fond);
	width: 100%;
	padding: .5rem;
	box-sizing: border-box;
	position: absolute;
	bottom: 0;
	z-index: 1;
	padding-right: 2.5rem;
}
@media screen and (max-width: 1023px) {
	.texte-lieu {
		padding: .5rem;
	}
}

[data-cat*='camping'] .categorie-lieu {
	display: none;
}

.categorie-lieu {
	font-weight: bold;
	margin: 0;
	text-transform: uppercase;
}

.categorie-lieu i {
	margin-right: .5rem;
	font-size: .8rem;
}

.titre-lieu {
	margin: 0;
	/* text-transform: uppercase; */
}
@media screen and (max-width: 1023px) {
	.titre-lieu {
		font-size: .85rem;
	}
}

@media screen and (max-width: 1279px) {
	a .titre-lieu:after {
		position: absolute;
		right: 0.5rem;
	}
	.titre-lieu {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
	}
}



a:hover .titre-lieu:after {
	transform: translateX(.5rem);
}
a:hover .texte-lieu > i {
	transform: translateX(.5rem);
}


/*MARKER*/
.leaflet-marker-icon:after {
	content: '';
    width: 100%;
    height: calc(100% + 0.5rem);
    background: radial-gradient(#00000063, transparent 66%);
    display: block;
    z-index: -1;
    position: absolute;
    top: -0.5rem;
}
.leaflet-marker-icon > div {
	mask-image: url("data:image/svg+xml,%3Csvg width='384' height='511' viewBox='0 0 384 511' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192Z' fill='black'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='384' height='511' viewBox='0 0 384 511' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192Z' fill='black'/%3E%3C/svg%3E");
	mask-size: 100% 100%;
	-webkit-mask-size: 100% 100%;
	background-color: var(--fc-alentour-principale);
	width: 2.5rem;
    height: 3rem;
    display: block;
	margin: auto;
	transition: all .3s ease;
}

.leaflet-marker-icon > div i {
    color: white;
    top: 0.5rem;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    width: 100%;
    font-size: 1rem;
}

.texte-lieu > i {
	position: absolute;
    top: 0;
    bottom: 0;
    right: 1rem;
    margin: auto;
    height: fit-content;
    font-size: 1.25rem;
	transition: all .3s ease;
}

.leaflet-marker-icon.hovered-marker {
	z-index: 1000 !important;
}

.leaflet-marker-icon.hovered-marker > div {
	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: 45px;
}

.leaflet-popup-content-wrapper {
	border-radius: var(--fc-alentour-radius);
	border: 1px solid white;
}

.leaflet-popup-content {
	width: 300px !important;
	height: 200px;
	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;
		margin-bottom: 1rem;
	}
}

#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: 4px;
	display: inline-block;
	width: 1rem;
	height: 1rem;
}

#listing-alentours label:after {
	content: '';
	position: absolute;
	top: 0.55rem;
    left: 0rem;
	width: .25rem;
	height: .5rem;
	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;
}
