/*************************************************
 *  Search
 **************************************************/
.search-results {
  transform: scale(0);
  -webkit-transform: scale(0);
  background-color: #fff;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  overflow: scroll;
  position: fixed;
  visibility: hidden;
  z-index: -99;
}

.searching {
  overflow: hidden;
}

.searching .search-results {
  transform: scale(1);
  -webkit-transform: scale(1);
  visibility: visible;
  z-index: 1031;
  /* Highest index, higher than navbar. */
}

.searching #search-box #search-query {
  width: 100%;
}

.search-results > .container {
  padding-top: 70px;
  /* Navbar height. */
}

@media screen and (max-width: 1200px) {
  .search-results > .container {
    padding-top: 50px;
    /* Navbar height. */
  }
}

.search-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: #fff;
  padding-top: 2rem;
  padding-bottom: 1rem;
  z-index: 10;
}

.search-header h2 {
  margin: 0;
  line-height: 1;
}

.col-search-close {
  text-align: right;
}

.search-header i {
  font-size: 2rem;
  line-height: 1;
}

#search-box {
  position: relative;
  /* Required for search icon positioning. */
  margin-bottom: 0.5rem;
}

#search-box .custom-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #999;
}

#search-box #search-query {
  border: 1px solid #dedede;
  border-radius: 1rem;
  padding: 1rem 1rem 1rem 2.5rem;
  /* Wider left padding for search icon to fit in. */
  width: 250px;
  line-height: 1rem;
  height: 1rem;
  font-size: 0.8rem;
}

#search-query:focus {
  outline: none;
  border-color: #008B8B;
  box-shadow: 0 0 0 0.2rem rgba(0, 139, 139, 0.25);
}

.search-hit {
  padding: 0.5rem 0;
}

.search-hit-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.search-hit-name a {
  color: #008B8B;
}

.search-hit-name a:hover {
  color: #006666;
  text-decoration: underline;
}

.search-hit-type {
  margin-bottom: 0 !important;
  font-size: 0.75rem;
  text-transform: capitalize;
  color: #888;
}

.search-hit-description {
  font-size: 0.8rem;
  color: #555;
}

.search-no-results {
  font-size: 1rem;
  color: #555;
}
