/* ==========================================================================
   Flexable V3 — search page
   The hero comes from privacy-policy.css; this is the search box, its
   suggestion list and the popular searches.
   ========================================================================== */

.flxb-home .flxb-search-title {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  max-width: 820px;
}

.flxb-search {
  position: relative;
  max-width: 720px;
  margin-top: 34px;
}

/* Visible to screen readers only; the placeholder carries it visually. */
.flxb-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.flxb-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--flxb-panel);
  border: 1px solid var(--flxb-line);
  border-radius: 18px;
  box-shadow: var(--flxb-shadow);
  transition: border-color 0.15s ease;
}

.flxb-search-box:focus-within {
  border-color: var(--flxb-brand);
}

.flxb-search-icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: #999ca0;
}

.flxb-home .flxb-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--flxb-ink);
  padding: 10px 0;
}

.flxb-home .flxb-search-input::placeholder {
  color: #a3a6ab;
}

.flxb-home .flxb-search-submit {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--flxb-charcoal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.flxb-home .flxb-search-submit:hover {
  background: var(--flxb-ink);
}

.flxb-home .flxb-search-submit:focus-visible {
  outline: 2px solid var(--flxb-brand);
  outline-offset: 2px;
}

.flxb-search-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 340px;
  overflow-y: auto;
  background: var(--flxb-panel);
  border: 1px solid var(--flxb-line);
  border-radius: 16px;
  box-shadow: var(--flxb-shadow);
}

.flxb-search-list[hidden] {
  display: none;
}

.flxb-search-option {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--flxb-ink);
  cursor: pointer;
}

.flxb-search-option[aria-selected="true"] {
  background: var(--flxb-active);
  color: #08783d;
}

.flxb-home .flxb-search-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--flxb-muted);
}

.flxb-search-note[hidden] {
  display: none;
}

/* ---------- Popular searches ---------- */

.flxb-search-popular {
  padding: 44px 0 92px;
}

.flxb-home .flxb-search-popular-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999ca0;
  margin: 0 0 18px;
}

.flxb-search-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flxb-home .flxb-search-chip {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--flxb-line);
  border-radius: 999px;
  background: var(--flxb-panel);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--flxb-ink);
  transition: 0.15s ease;
}

.flxb-home .flxb-search-chip:hover {
  border-color: var(--flxb-brand);
  color: #08783d;
  background: var(--flxb-active);
}

.flxb-home .flxb-search-chip:focus-visible {
  outline: 2px solid var(--flxb-brand);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .flxb-home .flxb-search-title {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .flxb-search {
    margin-top: 26px;
  }

  .flxb-search-box {
    padding-left: 14px;
  }

  .flxb-home .flxb-search-submit {
    padding: 11px 14px;
  }

  .flxb-search-popular {
    padding: 32px 0 64px;
  }
}
