#header-type-3 {

  &:after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: transparent linear-gradient(180deg, #000000 0%, #00000000 100%) 0% 0% no-repeat padding-box;
    z-index: -1;
  }

  /*Meta Menu*/

  .container-small{
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
  }

  //top nav
  .top-nav {
    background: $brown-light-hover;
    .brand-nav {
      background: transparent;
      top: 50%;
      transform: translate(-50%, -50%);
      background: none;
      width: 100%;
      p {
        color: white;
        word-break: keep-all;
        white-space: nowrap;
        text-align: center;
        padding-top: 10px;
        &:hover {
          color: white;
        }
      }
    }
    &:hover {
      filter: brightness(90%);
    }

    &.top-nav-active {
      background: $tertiary-bg;
      &:hover {
        filter: brightness(90%);
      }
    }
  }



  .navbar-nav {
    align-items: center;
    justify-content: space-between!important;
  }

  /* Logo */
  .logo-container {
    margin-top: 15px;
    height: 60px;

    img {
      max-height: 60px;
    }
  }

  .navbar-brand {
    max-width: 50%;

    .brand-nav {
      img {
        object-fit: contain;
        padding: 6px 0;
      }
    }
  }

  /* Menu Items */
  .navbar-nav li{
    height: 100%;

    .nav-link {
      max-width: 250px;
      padding: 0;
      padding-top: 20px;

      &:hover{
        color: unset;

        .nav-text{
          color: $secondary-color;
          background: none;
        }
      }

      .nav-text {
        font-weight: $font-weight-normal;
        font-size: $font-size-18;
        padding: 0;
      }
    }
  }

  /* Btn Booking */
  .btn-booking{
    z-index: 22222;
    text-align: right!important;

    .btn {
      @include media-breakpoint-up(lg) {
        padding: 5px 40px;
        font-size: $font-size-16;
      }
      border: inherit!important;
      background: #FFB710;

      .icon {
          background: white;
        & + p {
          top: 0;
        }
      }

      &:hover {
        background: $primary-cta-bg-hover;
        border: 1px solid $primary-cta-bg-hover;
        animation: arrow2 0.5s linear 1;
        -webkit-animation-name: arrow2 0.5s linear 1;
      }
    }
  }

  .menu-btn {
    .menu-bar, .menu-bar:before, .menu-bar:after {
      background: #d7d7d7;
      height: 3px;
    }

    &:after {
      content: "Menu";
      position: absolute;
      bottom: -8px;
      left: -2px;
      transform: translate(0px, 100%);
      text-transform: uppercase;
      font-size: $font-size-12;
      font-weight: $font-weight-light;
      transition: all 0.75s;
    }
  }

  .menu-btn.active {
    .menu-bar {
      background: none;
    }

    &:after {
      opacity: 0;
      transition: all 0.25s;
    }
  }

  .navbar{
    & > .container{
      max-width: 1350px;
    }
  }

  @include media-breakpoint-down(xl) {
    .navbar {
      .container {
        .offcanvas {
          //background: rgb(255,204,0);
          background: rgb(33,45,37);
          //background: linear-gradient(180deg, rgba(255,204,0,1) 0%, rgba(223,150,0,1) 100%);
          background: linear-gradient(180deg, rgba(33,45,37,1) 0%, rgba(18,26,20,1) 100%);

          .dropdown-menu {
            background: none;

            .sub-menu-list ul {
              display: block;
              li {
                a {
                  //white font color on mobile
                  color: $white;

                  &:before {
                    border-radius: 0;
                    width: 7px;
                    height: 7px;
                  }
                }
              }
            }
          }

          .search-box {
            top: 30px;

            form {
              background: none;
              //border: 3px solid $black;
              border: 3px solid $primary-color;

              #submit {
                height: auto;
                //filter: invert(1);
              }
            }


          }
        }

        .nav-link {
          padding: 20px 0 10px 0;
          max-width: 100%;

          .nav-text {
            //color: $black;
            color: $primary-color;
            font-size: $font-size-20;
          }

          &.show {
            border-bottom: 3px solid $quaternary-color;
            .nav-text {
              color: $secondary-color!important;
            }
          }

          &:hover {
            .nav-text {
              background: none;
              //color: $black;
              color: $primary-color;
            }
          }
        }
      }
    }
  }
}
#planete-sauvage .header-main.fixed:after {
  background: $tertiary-bg;
  -webkit-transition: background-color 750ms linear;
  -ms-transition: background-color 750ms linear;
  transition: background-color 750ms linear;
}

.frame-layout-2{
  h2{
    color: $quaternary-color;
  }
  p{
    color: $quaternary-color;
  }
}

.header-main{
  .offcanvas{
    .offcanvas-body{
      @include media-breakpoint-down(md){
        margin-bottom: 160px;
      }
    }
  }
  .navbar {
    height: 70px!important;
  }
}
#header-type-3 {
  //mega menu
  .mega-menu-custom .sub-menu-list h3 {
    font-weight: $font-weight-normal !important;
    font-size: $font-size-24 !important;
    color: $secondary-color;
  }

  .mega-menu-custom .sub-menu-boxes .article .box .aside h3 {
    font-weight: $font-weight-normal !important;
  }
}
/* Menu Item with Image Items only */
#navbarDropdown-695{
  h3{
    margin: 0;
    padding: 0;
    border: none;
  }

  ul{
    display: none;
  }
}

@include media-breakpoint-down(xl){
  #header-type-3 .navbar-nav{
    align-items: flex-start!important;
  }
}
#header-type-3 {
  .mega-menu-custom .sub-menu-boxes {
    background: $tertiary-bg;

    .article .box {
      min-height: 200px;
    }
  }

  .mega-menu-custom .sub-menu-list ul li a {
    font-weight: 400 !important;
    color: white;
    &:hover {
      color: $secondary-color;
    }
  }

  .mega-menu-custom .sub-menu-list ul {
    display: flex;
  }
}
// navigation

@include media-breakpoint-up(xl) {
  #header-type-3 {
    pointer-events: none;
    transition: all 0.25s;
    padding-bottom: 0px;

    .navbar-nav {
      position: inherit;
    }

    .dropdown-menu{
      background: $tertiary-bg;
    }

    &:hover {
      background: $tertiary-bg;
      box-shadow: 0px 0 15px black;

      &:after {
        display: none;
      }

      .alert-wrap2, .alert-wrap {
        box-shadow: none;
      }
    }

    .navbar, .logo-container, .alert-wrap2, .top-nav {
      pointer-events: auto;
    }

    .dropdown-menu {
      box-shadow: 0px 10px 10px #00000070;
      .sub-menu-list{
        h3{
          font-family: $font-family-secondary;
        }
      }
    }

    .nav-link:hover, .nav-link:focus {
      color: inherit;
    }

    .dropdown-item a {
      padding-left: 0;
      font-size: $font-size-18;

      &:hover {
        color: $secondary-color;
      }

      &:before {
        display: none;
      }
    }

    .sub-menu-list, .sub-menu-boxes {
      max-width: 1400px;
      margin: 0 auto;
      background: none;
    }

    .search-box {
      position: initial;
      transform: none;
      order: 1 !important;

      &:hover form, .search-box.open form {
        background: #a2a2a2;
        width: 200px;

        input[type="text"]{
          width: auto;
          max-width: 200px;
          padding-right: 5px;
        }
      }
    }
  }
}

@include media-breakpoint-down(xl){
  .search-box {
    order: 1 !important;
  }

  #header-type-3 .btn-booking .btn {
    width: 45px;
    height: 45px;
  }
}
