.sargelCanvas {
  
  overflow: hidden;  
}

.filetrsPanelWrapper {
  
  width: 100dvw;
  margin-inline-start: calc(-50dvw + 50%);
  padding-inline: 20px;
  box-sizing: border-box;
  background: white;
  margin-top: -20px;
  margin-bottom: 20px;
  box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.12);
}

#filetrsPanel {
  
  box-sizing: border-box;
}

#filetrsPanel * {

  box-sizing: border-box;
}

#filetrsPanel {
  
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 20px;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  
  &:has(#locationSearchResults:not(:empty) ) {
    
    padding-bottom: calc(80vh + 20px);
    margin-bottom: -80vh;
  }
  
  > div {
  
    flex: none;
  
    .fa-loader {
      
      position: absolute;
      top: 50%;
      inset-inline-end: 14px;
      translate: 0 -50%;
      background: var(--color10);
      z-index: 1;
      pointer-events: none;
    } 
  }

  
  #locationSearchResults:not(:empty) {
    
    position: absolute;
    background: #fff;
    
    outline: 2px solid var(--colorInputBorder, #a7bed9);
    border-radius: 20px;
    z-index: 100;
    padding: 0;
    padding-top: 40px;
    list-style-type: none;
    overflow: hidden;
    font-size: 14px;
    top: 0;
    inset-inline: 0;
    z-index: 1;
    
    .locationSelectWrapper {
      
      display: flex;
      flex-flow: column;
      align-items: start;
      position: relative;
                  
      .locationSelect {
        
        > span {
          
          pointer-events: none;
        }
        
        &:after {
          
          content: '';
          position: absolute;
          inset: 0;
        }
        
        &:hover {

          &:after {
          
            background: rgb(0 0 0 / .05); 
          }
        }
        
        &.selected {

          &:after {
          
            background: rgb(0 0 0 / .05); 
          }
        }

      }
      
      .locationAreaName {
        
        font-size: 11px;
        color: rgb(96, 96, 96);
      }
      
    }
    
    > div {
      
      overflow: hidden;
      overflow-y: auto;
      max-height: 60vh;
      min-width: 250px;
    }

    .locationCategoryTitle,
    .locationSelectWrapper {
    
      padding: 10px 35px;
      text-decoration: none;
      display: flex;
      line-height: 1.4;
      min-height: 30px;
      font-size: inherit;
      border-bottom: 1px solid #BDCEE3;
      color: inherit;
      

      mark {
        
        background: none;
        font-weight: bold;
      }
    }
    
    .locationCategoryTitle {
      
      color: #4787ed;
      border-bottom: 1px solid #4787ed;
      background: rgb(71 135 237 / .05);
      min-height: 30px;
      padding: 5px 35px;
      cursor: auto;
      
      &:first-child {
        
        border-top: 1px solid var(--colorInputBorder, #a7bed9)
      }
    }
  }
  
  .locationSearchfiled {
    
    position: relative; 
    
    > .fa-location-dot{
      
      pointer-events: none;
      position: absolute;
      top: 50%;
      z-index: 20;
      inset-inline-start: 15px;
      translate: 0 -50%;

    }
    
    .fa-loader {
      
      pointer-events: none;
      position: absolute;
      top: 50%;
      z-index: 1;
      inset-inline-end: 15px;
      translate: 0 -50%;
    }
  }

 .filterHistoryButton {
    
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100vh;
    background: white;
    border: 1px solid rgb(0 0 0 / .2);
    
    &:hover {
      
      background: var(--backgroundButton, rgb(245 245 245 / .5));
    }
  }

  .filterList {
    
    &[data-type="location"]  {
      
      position: relative;
      
      #locationSearch {
        
        position: relative;
        z-index: 10;
      }
    } 

    .search {
      
      padding-inline: 35px ;
      margin-inline: 1px;
      border-radius: 100vh ;
      border: 0;
      width: clamp(250px, 100%, 100vw);
    }
    
    &:focus-within {
      
      .filterHeader {
        
        outline: 2px solid rgb(0 0 0 / .2);
        outline-offset: -2px;
      }
    }
    
  }
  
  .filterHeader {
    
    position: relative;
    outline: 0;
    background: white;
    border: 1px solid rgb(0 0 0 / .2);
    border-radius: 100vh;
    padding: 5px 20px;
    padding-inline-end: 40px;
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
    text-transform: capitalize;
    justify-content: center;
    
    &:after {
      
      content: '\f107';
      font-family: "Font Awesome 6 Pro";
      font-weight: 300;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      inset-inline-end: 15px;
      margin: 0;
    }
    
    .counter {
    
      background: rgb(71 135 237 / .5);
      min-width: 20px;
      min-height: 20px;
      border-radius: 100vh;
      font-size: 11px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
    }
  }

  &::-webkit-scrollbar {
  
    display: none;
  }
}

.filetrsPanelContainer {
  
  position: relative;
  z-index: 110;
}

.filetrsPanelContainer > form {

  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  
  .searchIcone {
    
    display: none;
  }
}


