.imm-hero-search {
	--imm-accent: #f0983c;
	--imm-dark: #16214e;
	width: 100%;
	max-width: 760px;
	font-family: inherit;
}

/* Kaufen/Mieten-Toggle */
.imm-hero-search__toggle {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 14px;
}

.imm-hero-search__toggle-btn {
	border: none;
	background: transparent;
	color: #fff;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.imm-hero-search__toggle-btn.is-active {
	background: #fff;
	color: var(--imm-dark);
}

/* Suchleiste */
.imm-hero-search__bar {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 12px;
	overflow: visible;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.imm-hero-search__type {
	display: flex;
	align-items: center;
	padding: 0 16px;
}

.imm-hero-search__type select {
	border: none;
	background: none;
	font-size: 15px;
	color: #1d2327;
	padding: 16px 4px;
	cursor: pointer;
}

.imm-hero-search__divider {
	width: 1px;
	background: #e2e2e2;
	margin: 12px 0;
}

.imm-hero-search__location {
	position: relative;
	flex: 1;
}

.imm-hero-search__location-input {
	width: 100%;
	height: 100%;
	border: none;
	padding: 16px;
	font-size: 15px;
	color: #1d2327;
}

.imm-hero-search__location-input:focus {
	outline: none;
}

.imm-hero-search__suggestions {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
	list-style: none;
	padding: 6px 0;
	z-index: 10;
	max-height: 260px;
	overflow-y: auto;
}

.imm-hero-search__suggestions.is-open {
	display: block;
}

.imm-hero-search__suggestions li {
	padding: 10px 16px;
	font-size: 14px;
	color: #1d2327;
	cursor: pointer;
}

.imm-hero-search__suggestions li:hover {
	background: #f7f7f7;
}

.imm-hero-search__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--imm-accent);
	color: #fff;
	border: none;
	border-radius: 10px;
	margin: 6px;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.imm-hero-search__submit-icon {
	font-size: 15px;
}

/* Preis-/Flächen-Dropdowns unterhalb der Suchleiste */
.imm-hero-search__extra {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.imm-hero-search__dropdown {
	position: relative;
}

.imm-hero-search__dropdown-toggle {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	cursor: pointer;
}

.imm-hero-search__dropdown-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 8px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	padding: 16px;
	width: 220px;
	z-index: 10;
}

.imm-hero-search__dropdown.is-open .imm-hero-search__dropdown-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.imm-hero-search__dropdown-panel label {
	font-size: 12px;
	color: #666;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.imm-hero-search__dropdown-panel input {
	border: 1px solid #e2e2e2;
	border-radius: 5px;
	padding: 8px 10px;
	font-size: 14px;
}

/* Mobil: gestapeltes Layout */
@media (max-width: 640px) {
	.imm-hero-search__bar {
		flex-direction: column;
		border-radius: 12px;
	}

	.imm-hero-search__divider {
		display: none;
	}

	.imm-hero-search__type,
	.imm-hero-search__location-input {
		padding: 12px 16px;
	}

	.imm-hero-search__submit {
		margin: 8px;
		justify-content: center;
		padding: 14px;
	}
}
