/* Site search: header panel and results page. Loaded after the theme CSS.
   Most of the panel's look comes from the original theme rules in
   _requirements/site.css (.site-search, .site-search-btn, .mobi-search,
   .search-quick-links, .site-search-results). These rules only fill gaps. */

/* The close "X" was an <i> in the original; it's a <button> now so keyboard
   users can reach it. Remove the browser's button styling. */
.site-search .site-search-close-btn {
  background: none;
  border: 0;
  padding: 0;
}

/* The button sits in the top row (Travelling / Business / Corporate and the
   social icons). The original put a 48px button at the end of the section
   menu, but the Corporate menu is now too long for it to fit there. */
nav.primary-nav ul.primary-nav-sections .site-search-btn {
  float: none;
  margin: 0 0 0 4px;
  padding: 0;
  line-height: 0;
  vertical-align: top;
}
nav.primary-nav ul.primary-nav-sections li.site-search-item {
  height: 32px;
  vertical-align: top;
}
.site-search-btn img {
  display: block;
}

/* "Search" button beside the big box. The original used Bootstrap 3's
   btn-default, which Bootstrap 5 doesn't have. */
.site-search .site-search-form .form-group {
  float: left;
  margin: 0;
}
.site-search .site-search-form .btn {
  width: 138px;
  height: 52px;
  background: #00B1B1;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.site-search .site-search-form .btn:hover,
.site-search .site-search-form .btn:focus-visible {
  background: #008f8f;
}
.site-search .site-search-form::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 767px) {
  .site-search .site-search-form .form-group {
    float: none;
    margin-top: 12px;
  }
  .site-search .site-search-form .btn {
    width: 100%;
  }
}

/* Visible keyboard focus. */
.site-search-btn:focus-visible,
.site-search .site-search-close-btn:focus-visible {
  outline: 2px solid #00B1B1;
  outline-offset: 2px;
}

/* Results page. */
.search-page-form {
  display: flex;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 0 1.5rem;
}
.search-page-form input[name="Search"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  font-size: 1.25rem;
}
.search-page-form .btn {
  height: 52px;
  padding: 0 1.75rem;
}
.search-summary {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.site-search-results {
  margin-bottom: 3rem;
}
.site-search-results h4 a {
  text-decoration: none;
}
.site-search-results h4 a:hover {
  text-decoration: underline;
}
.search-result-path {
  margin: -4px 0 8px;
  font-size: 0.85rem;
  color: #6c6d6f;
  overflow-wrap: anywhere;
}
.mobi-search {
  margin-bottom: 8px;
}
.site-search-results p {
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.site-search-results mark {
  background: #d9f3f3;
  color: inherit;
  padding: 0 1px;
}

@media (max-width: 767px) {
  .banner .banner-wrap {
    height: 200px;
  }
  .banner .banner-wrap .banner-caption {
    top: 50%;
    transform: translateY(-50%);
  }
  .banner .banner-wrap .banner-caption h1 {
    width: 92%;
    margin: 0 auto;
    font-size: 32px;
    line-height: 1.15;
  }
  .search-page-form .btn {
    padding: 0 1rem;
  }
  .site-search-results h4 {
    font-size: 21px;
  }
}
