// =====================================
//  banner.scss
//   |
//   |-> Banner
// =====================================


@import "_variables";


 /**
  * -------------------------------------------------------------------------------
  * ( 04 ) - Banner
  * -------------------------------------------------------------------------------
  *
  *  This part contains all banner related contents like banner slider, bannar
  *  parallax
  *
  * ------
  *
  *  Banner is divided to the following sections:
  *
  *    |
  *    |-->  [ 01 ] - Banner Parallax
  *    |-->  [ 02 ] - Banner Slider
  *
  */


#banner {
  position: relative;
  z-index: 6;
  // overflow: hidden;
  background-color: #fff;

  &.fullscreen {
    .banner-parallax,
    .banner-parallax .row > [class*="col-"] {
      min-height: auto; // fix needed due to flexbox use.
    }
  }
}



/*  [ 01 ] - Banner Parallax
============================== */

.banner-parallax {
  // overflow: hidden;
  // height: 800px;
  position: relative;
  background-color: #fff;
  background-position: top center;
  background-size: cover;
  // background-attachment: fixed;
  background-repeat: no-repeat;

  &.blured-bg {
    > .bg-element {
      -webkit-filter: blur(5px);
              filter: blur(5px);      
    }
  }

  > .bg-element {
    position: absolute;
    width: 100%;
    height: 100%;
    background: no-repeat top center / cover;
    // opacity: 0;
    transition: opacity 0.5s;

    &.appeared {
      opacity: 1;
    }

    & + img {
      display: none;
    }
  }

  > .overlay-pattern {
    opacity: 0;
    transition: opacity 0.5s;

    &.appeared {
      opacity: 1;
    }
  }

  // -------
  // some fix
  &,
  .row > [class*="col-"] {
    min-height: 800px; // banner parallax min height

    @media (max-width: 1400px) {
      height: auto !important;
      min-height: auto !important;
    } // < 1400px width
  }

  .row {
    display: flex;
    align-items: center;
  }

  .row > [class*="col-"] {
    display: flex;
    // justify-content: center;
    align-items: center;
  }
  // -------

  .container,
  .row,
  .row > [class*="col-"] {
    height: 100%;
    z-index: 1;
  }

  .container {
    // width: 100%;
  }
}


.overlay-colored,
.overlay-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.overlay-colored {
  z-index: 1;
}


.overlay-pattern {
  z-index: 2;
  background-image: url("../images/general-elements/overlay-pattern.png");
  // background-color: rgba(0,0,0,0.3);
  background-repeat: repeat;
  background-position: top left;
}


@media ( min-width: 992px ) {
  .fullscreen {
    .banner-parallax,
    .banner-slider {
      height: 100% !important;
    }
  }
}

.video-background {
  position: absolute;
  width: 100%;
  height: 100%;
}

.owl-carousel .owl-item { // Fix for slider overlay content
  -webkit-backface-visibility: initial;
          backface-visibility: initial;
}

/* Slide Content */
.slide-content {
  height: 100%;
  width: 100%;
  position: relative;
  top: 0;
  z-index: 2;

  @media (max-width: 480px) {
    text-align: center;
  } // < 480px width

  img {
    display: inline-block !important;
  }

  h4 {
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.8;
    color: #666;
  }

  h1 {
    position: relative;
    font-size: 60px;
    line-height: 1.2;

    @media (max-width: 1400px) {
      font-size: 50px;
    } // < 1400px width

    @media (max-width: 480px) {
      font-size: 35px;
    } // < 480px width
  }
  
  p {
    font-size: 20px;
    color: #fff;
  }
  

  .text-center {
    h1,
    h4 {
      margin-left: auto;
      margin-right: auto;
      // width: 75%;
    }

    h1 {
      width: 85%;
    }
  }

  // optimizing h1 & .description width for .cta-subscribe-3
  .col-md-10 .text-center {
    h1 {
      // width: 70%;
    }

    .description {
      // width: 70%;
    }
  }

  .text-right {
    h1 {
      margin-left: auto;
    }

    .description {
      margin-left: auto;
    }
  }
}

