.header-main {
  .top-nav {
    background: $black;

    &:hover {
      background: $black;
    }
  }

  .navbar-nav {
    >.park-status-info {
      @include media-breakpoint-down(xl) {
        display: none;
      }
    }

    li .nav-link .nav-text {
      @include media-breakpoint-down(xl) {
        padding: 0;
      }
    }
  }

  .search-box {
    @include media-breakpoint-down(xxl) {
      right: -20px;
    }

    @include media-breakpoint-down(xl) {
      order: 1 !important;
      right: 0;
      transform: translate(0px, 0px);
      margin: 30px 0px 20px;
    }

    form {
      background: $blue-dark;
      width: 52px;
      height: 52px;
      border-radius: 20px;

      @include media-breakpoint-down(xxl) {
        width: 40px;
        height: 40px;
        border-radius: 12px;
      }

      @include media-breakpoint-down(xl) {
        width: 100%;
      }

      input[type="submit"] {
        background: url(/static_assets/Images/Layout_icons/search-beige.svg) no-repeat center center;
        width: 52px;
        height: 52px;
        filter: brightness(1.1);

        @include media-breakpoint-down(xxl) {
          width: 40px;
          height: 40px;
        }
      }

      input[type="text"] {
        height: 52px;

        @include media-breakpoint-down(xl) {
          height: 40px;
        }
      }
    }

    &:hover form,
    &:focus form,
    &:active form {
      background: $blue-dark;
    }
  }

  .navbar-image {
    height: 75px !important;

    img {
      left: -10px;
      position: relative;
    }
  }

  .top-nav-wrapper {
    justify-content: flex-end;
    height: 50px;

    a.top-nav-item {
      display: block;
      position: relative;
    }

    .brand-nav {
      position: static;
      transform: translate(0px);
      border-radius: 0;
      background: transparent;
      height: auto;
      width: auto;

      p {
        word-break: keep-all;
        white-space: nowrap;
        text-align: center;
        padding-top: 10px;

        @include media-breakpoint-down(xl) {
          text-align: left;
        }

        span {
          font-weight: 400;
          font-size: 16px;
          font-family: museo-sans, sans-serif !important;
        }
      }
    }
  }

  &.fixed .top-nav {
    margin-top: -50px;
  }

  .mega-menu-custom {
    @include media-breakpoint-down(xxl) {
      flex-wrap: wrap;
    }
  }

  .offcanvas,
  .offcanvas-backdrop.show {
    @include media-breakpoint-down(xl) {
      top: 70px !important;
      padding-bottom: 140px;
    }
  }
}

.container.top-nav>.row>a {
  width: auto;
  padding: unset;
}

#header-type-2.header-main .navbar {
  background: $white;
  height: auto;

  .nav-link {
    text-transform: capitalize;
    color: $secondary-text;
  }

  &:hover .nav-text {
    background-color: transparent;
    color: inherit;
    filter: brightness(1.1);
  }

  .btn-booking .btn {
    border-radius: 20px;
    font-family: $font-family-primary;
    padding: 14px 24px;

    &:hover {
      background: $third-color;
      filter: brightness(1.1);
    }
  }

  .brand-nav {
    padding: 6px 0;
  }
}

#header-type-6.header-main .navbar {
  height: auto;
  margin-top: 0;

  .nav-link {
    text-transform: capitalize;
    color: $secondary-color;

    @include media-breakpoint-down(xl) {
      max-width: 100%;
    }
  }

  &:hover .nav-text {
    background-color: transparent;
    color: inherit;
    filter: brightness(1.1);
  }

  .btn-booking .btn {
    border-radius: 20px;
    font-family: $font-family-primary;
    padding: 14px 24px;

    &:hover {
      background: $third-color;
      filter: brightness(1.1);
    }
  }

  .brand-nav {
    padding: 6px 0;
    transform: scale(1);
  }

  .container {
    box-shadow: none;
    background: $secondary-color;
  }

  .container .btn-booking {
    background: transparent;
  }

  .btn-booking .btn {
    width: auto;
    height: auto;
    line-height: 1.375rem;
  }
}

.hero-main {
  .hero-cont h1 {
    font-family: $font-family-secondary;
    letter-spacing: 0;
  }

  .owl-carousel .figure:before {
    width: 100%;
    height: 100%;
  }

  .owl-carousel .layout-2:before {
    background: $white !important;
  }
}

#header-type-6 {
  .top-nav {
    background: $red-dark;
    float: none;
    height: 50px;
    padding-right: 30px;
    // display: none !important;
  }
}

@media (min-width: 992px) {
  #header-type-6 .navbar {
    box-shadow: 0px 10px 15px $black;
  }
}

@media (max-width: 1399.98px) {
  .header-main .container .btn-booking .btn p {
    display: block;
  }
}

@media (max-width: 1199.98px) {
  .header-main .top-nav-wrapper {
    height: auto;

    a.top-nav-item {
      padding: 0 0px;
      height: auto;
      margin-bottom: 0px !important;
    }

    .brand-nav {
      padding: 0px 0px;

      p {
        padding-top: 0px;

        span {
          color: $red-dark;
          font-weight: 700;
        }
      }
    }
  }

  #header-type-2 .navbar-nav .nav-item.has-mega-menu .nav-link .nav-text,
  #header-type-6 .navbar-nav .nav-item.has-mega-menu .nav-link .nav-text {
    width: 100%;
  }

  #header-type-2 .navbar-nav .nav-item.has-mega-menu .nav-link .nav-text:after,
  #header-type-6 .navbar-nav .nav-item.has-mega-menu .nav-link .nav-text:after {
    content: "";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 1.25rem;
    border: none;
    position: absolute;
    right: 0px;
    color: $black;
  }

  #header-type-2 .navbar-nav .nav-item.has-mega-menu .nav-link.show .nav-text:after,
  #header-type-6 .navbar-nav .nav-item.has-mega-menu .nav-link.show .nav-text:after {
    content: "";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 1.25rem;
    border: none;
    position: absolute;
    right: 0px;
    color: $black;
  }

  #header-type-6 .dropdown.has-mega-menu .mega-menu-custom .sub-menu-list h3,
  #header-type-6 .dropdown.has-mega-menu .mega-menu-custom .sub-menu-list .h3 {
    display: block;
    border-bottom: 0;
    font-weight: 900;
    font-size: 16px;
  }

  #header-type-6 .dropdown.has-mega-menu .mega-menu-custom .sub-menu-list h3,
  #header-type-6 .dropdown.has-mega-menu .mega-menu-custom .sub-menu-list .h3 {
    display: block;
    border-bottom: 0;
    font-weight: 900;
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  .btn-booking .icon {
    display: none;
  }
}

header {
  &.header-main {
    .btn-booking {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100% !important;
      margin-left: -20px;
      transition: all 0.25s;
      line-height: 70px;
      margin-top: 0 !important;
      border-radius: 0;
      left: -20px;
      position: relative;

      .btn {
        background-color: $red-dark !important;
        width: 100%;
        height: 100%;
        line-height: 70px;
        min-height: 100%;
        padding: 0 15px !important;
        color: $white !important;
        min-width: 0px;
        border: none;
        display: block !important;

        .icon {
          filter: brightness(0) saturate(100%) invert(100%) sepia(17%) saturate(0%) hue-rotate(210deg) brightness(110%) contrast(101%);
        }

        p {
          color: $white !important;
          font-weight: 600;
        }
      }
    }
  }
}