/* --- Formulaire --- */
#salle-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

#salle-filter-form input,
body .select2-container .select2-selection--single {
  background: radial-gradient(
        circle at 100% 100%,
        #ffffff 0,
        #ffffff 5px,
        transparent 5px
      )
      0% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 0 100%, #ffffff 0, #ffffff 5px, transparent 5px)
      100% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 100% 0, #ffffff 0, #ffffff 5px, transparent 5px)
      0% 100% / 8px 8px no-repeat,
    radial-gradient(circle at 0 0, #ffffff 0, #ffffff 5px, transparent 5px) 100%
      100% / 8px 8px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 6px)
      calc(100% - 16px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 16px)
      calc(100% - 6px) no-repeat,
    radial-gradient(at 100% 100%, #42bbce 0%, transparent 70%),
    radial-gradient(at 100% 0%, #d182d5 0%, transparent 70%),
    radial-gradient(at 0% 0%, #1c67ab 45%, transparent 70%), #d182dc !important;
  border-radius: 10px !important;
}

#salle-filter-form select,
#salle-filter-form input[type="text"] {
  flex: 1 1 200px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#salle-filter-form button {
  padding: 8px 16px;
  background: radial-gradient(at 100% 100%, #42bbce 0%, transparent 70%),
    radial-gradient(at 100% 0%, #d182d5 0%, transparent 70%),
    radial-gradient(at 0% 0%, #1c67ab 45%, transparent 70%), #d182d5;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 15px;
}

#salle-filter-form button:hover {
  background: #1a5bb8;
}

/* --- Logo marque --- */
#marque-logo {
  margin: 15px 0;
  text-align: center;
}
#marque-logo img {
  max-height: 60px;
  object-fit: contain;
}

/* --- Résultats en grille --- */
#salle-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* --- Carte salle --- */
.wpgmp_locations {
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.salle-card {
  display: flex;
  flex-direction: column;
}

.salle-img {
  width: 100%;
  overflow: hidden;
}
.salle-img img {
  height: 100%;
  object-fit: cover;
}

.salle-body {
  padding: 10px;
}

.wpgmp_location_title {
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0 4px;
}
.wpgmp_location_title a.place_title {
  text-decoration: none;
  color: #333;
}
.wpgmp_location_title a.place_title:hover {
  color: #2c7be5;
}

.wpgmp_location_meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.salle-adresse {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

/* --- Bouton Sélectionner --- */
.elementor-button.btn.btn-solid.btn-icon-shaped.btn-has-label {
  display: block;
  padding: 10px;
  margin-top: 8px;
  width: 100%;
  background: #2c7be5;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.elementor-button.btn.btn-solid.btn-icon-shaped.btn-has-label:hover {
  background: #1a5bb8;
}

/* --- Autocomplete (jQuery UI) --- */
.ui-autocomplete {
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 9999;
}
.ui-menu-item-wrapper {
  padding: 6px 10px;
  cursor: pointer;
}
.ui-menu-item-wrapper:hover {
  background: #2c7be5;
  color: #fff;
}

/* --- Loader animé --- */
.salle-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.salle-loader::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid #2c7be5;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.select2-container {
  min-width: 20px;
  width: 100%;
  max-width: 340px;
}

.select2-container--open .select2-dropdown--below {
  min-width: inherit !important;
}

#salle-filter-form {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 95%;
  background: #fff;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px;
  box-shadow: -1px 13px 9px -10px rgba(0, 0, 0, 0.66);
}

.filter-buttons {
  width: 100%;
}

.salle-loader {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#marque-logo {
  margin: 15px auto;
  text-align: center;
  background: radial-gradient(
        circle at 100% 100%,
        #ffffff 0,
        #ffffff 5px,
        transparent 5px
      )
      0% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 0 100%, #ffffff 0, #ffffff 5px, transparent 5px)
      100% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 100% 0, #ffffff 0, #ffffff 5px, transparent 5px)
      0% 100% / 8px 8px no-repeat,
    radial-gradient(circle at 0 0, #ffffff 0, #ffffff 5px, transparent 5px) 100%
      100% / 8px 8px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 6px)
      calc(100% - 16px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 16px)
      calc(100% - 6px) no-repeat,
    radial-gradient(at 100% 100%, #42bbce 0%, transparent 70%),
    radial-gradient(at 100% 0%, #d182d5 0%, transparent 70%),
    radial-gradient(at 0% 0%, #1c67ab 45%, transparent 70%), #d182dc !important;
  display: none;
  padding: 3px;
  text-align: center;
  border-radius: 6px;
}

.salle-card {
  display: flex;
  flex-direction: column;
  background: radial-gradient(
        circle at 100% 100%,
        #ffffff 0,
        #ffffff 5px,
        transparent 5px
      )
      0% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 0 100%, #ffffff 0, #ffffff 5px, transparent 5px)
      100% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 100% 0, #ffffff 0, #ffffff 5px, transparent 5px)
      0% 100% / 8px 8px no-repeat,
    radial-gradient(circle at 0 0, #ffffff 0, #ffffff 5px, transparent 5px) 100%
      100% / 8px 8px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 6px)
      calc(100% - 16px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 16px)
      calc(100% - 6px) no-repeat,
    radial-gradient(at 100% 100%, #42bbce 0%, transparent 70%),
    radial-gradient(at 100% 0%, #d182d5 0%, transparent 70%),
    radial-gradient(at 0% 0%, #1c67ab 45%, transparent 70%), #d182dc !important;
  padding: 3px;
}

.adresse-wrapper {
  position: relative;
  width: 100%;
}

#adresse {
  padding-right: 40px !important; /* ✅ espace suffisant pour la croix */
}

.adresse-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  cursor: pointer;

  z-index: 10; /* ✅ au-dessus du texte */
  background: white; /* ✅ évite que le texte passe par-dessus */
  padding: 0 4px;
}

.adresse-clear:hover {
  color: #333;
}

.adresse-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: radial-gradient(
        circle at 100% 100%,
        #ffffff 0,
        #ffffff 5px,
        transparent 5px
      )
      0% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 0 100%, #ffffff 0, #ffffff 5px, transparent 5px)
      100% 0% / 8px 8px no-repeat,
    radial-gradient(circle at 100% 0, #ffffff 0, #ffffff 5px, transparent 5px)
      0% 100% / 8px 8px no-repeat,
    radial-gradient(circle at 0 0, #ffffff 0, #ffffff 5px, transparent 5px) 100%
      100% / 8px 8px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 6px)
      calc(100% - 16px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 16px)
      calc(100% - 6px) no-repeat,
    radial-gradient(at 100% 100%, #42bbce 0%, transparent 70%),
    radial-gradient(at 100% 0%, #d182d5 0%, transparent 70%),
    radial-gradient(at 0% 0%, #1c67ab 45%, transparent 70%), #d182dc !important;
  padding: 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  display: none;
}

.adresse-suggestions .item {
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
}

.adresse-loading {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  z-index: 10;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Wrapper */
.adresse-wrapper {
  position: relative;
  width: 100%;
}

/* Champ adresse */
#adresse {
  width: 100%;
  padding-right: 42px !important; /* ✅ espace pour croix + loader */
}

.adresse-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  display: flex;
  width: 20px;
  transform: translateY(-50%);
  font-size: 20px;
  color: #fff;
  border: 1px solid #2c7be5;
  cursor: pointer;
  z-index: 10;
  background: #2c7be5;
  align-items: center;
  padding: 0;
  border-radius: 100%;
  height: 21px;
  justify-content: center;
}

/* Loader */
.adresse-loading {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  z-index: 20;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Suggestions */
.adresse-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  display: none;
}

.adresse-suggestions .item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.adresse-suggestions .item:hover {
  background: #f5f5f5;
}
