.builder-property-search {
  position: relative;
}

.builder-property-search__label {
  position: absolute;
  left: var(--space-sm, 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--text-secondary, #6b7280);
  pointer-events: none;
}

.builder-property-search__input {
  width: 100%;
  height: 36px;
  padding: 0 var(--space-sm, 0.5rem) 0 32px;
  border: 1px solid var(--border-color, #e4e4e7);
  border-radius: var(--radius-md, 6px);
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #1f322d);
  font-family: inherit;
  font-size: var(--font-size-sm, 0.8125rem);

  &:focus-visible {
    outline: none;
    border-color: var(--primary-color, #2f6e5d);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color, #2f6e5d) 25%, transparent);
  }
}

.builder-property-search__results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--space-xs, 0.25rem);
  list-style: none;
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-color, #e4e4e7);
  border-radius: var(--radius-md, 6px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
  max-height: 300px;
  overflow-y: auto;

  a {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm, 0.5rem);
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: var(--radius-sm, 4px);
    color: var(--text-primary, #1f322d);
    text-decoration: none;
    font-size: var(--font-size-sm, 0.8125rem);

    &:hover,
    &:focus-visible {
      background: var(--bg-secondary, #f4f4f5);
      outline: none;
    }
  }
}

.builder-property-search__result-section {
  color: var(--text-secondary, #6b7280);
  font-size: var(--font-size-xs, 0.75rem);
}

.builder-property-search__empty {
  padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
  color: var(--text-secondary, #6b7280);
  font-size: var(--font-size-sm, 0.8125rem);
}
