.body-container-wrapper:has(.bg-overlay) p.tooltip__characters {
  color: #FFFFFF;
  opacity: 1;
  font-size: 14px;
  background-color: #FFFFFF50;
  padding: 0 10px;
  filter: drop-shadow(2px 4px 6px black);
}
.search-mongodb__error-message{
  font-size:14px;
  color:#ec0b5d;
}
.search-mongodb__send-container{
  display:flex;
}
@media (max-width: 1024px) {
  .body-container-wrapper:has(.bg-overlay) .search_select {
    background-color: #FFFFFF;
  }
  .body-container-wrapper:has(.bg-overlay) .search-mongodb__send-container {
    background-color: #FFFFFF;
  }
}

.search_select {
  background-color: rgba(109, 150, 194, 0.3);
}

@media (max-width: 500px) {

  .tooltip__characters {
    top: calc(50% + 8px);
  }
}

.search-mongodb{
  display: flex;
  flex-direction:column;
  justify-content: space-between;
  padding: 10px 0 10px 10px;
}


.header .search-mongodb{
  padding-left:0;
  padding-bottom:30px;
}
.search-mongodb h5{
  color:#313131;
  margin-bottom: 20px;
}

{# Change from center to normal for set of UX | align-items: center; | deleted min-height:48px; padding-left:10px; #}

.search-mongodb__send-container {
  width: 60%;
  padding-left: 10px;
}


@media (max-width: 1024px) {
  .search-mongodb__send-container {
    width: 60%;
    padding-left: 10px;
  }  
}



.search-mongodb .input_container{
  display: flex;
  align-items: normal;
  justify-content: space-between;
  align-items: center;
  border-radius: 25px;
  background:#fff;
}
.search-mongodb input{
  border: none;
  font-size:14px;
  width:100%;

}
.input_content{
  width: 75%;
  display:flex;
  gap: 5px;
}

.search-mongodb input{
  color:#313131;
  text-overflow: ellipsis;
  background: white;
}
.search-mongodb input::placeholder{
  color:#313131;
  text-overflow: ellipsis;

}

::placeholder{
  text-overflow:ellipsis;
}

.button_filter,
.search-mongodb__send-button{
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  font-size:18px;
}

.search-mongodb input:focus{
  border:none !important;
}

.search-mongodb__results-title{
  text-transform:capitalize;
	padding-top:10px;
	margin:0;
}

.search-mongodb input:focus-visible {
  outline: none;

}
.search-mongodb svg{
  width: 5%;
}
.filters{
  width: 25%;
  justify-content: flex-end;
  align-items: center;
}
.filter_button{
  border-right:1px solid #AAAAAA;
  width:80%;
  text-align: center;
  color:#aaa;
  font-size:14px;
  line-height:18px;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  position:relative;
  transition:all ease 0.3s;
}



span.favorite_icon,
span[data-icon="favorite_icon"]{
  bottom: 9px;
  position: absolute;
  right: 10px;
  width: 50px;
  height: 50px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

span.favorite_icon svg,
span[data-icon="favorite_icon"] svg{
  width:30px;
  height:30px;
}

span.favorite_icon svg path,
span[data-icon="favorite_icon"] svg path
{
  fill:#5EC323;
}

span.favorite_icon.active svg path,
span[data-icon="favorite_icon"].active svg path{
  fill:#ec0b5d;
}

.active {
  border: 1px solid #ec0b5d;
  padding: 10px;
}


.ais-SortBy-select{
  width: 200px;
  padding: 10px 5px;
  z-index: 1000;
  position: relative;
  margin:10px auto;
}

.search-mongodb__button-label{
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  transition:all ease 0.3s;
  justify-content: center;
  text-transform: capitalize;
}
.button_filter,
.filter_button,
.search-mongodb__send-button{
  height: 50px;
}

.cards_filtered{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding:50px 0;
}

.card_filter{
  min-height:500px;
  color:#313131;
  cursor:pointer;
  /* min-width:100%;*/
}
.card_filter:hover,
.card_filter:focus{
  text-decoration:none;
}

.search-mongodb__checkbox-container{
  background: white;
  top: 110%;
  width: 300px;
  right: 0;
  position: absolute;
  padding: 10px;
  box-shadow: 5px 7px 12px -6px rgba(170,170,170,0.55);
  -webkit-box-shadow: 5px 7px 12px -6px rgba(170,170,170,0.55);
  -moz-box-shadow: 5px 7px 12px -6px rgba(170,170,170,0.55);
  z-index:100000;
}

.filter_checkbox_container_price{
  bottom:-344px;
}

.checkbox_item{
  display: flex;
  align-items:center;
  gap:10px;
}

.checkbox_item input[type="radio"]{
  display: inline-block;
  width: 20px;
  height: 20px;
}
.checkbox_item label{
  color:#313131;
}

.checkbox_container{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
{# Changes for UX Experience #}
#search_by{
  border: none;
  border-right: 1px solid #aaa;
  padding: 5px;
  font-size: 14px;
  padding-right: 30px;
  border-radius: 25px 0 0 25px;
  padding-left: 25px;
  height: 50px;
}

#search_by:focus-visible {
  outline: none;
}


.buttons_control_container {
  margin: 50px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination_buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  position:relative;
}

.btn-prev{
  position:absolute;
  left:0;
}

.button_filter{
  display:none;
}

{#----Tablet Breakpoint----#}


@media(max-width:1024px){
  .search-mongodb{
    flex-direction:column;
  }
  .search-mongodb .input_container {
    width: 95%;
    flex-direction: column;
    gap: 32px;
    background:transparent;
    padding-left:0;
    margin:auto;
  }


  .search-mongodb h5{
    padding-left:25px;
    padding-right:20px;
  }

  .search-mongodb .input_content{
    width: 100%;
    background: white;
    height: 50px;
    border-radius: 30px;
    padding-left:10px;
    display: flex;
    align-items: center
  }

  .filters{
    width: 100%;
    background: white;
    border-radius: 30px;
    justify-content: space-around;

  }

  .filter_button:last-of-type {
    border-right:none;
  }

  .button_filter{
    display:none;
  }

  .search-mongodb__send-button{
    display:inline-block;
  }

  .cards_filtered{
    grid-template-columns: 1fr 1fr;
  }
}


span.close_dropdown{
  background: transparent;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}
}


{# Styles for tooltiptext when a filter it´s not set and changes on searchBy #}

.highlight {
  background-color: rgba(94, 195, 35, 1.0);
  border: 1px solid #5ec323;
  color: #fff;
  fill: #fff;
  -webkit-box-shadow: unset;
  box-shadow: unset;
}

.span__search-by {
  position: absolute;
  bottom: calc(60% + 16px);
  left: 10px;
  font-size: 12px;
  color: #F2545B;
}

.input_container {
  position: relative;
}

.return_button{
  display: flex;
  align-items: center;
  margin-bottom:20px;
  z-index:1000000;
  position:relative;
}

.return_button svg{
  width: 25px;
  height: 25px;

}

.return_button  svg path{
  fill:#5EC323;
}

.return_button:hover{
  color:#5EC323;
}

.button_saved{
  height: 40px;
}

#popup{
  width: 100vw;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: all ease-in-out 0.3s;
  z-index:1000000000;
}

#popup.active{
  opacity: 1;
  visibility: visible;
  border:none;
}

#popup .popup_container{
  position: relative;
  margin: 40px auto;
  width: 30%;
  padding: 30px;
  background: white;
  border-radius: 10px;
  text-align: center;
  z-index:1000000000;
}