@media (max-width: 992px) {
  .slide-content {
    [class*="text-center"] {
      h1,
      h4 {
        width: 100%;
      }

      .description {
        margin-left: auto;
        margin-right: auto;
        width: 80%;
      }
    }

    .col-md-10 .text-center {
      h1,
      .description {
        width: 100%;
      }
    }
  }
} // < 992px width

@media (max-width: 768px) {
  .slide-content {
    h1 {
      // font-size: 45px;
    }
  }
} // < 768px width
  

@media (max-width: 480px) {
  .slide-content {
    h1 {
      // font-size: 40px;
    }

    h1,
    p,
    .description {
      width: 100%;
    }

    [class*="text-center"] {
      .description {
        margin-top: 0;
        width: 100%;
      }
    }
  }
} // < 480px width


/* Banner Center Box */
.banner-center-box {
  padding: 160px 0 160px;
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  perspective: 1000px;
  backface-visibility: hidden;

  // when there is #header in page
  #header + #banner & {
    // padding-top: 160px;
  }

  > * {
    position: relative;
    // top: 0;
    // transition: none;
  }

  .text-center {

  }

  &.text-white {
    h1,
    .description {
      color: #fff;
    }
  }
}

.banner-center-box.bottom-position {
  margin-top: auto; // this for making the flex item at bottom
  padding-bottom: 0;
}

.banner-center-box h1:last-child,
.banner-center-box h2:last-child,
.banner-center-box h3:last-child,
.banner-center-box h4:last-child,
.banner-center-box h5:last-child,
.banner-center-box h6:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.banner-center-box img {
  max-height: 100%;
  max-width: 100%;
}


@media (max-width: 992px) {

  /* Column With Helper Classes Optimization */
  [class*="col-"] {
    &[class*="pl-"] {
      padding-left: 15px;
    }

    &[class*="pr-"] {
      padding-right: 15px;
    }
  }

  /* Banner Parallax */
  .banner-parallax {
    // text-align: center;

    &,
    .row > [class*="col-"] {
      height: auto !important;
      min-height: auto !important;
    }

    .row {
      flex-direction: column;
      // min-height: 600px; // min-height of banner parallax
    }

    .row > [class*="col-"] {
      align-self: stretch;
      flex-grow: 1;
    }

    [class*="col-"]:not(:first-child) .banner-center-box {
      padding-top: 0 !important;
      margin-top: -80px;
    }
  }

  .slide-content,
  .banner-center-box {
    // position: initial;
  }

  .banner-center-box {
    display: block;
    top: 0;
    width: 100%;
    // padding-top: 180px; // padding-bottom + header height
    transform: translateY(0);
  }

  /* Slider */
  .fullscreen {
    height: auto !important;
  }

  .banner-slider {
    min-height: auto !important;
  }
} // < 992px width

@media (max-width: 768px) {
  .banner-parallax {
    .row {
      // min-height: 500px; // min-height of banner parallax
    }
  }
} // < 768px width


/* Slick Default Settings */
.slick-slider {
    // in case we want to clip content to the grid sides
    // overflow: hidden;
  
  .slick-list {
    margin-left: -15px;
    margin-right: -15px;
  }

  .slick-slide {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    outline: none;
    float: left;
  }
}

/* Slick Dots */
.slick-dotted .slick-dots {
  list-style: none;
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  font-size: 0;
  
  li {
    & + li {
      margin-left: 10px;
    }

    button { // all dots except active
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      outline: none;
      width: 12px;
      height: 12px;
      border-radius: 999px;
      transition: all 0.2s;
      background-color: #aaa;
    }
    
    &.slick-active { // active dot
      button {
        background-color: $theme-color-1;
      }
    }
  }
}

/* Slick Arrows */
.slick-arrows {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 30px;

  a {
    margin: 0 5px;

    &:hover {
      color: #000;
    }

    &.slick-disabled { // disabled arrow
      opacity: 0.5;

      &:hover {
        color: $theme-color-1;
      }
    }
  }

  i {
    display: block;
  }
}


