/* ===== ACTIVE FILTERS BAR ===== */
.bernie-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	min-height: 0;
}
.bernie-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #3d5a3e;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px 5px 12px;
	border-radius: 20px;
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: background 0.2s ease;
	white-space: nowrap;
}
.bernie-chip:hover {
	background: #2e4430;
}
.bernie-chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	font-size: 10px;
	line-height: 1;
	flex-shrink: 0;
}
.bernie-chip:hover .bernie-chip-x {
	background: rgba(255, 255, 255, 0.4);
}
.bernie-reset-all {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #666;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1.5px solid #ccc;
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.bernie-reset-all:hover {
	border-color: #3d5a3e;
	color: #3d5a3e;
	background: #f5f9f5;
}

/* ===== MOBILE COUNT BADGE ===== */
.filter-count-badge {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #fff;
	color: #3d5a3e;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.filter-count-badge.has-filters {
	display: inline-flex;
}

/* ===== DRAWER RESET ===== */
.filter-drawer-reset {
	font-size: 12px;
	color: #888;
	text-decoration: underline;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}
.filter-drawer-reset:hover {
	color: #3d5a3e;
}

/* ===== FILTER DRAWER - MOBILE ONLY ===== */
@media (max-width: 479px) {
	.filter-overlay {
		position: fixed;
		inset: 0;
		background: rgba(20, 20, 20, 0.55);
		backdrop-filter: blur(3px);
		-webkit-backdrop-filter: blur(3px);
		z-index: 9998;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.35s ease;
	}
	.filter-overlay.is-open {
		opacity: 1;
		pointer-events: all;
	}
	.filter-toggle-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		padding: 12px 20px;
		background: #3d5a3e;
		color: #fff;
		border: none;
		border-radius: 6px;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.6px;
		text-transform: uppercase;
		cursor: pointer;
		margin-bottom: 16px;
		transition: background 0.2s ease, transform 0.1s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.filter-toggle-btn:active {
		transform: scale(0.97);
		background: #2e4430;
	}
	.filter-sidebar {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 82vw !important;
		max-width: 320px !important;
		height: 100dvh !important;
		z-index: 9999 !important;
		background: #fff !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		transform: translateX(-110%) !important;
		transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
		box-shadow: 8px 0 40px rgba(0, 0, 0, 0.2) !important;
		padding: 0 !important;
		margin: 0 !important;
		border-radius: 0 16px 16px 0 !important;
		display: block !important;
	}
	.filter-sidebar.is-open {
		transform: translateX(0) !important;
	}
	.filter-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 20px;
		border-bottom: 1px solid #f0eeeb;
		background: #fff;
		position: sticky;
		top: 0;
		z-index: 1;
	}
	.filter-drawer-title {
		font-size: 15px;
		font-weight: 700;
		color: #1a1a1a;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		display: flex;
		align-items: center;
		gap: 8px;
	}
	.filter-drawer-close {
		width: 36px;
		height: 36px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #f5f4f2;
		border: none;
		border-radius: 50%;
		cursor: pointer;
		color: #333;
		transition: background 0.2s ease;
		-webkit-tap-highlight-color: transparent;
		flex-shrink: 0;
	}
	.filter-sidebar > *:not(.filter-drawer-header) {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
	body.filter-drawer-open {
		overflow: hidden !important;
		touch-action: none;
	}
}

@media (min-width: 480px) {
	.filter-toggle-btn,
	.filter-overlay,
	.filter-drawer-header {
		display: none !important;
	}
	.filter-drawer-close {
		display: none !important;
	}
}
