/* ── Projecten Filter ─────────────────────────────────────────────────── */

.projecten-filter-wrap {
	position: relative;
	z-index: 100;
}

.projecten-filter-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 24px 0 48px 0;
	position: relative;
	z-index: 100;
}

.projecten-filter-label {
	font-family: Poppins, sans-serif;
	font-weight: bold;
	font-size: 1.4em;
	font-style: normal;
	color: #96c313;
	margin-right: 4px;
	line-height: 1;
	align-self: center;
}

/* ── Dropdown ── */

.projecten-filter-dropdown {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	align-self: center;
}

.projecten-filter-btn {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
	gap: 8px;
	padding: 10px 24px;
	background-color: #96c313;
	color: #fff;
	border: 2px solid #96c313;
	border-radius: 999px;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	white-space: nowrap;
	line-height: 1.4;
}

.projecten-filter-btn:hover,
.projecten-filter-btn:focus {
	background-color: #6aa322;
}

.projecten-filter-btn.is-active {
	background-color: #fff;
	color: #96c313;
}

.projecten-filter-btn.is-active:hover,
.projecten-filter-btn.is-active:focus {
	background-color: #f5f5f5;
}

.projecten-filter-arrow {
	transition: transform 0.25s;
	flex-shrink: 0;
}

.projecten-filter-dropdown.is-open .projecten-filter-arrow {
	transform: rotate(180deg);
}

/* ── Options list ── */

.projecten-filter-options {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	max-height: 280px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 9999;
}

.projecten-filter-dropdown.is-open .projecten-filter-options {
	display: block;
}

.projecten-filter-option {
	display: block;
	padding: 8px 18px;
	color: #333;
	text-decoration: none;
	font-size: 0.95em;
	transition: background-color 0.15s;
}

.projecten-filter-option:hover,
.projecten-filter-option:focus {
	background-color: #f0f7e6;
	color: #333;
}

.projecten-filter-option.is-selected {
	font-weight: 700;
	color: #96c313;
}

/* ── Reset button ── */

.projecten-filter-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e5e5;
	color: #666;
	font-size: 1.2em;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.2s;
}

.projecten-filter-reset:hover {
	background: #d0d0d0;
	color: #333;
}

/* ── Loading state ── */

.projecten-grid.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* ── Responsive ── */

@media (max-width: 549px) {
	.projecten-filter-bar {
		flex-direction: column;
		gap: 8px;
		padding: 16px 15px;
	}
	.projecten-filter-label {
		width: 100%;
		text-align: center;
		font-size: 1.2em;
		margin-bottom: 4px;
	}
	.projecten-filter-dropdown {
		width: 100%;
	}
	.projecten-filter-btn {
		padding: 10px 16px;
		font-size: 0.85em;
		width: 100%;
		justify-content: center;
	}
	.projecten-filter-options {
		position: relative;
		top: 0;
		left: 0;
		transform: none;
		width: 100%;
		max-height: 40vh;
		border-radius: 0 0 8px 8px;
		border-top: none;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		-webkit-overflow-scrolling: touch;
	}
	.projecten-filter-reset {
		align-self: center;
	}
}