/* Slider Banner */
.slider-banner {
  position: relative;

  .slide {
    width: 100%;
  }

  a {
    img {
      // width: 100%;

      @media (max-width: 1400px) {
        max-height: 400px;
      } // < 1400px width
    }
  }

  .slick-slide {
    display: flex;
    justify-content: flex-end;
  }

  .slick-arrows {
    justify-content: flex-end;
    padding-left: 120px;
  }

  .slick-dots {
    position: absolute;
    bottom: 50px;
    margin-top: 0;
    width: 100%;
  }
} // .slider-banner end




/* Banner Reservation Tabs */
.banner-reservation-tabs {
  margin-top: 50px;
}

#ui-datepicker-div {
  z-index: 10 !important;
}

.br-tabs {
  list-style: none;

  @media (max-width: 768px) {
    overflow-x: auto;
    white-space: nowrap;
  } // < 768px width

  a {
    display: block;
  }
}

.br-tabs-content {
  position: relative;
  width: 100%;

  > li {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;

    display: none;
    list-style: none;
  }
}

.br-tabs {
  display: flex;
  position: relative;
  z-index: 1;

  li {
    & + li {
      margin-left: 10px;
    }

    &.active {
      a {
        background-color: $theme-color-4;
        color: #fff;

        &::after {
          bottom: -10px;
          border-top-color: $theme-color-4;
          opacity: 1;
          visibility: visible;
        }
      }
    }
  }

  a {
    position: relative;
    padding: 12px 25px;
    height: 100%;
    border-radius: 5px;
    font-size: 16px;
    font-family: $heading-font;
    font-weight: 400;
    background-color: #f3f3f3;
    color: $theme-color-4;

    @at-root .page-search & {
      box-shadow: 0px 2px 3px 0 rgba(#000, 0.1);
      background-color: #fff;
    }

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      visibility: hidden;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-top: 10px solid #f3f3f3;
      transition: all 0.2s;
    }
  }
}

.br-tabs-content {
  margin-top: 20px;
  border-radius: 5px 5px 0 0;
  border-bottom: 5px solid $theme-color-2;
  background-color: #fff;

  > li {
    padding: 40px 30px;
  }
}


/* Form Banner Resrevation */
.form-banner-reservation {
  display: flex;
  // width: 100%;

  .fields-row {
    width: calc(100% + 20px);

    & + .fields-row {
      margin-top: 25px;
    }

    .box-field {
      & + .box-field {
        @media (max-width: 1200px) {
          // margin: 0 0 15px;
        } // < 1200px width
      }
    }
  }

  @media (max-width: 1200px) {
    flex-wrap: wrap;
    margin: 0 -10px -10px -10px !important;
  } // < 1200px width
  
  .form-group {
    display: flex;
    align-items: center;
    width: 100%;

    & + .form-group {
      padding-left: 20px;
    }

    @media (max-width: 1200px) {
      flex: 0 0 33.33333%;
      margin: 0 !important;
      padding: 0 10px 10px 10px !important;
    } // < 1200px width

    @media (max-width: 768px) {
      flex: 0 0 50%;
    } // < 768px width

    @media (max-width: 480px) {
      flex: 0 0 100%;
    } // < 480px width

    > i {
      position: absolute;
      right: 20px;
      font-size: 18px;
      color: #666;
      transition: all 0.2s;

      @media (max-width: 1200px) {
        right: 30px;
      } // < 1200px width
    }

    input[type="text"]:focus {
      & + i {
        color: $theme-color-2;
      }
    }

    &:first-child {
      i {
        transform: rotate(-90deg);
      }
    }
    
    &:nth-child(2) {
      i {
        transform: rotate(90deg);
      }
    }

    &:last-child {
      width: auto;
      
      button[type="submit"] {
        position: initial;
      }
    }
  }
}

