.smart-search-wrapper {
  position: relative;
  width: min(100%, 620px);
  margin-top: 20px;
}

/* ── Catalog search bar (services/packages pages) ── */

.catalog-search-form.smart-search-form {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 620px;
  margin: 0;
}

.catalog-search-form.smart-search-form input[type="text"] {
  flex: 1;
}

/* ── Homepage search bar wrapper needs relative positioning ── */

.hero-search-box {
  position: relative;
}

/* ── Shared dropdown styles ── */

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  background: var(--white, #ffffff);
  border: 1px solid rgba(31, 31, 33, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(31, 31, 33, 0.14);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.search-suggestions-dropdown.is-open {
  display: block;
}

/* Homepage dropdown — sits below the whole search box */

.homepage-search-dropdown {
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  border-radius: 20px;
  box-shadow: 0 22px 56px rgba(31, 31, 33, 0.18);
}

/* ── Suggestion items ── */

.search-suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(31, 31, 33, 0.07);
  color: var(--charcoal, #373435);
  text-decoration: none;
  background: var(--white, #ffffff);
  transition: background 0.15s ease;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background: var(--teal-soft, #e7f8f8);
}

.search-suggestion-main {
  min-width: 0;
  flex: 1;
}

.search-suggestion-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--teal-soft, #e7f8f8);
  color: var(--teal-dark, #0f7d7f);
  font-size: 0.70rem;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-suggestion-main strong {
  display: block;
  color: var(--charcoal-dark, #1f1f21);
  font-size: 0.94rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-main small {
  display: block;
  color: var(--medium-grey, #6b7280);
  margin-top: 3px;
  font-size: 0.80rem;
}

.search-suggestion-price {
  white-space: nowrap;
  color: var(--teal-dark, #0f7d7f);
  font-weight: 900;
  font-size: 0.94rem;
  flex-shrink: 0;
}

.search-suggestion-empty {
  padding: 16px 18px;
  color: var(--medium-grey, #6b7280);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white, #ffffff);
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .catalog-search-form.smart-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-suggestion-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .search-suggestion-price {
    align-self: flex-start;
  }
}