@import '../global/variables';
@import '../global/mixins';
@import '../sections/search-results';
@import '../components/search-title';
.search-page {
  .container {
    z-index: 2;
    @media screen and (min-width: 1650px) {
      max-width: 1645px;
    }
  }
  .search_wrapper {
    min-height: 50vh;
  }
  .wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 70px;
    @media screen and (max-width: 1649px) {
      gap: 30px;
    }
    @media screen and (max-width: $desktop) {
      flex-direction: column;
      gap: 15px;
    }
    .sidebar {
      width: 330px;
      min-width: 330px;
      //margin-top: 130px;
      @media screen and (max-width: $full-hd) {
        flex-direction: column;
        width: 300px;
        min-width: 300px;
      }
      @media screen and (max-width: $desktop) {
        order: 1;
        min-width: 100%;
        width: 100%;
      }
      @media screen and (max-width: $desktop) {
        display: none;
      }
      .wr {
        padding: 15px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, .1);
      }
      .wp-block-image {
        overflow: hidden;
      }
    }
  }
  .main_form {
    position: sticky;
    top: -50px;
    z-index: 9;
    padding: 50px 0 20px;
    @media screen and (max-width: $tablets-big) {
      position: static;
      top: 0;
      padding: 20px 15px;
      box-shadow: none;
    }
  }
  @media screen and (max-width: $tablets-big) {
    .mob_form {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 12px;
      background: $bg-light-gray;
      padding: 16px;
      .top {
        display: flex;
        margin-bottom: 4px;
        align-items: flex-start;
        flex-wrap: wrap;
        padding-right: 16px;
        padding-left: 0;
      }
      .mob_origin {
        margin: 0;
        color: $dark-blue;
        font-weight: 400;
        padding: 0;
        &:after {
          content: ' - ';
          display: inline-block;
          font-size: 16px;
          font-weight: 400;
          margin: 0 4px;
          font-family: $font-almoni;
        }
      }
      .mob_time,
      .mob_destination {
        background: none;
        padding: 0;
        margin: 0;
        border: none;
      }
      .mob_time {
        color: $dark-gray;
      }
      .icon,
      .directflight {
        display: none;
      }
      .button-submit {
        font-size: 0;
        background: none;
        padding: 0;
        margin: 0;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        border: none;
        flex-shrink: 0;
        &:before {
          font-size: 24px;
          line-height: 24px;
          content: "\f044";
          font-family: $font-awesome;
          display: block;
          color: $bg-dark-blue;
        }
      }
    }
  }
  & .container.results_as_image {
    &.no_results .grid_container {
      padding-top: 0;
    }
    .destinations_types {
      padding-bottom: 70px;
    }
    .load_more {
      margin: 30px 0 0 0;
    }
    .main_form {
      @media screen and (min-width: $tablets-big) {
        box-shadow: 0 10px 52px 0 rgba(194, 192, 216, 0.42);
        padding: 50px 0;
      }
    }
  }
  .no-results-message {
    padding: 180px 0 0 0;
    display: none;
    gap: 16px;
    & > * {
      display: inline-block;
    }
    .reset_filter {
      color: $blue;
      text-decoration: underline;
      cursor: pointer;
    }
  }
}
@media screen and (min-width: 1200px) {
  body:not(.in_iframe) .search-page .wrapper {
    .ad_place,
    .sidebar {
      display: block !important;
    }
  }
}
.search_container {
  position: relative;
  width: calc(100% - 525px);
  min-height: 300px;
  @media screen and (max-width: 1649px) {
    width: calc(100% - 320px);
  }
  @media screen and (max-width: $desktop) {
    width: 100%;
    order: 2;
  }
  .loader_div {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
    background: #f0f5fb;
    img {
      width: 200px;
      height: 200px;
      margin-top: 50px;
    }
  }
  .specific_loader {
    height: 25px;
    margin: 0 0 30px;
  }
}
html[dir="rtl"] {
  .search-page .filters .has_content .all {
    &:before {
      left: 0;
      right: initial;
    }
    &:after {
      left: 2px;
      right: initial;
    }
    &.active:after {
      left: 19px;
      right: initial;
    }
  }
  .search-page .mob_form .top {
    padding-left: 16px;
    padding-right: 0;
  }
}
