/**
 * PLZ search autocomplete dropdown — premium two-line suggestions.
 */

.wf-search-autocomplete {
	position: relative;
}

.wf-search-autocomplete__list {
	background: var(--color-bg-surface, #fff);
	border: 1px solid var(--color-border-default, #e4e8ee);
	border-radius: var(--radius-md, 8px);
	box-shadow:
		0 1px 2px rgba(18, 24, 32, 0.04),
		0 12px 32px rgba(11, 79, 138, 0.12);
	left: 0;
	list-style: none;
	margin: 0.4rem 0 0;
	max-height: min(22rem, 55vh);
	overflow: auto;
	padding: 0.4rem;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 80;
}

.wf-search-autocomplete__option {
	border: 1px solid transparent;
	border-radius: var(--radius-md, 8px);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-family: var(--font-sans, "Source Sans 3", sans-serif);
	gap: 0.2rem;
	padding: 0.75rem 0.85rem;
	transition:
		background-color var(--motion-fast, 120ms cubic-bezier(0.2, 0, 0, 1)),
		border-color var(--motion-fast, 120ms cubic-bezier(0.2, 0, 0, 1));
}

.wf-search-autocomplete__title {
	color: var(--color-text-primary, #121820);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.wf-search-autocomplete__title strong {
	color: var(--color-bg-brand, #0b4f8a);
	font-weight: 700;
}

.wf-search-autocomplete__meta {
	color: var(--color-text-secondary, #5a6573);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

.wf-search-autocomplete__option.is-active,
.wf-search-autocomplete__option:hover {
	background: var(--color-bg-brand-soft, #e8f1f8);
	border-color: rgba(11, 79, 138, 0.12);
}

.wf-search-autocomplete__option.is-active .wf-search-autocomplete__title,
.wf-search-autocomplete__option:hover .wf-search-autocomplete__title {
	color: var(--color-bg-brand-strong, #0a2f4a);
}

.wf-search-autocomplete__empty {
	color: var(--color-text-secondary, #5a6573);
	font-size: 0.875rem;
	padding: 0.85rem 0.9rem;
}

/* Hero: dropdown stacking context above the city marquee. */
.wf-hero__card .wf-search-autocomplete {
	position: relative;
	z-index: 90;
}

.wf-hero__card .wf-search-autocomplete__list {
	z-index: 90;
}

/* Catalog hero: dropdown above factors / shop tools. */
.wf-catalog-hero .wf-search-autocomplete {
	position: relative;
	z-index: 90;
}

.wf-catalog-hero .wf-search-autocomplete__list {
	z-index: 90;
}
