@import '../global/variables';
@import '../global/mixins';
.flight_drops {
  .main_form {
    margin-bottom: 44px;
    position: relative;
    z-index: 98;
    @media screen and (max-width: $tablets-big) {
      margin-bottom: 20px;
      position: static;
    }
  }
  .flex_box, .no-premium-placeholder {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
    justify-content: center;
    @media screen and (max-width: $desktop) {
      grid-template-columns: 1fr 1fr;
    }
    @media screen and (max-width: $phones-big) {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    & > * {
      width: 100%;
    }
  }
  .filters {
    z-index: 7;
    margin: 32px 0 48px;
    @media screen and (max-width: $tablets) {
      margin: 36px 0;
    }
    .all {
      input {
        display: none;
      }
      &:after {
        right: 19px;
        left: initial;
      }
      &.active:after {
        right: 2px;
        left: initial;
        background: $blue;
      }
    }
    .filters_main .wr td,
    .filters_main .wr .wr_cell {
      padding: 0 10px;
    }
  }
  /*
  .tags .tag  {
    span {
      border-color: $blue;
      color: $blue;
    }
    input:checked+span {
      border: 1px solid $light-blue;
      color: $extra-dark-blue;
    }
  }
  */
  .load-more {
    margin: 34px auto 0;
    display: block;
    min-width: 220px;
  }
  .banner {
    padding: 35px 45px;
    border-radius: 12px;
    background: $white;
    box-shadow: 5px 8px 38px 0 rgba(219, 229, 239, 0.75);
    @include flex();
    justify-content: space-between;
    gap: 12px;
    @media screen and (max-width: $desktop) {
      padding: 25px 35px;
    }
    @media screen and (max-width: $tablets) {
      flex-direction: column;
      padding: 16px;
    }
    h3 {
      font: normal 700 32px / 1.2em $font-almoni;
      color: $dark-gray;
      margin: 0;
      @media screen and (max-width: $desktop) {
        font-size: 24px;
      }
      @media screen and (max-width: $tablets) {
        font-size: 20px;
      }
    }
  }
  .no_results {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }
  .no-premium-banner {
    margin: 40px 0;
    @media screen and (max-width: $tablets) {
      margin: 20px 0;
    }
    .no-premium-button {
      padding: 20px 28px;
      border-radius: 8px;
      background: $dark-blue;
      font: normal 700 30px / 1em $font-almoni;
      color: $white;
      @include flex();
      justify-content: center;
      gap: 16px;
      @media screen and (max-width: $desktop) {
        font-size: 22px;
        padding: 15px 20px;
      }
      @media screen and (max-width: $tablets) {
        font-size: 16px;
        padding: 12px 16px;
      }
      svg {
        width: 20px;
        height: 20px;
        @media screen and (max-width: $tablets) {
          width: 14px;
          height: 13px;
        }
      }
    }
  }
  .no-premium-placeholder {
    padding-top: 24px;
    position: relative;
    @media screen and (max-width: $phones-big) {
      padding-top: 16px;
      filter: blur(6px);
    }
    &:before {
      content: '';
      width: 105%;
      height: 105%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0.22%, #FFF 99.78%);
      z-index: 1;
      @media screen and (max-width: $phones-big) {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0.22%, #FFF 99.78%);
      }
    }
    .alerts_item {
      box-shadow: none;
      @media screen and (min-width: $phones-big) {
        filter: blur(6px);
      }
    }
  }
  .premium_title {
    color: $extra-dark-gray;
    font-weight: 900;
  }
}
.alerts_item {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: center / cover no-repeat;
  padding-bottom: 130%;
  box-shadow: 5px 8px 38px 0 rgba(219, 229, 239, 0.75);
  @media screen and (max-width: $desktop) {
    padding-bottom: 100%;
  }
  @media screen and (max-width: $phones-big) {
    padding-bottom: 45%;
  }
  .card-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: $white;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  &:visited,
  &:active,
  &:focus,
  &:hover {
    color: $white;
  }
  .main_image {
    object-fit: cover;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-height: 100%;
    min-width: 100%;
    width: auto;
    height: auto;
  }
  .discount {
    position: absolute;
    top: 16px;
    right: 16px;
    left: initial;
    z-index: 3;
    font-size: 22px;
    font-weight: 600;
    border-radius: 5px;
    padding: 6px 12px;
    color: $dark-blue;
    min-width: 36px;
    min-height: 34px;
  }
  .expired-text {
    display: none;
    font: normal 600 24px / 1em $font-almoni;
    color: $bg-light-gray;
    background: $dark-blue;
    width: calc(100% - 32px);
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    top: 20px;
    right: 16px;
    @media screen and (max-width: $phones-big) {
      font-size: 16px;
      width: 100%;
      border-radius: 8px 8px 0 0;
      top: 0;
      right: 0;
    }
  }
  .bottom {
    position: relative;
    z-index: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .price_box {
    display: flex;
    align-items: center;
    gap: 8px;
    .new_price {
      font-size: 35px;
      border-radius: 5px;
      background: rgba(246, 250, 255, .34);
      padding: 2px 6px;
    }
    .old_price {
      font-size: 20px;
      text-decoration: line-through;
      color: #C1C1C1;
    }
  }
  .route {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tags_box {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    .wr {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    img {
      flex-shrink: 0;
    }
    .tag {
      padding: 4px 7px;
      border-radius: 5px;
      background: rgba(246, 250, 255, 0.34);
      font-size: 12px;
    }
    .airline {
      margin: 0 0 0 auto;
      max-height: 26px;
    }
  }
}
.results .alerts_item {
  &:before {
    content: '';
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(181deg, rgba(0, 0, 0, 0.00) 1.03%, rgba(0, 0, 0, 0.80) 78.18%);
    z-index: 2;
  }
  &.expired {
    &:after {
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      opacity: 0.6;
      background: linear-gradient(167deg, rgba(0, 0, 0, 0.00) 60.56%, rgba(0, 0, 0, 0.75) 95.91%) lightgray 50% / cover no-repeat;
      z-index: 4;
    }
    .expired-text {
      display: block;
      z-index: 5;
    }
    .discount {
      top: 65px;
      @media screen and (max-width: $phones-big) {
        top: 35px;
      }
    }
  }
}
.slider-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  text-align: center;
  position: relative;
  input[type=range] {
    width: 100%;
    margin-bottom: 20px;
  }
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  span {
    width: 16px;
    text-align: center;
  }
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  position: relative;
  background: linear-gradient(to right, $extra-dark-blue 0%, #0B0F36 0%);
  height: 6px;
  border-radius: 3px;
  outline: none;
  transition: background 0.2s ease;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: $extra-dark-blue;
  border-radius: 50%;
  border: 5px solid #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: -7px;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
html[dir="rtl"] {
  .main_form {
    .button-primary,
    .mob_form .button-full {
      background: #78ffd6;
      border-color: #78ffd6;
      background-image: linear-gradient(to right, #A8FF78, #78FFD6);
      color: black;
    }
  }
  .alerts_item {
    .route svg {
      transform: rotate(180deg);
    }
    .bottom {
      //align-items: flex-end;
    }
    .discount {
      right: initial;
      left: 16px;
    }
    .tags_box {
      .airline {
        margin: 0 auto 0 0;
      }
    }
  }
  .filters .has_content .all {
    &:before {
      left: 0;
      right: initial;
    }
    &:after {
      left: 2px;
      right: initial;
    }
    &.active:after {
      left: 19px;
      right: initial;
    }
  }
}
.in_iframe .flight_drops {
  @media screen and (max-width: $phones-big) {
    padding-bottom: 50px;
  }
}
