#city-search-form button {
  background: linear-gradient(to right, #4caf50 50%, #d8486f 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.col-id {
  width: 50px;
  /* Ajustez cette valeur pour une largeur souhaitée */
  text-align: center;
}

#city-search-form button:hover {
  background-position: left bottom;
}

#filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1000;
}

#filter-form > * {
  flex: 1 1 200px;
  position: relative;
}

#city-search-input,
.w-full {
  width: 100%;
}

#filter-form button {
  flex: 0 0 auto;
  white-space: nowrap;
  background: linear-gradient(to right, #4caf50 50%, #d8486f 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#filter-form button:hover {
  background-position: left bottom;
}

/* Styles pour la liste d'autocomplétion */
.ui-autocomplete {
  position: absolute !important;
  z-index: 1001 !important;
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: auto !important;
  min-width: 200px;
}

.ui-menu-item {
  padding: 8px 12px;
  cursor: pointer;
}

.ui-menu-item:hover {
  background-color: #f0f0f0;
}

/* Assurez-vous que l'input de recherche est au-dessus */
#city-search-input {
  position: relative;
  z-index: 1000;
}

@media (max-width: 768px) {
  #filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  #filter-form > * {
    width: 100%;
    flex: initial;
  }

  #filter-form button {
    width: 100%;
    margin-top: 10px;
  }
}

/* Si nécessaire, ajustez le z-index de la carte */
#mapid {
  z-index: 1;
}

.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-size: 12px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.9);
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
  background-color: rgba(240, 194, 12, 0.9);
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
  background-color: rgba(241, 128, 23, 0.9);
}

.bouton-formulaire-creation input {
  width: 100%;
  font-size: 17px;
  padding: 15px 20px;
  background: #d8446f !important;
  border: none;
  color: white !important;
}

.bouton-formulaire-creation input:hover {
  background: #4caf50 !important;
}

#liste-cabinets h2 {
  margin-top: 50px;
}

#liste-cabinets img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.ContainerPopUp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.cabinet-photo-container {
  margin: auto;
  width: 300px;
  height: 300px;
}

.cabinet-photo-container img {
  object-fit: cover;
}

/* Style pour l'icône de chargement */
.ItemChargement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; /* Taille du conteneur */
  height: 64px; /* Taille du conteneur */
  background-color: transparent;
  z-index: 10;
}

/* Style pour le bouton pendant le chargement */
.input-bouton-formulaire-creation.loading {
  color: transparent; /* Cache le texte */
  position: relative;
  cursor: wait;
}

/* S'assurer que le conteneur relatif a une taille minimale */
.relative {
  min-width: 150px;
  min-height: 44px;
  position: relative;
}

.bouton-retour-cabinet:hover {
  color: white;
}

.image-carre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.item-image-carre {
  flex-basis: 500px;
}

.image-carre img {
  flex-basis: 300px;
  height: 300px !important;
  object-fit: cover;
}

.ContainerListCab {
  margin-left: 20px;
  margin-right: 20px;
  gap: 20px;
}

.ItemListCab p {
  margin: 0;
}

.elementor .ItemListCab img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

#fiche-cabinet h2 {
  text-align: center;
  margin: 20px;
}



.custom-marker {
  background-color: #D53F8C; /* Couleur rose qui correspond à votre thème */
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.marker-pin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #00B5BD;
}

.leaflet-popup-content {
  min-width: 100px;
  text-align: center;
}



.MapLimitWidth {
  height: 500px;
  width: 60%;
}

.MapFullWidth {
  height: 500px;
}

.ListFicheLimitWidth {
  width: 40%;
  overflow-y: auto;
  max-height: 500px;
}

/* Styles pour la liste des cabinets en mode privé */
.cabinet-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.cabinet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.matieres-container {
  max-height: 3em;
  overflow: hidden;
  position: relative;
}

.matieres-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animation pour le bouton mélanger */
#shuffle-cabinets:hover svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Styles pour les animations de chargement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cabinet-card {
  animation: fadeInUp 0.3s ease forwards;
}

/* Styles pour les stats */
#cabinets-count {
  font-weight: 500;
  color: #6B7280;
}

/* Responsive pour la liste des cabinets */
@media (max-width: 768px) {
  .cabinet-card {
    margin-bottom: 1rem;
  }
  
  #cabinets-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #cabinets-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  #cabinets-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Style pour le bouton de localisation sur la carte */
.cabinet-card button[onclick*="centerMapOnCabinet"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

/* Amélioration de l'affichage des photos */
.cabinet-card img {
  transition: transform 0.3s ease;
}

.cabinet-card:hover img {
  transform: scale(1.05);
}

/* Style pour les matières tronquées */
.matieres-text {
  line-height: 1.4;
}

/* Animation pour le chargement */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}



