:root {
	--fc-ciela-fond: rgba(0, 0, 0, .5);
	--fc-ciela-texte: #4b4b4d;
	--fc-ciela-principale: #C2C600;
	--fc-ciela-radius: 0.313rem;
}

#fc-ciela {
	flex-direction: row;
}
@media screen and (min-width:1024px) {
	#fc-ciela {
		margin-right: calc(0px - var(--boxage));
		margin-left: calc(5vw - var(--boxage));;
	}
}

#fc-ciela img { border-radius: 0; }

@media screen and (max-width: 1023px) {
	#fc-ciela {
		flex-direction: column;
	}
}

/*MAP*/

#map-ciela {
	height: calc(90vh - 7rem);
	z-index: 0;
}
#map-ciela #map {
	height: 24rem;
}
@media screen and (min-width: 1024px) {
	#map-ciela {
		height: calc(90vh - 2rem);
	}
	#map-ciela #map {
		max-height: 100vh;
		border-radius: var(--fc-ciela-radius);
		height: 56rem;
	}
}

/*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;
}
#page_navigation button:after {
	display: none;
}

#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(--gris);
	font-size: 1rem;
    font-weight: bold;
    line-height: 2rem;
    text-decoration: none;
    opacity: .6;
    padding: 0 .7rem;
}

#page_navigation .page_link.active_page {
	color: var(--vert);
}

#page_navigation .previous_link:hover,
#page_navigation .next_link:hover,
#page_navigation .page_link:hover {
	opacity: .5;
}

/*LISTING ciela*/

#listing {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

@media screen and (max-width: 1023px) {
	#listing {
		gap: .75rem;
	}
}

.lieu-ciela {
	flex: 1 100%;
	border-radius: var(--fc-ciela-radius);
}

@media screen and (min-width: 1024px) {
	.lieu-ciela {
		flex: 1 30%;
		max-width: calc(calc(100% - 1.5rem) / 3);
	}
}

.visuel,
.visuel-defaut {
	position: relative;
	display: block;
	height: 16rem;
	min-height: 150px;
	border-radius: var(--fc-ciela-radius);
	overflow: hidden;
	box-shadow: 0 0 2rem var(--fc-ciela-fond);
}

.visuel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	border-radius: var(--fc-ciela-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: var(--gris);
    background-color: #ffffff;
    width: 100%;
    padding: .5rem 1rem;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    z-index: 1;
	font-size: 1rem;
}
.soustitre-lieu {
	margin: 0 -1rem;
    padding: .625rem 1rem .125rem 1rem;
    border-top: 1px solid #eff3f2;
    color: var(--gris);
    font-size: .85em;
    line-height: 1.4;
    font-weight: 500;
    /* overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; */
    opacity: .6;
}
@media screen and (max-width: 1023px) {
	.texte-lieu {
		padding: .5rem;
	}
}

[data-cat*='camping'] .categorie-lieu {
	display: none;
}

.categorie-lieu {
	font-size: .75rem;
	margin: 0;
}

.decouvrir.categorie-lieu {
	font-size: .75rem;
    margin: 0;
    position: absolute;
    top: -2.5rem;
    left: .75rem;
    right: unset;
    font-weight: 600;
    text-align: center;
    color: var(--gris);
    background: white;
    padding: .25rem .75rem;
    border-radius: var(--fc-ciela-radius);
}
.decouvrir.categorie-lieu:hover {
    color: var(--vert);
}

.titre-lieu {
	margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
    text-transform: uppercase;
    /* overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; */
}

@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);
}

/*MARKER*/
.leaflet-marker-icon svg {
	fill: var(--vert);
	height: 2.5rem;
	margin: auto;
    display: block;
    transform: translate(0, -50%);
	transition: .3s ease;
}

.leaflet-marker-icon.hovered-marker {
	z-index: 1000 !important;
}

.leaflet-marker-icon.hovered-marker svg {
	text-shadow: 0 .25rem .5rem rgba(0,0,0,.5);
	fill: var(--gris);
}


/*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-ciela-radius);
	border: 1px solid white;
}

.leaflet-popup-content {
	width: 300px !important;
	height: 200px;
	border-radius: var(--fc-ciela-radius);
}

.leaflet-popup-content img {
	height: 200px;
	width: 300px;
	object-fit: cover;
	border-radius: var(--fc-ciela-radius);
}

.leaflet-popup-content .texte-lieu {
	border-radius: 0 0 var(--fc-ciela-radius) var(--fc-ciela-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-ciela-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-ciela .filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-bottom: 2rem;
}

#listing-ciela input {
	display: none;
}

#listing-ciela label {
	position: relative;
	font-size: .875rem;
	color: var(--gris);
	cursor: pointer;
	display: flex;
	gap: 8px;
	align-items: center;
	user-select: none;
}

#listing-ciela label:before {
	content: '';
	border: 1px solid var(--gris);
	border-radius: 3px;
	display: inline-block;
	width: 16px;
	height: 16px;
}

#listing-ciela 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;
}
@media screen and (max-width: 1023px) {
	#listing-ciela .filtres {
		gap: .75rem 1rem;
		justify-content: center;
	}
	#listing-ciela label {
		font-size: .75rem;
		gap: .25rem;
	}
	#listing-ciela label:before {
		width: 0.75rem;
		height: 0.75rem;
	}
	#listing-ciela label:after {
		width: .2rem;
		height: .4rem;
	}
}

/*COMPORTEMENT A LA COCHE*/

#listing-ciela input:checked ~ label:before {
	background: var(--vert);
	border: 1px solid var(--vert);
}

#listing-ciela input:checked ~ label:after {
	transform: rotate(45deg) scale(1) translateY(-100%);
}

/*BACKDROP FILTER*/
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
	:root {
		--fc-ciela-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-ciela [data-cat*="camping"] {
	display: none !important;
}
