/* Zoekbalk in de header ([bb_zoeken]). Het invoerveld ziet er hetzelfde uit als de vorige versie. */

/* De Divi-secties in de header hebben elk een eigen stacking context; zonder dit valt de
   suggestielijst achter de menubalk eronder. */
.et_pb_section:has(.bb-zoeken),
.et_pb_row:has(.bb-zoeken),
.et_pb_column:has(.bb-zoeken),
.et_pb_module:has(.bb-zoeken) {
	position: relative;
	z-index: 100001 !important;
	overflow: visible !important;
}

.bb-zoeken {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.bb-zoeken__invoer {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 220px;
	padding: 5px 18px;
	border: 1.5px solid #ccc;
	border-radius: 999px;
	outline: none;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
	font-size: 15px;
	line-height: 1.4;
	color: #1D3C34;
	transition: border-color .2s, box-shadow .2s;
}
.bb-zoeken__invoer::-webkit-search-decoration,
.bb-zoeken__invoer::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
.bb-zoeken__invoer:focus {
	border-color: #555;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .13);
}
.bb-zoeken__lijst {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 100000;
	box-sizing: border-box;
	width: max(100%, 340px);
	max-height: min(70vh, 460px);
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(29, 60, 52, .18);
	text-align: left;
}
.bb-zoeken__lijst[hidden] {
	display: none;
}
.bb-zoeken__lijst li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bb-zoeken .bb-zoeken__lijst a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #1D3C34;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
}
.bb-zoeken__lijst li.is-actief a,
.bb-zoeken__lijst a:hover {
	background: #F2F2EE;
}
.bb-zoeken__lijst img {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	background: #F2F2EE;
}
.bb-zoeken__titel {
	flex: 1;
	font-weight: 500;
}
.bb-zoeken__soort {
	flex: 0 0 auto;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #858585;
}
.bb-zoeken__leeg {
	padding: 10px 12px;
	font-size: 14px;
	color: #5D5D5D;
}
@media (max-width: 480px) {
	.bb-zoeken__invoer { width: 180px; }
	.bb-zoeken__lijst { width: min(340px, 92vw); }
}
