/* Custom Filter for Avada */

.cf {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.cf__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: end;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.02);
}

.cf__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1 1 180px;
	min-width: 160px;
}

.cf__label {
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
}

.cf__select {
	width: 100%;
	padding: 0.5rem 0.6rem;
	font-size: 0.95rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #fff;
	line-height: 1.3;
}

.cf__select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.cf__actions {
	display: flex;
	align-items: end;
	gap: 0.5rem;
}

.cf__apply,
.cf__reset {
	padding: 0.5rem 0.9rem;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.15s ease, opacity 0.15s ease;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.cf__apply {
	background: #1f1f1f;
	color: #fff;
	border-color: #1f1f1f;
	font-weight: 600;
}

.cf__apply:hover {
	background: #000;
}

.cf__apply:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cf__reset {
	background: none;
}

.cf__reset:hover {
	background: rgba(0, 0, 0, 0.05);
}

.cf__status {
	font-size: 0.85rem;
	color: rgba(0, 0, 0, 0.6);
	min-height: 1.2em;
}

.cf__results {
	transition: opacity 0.2s ease;
}

.cf__results.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.cf__grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(var(--cf-cols, 3), 1fr);
}

@media (max-width: 900px) {
	.cf__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 540px) {
	.cf__grid {
		grid-template-columns: 1fr;
	}
}

.cf__card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cf__card-link {
	text-decoration: none;
	color: inherit;
}

.cf__card-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.cf__card-title {
	font-size: 1.05rem;
	margin: 0.5rem 0 0;
	line-height: 1.3;
}

.cf__card-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.7);
}

.cf__empty {
	padding: 2rem;
	text-align: center;
	color: rgba(0, 0, 0, 0.6);
	border: 1px dashed rgba(0, 0, 0, 0.15);
	border-radius: 6px;
}
