/* Styles personnalisés pour Leaflet */

/* Fix pour le fond transparent des pop-ups */
.leaflet-popup-content-wrapper {
    background-color: #ffffff !important; /* Fond blanc par défaut */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.leaflet-popup-tip {
    background-color: #ffffff !important; /* Fond blanc pour la flèche */
}

.leaflet-popup-content {
    font-family: 'Arial', sans-serif;
    color: #30317A; /* Texte bleu foncé pour contraste */
    background-color: transparent; /* Ne pas interférer avec le wrapper */
}

.custom-icon {
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.custom-icon.red-marker {   
	width: 28px !important;
    height: 28px !important;
}

.gite-icon {
    background-color: #EEC65C;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.leaflet-popup-content p {
	margin: 0!important;
	color: #30317A;
}

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

.leaflet-popup-content .markertext-content {
	padding: 10px;
	background-color: #ffffff !important; /* Force le fond blanc */
}

.leaflet-popup-content .markertext-content h3 {
	font-size: 20px;
	font-family: 'Caladea bold', 'Montserrat', sans-serif;
	color: #30317A;
	margin: 0 0 10px 0;
}

/* Wrapper du popup pour garantir le fond */
.yannjarno-popup-wrapper {
	background-color: #ffffff !important;
	border-radius: 4px;
	overflow: hidden;
}

/* Styles pour les marqueurs gîtes */
.gite-marker-custom .leaflet-marker-icon {
    border: 2px solid #28a745 !important;
    border-radius: 50% !important;
}

/* Fix global pour tous les pop-ups Leaflet - Force le fond blanc */
.leaflet-container .leaflet-popup-content-wrapper {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.leaflet-container .leaflet-popup-tip {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* S'assurer que le contenu interne a aussi un fond */
.leaflet-popup .leaflet-popup-content {
    background-color: transparent;
}

.leaflet-popup-content > div {
    background-color: #ffffff !important;
}

.gite-marker-default .leaflet-marker-icon {
    border: 2px solid #28a745 !important;
    border-radius: 50% !important;
}

/* Styles pour les badges de type de post */
.post-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: white;
}

.gite-badge {
    background-color: #28a745;
}

.activite-badge {
    background-color: #007bff;
}

.gite-item {
    border-left: 3px solid #28a745;
}

.activite-item {
    border-left: 3px solid #007bff;
}

/* Style pour les marqueurs gîtes dans la liste */
.gite-item h3 {
    color: #28a745;
}

.activite-item h3 {
    color: #007bff;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #30317A #D5DBEF; /* Couleur de la barre de défilement et arrière-plan */
}

/* Pour les navigateurs Webkit comme Chrome, Safari et Opera */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre de défilement */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #D5DBEF; /* Couleur de l'arrière-plan */
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #30317A; /* Couleur de la barre de défilement */
    border-radius: 10px; /* Bord arrondi de la barre de défilement */
    border: 2px solid #D5DBEF; /* Bord autour de la barre de défilement */
}

.list-activite a {
	color: #30317A!important;
}

.list-activite h3 {
	font-family: 'Caladea bold';
	margin-bottom: 10px;
}

.list-activite a:hover,
.list-activite a:hover h3,
.list-activite a:hover a {
	color: #EEC65C!important;
}

#post-list .post-item.list-activite:last-child {
	margin-bottom: 30px!important;
}





/* Styles pour les marqueurs gîtes */
.gite-marker-custom .leaflet-marker-icon {
    border: 2px solid #28a745 !important;
    border-radius: 50% !important;
}

/* Fix global pour tous les pop-ups Leaflet - Force le fond blanc */
.leaflet-container .leaflet-popup-content-wrapper {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.leaflet-container .leaflet-popup-tip {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* S'assurer que le contenu interne a aussi un fond */
.leaflet-popup .leaflet-popup-content {
    background-color: transparent;
}

.leaflet-popup-content > div {
    background-color: #ffffff !important;
}

.gite-marker-default .leaflet-marker-icon {
    border: 2px solid #28a745 !important;
    border-radius: 50% !important;
}

/* Styles pour les badges de type de post */
.post-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: white;
}

.gite-badge {
    background-color: #28a745;
}

.activite-badge {
    background-color: #007bff;
}

.gite-item {
    border-left: 3px solid #28a745;
}

.activite-item {
    border-left: 3px solid #007bff;
}

/* Style pour les marqueurs gîtes dans la liste */
.gite-item h3 {
    color: #28a745;
}

.activite-item h3 {
    color: #007bff;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #30317A #D5DBEF; /* Couleur de la barre de défilement et arrière-plan */
}

/* Pour les navigateurs Webkit comme Chrome, Safari et Opera */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre de défilement */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #D5DBEF; /* Couleur de l'arrière-plan */
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #30317A; /* Couleur de la barre de défilement */
    border-radius: 10px; /* Bord arrondi de la barre de défilement */
    border: 2px solid #D5DBEF; /* Bord autour de la barre de défilement */
}

