/* fix svg search in navbar */
#masthead .svg{
  vertical-align: unset !important;
}


.rifugi-card {
  transition: all 0.3s 0s ease-in-out;
  font-size: 1rem;
  /* height: fit-content; */
  padding: 1.4rem;
  background: white;
  box-shadow: 0px 4px 24px rgba(135, 169, 213, 0.16);
  border-radius: 24px;
  border: 1px var(--azzurro) solid;
  background-color: #ffffff;
  padding: 1.2rem;
  border-radius: calc(8px + 1rem);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.2rem;
  /* min-height: 1rem;
  max-height: 17.5rem; */
}
.rifugi-card-image_container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: auto;
  background-color: #f5f5f5;
}
.rifugi-list{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr ;
  flex-wrap: wrap;
  gap: 1.6rem;
  z-index: 1;
  grid-auto-rows: 1fr;
}
@media (max-width:768px) {
  .rifugi-list{
    grid-template-columns: 1fr ;
    min-height: 90vh;
  }
  .rifugi-card{
    max-height: 500px;
  }
}

#list_filters{
  z-index: 9;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
#list_filters .dropdown>a::after{
  content: 'keyboard_arrow_down';
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  align-items: center;
  color: black !important;
  line-height: 1.125em;
  padding-left: 0px;
  margin-right: 0rem;
  transform: translateY(0.2rem);
  border: none !important;
}
#list_filters .dropdown>a , #list_filters .altitude_btn{
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius:9999px; 
  color:black;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.175);
}
#list_filters .dropdown .dropdown-menu{
  max-height: calc(25vh + 0.5rem);
  overflow-y: scroll;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: gray transparent; /* For Firefox */

}

#list_filters .dropdown .dropdown-menu::-webkit-scrollbar {
  width: 8px; /* Adjust width */
}
#list_filters .dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  background-color: gray; /* Color of the scrollbar */
  border-radius: 4px;
}
#list_filters .dropdown .dropdown-menu::-webkit-scrollbar-track {
  background: transparent; /* Hide track */
}

.filter_counter{
  color: #ffffff !important;
  background-color: var(--blu_elettrico);
}

#list_filters .container-right{
  display:block;
  margin: -0.1rem 0.6rem -1rem 0;
}

/* loading icon */
#responseContainer{
  transition: all 0.3s 0s linear;
}
#responseContainer.collapsed{
  margin-top: 0;
  margin-bottom: 0;
}
div.loadingIcon-container{
  transition: max-height 0.3s 0s ease-in-out;
  max-height: 160px;
}
div.loadingIcon-container span{
  opacity: 1;
  margin-top: 1rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s 0s ease-in-out;
}
div.loadingIcon-container.collapsed{
  max-height: 0px !important;
}
div.loadingIcon-container.collapsed span{
  opacity: 0;
}
.loadingIcon{
  animation: loading 1.6s linear infinite;
  -webkit-animation: loading 1.6s linear infinite;
  -moz-animation: loading 1.6s linear infinite;
}
@keyframes loading {
  to {
      -webkit-transform: rotate(0deg);
  }
  from {
      -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes loading {
  to {
      -webkit-transform: rotate(0deg);
  }
  from {
      -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes loading {
  to {
      -moz-transform: rotate(0deg);
  }
  from {
      -moz-transform: rotate(360deg);
  }
}

/* pagination */
.rifugi-list-pagination-container{
  margin-top: 2rem;
  width: 100%;
}
.rifugi-list-pagination-container span{
  height: 100%;
}

.rifugi-back_btn , .rifugi-clear_filters{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--blu_elettrico);
  height: fit-content;
  width: fit-content;
  margin: auto 0;
}

.rifugi-clear_filters{
  color: var(--blu_elettrico);
  padding: 0 0.5rem;
  visibility: visible;
  opacity: 1;
  transition: all 0.3s 0s ease-in-out;
}
.rifugi-clear_filters i{
  color: var(--blu_elettrico);
}

.rifugi-clear_filters:hover{
  background-color: var(--blu_scuro);
}
.rifugi-clear_filters.rifugi-hide{
  visibility: hidden;
  opacity: 0;
}

@media screen and (max-width:1024px){
  .rifugi-list{
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width:1024px){
  .rifugi-card{
    display: flex;
    flex-direction: column;
  }
  .rifugi-card-image_container{
    min-height: 140px;
  }
}

/* dual range style */

.bs-multi-range {
  width: 100%;
}
.bs-multi-range > .track {
  width: 100%;
  background: #f0f0f0;
  height: calc(var(--thumb-size, 16px) / 2);
  border-radius: 1rem;
  position: relative;
}
.bs-multi-range .thumb {
  z-index: 1;
  width: var(--thumb-size, 16px);
  height: var(--thumb-size, 16px);
  background: dodgerblue; /* color for thumb */
  border-radius: 100%;
  position: relative;
  cursor: pointer;
}
.bs-multi-range .upper {
  bottom: calc(var(--thumb-size, 16px) / 4);
}
.bs-multi-range .lower {
  bottom: calc(calc(var(--thumb-size, 16px) / 4) + var(--thumb-size, 16px));
}
.bs-multi-range .track-diff {
  position: relative;
  height: calc(var(--thumb-size, 16px) / 2);
  left: 0;
  bottom: calc(calc(var(--thumb-size, 16px)) + var(--thumb-size, 16px));
  background: lightgray;
}

.altitude_apply-btn{
  color: var(--blu_elettrico) !important;
}

/* #rifugi-map-container{
  width: calc(100% - 280px);
  height: 90vh;
}

@media screen and (max-width:1024px){
  #rifugi-map-container{
    width: 100%;
  }
}
 */