.topbar,
.topbar-inner,
.nav.portal-topbar {
  overflow: visible;
}

.portal-col-search,
.home-field--search {
  position: relative;
  z-index: 4;
}

.portal-col-search.is-suggest-open,
.home-field--search.is-suggest-open {
  z-index: 120;
}

.portal-search-field-host {
  position: relative;
  z-index: 1;
}

.portal-search-field-host.is-suggest-open {
  z-index: 120;
}

.portal-search-autocomplete {
  position: relative;
  width: 100%;
}

.portal-search-autocomplete--mobile .portal-search-autocomplete__input-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  background: #fff;
  color: var(--ink-strong);
  font-size: 14px;
}

.portal-search-autocomplete--mobile .portal-search-suggestions {
  z-index: 220;
}

.portal-search-autocomplete__input-wrap {
  position: relative;
}

.portal-search-autocomplete.has-city .portal-search-autocomplete__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-search-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.portal-search-autocomplete.has-city .portal-search-autocomplete__input-wrap input {
  flex: 1 1 140px;
  min-width: 0;
}

.portal-search-autocomplete--topbar.has-city .portal-search-city-chip {
  padding: 3px 6px 3px 8px;
  font-size: 11px;
}

.portal-search-autocomplete--topbar.has-city .portal-search-autocomplete__input-wrap input {
  flex: 1 1 88px;
  min-height: 36px;
  height: 36px;
  padding-left: 10px;
  padding-right: 10px;
}

.portal-search-city-chip__clear {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.portal-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  max-height: min(320px, 52vh);
  overflow: auto;
  z-index: 200;
}

.portal-search-autocomplete--topbar .portal-search-suggestions {
  border-radius: 14px;
  max-height: min(280px, 48vh);
}

.portal-search-suggestions[hidden] {
  display: none !important;
}

.portal-search-suggestions__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.portal-search-autocomplete--topbar .portal-search-suggestions__item {
  padding: 8px 10px;
}

.portal-search-suggestions__item.is-active,
.portal-search-suggestions__item:hover {
  background: rgba(var(--brand-rgb), 0.1);
}

.portal-search-suggestions__label {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.portal-search-autocomplete--topbar .portal-search-suggestions__label {
  font-size: 13px;
}

.portal-search-suggestions__subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