/* Styles pour le loader */
#loader img {
    width: 50px; /* Ajustez la taille de l'image si nécessaire */
}












.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
}
.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: #30317A;
  margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#filters {
	display: flex;
    align-items: center;
	margin-bottom: 20px;
}

#activite_filtrable {
	padding: 10px 10px;
    border-radius: 8px;
    border-color: #30317A;
    color: #30317A;
    background-color: #FFF;
    font-family: 'Montserrat';
}

#filters .radio-button {
    margin-left: 20px;
    display: flex;
}

#filters .radio-button div {
    display: flex;
}

#filters .radio-button label {
    margin-left: 15px;
}

#filters .radio-button input[type="radio"] {
    display: none;
}

#filters .radio-button input[type="radio"] + label:before {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #30317A;
    border-radius: 50%;
    background-color: white;
}

/* Styles pour les liens dans les pop-ups */
.leaflet-popup-content a {
    color: #30317A;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.leaflet-popup-content a:hover {
    color: #EEC65C;
    text-decoration: none;
}

.localisation_text a{
	color: #30317A!important;
	text-decoration: underline!important;
}

#filters .radio-button input[type="radio"] + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: #30317A;
    user-select: none;
}

#filters .radio-button input[type="radio"]:checked + label:before {
    background-color: #30317A;
    border: 2px solid #30317A;
}

#filters .radio-button input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
	#map-container {
		flex-direction: column-reverse;
	}

	#map-container #map {
		width: 100%!important	;
		
	}

	#map-container #post-list {
		width: 100% !important;
		
	}
	#activite_filtrable {
		width: 175px;
	}
}


.hover_type_3 .customnav #access .menu > li:hover>a, .hover_type_5 .customnav #access .menu > li:hover>a, .hover_type_6 .customnav #access .menu > li:hover>a {
	line-height: unset!important;
}

.hover_type_6 #access .menu > li:hover>a {
	color: #eec65c!important;
}

#search_locationshortcode_autointernal {
	display: none;
}



#search_locationshortcode_autointernal {
	display: none;
}


#check_in_shortcode, #check_out_shortcode {
	width: 100%!important;
	display: none;
}

.advanced_search_shortcode {
	border: 0px;
	background-color: #fff;
}



/* custom-leaflet-style.css */

.kpoi-map-container {
  position: relative;
  margin-bottom: 30px;
}

.kpoi-map-and-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.kpoi-map-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.leaflet-popup-content {
  min-width: 200px;
}

.leaflet-popup-content h3 {
  margin: 5px 0;
  font-size: 16px;
}

.leaflet-popup-content img {
  border-radius: 4px;
}

.leaflet-popup-content p {
  margin: 5px 0;
  font-size: 14px;
}

.kpoi-post-list {
  background: #fff;
  border-left: 1px solid #e0e0e0;
  box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.post-item {
  border-radius: 0px;
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 2px solid #003e62;
}



.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-item h3 {
  font-size: 25px;
  margin: 10px 0;
  padding: 0;
  color: #003E62;
}

.post-item .post-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.post-item .post-image img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item img {
  border-radius: 4px 4px 0 0;
}

.post-item a {
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  color: #003e62;
}

/* Styles des filtres */
.filter-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 4px;
  margin-left: 12px;
  font-size: 22px;
  width: 185px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filter-btn:hover, 
.filter-btn.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

.subcategories-container {
  background-color: #f9f9f9;
  padding: 10px 15px;
  border-radius: 4px;
  margin-top: 10px;
}

.subcategory-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.subcategory-checkboxes label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 5px;
  font-size: 14px;
}

.subcategory-checkboxes input[type="checkbox"] {
  margin-right: 5px;
}

/* Styles du loader */
#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* Responsive */
@media (max-width: 768px) {
  .kpoi-map-wrapper > div {
      width: 100% !important;
  }
  
  .kpoi-post-list {
      height: 300px !important;
      border-left: none;
      border-top: 1px solid #e0e0e0;
  }
  
  .filter-button-group {
      flex-direction: column;
      gap: 5px;
  }
}


/* Style pour la popup des sous-catégories */
.kpoi-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.filter-button-group {
  margin-bottom: 20px;
  display: flex;
  justify-content: end;
}

.kpoi-subcategories-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  max-width: 400px;
  width: 90%;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.popup-header h3 {
  margin: 0;
  padding: 0;
}