.multiple-destinations {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  .btn-multiple-destinations {
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 30px;

    i {
      margin-right: 6px;
    }
  }
  
  .form-group {
    display: block;

    @media (max-width: 1200px) {
      flex: 0 0 100%;
    }

    // < 1200px width

    .fields-row {
      flex-wrap: wrap;

      @media (max-width: 992px) {
        margin-bottom: -10px;
      }

      // < 992px width
    }

    .box-field {
      align-items: center;
      flex-direction: row;

      @media (max-width: 1200px) {
        margin-bottom: 15px;
      }

      // < 1200px width

      @media (max-width: 768px) {
        margin-top: 0 !important;
      }

      // < 768px width
    }
  }
}


/* List Dropdown Passenger */
.list-dropdown-passengers {
  list-style: none;
  position: absolute;
  z-index: 10;
  top: 60px;
  padding: 20px;
  width: 250px;
  opacity: 0;
  visibility: hidden;
  border-radius: 5px;
  box-shadow: 0px 0 8px 0 rgba(#000, 0.2);
  transition: all 0.3s;
  background-color: #fff;

  &.is-active {
    opacity: 1;
    visibility: visible;
  }

  > li {
    & + li {
      padding-top: 15px;
      margin-top: 15px;
      border-top: 1px solid #ddd;
    }

    &:last-child {
      display: flex;
      margin-top: 5px;
      border-top: none;
    }
  }
}

/* List Persons Count */
.list-persons-count {
  list-style: none;
  padding-bottom: 5px;

  > li {
    display: flex;
    align-items: center;
    
    & + li {
      margin-top: 5px;
    }

    > span:first-child {
      margin-right: auto;
      color: $dark-color;
    }
  }
}

/* Counter Add Item */
.counter-add-item {
  display: flex;
  align-items: center;
  // justify-content: center;

  > * {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
  }

  a {
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: 400;
    border: 1px solid $theme-color-1;
    border-radius: 5px;
    color: $theme-color-1;
    background: #fff;

    &:hover {
      background-color: $theme-color-1;
      color: #fff;
    }

    &.decrease-btn {}

    &.increase-btn {}
  }

  input[type="text"] {
    margin: 0 5px;
    padding: 0;
    width: 40px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;

    &:focus {
      border-color: #ccc;
      color: $dark-color;
    }
  }
}


@media (max-width: 768px) {
  .counter-add-item {
    // flex-direction: column;

    > * {
      height: 40px;
      width: 40px;
    }

    input[type="text"] {
      margin: 0 5px;
    }
  }
} // width < 768px

/* List Select Grade */
.list-select-grade {
  list-style: none;

  li {
    &+li {
      margin-top: 3px;
    }
  }
}


/* Custom Radio Button */
.radio-container {
  &.radio-default {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Hide the browser's default radio button */
    input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }

    /* Create a custom radio button */
    .checkmark {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      top: 0;
      left: 0;
      margin-right: 10px;
      height: 20px;
      width: 20px;
      box-shadow: inset 0 0 0 2px rgba($dark-color, 0.2);
      background-color: #fff;
      border-radius: 50%;

      /* Create the indicator (the dot/circle - hidden when not checked) */
      &::after {
        content: "";
        position: absolute;
        display: none;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background-color: $theme-color-1;
      }
    }

    /* On mouse-over, add a grey background color */
    &:hover input~.checkmark {
      // background-color: $theme-color-1;
      box-shadow: inset 0 0 0 2px $theme-color-1;
    }

    /* When the radio button is checked, add a blue background */
    & input:checked~.checkmark {
      // background-color: $theme-color-1;
      box-shadow: inset 0 0 0 2px $theme-color-1;
    }

    /* Show the indicator (dot/circle) when checked */
    & input:checked~.checkmark:after {
      display: block;
    }
  }
}


/* List Reservation Options */
.list-reservation-options {
  list-style: none;

  li {
    &+li {
      margin-top: 3px;
    }
  }

  .label-container.checkbox-default {
    font-size: 14px;
  }
}


