#rb-svg-map svg g[id].svg-hover {
  isolation: isolate;
  z-index: 1;
  position: relative;
}
/* Le plugin utilise les variables CSS globales du thème */

.rb-wrapper{
}

.rb-wrapper > *:not(.rb-criteria-list) {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Carte SVG interactive */
#rb-svg-map-container{
  text-align: center;
  padding: 0 15px;
  margin: 10px 0 0 0;
  background: none;
  border: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease-in-out, opacity .2s ease-in-out, padding .25s ease-in-out, margin .25s ease-in-out;
}

#rb-svg-map-container.open{
  max-height: 600px;
  opacity: 1;
  padding: 15px;
  margin: 10px 0 15px 0;
}

#rb-svg-map svg{
  max-width: 450px;
  height: auto;
}

/* Groupes SVG cliquables */
#rb-svg-map svg g[id]{
  cursor: pointer;
  pointer-events: all;
}

#rb-svg-map svg g[id] path,
#rb-svg-map svg g[id] polygon{
  transition: all .25s ease-in-out;
  stroke-width: 1;
  pointer-events: all;
}

#rb-svg-map svg g[id]:hover path,
#rb-svg-map svg g[id]:hover polygon{
  opacity: 0.7;
  filter: brightness(1.2);
}

/* Zone sélectionnée */
#rb-svg-map svg g[id].svg-active path,
#rb-svg-map svg g[id].svg-active polygon{
  stroke: #000 !important;
  stroke-width: 3px !important;
  fill: #FBF8F2 !important;
}

/* Texte dans le SVG - ne bloque pas les clics */
#rb-svg-map svg text{
  pointer-events: none;
  user-select: none;
}

/* Tous les autres éléments SVG ne bloquent pas les clics */
#rb-svg-map svg *:not(g):not(path):not(polygon){
  pointer-events: none;
}

/* Boutons lieux parents */
.rb-region-buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 10px 0;
  padding: 0 15px;
}
.rb-region-btn{
  margin: 0;
  flex: 0 1 auto;
  white-space: nowrap;
}
.rb-region-btn.is-active{
  background:#000;
  color:#fff;
}

.rb-reset-btn{
  margin:0 5px;
}

/* Sous-zones enfants */
.rb-subzones{
  text-align:center;
  margin:5px 0 20px 0;
}
.rb-subzone-btn{
  border-color:#aaa;
  background:#f7f7f7;
  margin:0 4px;
}
.rb-subzone-btn.is-active{
  background:#000;
  color:#fff;
  border-color:#000;
}

/* Barre principale */
.rb-mainbar{
  margin:20px auto;
  display:flex;
  justify-content:center;
  border:1px solid #000;
  border-radius:30px;
  padding:4px 6px;
}
.rb-mainbar .input-wrapper{
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.rb-input{
  flex:1;
  border:none;
  outline:none;
  background:none;
  padding:8px 12px;
  text-align: center;
  width: 100%;
}
/* Cacher le placeholder de l'input autocomplete */
#rb-autocomplete-input::placeholder,
#rb-autocomplete-input::-webkit-input-placeholder,
#rb-autocomplete-input::-moz-placeholder,
#rb-autocomplete-input:-ms-input-placeholder{
  color: transparent !important;
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}
.rb-mainbar .input-label{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ccc;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  em{
    font-style: italic;
    color: #ccc;
  }
}
.rb-mainbar .input-wrapper.has-value .input-label,
.rb-mainbar .input-wrapper.is-focused .input-label{
  opacity: 0;
  visibility: hidden;
}
.rb-main-submit{
  border-radius:50%;
  width:34px;
  height:34px;
  background:#000;
  color:#fff;
  border:none;
  cursor:pointer;
  transition: all .25s ease-in-out;
  flex-shrink: 0;
}
.rb-main-submit:hover{
  opacity: 0.8;
}

