// ----------------------- //
// SEARCHBAR
//
#searchbar {

  transition: max-height .4s ease-in-out;
  max-height: 0;
  overflow: hidden;
  
  form {
    transition: opacity .4s ease;
    opacity: 0;
    input {
      background-color: white !important;
    }
    @media (max-width: @screen-xs-max) {
      &.search-form {
        margin-top: 0;
      }
    }
  }

  &.show {
    max-height: 200px;
    form {
      opacity: 1 !important;
    }
  }

  background-color: @hwk-blue-light-25;

  & > div {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

// ----------------------- //
// SEARCH FORM
//
.search-form {
  height: auto;
  padding: 15px;
}
.search-bar {
  display: flex;

  .form-group {
    width: calc(100% - @input-height-base);
    margin: 0;

    @media (min-width: @screen-xl-min) {
      padding-left: 0;
      padding-right: 0;
    }

    label {
      left: 15px;
    }
  }

  input {
    background-color: #fff;
    height: @input-height-base;
    width: 100%;
    margin: 0;
  }

  .btn {
    position: initial;
    width: @input-height-base;
    height: @input-height-base;
    border: none;
    background-color: @hwk-blue-dark;
    .glyphicon {
      width: auto;
      color: white;
    }
    &:hover,
    &:focus {
      background-color: @hwk-blue-dark;
    }
  }
}



// ----------------------- //
// SEARCH PAGE
//

// search panel
// -----------------
.search-panel {
  margin-bottom: 15px;
  // horizontal swipe
  .search-filter {
    margin-top: 10px;
    .swipe-horizontal-container {
      background-color: transparent;
    }
    .nav-tabs { // ul
      &, li, li a, li.active, li.active a, span {
        color: @hwk-blue-dark;
        border: none;
        background-color: transparent;
      }
      li.active a,
      a:hover, a:focus {
        span {
          text-decoration: underline;
        }
      }
    }
  }
  sup {
    font-size: 10px;
    color: @hwk-blue-light;
    &.search-result-number-circle {
      background-color: @hwk-blue-light;
      color: #fff;
      border-radius: 10px;
      padding: 0 5px;
    }
  }

  .search-advanced {
    margin-top: 10px;
    .col {
      display: flex;
    }
    .dropdown {
      .dropdown-toggle {
        color: @hwk-blue-dark;
        &:active {
          box-shadow: none;
        }
      }
      .dropdown-menu {
        list-style: none;
        margin: 0;
        padding-top: 5px;
        padding-bottom: 5px;
        li {
          margin: 0;
          font-size: @font-size-small;
          &::before {
            display: none;
          }
          a {
            padding: 5px 15px;
            border: none;
            color: @hwk-blue-dark;
            &:active,
            &:focus,
            &:hover {
              color: @hwk-blue-dark;
              background-color: @hwk-blue-light-25;
            }
          }
        }
      }
    }
  }
}

//
// search hit item
// -----------------
.searchhit {
  .white-box();
  margin-bottom: 30px;
  &.searchhit-recommended {
    background-color: #D0E3F9;
  }
  .label-primary {
    background-color: @hwk-blue-dark;
    text-transform: uppercase;
    float: right;
    letter-spacing: 0;
    letter-spacing: .05em;
    font-weight: normal;
  }
}
.searchhit-icon {
  height: 50px;
  float: left;
  width: 45px;
  margin-right: 15px;
  .glyphicon {
    font-size: 42px;
    top: 7px;
  }
}
.searchhit-header {
  margin-bottom: 15px;
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 3px;
  }
  p {
    color: inherit;
  }
}
.searchhit-content {
  padding: 15px 20px 0 20px;
  p {
    font-size: 16px;
    line-height: 1.4;
  }
  .note, figcaption {
    margin-bottom: 12px;
  }

  .image-item {
    position: relative;
    &.right {
      float: right;
      margin-left: 25px;
    }
    .searchhit-thumbnail {
      width: 180px;
    }
  }
}

//
// search with map
// ------------------------
.searchhit-content-map {
  clear: left;
  h4 {
    line-height: 25px;
    margin-bottom: 0
  }
  .searchhit-count {
    float: left;
    display: block;
    width: 25px;
    height: 25px;
    text-align: center;
    background-color: @hwk-blue-light-25
  }
  .searchhit-result {
    float: left;
    margin-left: 15px;
    margin-bottom: 0
  }
  .searchhit-header {
    padding-top: 15px;
  }
}


.map-container {
  height: 550px;
  @media (min-width: @screen-md-min) {
    width: calc(58.33333333% - 40px);
    left: 20px;
  }
  @media (min-width: @container-xl) {
    width: calc(58.33333333% - 80px);
    left: 40px;
  }
  @media (max-width: @screen-xs-max) {
    height: 300px;
  }
}

.map-info {
  width: 200px;
  min-height: 80px
}

.map-label {
  color:@hwk-blue-light;
  font-size: 20px;
  line-height: 40px;
  font-weight: bold;
  text-align: center;
  width: 40px;
  height: 40px;
  left: -20px;
  top: -50px;
  white-space: nowrap
}

#map-detail .tab {
  float: left;
  width: 150px
}

@media (max-width: 767px) {
  #map-detail .tab {
    float: none;
    width: auto;
    margin-right: 5px
  }
}

// @since 2.0.7
.searchinfo .light{
  color: @gray-dark;
}

