/**
 * Lakefront Designs lake-search shell and live suggestions.
 * Loaded globally because the shared header search and homepage search use it.
 */

.lfd-lake-search-shell,
.lfd-lake-search-shell *,
.lfd-lake-search-shell *::before,
.lfd-lake-search-shell *::after {
  box-sizing: border-box;
}

.lfd-lake-search-shell :is(a, button, input):focus-visible {
  outline: 3px solid var(--lf-color-accent-gold, #e1b55d);
  outline-offset: 3px;
}

/* Progressive live suggestions on the existing homepage hero search. */
.lfd-homepage .lfd-lake-search-shell {
  position: relative;
  width: min(100%, 610px);
}

.lfd-homepage .lfd-lake-search-shell .lfd-hero-search {
  width: 100%;
}

.lfd-homepage .lfd-lake-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: min(440px, 58vh);
  overflow: auto;
  border: 1px solid #d8e4e8;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  color: #173542;
  box-shadow: 0 18px 40px rgba(3, 38, 58, 0.22);
}

.lfd-homepage .lfd-lake-search-suggestions[hidden] {
  display: none !important;
}

.lfd-homepage .lfd-lake-search-suggestions__group + .lfd-lake-search-suggestions__group {
  margin-top: 6px;
  border-top: 1px solid #e3ebee;
  padding-top: 6px;
}

.lfd-homepage .lfd-lake-search-suggestions__label {
  margin: 0;
  padding: 7px 10px 5px;
  color: #6c8089;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lfd-homepage .lfd-lake-search-suggestions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  border-radius: 5px;
  padding: 9px 10px;
  color: #07334a;
  font-size: 14px;
  font-weight: 800;
}

.lfd-homepage .lfd-lake-search-suggestions a:hover,
.lfd-homepage .lfd-lake-search-suggestions a:focus-visible {
  background: #eef8fb;
}

.lfd-homepage .lfd-lake-search-suggestions a small {
  flex: 0 0 auto;
  color: #0f5875;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lfd-homepage .lfd-lake-search-suggestions__all {
  border-top: 1px solid #e3ebee;
  margin-top: 6px;
  padding-top: 8px !important;
  color: #0f5875 !important;
}

@media (max-width: 768px) {
  .lfd-homepage .lfd-lake-search-suggestions a { min-height: 48px; }
  .lfd-homepage .lfd-lake-search-suggestions { width: 100%; max-width: 100%; }
}

@media (max-width: 680px) {
  .lfd-homepage .lfd-lake-search-suggestions {
    max-height: 52vh;
  }
}
