/* ==========================================================================
   Gymspiratie zoekblok [gym_lesson_search], bijv. op de homepage
   Zie lib/lesson-filter.php en lib/js/lesson-search.js (live teller). Witte
   kaart, witte velden met blauwe focusring, blauwe knop (rood blijft voor de
   ene hoofdactie op de pagina, zoals "Lid worden"). Kleuren en radii komen
   uit gym-tokens.css.
   ========================================================================== */

.gym-ls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 16px;
	padding: 20px;
	border-radius: var(--gym-radius-md);
	background: var(--gym-surface);
	box-shadow: var(--gym-shadow-card);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.35;
	color: var(--gym-text-body);
}

.gym-ls *,
.gym-ls *::before,
.gym-ls *::after {
	box-sizing: border-box;
}

/* ---- Keuzelijsten -------------------------------------------------------- */

.gym-ls__field {
	display: flex;
	flex: 1 1 200px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.gym-ls__label {
	font-family: var(--global-heading-font-family, inherit);
	font-size: 14px;
	font-weight: 600;
	color: var(--gym-text-heading);
}

.gym-ls .gym-ls__select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid var(--gym-border-input);
	border-radius: var(--gym-radius-sm);
	background: var(--gym-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e5172' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	color: var(--gym-text-body);
	cursor: pointer;
	box-shadow: none;
	transition: border-color var(--gym-dur-fast) var(--gym-ease), box-shadow var(--gym-dur-fast) var(--gym-ease);
}

.gym-ls .gym-ls__select:hover {
	border-color: var(--gym-brand);
}

.gym-ls .gym-ls__select:focus {
	outline: none;
	border-color: var(--gym-brand);
	box-shadow: var(--gym-ring);
}

/* ---- Vinkje "Alleen gratis te bekijken" ---------------------------------- */

.gym-ls__free {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	font-weight: 500;
	color: var(--gym-text-body);
	cursor: pointer;
}

.gym-ls .gym-ls__checkbox {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--gym-brand);
	cursor: pointer;
}

.gym-ls .gym-ls__checkbox:focus-visible {
	outline: none;
	box-shadow: var(--gym-ring);
	border-radius: var(--gym-radius-xs);
}

.gym-ls__free-count {
	font-weight: 400;
	color: var(--gym-text-muted);
	font-variant-numeric: tabular-nums;
}

/* Geen gratis lessen bij deze keuzes: grijs en niet aan te vinken. */
.gym-ls__free.is-disabled,
.gym-ls__free.is-disabled .gym-ls__checkbox {
	color: var(--gym-text-muted);
	cursor: not-allowed;
}

.gym-ls__free.is-disabled > span {
	opacity: 0.7;
}

/* ---- Knop ---------------------------------------------------------------- */

.gym-ls .gym-ls__button {
	flex: 0 0 auto;
	height: 48px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: var(--gym-radius-md);
	background: var(--gym-brand);
	color: var(--gym-white);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: background var(--gym-dur-fast) var(--gym-ease), transform var(--gym-dur-fast) var(--gym-ease);
}

.gym-ls .gym-ls__button:hover {
	background: var(--gym-brand-hover);
	color: var(--gym-white);
}

.gym-ls .gym-ls__button:active {
	transform: translateY(1px);
}

.gym-ls .gym-ls__button:focus-visible {
	outline: none;
	box-shadow: var(--gym-ring);
}

.gym-ls .gym-ls__button:disabled {
	background: var(--gym-gray-300);
	color: var(--gym-white);
	cursor: not-allowed;
	transform: none;
}

/* Tijdens het ophalen van nieuwe aantallen. */
.gym-ls.is-loading .gym-ls__button {
	opacity: 0.8;
}

/* Alleen voor schermlezers: "45 gymlessen gevonden". */
.gym-ls__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Mobiel: alles onder elkaar ------------------------------------------ */

@media (max-width: 600px) {
	.gym-ls {
		gap: 12px;
		padding: 16px;
	}

	.gym-ls__field,
	.gym-ls .gym-ls__button {
		flex-basis: 100%;
	}

	.gym-ls__free {
		min-height: 0;
	}
}