.label_popup{
  display:block;
}

#popup .popup_container input{
  width: 70%;
  max-width: 340px;
  padding: 5px;
  display: block;
  margin: auto;
}

.popup_container .error-message{
  display:block;
}

#popup .popup_container button{
  margin:20px auto;
}
.tooltip__characters {
  position: absolute;
  width: 99%;
  top: calc(60% + 20px);
  left: 10px;
  opacity: 0.9;
  color: #313131;
  font-size: 11px;
}

{# ********************New Code **********************#}
.search-mongodb__hide,
.search-mongodb__location:not(.search-mongodb__active) .search-mongodb__checkbox-container{
	display:none;
}
{# ******************** End New Code *****************#}

{# Change for reponsive #}

@media (max-width: 1024px) {
  .filter_button {
    width: 100%;
    margin: 0 auto;
    border:none;
  }

  .search-mongodb__checkbox-container {
    right: 0;
    width: 100%;
  }

  .search-mongodb__checkbox-container:not(:has(.hidden)) {
    border: 1px solid;
    border-radius: 5px;
  }

  .search-mongodb__send-container {
    display: flex;
    width: 100%;
    margin: 30px auto 0 auto;
    border-radius: 30px;
    padding-left: 30px;
    -webkit-box-shadow: -2px 2px 10px -5px rgba(0,0,0,0.52);
    border: none;
    position: relative;
  }
  .search-mongodb {
    padding: 0;
  }
  .tooltip__characters {
    position: absolute;
    width: 100%;
    top: calc(60% + 5px);
    left: 10px;
    color: #6D96C2;
    font-size: 11px;
  }
  #search_by {
    width: 100%;
    margin: 0 auto;
    border-radius: 30px;
    padding-left: 30px;
    padding-right: 30px;
    -webkit-box-shadow: -2px 2px 10px -5px rgba(0,0,0,0.52);
    border: none;
    height: 50px;
  }
  {# End of Change for select for reponsive #}
  .search_by_select {
    top: -80px;
    left: 0;
    width: 100%;
    margin: 0 auto;
    border-radius: 30px;
    padding: 10px 20px;
    -webkit-box-shadow: -2px 2px 10px -5px rgba(0,0,0,0.52);
    border: none;
  }
  .search_by_select select {
    width: 100%;
  }
  .search_by_select select:focus-visible {
    outline: none;
  }

  #popup .popup_container{
    width:70%;
  }
}

{#----Mobile Breakpoint----#}
@media(max-width:765px){
  .filter_button{
    padding: 0 5px;
    border:none;
  }
  .search-mongodb .input_container{
    padding-left:20px;
    padding-right:20px;
  }

  .cards_filtered{
    grid-template-columns: 1fr;

  }

  .search-mongodb h5{
    margin-top:20px;
  }
  .search-mongodb__checkbox-container{
    right: -36px;
    bottom: -136px;
    min-width: 270px;
    right: -134px;
  }

  .filter_checkbox_container_price{
    bottom: -347px;
    width: 90%;
    z-index: 100000;
    min-width: 270px;
    right:0;
  }
  .input_container{
    margin-top: 10px !important;
    width:94% !important;
    padding-left:0 !important;
    padding-right:0!important;
  }

  .features{
    grid-template-columns: 1fr;
  }

  .search-mongodb .input_content{
    position:relative;
  }

  .search_by_select{
    position: absolute;
    top: -45px;
    border-right:none;
    border:1px solid #aaa;
  }

  #search_by{
    border-right:none;
  }
  .ais-SortBy-select{
    width:100%;
  }

  .button_saved{
    display: block;
    margin: 0 auto;
    height:auto;
  }

  #popup .popup_container{
    width:100%;
  }
  #popup .popup_container input{
    width:100%;
  }
}

@media (max-width: 500px) {
  .tooltip__characters {
    top: calc(50% + 24px);  
  }
}