/* Typeahead for specialty/city — public, register, doctor, admin */

.hero__search-row .taxonomy-ac,
.search-filter-bar .taxonomy-ac,
.near-me-form .taxonomy-ac {
  flex: 1;
  min-width: 10rem;
}

.taxonomy-ac {
  position: relative;
  width: 100%;
}

.taxonomy-ac__native {
  display: none !important;
}

.taxonomy-ac__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.75rem 2.15rem;
  font: inherit;
  color: var(--color-text, #0f172a);
  background: #F8FAFC;
  outline: none;
}

.taxonomy-ac__input::placeholder {
  color: var(--color-text-secondary, #64748b);
}

.taxonomy-ac__input:focus {
  border-color: var(--color-primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  background: #fff;
}

.taxonomy-ac::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: #94a3b8;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

.taxonomy-ac__list {
  position: absolute;
  z-index: 2000;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  max-height: 16.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  text-align: right;
  direction: rtl;
}

.taxonomy-ac__item,
.taxonomy-ac__empty {
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.taxonomy-ac__empty {
  cursor: default;
  color: var(--color-text-secondary, #64748b);
}

.taxonomy-ac__item.is-active,
.taxonomy-ac__item:hover {
  background: #EEF2FF;
}

.taxonomy-ac__mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
  padding: 0;
}

.taxonomy-ac__item--more {
  border-top: 1px solid var(--color-border, #e2e8f0);
  color: var(--color-primary, #4f46e5);
  font-weight: 600;
}

/* Bootstrap / panel forms */
.taxonomy-ac--bootstrap .taxonomy-ac__input {
  border-radius: var(--bs-border-radius, 0.375rem);
  padding: 0.375rem 0.75rem 0.375rem 2rem;
  min-height: calc(1.5em + 0.75rem + 2px);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
}

.taxonomy-ac--bootstrap.taxonomy-ac--sm .taxonomy-ac__input {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem 0.25rem 1.75rem;
  font-size: 0.875rem;
  border-radius: var(--bs-border-radius-sm, 0.25rem);
}

.taxonomy-ac--bootstrap::after {
  left: 0.75rem;
}

.taxonomy-ac--bootstrap.taxonomy-ac--sm::after {
  left: 0.55rem;
}

.taxonomy-ac--bootstrap .taxonomy-ac__input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Register wizard */
.reg-card .taxonomy-ac__input {
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 768px) {
  .hero__search-row .taxonomy-ac,
  .search-filter-bar .taxonomy-ac {
    flex-basis: 100%;
  }
}