.popup-close {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.popup-content {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.subcategory-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcategory-checkboxes label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.subcategory-checkboxes input[type="checkbox"] {
  margin-right: 8px;
}

.popup-footer {
  text-align: right;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.apply-filters-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.apply-filters-btn:hover {
  background-color: #0056b3;
}

/* Styles pour les différentes positions de la sidebar */
.kpoi-map-wrapper {
  display: flex;
  flex-wrap: wrap;
}

/* Styles communs pour la sidebar */
.kpoi-post-list {
  overflow-y: auto;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Sidebar à droite - bordure à gauche */
.kpoi-map-wrapper .kpoi-post-list:not(:first-child) {
  border-left: 1px solid #e0e0e0;
}

/* Sidebar à gauche - bordure à droite */
.kpoi-map-wrapper .kpoi-post-list:first-child {
  border-right: 1px solid #e0e0e0;
}

/* Styles spécifiques pour les mobiles */
@media (max-width: 768px) {
  .kpoi-map-and-list-container {
    flex-direction: column-reverse;
  }
  
  .kpoi-map-wrapper {
    width: 100% !important;
  }
  
  .kpoi-map {
    height: 350px !important; /* Hauteur réduite sur mobile */
  }
  
  .kpoi-post-list {
    width: 100% !important;
    height: 300px !important;
    border-left: none !important;
    border-top: 1px solid #e0e0e0;
  }
  
  /* Amélioration des filtres sur mobile */
  .filter-button-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .filter-btn {
    width: calc(50% - 16px) !important;
    margin: 4px !important;
    padding: 8px 4px !important;
    font-size: 14px !important;
  }
  
  /* Style pour les markercluster sur mobile */
  .leaflet-marker-icon, .leaflet-marker-shadow {
    transform-origin: center !important;
  }
  
  /* Améliorer la lisibilité des popups sur mobile */
  .leaflet-popup-content {
    max-width: 250px !important;
    font-size: 14px !important;
  }
  
  .leaflet-popup-content img {
    max-height: 120px !important;
  }
  
  /* Ajustements pour le conteneur de map avec sidebar en mode mobile */
  #map-container {
    flex-direction: column-reverse !important;
  }
  
  #map-container #map {
    width: 100% !important;
    height: 350px !important;
  }
  
  #map-container #post-list {
    width: 100% !important;
    max-height: 300px !important;
    overflow-y: auto;
  }
  
  /* Ajustements pour les filtres en mode mobile */
  #filters {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #filters .radio-button {
    margin-left: 0;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  #filters .radio-button div {
    margin-right: 12px;
    margin-bottom: 8px;
  }
  
  #activite_filtrable {
    width: 100% !important;
    max-width: 100%;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  .kpoi-map {
    height: 50vh !important; 
  }
  
  @media (max-width: 768px) {
    .kpoi-map {
      height: 40vh !important;
    }
  }
}


/* Styles pour le bouton Reset filtres */
.reset-filters-btn {
  display: none; /* Caché par défaut */
  position: relative;
  margin-bottom: 10px;
  padding: 8px 12px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.reset-filters-btn:hover {
  background-color: #f1b0b7;
}

.reset-filters-btn i {
  margin-right: 5px;
}

.reset-filters-btn.active {
  display: inline-block;
}

/* Conteneur pour le bouton reset et les filtres */
.kpoi-filters-container {
  margin-bottom: 20px;
}

/* Style actif des filtres */
.filter-btn.active {
  position: relative;
}

.filter-btn.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: currentColor;
}

/* Badge de filtre actif */
.active-filter-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  background-color: rgba(255,255,255,0.3);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}

.see-more {
  text-decoration: underline!important;
  color: #30317A;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.see-more:hover {
  color: #EEC65C !important;
  text-decoration: none !important;
} 

.category-badge {
  color: #000;
  font-size: 15px;
}
.post-commune {
  font-size: 14px;
}


.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}

.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font-weight: bold;
  background-color: rgba(0,62,98,0.8);
  color: white;
}

/* Animation au survol */
.marker-cluster:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.marker-cluster {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.leaflet-control-attribution.leaflet-control {
  display: none;
}

.leaflet-control-zoom.leaflet-bar.leaflet-control {
  display: none;
}

.popup-text-content h3 {
  font-size: 20px;
  font-weight: 700;
}

.reset-div {
  width: 100%;
  display: flex;
  justify-content: end;
} 


.loader {
  width: 50px;
  aspect-ratio: 1;
  color: #003e62;
  z-index: 2000;
  border-radius: 50%;
  display: grid;
  background: 
    conic-gradient(from 90deg at 4px 4px,#0000 90deg,currentColor 0)
    -4px -4px/calc(50% + 2px) calc(50% + 2px),
    radial-gradient(farthest-side,currentColor 6px,#0000 7px calc(100% - 6px),currentColor calc(100% - 5px)) no-repeat;
  animation: l10 2s infinite linear;
  position: relative;
}
.loader:before {
  content: "";
  border-radius: inherit;
  background: inherit;
  
  transform: rotate(45deg);
}
@keyframes l10 {to{transform: rotate(.5turn)}}


#loader-background {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
}