.filterSelect {
    
  position: absolute;
  background: #fff;
  border: 1px solid var(--colorInputBorder, #A7BED9);
  border-radius: 10px;
  z-index: 100;
  padding: 0;
  margin: 10px 0;
  list-style-type: none;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  max-height: 70vh;
  min-width: 200px;
  font-size: 14px;
  
  .realEstateCategorisList {
    
    a {
      
      color: inherit;
    }
    
    
    li {
      
      position: relative;
    }
    
    .selected {
      
      &:after {

        content: "\f00c";
        font-family: 'Font Awesome 6 Pro';
        position: absolute;
        top: 50%;
        translate: 0 -50%;
        inset-inline-end: 20px;
        color: #2196f3;
      } 
    }
  }
  
  .propertyCategorisList {
    
    padding: 20px;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    width: 360px;
    
    input[type="checkbox"] + label:not(.wtf) {
      
      border: 1px solid rgb(0 0 0 / .2);
      border-radius: 5px;
      padding: 5px 10px;
      cursor: pointer;
      
      &:hover {
        
        color: #4787ed;
        border-color: #4787ed;    
      }
      
      &:before {
        
        content : none;
      }
      
      &:after {
        
        content : none;
      }
    }
    
    input[type="checkbox"]:checked + label:not(.wtf) {
      
      color: #4787ed;
      border-color: #4787ed; 
      background:  rgb(71 135 237 /.05 );
    }
  }
  
  .filterSelectPanel {
    
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid rgb(0 0 0 / .2);
  }
  
  .filterSearch {
    
    padding: 20px;
    padding-bottom: 10px;
  }
  
  ul {
  
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
          
  [role="button"] {
    
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    line-height: 1.4;
    min-height: 40px;
    align-items: center;
    font-size: inherit;
    border-bottom: 1px solid #BDCEE3;
    color: inherit;  
    
    &:hover {
      
      color: inherit;  
      background: rgb(0 0 0 / .05);
    }
  }
  
  li:last-child {
    
    [role="button"] {
      
      border-bottom: 0;
    }  
  }
}

#filetrsPanel .filterList.active .filterSelect {
  
  display: block;
  opacity: 1;
  visibility: visible;
  height: auto;
  transform: translateY(0);
  transition: 150ms;
}

#filetrsPanel  {
  
  .filterList {
    
    #locationSearchResults {
        
        transition: opacity  0ms, visibility 250ms;
        position: absolute;
        opacity: 0;
        visibility: hidden;
      }
    
    &:focus, &:focus-visible, &:focus-within  {
      
      .search {
        
        outline: 2px solid var(--colorInputBorder, #a7bed9);
      }
    
      &:has(#locationSearchResults:not(:empty)) .search {
        
        border: 0;
        outline: 0;
        background: none;
      }
    
      #locationSearchResults {
        
        opacity: 1;
        visibility: visible;
      }
    }
  }
  
}

.sliderRangeWrapper {
  
  padding: 20px;
}

.sliderRangeContainer {
 
  position: relative;
  width: 100%;
  height: 30px;
  
  .slider-track {
  
    width: 100%;
    height: 3px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    border-radius: 3px;
  }
  
  input[type="range"] {
  
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    inset-inline: 0;
    pointer-events: none;
    background-color: transparent;
    
    &::-webkit-slider-runnable-track {
      -webkit-appearance: none;
      height: 3px;
    }
    
    &::-moz-range-track {
      -moz-appearance: none;
      height: 3px;
    }
    
    &::-ms-track {
      
      appearance: none;
      height: 5px;
    }
    
    &::-webkit-slider-thumb {
      
      -webkit-appearance: none;
      height: 16px;
      width: 16px;
      background-color: #3264fe;
      cursor: pointer;
      margin-top: -8px;
      pointer-events: auto;
      border-radius: 50%;
    }
    
    &::-moz-range-thumb {
        
      -webkit-appearance: none;
      height: 16px;
      width: 16px;
      cursor: pointer;
      border-radius: 50%;
      background-color: #3264fe;
      pointer-events: auto;
      border: none;
    }
    
    &::-ms-thumb {
      
      appearance: none;
      height: 16px;
      width: 16px;
      cursor: pointer;
      border-radius: 50%;
      background-color: #3264fe;
      pointer-events: auto;
    }
    
    &:active::-webkit-slider-thumb {
      
      background-color: #ffffff;
      border: 1px solid #3264fe;
    }

  }

}

.selectButtonsRoomsWrapper {
  
  padding: 20px;
  overflow-x:  auto;
}

.selectButtonsRooms {
  
  list-style: none;
  display: flex;
  gap: 5px;
  padding: 0;
  margin: 0;
  
  li {
  
    cursor: pointer;
    height: 36px;
    aspect-ratio: 1;
    border: 1px solid #4787ED;
    color: #4787ED;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100vh;
    
    &.roomsSelectedCount {
     
      display: flex;
      gap: 5px;
      aspect-ratio: auto;
      box-shadow: 0 0 0 1px #4787ED;
      
      > div {
        
        display: flex;
        width: 35px;
        aspect-ratio: 36px;
        justify-content: center;
        align-items: center;
      }
    }
  }
}

.filtersCategorisList {
  
  padding: 20px;
  display: flex;
  flex-flow: column;
  gap: 20px;
  width: 360px;

  .filtersTitle {
  
    text-align: start;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  label.cn-switch + label {
    
    white-space: nowrap;
  }
}

@media screen and (max-width: 767px) {
   
  .filetrsPanelWrapper  {
    
    padding: 0;
  }
  
  #filetrsPanel {
    
    padding-top: 20px;
    padding-inline: 10px;
    width: 100%;
    gap: 4px;
    
    &:has(#locationSearchResults:not(:empty) ) {
    
      padding-bottom: 80vh;
      margin-bottom: -80vh;
    }
    
        
    .filterList {
      
      margin: 2px;
    }
  }
  
  #filetrsPanel .filterList.active .filterSelect {
    
    inset-inline: 10px; 
  }
  
  .filetrsPanelContainer {
     
     padding-bottom: 20px;
     
     > form  {
      
      flex-wrap: wrap; 
      
      .searchIcone {
    
        display: block;
      }
    }
  }
  
  #filetrsPanel .filterList #locationSearchResults {
    
    inset-inline: 10px;
  }
}