/* Ligne de filtres */
.rb-filter-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:40px;
  margin:10px 0 20px 0;
}
.rb-filter-slot{
  border-bottom:1px solid #000;
  display:flex;
  align-items:center;
  gap:6px;
  padding-bottom:4px;
  position: relative;
}
.rb-filter-slot .input-wrapper{
  position: relative;
  display: flex;
  align-items: center;
}
.rb-filter-slot input{
  border:none;
  outline:none;
  text-align:center;
  background:none;
  width: 100%;
}
.rb-filter-slot .input-label{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ccc;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  em{
    font-style: italic;
      color: #ccc;
  }
}
.rb-filter-slot .input-wrapper.has-value .input-label,
.rb-filter-slot .input-wrapper.is-focused .input-label{
  opacity: 0;
  visibility: hidden;
}
.rb-filter-unit{
  flex-shrink: 0;
}

/* Critères */
.rb-criteria-toggle{
  text-align:center;
}
/* .rb-more-criteria-btn utilise uniquement les styles de .btn */
.rb-more-criteria-btn.active{
  background: #000;
  color: #fff;
}

.rb-criteria-list{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease-in-out, opacity .25s ease-in-out, padding .35s ease-in-out;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}
.rb-criteria-list.open{
  max-height: 500px;
  opacity: 1;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--couleur_principale) 90%, transparent);
  margin-bottom: 3rem;
}

.rb-criteria-list .miniWidth {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.rb-criteria-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rb-criteria-chip.is-active{
  background:#000;
  color:#fff;
}

/* Résultats */
.rb-results,
#rb-search-results{
  transition: opacity .3s ease-in-out;
}
.rb-results-grid{
  /* Flexbox géré par les classes row row-margin du thème */
}
.rb-result-item{

}
.rb-result-link{
  text-decoration:none;
  color:inherit;
}
.rb-thumb img{
  display:block;
  width:100%;
  height:auto;
}

.rb-thumb {
  overflow: hidden;

  @media (max-width: 767px) {
    aspect-ratio: 1 / 1;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.rb-statut{
    display: inline-block;
    border: 1px solid #000;
    padding: 8px 14px 6px 14px;
    border-radius: 20px;
    background: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .25s ease-in-out;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
}
.rb-statut:hover{
    background: none;
    color: var(--couleur_text);
}
.rb-lieux{
      font-family: 'figginssans-bold';
    text-transform: uppercase;
    color: var(--couleur_secondaire);
     font-size: 15px;
    letter-spacing: 2px;
}
.rb-result-title{
  font-family: "figginssans";
}
.rb-result-meta {
 font-size: 15px;
    letter-spacing: 1px;
}

/* Styles SVG zones par défaut */
#rb-svg-map svg {
  transition: opacity 0.3s ease-in-out;
}


#rb-svg-map svg g[id] path,
#rb-svg-map svg g[id] polygon {
  fill: #fff !important;
  stroke: #000 !important;
  stroke-width: 1 !important;
  transition: fill 0.2s ease, stroke-width 0.2s ease;
}

/* Forcer le retour à la couleur initiale si ni hover ni active */
#rb-svg-map svg g[id]:not(.svg-hover):not(.svg-active) path,
#rb-svg-map svg g[id]:not(.svg-hover):not(.svg-active) polygon {
  fill: #fff !important;
  stroke: #000 !important;
  stroke-width: 1 !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Styles SVG zones hover/active - spécificité augmentée */
#rb-svg-map svg g[id].svg-hover path,
#rb-svg-map svg g[id].svg-hover polygon,
#rb-svg-map svg g[id].svg-active path,
#rb-svg-map svg g[id].svg-active polygon {
  fill: #FBF8F2 !important;
  stroke: #000 !important;
  stroke-width: 3 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Style pour l'autocomplétion Google Places */
.pac-container {
  border-radius: 0;
  border: 1px solid #000;
  box-shadow: none;
  margin-top: 0;
  z-index: 10000 !important;
}

.pac-item {
  padding: 10px 15px;
  font-size: 15px;
  line-height: 1.4;
  border-top: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pac-item:hover {
  background-color: #f9f9f9;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item-query {
  font-size: 15px;
  color: #000;
  font-weight: normal;
}

.pac-matched {
  font-weight: 600;
}

.pac-icon {
  display: none;
}

.pac-item-selected,
.pac-item-selected:hover {
  background-color: #f0f0f0;
}

/* Masquer le logo Google Powered by dans le dropdown */
.pac-container:after {
  display: none !important;
}

.rb-input {
  width: 100%;
}

/* Media queries responsive */
@media screen and (max-width: 768px) {
  .rb-filter-row {
    gap: 20px;
  }
}
