.search-bar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-direction: row;
  min-width: 0;
}
.search-bar.mobile-only {
  display: flex;
  margin: 0 24px;
  padding-top: 24px;
}
.search-bar.mobile-only > .dropdown,
.search-bar.mobile-only > input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.search-bar .dropdown {
  position: relative;
  width: -webkit-fill-available;
  transition: width 0.2s ease;
  border-radius: 8px;
}
.search-bar .dropdown__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: #FFF;
  border: 1px solid #EAECF0;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  cursor: text;
  user-select: text;
}
.search-bar .dropdown__input:focus {
  outline: none;
  border-color: #F47721;
}
.search-bar .dropdown__menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  width: 100%;
  max-height: 250px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #FFF;
  border: 1px solid #EAECF0;
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}
.search-bar .dropdown--open .dropdown__menu {
  display: block;
}
.search-bar .dropdown--open .dropdown__menu .dropdown__item {
  position: relative;
  padding-left: 1.5rem;
  padding-right: 2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-bar .dropdown--open .dropdown__menu .dropdown__item .dropdown__text {
  display: block;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 8px;
}
.search-bar .dropdown--open .dropdown__menu .dropdown__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: url("/utils/icons/marker-pin.svg") no-repeat center/contain;
}
.search-bar .dropdown--open .dropdown__menu .dropdown__item--active {
  background: #F9FAFB;
  font-weight: 600;
  position: relative;
}
.search-bar .dropdown--open .dropdown__menu .dropdown__item--active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url("/utils/icons/check.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.search-bar .dropdown--open .dropdown__menu .dropdown__item--highlight,
.search-bar .dropdown--open .dropdown__menu .dropdown__item:hover {
  background: #EAECF0;
}
.search-bar .dropdown__item {
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 1rem;
  cursor: pointer;
}
.search-bar .dropdown__item:hover:not(.dropdown__item--active) {
  background: #EAECF0;
}
.search-bar input {
  width: 100%;
  transition: width 0.2s ease;
  padding: 11px 13px;
  border: 1px solid #D0D5DD;
  border-radius: 4px;
  flex: 1;
  background: white;
  display: flex;
  line-height: 24px;
  gap: 8px;
  color: #101828;
  font-size: 16px;
  font-weight: 500;
}
.search-bar input:focus-within {
  outline: 1px #F9AB77;
}
@media (max-width: 768px) {
  .search-bar input {
    width: 100%;
    flex: none;
  }
}
.search-bar input.left-half {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-top-left-radius: 8px;
}
.search-bar input.right-half {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.search-bar input:focus {
  outline: none;
  border-color: #F47721;
}
.search-bar .input-with-clear {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar .input-with-clear input {
  width: 100%;
  padding-right: 2rem;
}
.search-bar .input-with-clear .clear-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.search-bar .input-with-clear .clear-btn[hidden] {
  display: none !important;
}
.search-bar .input-with-clear .clear-btn img {
  width: 16px;
  height: 16px;
  pointer-events: none;
}