.header-container {
  padding: 0 15px;
  z-index: 12;
  position: relative;
  background-color: white;
  @media (min-width: 360px) {
    padding: 0 30px;
  }
}

.header-wrapper {
  position: relative;
  z-index: 80;
  padding-top: 60px;
  @include breakpoint(medium up) {
    padding-top: 80px;
  }
  &.scroll-away {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: white;
    @include breakpoint(large up) {
      position: relative;
      background: transparent;
    }
  }
  .header-bar {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    transition: none;
    &.scroll-away {
      position: absolute;
      background-color: transparent;
      @include breakpoint(large up) {
        background-color: white;
        position: fixed;
      }
    }
  }
  &.transparent {
    padding-top: 0;
    .header-bar {
      background-color: transparent;
    }
    .header-container {
      background-color: transparent;
    }
    .header-bottom-line {
      border-color: transparent;
    }
    a.link {
      color: white;
    }
    &.scrolled {
      .header-bar {
        background-color: white;
      }
      .header-container {
        background-color: white;
      }
      .header-bottom-line {
        border-color: $light-mint;
      }
      a.link {
        color: $charcoal;
        &.button {
          color: white;
        }
      }
    }
    .off-canvas-wrapper {
      z-index: -1;
      a.link {
        color: $charcoal;
      }
      a.button {
        color: white;
      }
    }
  }
}

.header-bottom-line{
  border-bottom: 2px solid $light-mint;
  width: 100%;
}
.logo{
  line-height: 1;
  img, svg {
    width: 191px;
    height: 37px;
  }
}
.header{
  height: (78em /14);
  padding: 14px 0 10px 0;
  line-height: 1.1;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;

  @include breakpoint(small only){
    padding: 20px 0;
    height: 60px;
  }
  .child-container {
    vertical-align: middle;
    display: inline-flex;
    width: 60%;
    &:first-child{
      @include breakpoint(medium up) {
        width: 30%;
      }
    }
    &.right-menu {
      @include breakpoint(small only){
        display: none;
      }
    }
    &.text-left {
      justify-content: start;
    }
    &.text-right {
      justify-content: end;
      align-items: center;
    }
    a.link {
      display: inline-block;
      vertical-align: middle;
      @include breakpoint(medium up) {
        margin: 0 (14em / 14);
      }

      &:last-child {
        margin-right: 0;
      }
    }
    .button {
      margin-right: 0;
      border-radius: 4px;
      box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
      &.link {
        display: inline-block;
        vertical-align: middle;
        @include breakpoint(medium up) {
          margin: 0 (14em / 14);
        }

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
}

.relative-modal {
  z-index: 9;
  position: absolute;
  top: calc(100% + 33px);
  &.fixed-width {
    width: 296px;
    &.popular-activities {
      width: 264px;
      left: 50%;
      transform: translateX(-50%);
    }
  }
  &.fixed-width-large {
    @include breakpoint(large up) {
      &.full-screen {
        width: 296px !important;
        background: white;
        height: 320px;
      }
    }
  }
  &:not(.fixed-width) {
    left: 0;
    right: 0;
  }
}

.dropdown-header-card {
  padding-top: 16px;
  padding-bottom: 24px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 0 0.75em 0 rgba(0, 0, 0, 0.1);
  position: relative;
  .title-bar {
    background-color: $off-white;
    padding: 12px 16px;
    color: $grey;
    font-size: 13px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
    &-sm {
      font-size: 14px;
      padding-left: 12px;
      padding-right: 12px;
    }
  }
}

.main-dropdown > .dropdown-header-card {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.header-search-modal-address-input {
  position: relative;
  input {
    padding-right: 36px;
  }
  .icon-over-input-right{
    position: absolute;
    right: (12em / 14);
    z-index: 1;
  }
}

.location-list-invert-on-hover {
  padding: 16px 12px;
  background-color: white;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: $charcoal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  .sub-text {
    color: $grey;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  i {
    color: $mint;
    margin-right: 4px;
    width: 20px;
    height: 20px;
    font-size: 20px;
  }
  &:hover {
    background-color: $mint;
    color: white;
    .sub-text {
      color: white;
    }
    i {
      color: white;
    }
  }
  &:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  &:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}

.grid-style-buttons {
  display: flex;
  flex: 2;
  flex-wrap: wrap;
  & > div, button {
    width: 114px;
    height: 40px;
    text-align: center;
    margin: 0 auto 12px;
    @include breakpoint(br-768 up) {
      margin-bottom: 12px;
      &:nth-child(odd) {
        margin-right: 12px;
      }
    }
  }
  & > div {
    font-size: 12px;
    font-weight: 600;
    color: $charcoal;
    padding-top: 12px;
    padding-bottom: 12px;
    border: 2px solid $off-white;
    border-radius: 4px;
    transition: border-color 0.25s ease-out;
    &:hover {
      border-color: $charcoal;
    }
  }
  & > button {

  }
}

.link.underline {
  margin-left: 14px;
  margin-right: 14px;
  &:last-child {
    margin-right: 0;
  }
}

button.drop-down-trigger-menu-button {
  margin-right: 14px;
  margin-left: 14px;
  font-weight: bold;
}
.transparent {
  button.drop-down-trigger-menu-button {
    color: white !important;
  }

  &.scrolled {
    button.drop-down-trigger-menu-button {
      color: $charcoal !important;
    }
  }
}


.shadowed {
  @include breakpoint(medium up) {
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
  }
}
.shadowed-12 {
  @include breakpoint(medium up) {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
  }
}

.social-logins{
  margin-top: 32px;
  .button{
    margin-bottom: 12px;
  }
  .facebook{
    margin-right: 24px;
  }
}
.listing-header {
  padding: 22px 2em 21px 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .header-button {
    color: $charcoal;
    font-size: 14px;
    font-weight: 700;
    line-height: (17em / 14);
    position: relative;

  }
  .header-element-block {
    height: 100%;
  }
}
.underline {
  padding: (12em / 14) 0;
  color: black;
  position: relative;
  &::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: background-color, width 0.25s;
  }

  &.active,
  &:hover{
    color: $charcoal;
    &::after{
      background-color: black;
      width: 100%;
    }
  }
}

.header-link {
  margin-right: 2em;
  font-weight: 700;
  font-size: 14px;
}

.hamburger-wrapper {
  display: inline-block;
  text-align: right;
  float: right;
  width: auto;
  @include breakpoint(medium up) {
    display: none;
  }
  .hamburger-button {
    color: $honey;
    font-size: 14px;
    font-weight: bold;
    line-height: 17px;
    vertical-align: middle;

    &:focus {
      outline: none;
    }

    &[aria-expanded="true"] {
      .hamburger-block {
        .burger {
          background-color: transparent;
          &::before {
            transform: rotate(45deg);
            top: 0;
          }
          &::after {
            transform: rotate(-45deg);
            top: 0;
          }
        }
      }
    }

    .hamburger-block {
      display: inline-block;
      vertical-align: middle;
      background-color: $honey;
      width: 40px;
      height: 40px;
      padding: 8px;
      box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
      border-radius: 4px;
      position: relative;
      margin-left: 8px;
      .burger {
        width: 24px;
        height: 2px;
        line-height: 19px;
        border-radius: 4px;
        left: 8px;
        right: 8px;
        background-color: $white;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        &::before, &::after {
          content: '';
          position: absolute;
          width: 24px;
          height: 2px;
          background-color: $white;
          border-radius: 4px;
          left: 0;
          transition: all .3s;
        }
        &::before {
          top: -6px;
        }
        &::after {
          top: 6px;
        }
      }
    }
  }
}