/**
 * Filter bar. Token-driven. Architecture note: the form is a plain block
 * today; a future off-canvas panel wraps `.rb-filters` unchanged.
 */

.rb-filters {
	padding: var(--rb-space-5);
	background: var(--rb-surface);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-md);
}

.rb-filters__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rb-space-4);
}

.rb-filters__field--wide {
	grid-column: span 2;
}

.rb-filters__field label {
	display: block;
	margin-bottom: var(--rb-space-1);
	font-size: 13px;
	font-weight: 500;
	color: var(--rb-text-secondary);
}

.rb-filters__field input[type="search"],
.rb-filters__field select {
	width: 100%;
	min-height: 44px;
	padding: 0 var(--rb-space-3);
	border: 1px solid var(--rb-border-input);
	border-radius: var(--rb-radius-sm);
	background: var(--rb-bg);
	color: var(--rb-text);
	font-size: 15px;
}

.rb-filters__field--check {
	display: flex;
	align-items: flex-end;
	padding-bottom: var(--rb-space-3);
}
.rb-filters__field--check label {
	display: inline-flex;
	align-items: center;
	gap: var(--rb-space-2);
	font-size: 14px;
	color: var(--rb-text);
	cursor: pointer;
	margin: 0;
	min-height: 44px;
}
.rb-filters__field--check input {
	width: 18px;
	height: 18px;
	accent-color: var(--rb-primary);
}

.rb-filters__actions {
	display: flex;
	align-items: center;
	gap: var(--rb-space-4);
	margin-top: var(--rb-space-4);
}

/* html .elementor-kit-6 prefix (Phase 27.2): this is a real `<button>`
   element, and Elementor's own Kit CSS sets `.elementor-kit-6 button`
   (a class+TAG selector, (0,1,1)) — one step more specific than a
   bare class selector like `.rb-filters__submit` alone (0,1,0), so
   the Kit's Burgundy button_background_color was winning. Confirmed
   live via matched-rule inspection before adding this, not guessed.
   Same fix pattern already established elsewhere in this file set. */
html .elementor-kit-6 .rb-filters__submit {
	min-height: 48px;
	padding: 0 var(--rb-space-6);
	border: 0;
	border-radius: var(--rb-radius-md);
	background: var(--rb-secondary);
	color: var(--rb-text-invert);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background var(--rb-duration-fast) var(--rb-ease);
}
html .elementor-kit-6 .rb-filters__submit:hover {
	background: var(--rb-text);
}

.rb-filters__reset {
	color: var(--rb-text-secondary);
	font-size: 14px;
	text-decoration: underline;
}
.rb-filters__reset:hover {
	color: var(--rb-primary);
}

@media (max-width: 1024px) {
	.rb-filters__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rb-filters__grid {
		grid-template-columns: 1fr;
	}
	.rb-filters__field--wide {
		grid-column: auto;
	}
	.rb-filters__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}
