.row-custom-listing-map {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-left: 0px !important;
  padding-right: 0px !important;
  max-width: 1600px !important;
  width: 95% !important;
}
@media (max-width: 1260px) {
  .row-custom-listing-map {
    flex-direction: column;
  }
}
@media (max-width: 960px) {
  .row-custom-listing-map {
    align-items: center;
    gap: 5px;
  }
}
.row-custom-listing-map > .et_pb_column:nth-child(1) {
  /* width: 60%; */
  width: fit-content;
  display: flex;
  flex-direction: row;
  margin-right: 0px;
  gap: 10px;
  justify-content: flex-start;
}

.row-custom-listing-map .wpgb-select-controls {
  display: none !important;
}
.row-custom-listing-map input[name="recherche_bloc_listing_ctv"] {
  background-image: url("/wp-content/themes/beecom-child/assets/images/icon-loupe.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 8px center;
  padding-left: 15px;
}

@media (max-width: 960px) {
  .row-custom-listing-map > .et_pb_column:nth-child(1) {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* display: none; */
  }
}
.row-custom-listing-map > .et_pb_column:nth-child(2) {
  /* width: 20%; */
  margin-right: 0px;
  max-width: 340px;
}
.row-custom-listing-map > .et_pb_column:nth-child(3) {
  /* width: 10%; */
  width: fit-content;
  margin-right: 0px;
  margin-left: auto;
}
@media (max-width: 1330px) {
  .row-custom-listing-map > .et_pb_column:nth-child(3) {
    margin-left: initial;
  }
}

.row-custom-listing-map > .et_pb_column:nth-child(1) .et_pb_module {
  margin-bottom: 0px !important;
}
.row-custom-listing-map > .et_pb_column:nth-child(1) select {
  background-color: #59c0a7;
  border: none;
  padding: 0px 32px;
  color: #fff;
  height: auto;
  line-height: 40px;
  font-family: "Poppins";
  text-align: center;
  font-size: 14px;
  width: 110px;
}

.row-custom-listing-map > .et_pb_column:nth-child(1) select option {
  background-color: #fff;
  color: #000;
  text-align: left;
  font-size: 12px;
}

.row-custom-listing-map .wpgb-facet select.wpgb-select:not([multiple]) {
  padding-left: initial !important;
  padding: 0px 32px !important;
}

@media (max-width: 960px) {
  .row-custom-listing-map > .et_pb_column:nth-child(1) {
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .row-custom-listing-map > .et_pb_column:nth-child(1).is-open {
    visibility: visible;
    max-height: 3000px; /* ajuste selon ton contenu */
  }
}

.row-custom-listing-map > .et_pb_column:nth-child(3) a {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  padding: 0 25px;
  font-size: 14px;
  line-height: 14px;
  min-width: 190px;
  font-weight: 700;
}
.desktop-grid-listing-map .wp-grid-builder .wpgb-card .wpgb-card-footer,
.desktop-grid-listing-map .wp-grid-builder .wpgb-card .wpgb-card-body {
  background-color: transparent;
}

.desktop-grid-listing-map .wpgb-area.wpgb-area-left button {
  background-image: url("/wp-content/themes/beecom-child/assets/images/icon-arrow-listing.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 15px;
  left: -20px;
}

.desktop-grid-listing-map .wpgb-area.wpgb-area-right button {
  background-image: url("/wp-content/themes/beecom-child/assets/images/icon-arrow-listing.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 15px;
  right: -20px;
  transform: rotate(180deg);
}

.desktop-grid-listing-map {
  max-width: 95%;
  margin: 0 auto;
}
.desktop-grid-listing-map .wpgb-area.wpgb-area-left {
  left: -40px;
}
.desktop-grid-listing-map .wpgb-area.wpgb-area-right {
  right: -40px;
}
@media (max-width: 960px) {
  .desktop-grid-listing-map {
    padding-left: 20px;
    padding-right: 20px;
  }
  .desktop-grid-listing-map .wp-grid-builder .wpgb-main {
    padding: 0px 10px !important;
  }
  .button-filter-listing-map {
    text-align: center !important;
    border-radius: 20px;
    color: #fff;
    background: #59c0a7;
    padding: 10px 20px;
  }
}

.desktop-grid-listing-map .wpgb-block-3 {
  text-indent: initial;
}
.row-custom-listing-map {
  position: relative;
  z-index: 9999;
}
.row-custom-listing-map .wpgb-facet {
  position: relative;
}
.row-custom-listing-map .wpgb-facet h4 {
  background-color: #59c0a7;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  border: none;
  color: #fff;
  height: auto;
  border-radius: 999px;
padding: 18px 20px;
    width: max-content;
}
.row-custom-listing-map .wpgb-facet h4 button {
  display: none;
}

@media(max-width:960px){
  .row-custom-listing-map .wpgb-facet h4{
    margin-bottom: 10px;
    width: 200px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

.row-custom-listing-map .wpgb-facet:not(.wpgb-facet-25) fieldset {
  position: absolute;
  background-color: #fff;
  z-index: 9999;
  padding: 20px;
  max-width: 220px;
  top: 55px;
  width: 220px;
  box-shadow: 0px 20px 15px -1px #2727273d;
  display: none;
  max-height: 250px;
    overflow-y: scroll;
}

@media (max-width: 960px) {
  .row-custom-listing-map .wpgb-facet:not(.wpgb-facet-25) fieldset {
    position: relative;
    top: initial;
    max-width: initial;
     box-shadow: none;
     background-color: #f9f9f9;
  }
}

.row-custom-listing-map .wpgb-facet.is-open:not(.wpgb-facet-25) fieldset {
  display: block;
}
