.epf-filters {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.epf-panels-wrapper,
.epf-dropdowns-wrapper {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.epf-panels,
.epf-dropdowns {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: nowrap;
	flex: 0 1 100%;
}

.epf-panels button,
.epf-dropdowns select {
	padding: 12px 10px;
	border-radius: 24px;
	border: 1px solid #333;
	background: #111;
	color: #fff;
	cursor: pointer;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: all 0.2s ease;
	width: 100%;
}

.epf-panels button {
	opacity: 0.6;
	flex: 1 1 0;
	min-width: 0;
	white-space: normal;
}

.epf-dropdowns select {
	appearance: none;
	-webkit-appearance: none;
	text-align-last: center;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 15px;
	padding-right: 40px;
    min-height: auto;
}

/* --- Panel Row Width Logic --- */
.epf-panels:has(> button:first-child:nth-last-child(1)), .epf-dropdowns:has(> select:first-child:nth-last-child(1)) { flex-basis: 25%; }
.epf-panels:has(> button:first-child:nth-last-child(2)), .epf-dropdowns:has(> select:first-child:nth-last-child(2)) { flex-basis: 50%; }
.epf-panels:has(> button:first-child:nth-last-child(3)), .epf-dropdowns:has(> select:first-child:nth-last-child(3)) { flex-basis: 75%; }

.epf-panels button:hover,
.epf-dropdowns select:hover {
	background: #fff;
	color: #000;
	opacity: 1;
}

.epf-dropdowns select:hover {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 15px;
}

.epf-panels button.active {
	background: #fff;
	color: #000;
	opacity: 1;
	font-weight: bold;
}

/* Custom Load More Button */
.epf-load-more {
    display: block;
    margin: 30px auto 0;
    background: transparent;
    color: #fff;
    border: 1px solid white;
    border-radius: 24px;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.epf-load-more:hover {
    background: #fff;
    color: #000;
}

.epf-load-more:active {
    transform: translateY(0);
}
