  /* new header+search styles 2024 */
header .main-header nav {
  display: inline;
}
header .main-header nav button {
  display: inline;
}

.search {
  position: absolute;
  top: 25px;
  right: 10px;
}
.search a {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}
.search a:hover {
  color: var(--primary-color) !important;
}
.search-title {
  display: none;
}
#headerSearchModal {
  background-color: white;
  position: relative;
  width: auto;
  padding: 16px;
  padding-top: 70px;
  transition: all 0.5s;
}

#headerSearchModal .card {
  border: none;
  border-top: 10px solid var(--primary-color);
  border-radius: 0;
}
.close-title {
  display: none;
}

.search a[aria-expanded="false"] {
  opacity: 1;
}
.search a[aria-expanded="true"] {
  opacity: 0;
  -webkit-animation: fadeOut 0.5s;
  animation: fadeOut 0.5s;
}
#headerSearchModal .close .fas {
  color: var(--dark-gray);
  font-size: 19px;
  padding-left: 5px;
  position: relative;
  top: 1px;
  transition: all 0.3s;
}
#headerSearchModal form input[type="text"] {
  padding: 10px 10px 10px 0;
  font-size: 14px;
  border-width: 0px 0px 5px 0px;
  border-style: solid solid solid solid;
  border-color: var(--dark-gray);
  color: var(--dark-gray);
  width: 100%;
  background: #fff;
}
#headerSearchModal form button {
  background: transparent;
  color: var(--dark-gray);
  font-size: 20px;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 40px;
}
#headerSearchModal form::after {
  content: "";
  clear: both;
  display: table;
}
#headerSearchModal .lead-text {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

#headerSearchModal{
	z-index: 4;
}
.site-search {
  width: 100%;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}
.site-search form input:focus {
  outline: none;
}
.site-search form input#search.form-text {
  color: var(--dark-gray);
  opacity: 1;
}
.site-search ::-webkit-input-placeholder {
  color: var(--dark-gray);
}
.site-search ::-moz-placeholder {
  color: var(--dark-gray);
}
.site-search ::-ms-placeholder {
  color: var(--dark-gray);
}
.site-search ::placeholder {
  color: var(--dark-gray);
}
.search-bar-favorites {
  background-color: #fff;
  padding: 15px;
  margin-top: 10px;
}
.search-bar-favorites ul {
  padding: 0;
  list-style: none;
}
.search-bar-favorites-item {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
}
.search-bar-favorites-link {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  display: block;
  padding: 9px 12px;
  color: var(--primary-color);
  text-decoration: none;
  background-color: transparent;
  transition: all 0.3s;
  border: 1px solid var(--primary-color);
}
.search-bar-favorites-link:hover {
  background-color: var(--primary-color);
  text-decoration: none;
  color: #fff;
}

header .navbar .buttons-wrap {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.main-header .buttons-wrap #headerSearchMobile {
  color: var(--white);
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
}

.main-header .buttons-wrap .navbar-toggler {
  padding: 4px 6px;
}

.main-header #headerSearchMobile {
  color: var(--white);
  font-size: 20px;
  width: 40px;
  height: 40px;
}

#headerSearch[aria-expanded="true"] .fa-search::before,
#headerSearchMobile[aria-expanded="true"] .fa-search::before {
  content: "\f00d"; /* FontAwesome 'x' glyph */
}
#headerSearchMobile:focus {
  box-shadow: 0 0 0 1.5px var(--white);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 1.5px var(--white);
}

/* Tablets and up */
@media (min-width: 1200px) {
  button#headerSearch {
    background-color: var(--primary-color);
    outline: none;
    border: none;
    width: 32px;
  }
  button#headerSearch:hover,
  button#headerSearch:focus {
    background-color: var(--hilite-color);
    color: var(--white);
  }

  #headerSearchModal {
    position: absolute;
  }

  .search-title {
    display: inline-block;
    font-size: 18px;
    margin-right: 10px;
    text-transform: uppercase;
  }
  .search-bar-favorites-link {
    font-size: 18px;
  }
  #main-navigation .navbar-nav {
    margin-left: 50px;
    margin-right: 50px;
  }
  .secondary .nav-link {
    margin-left: 40px;
  }
  .close-title {
    display: inline-block;
  }
  #headerSearchModal {
    width: 100%;
    left: 0;
    background-color: transparent;
    padding: 0;
  }
  #headerSearchModal .close {
    right: 5px;
    top: -70px;
  }
  #headerSearchModal form input[type="text"] {
    padding: 10px;
    font-size: 36px;
  }
  #headerSearchModal form button {
    font-size: 40px;
  }
  #headerSearchModal form button {
    bottom: 70px;
    right: 32px;
  }
  .site-search {
    padding-top: 112px;
    padding-left: 24px;
    padding-right: 24px;
    background-color: white;
  }
  .search-bar-favorites {
    padding: 34px;
  }
}

#headerSearchModal {
  transition: * 0.6s ease;
  max-height: 0;
  opacity: 0.5;
  overflow: hidden;
}

#headerSearchModal.search-hidden {
  /* height: 0; */
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0.5;
}

#headerSearchModal:not(.search-hidden) {
  /* height: auto; */
  max-height: 600px;
  opacity: 1;
}

.navbar-toggler-icon {
  position: relative;
  background: none; /* Remove background image */
}

.navbar-toggler-icon:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0c9";
  font-size: 24px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Search container shadow - start */
.container.site-search {
    box-shadow: 3px 3px 6px black;
    margin-bottom: 15px;
}
/* Search container shadow - end */

/* Search hide mobile container shadow - start */
		@media screen and (max-width: 1200px) {
  .container.site-search {
    box-shadow: 0px 0px 0px;
    margin-bottom: 0px;
  }
}
/* Search hide mobile container shadow - end */
