/* ==========================================================================
   Panel filtrow listingu wg makiety "Filtry korepetycji v2" (audyt filtrow,
   2026-10). TYLKO WYGLAD: nazwy pol i podpiecia JS z scripts.js zostaja.

   Osobny plik ladowany jako ostatni (Header::set_css_last), bo:
   - musi wygrac z listing.css (te same selektory, tez !important),
   - ?VERSION z .env jest staly, wiec poprawki w istniejacym listing.css nie
     docieraja do przegladarek - nowy plik tak.

   Desktop = od 768 px (ponizej jest pelnoekranowy drawer, ktory zostaje bez
   zmian). Szerokosci kontenera strony (main.css): 1170 px od 1361 px,
   900 px w pasmie 992-1360, 660 px w pasmie 768-991.

   Znaczniki: views/browse.php i views/search.php + Filters_panel (PHP).
   Zachowanie (stan "niezastosowane zmiany", tagi): www/js/filters_panel.js.
   Skrot selektora w komentarzach: L = .offer-filters-wrapper:not(.job-offers):not(.student-filters)
   ========================================================================== */

/* --- tokeny (ds_tokens.css; fallback na wypadek strony bez tokenow) --- */
.offer-filters-wrapper:not(.job-offers):not(.student-filters),
.selected-filters-wrapper {
	--fp-b50:  var(--brand-50,  #ecfaf5);
	--fp-b100: var(--brand-100, #d8f4ec);
	--fp-b200: var(--brand-200, #b5ebdd);
	--fp-b400: var(--brand-400, #5ccdb0);
	--fp-b500: var(--brand-500, #2db994);
	--fp-b600: var(--brand-600, #25a282);
	--fp-b700: var(--brand-700, #1d8a6e);
	--fp-text:  var(--text-primary,   #161e1c);
	--fp-text2: var(--text-secondary, #5a6664);
	--fp-text3: var(--text-tertiary,  #7c8886);
	--fp-line:  var(--border-default, #c8d0ce);
	--fp-line2: var(--border-subtle,  #e2e7e5);
	--fp-hover: var(--bg-surface-2,   #eef1f0);
}

/* Elementy dodane przez te galaz domyslnie (= w drawerze) ukryte. */
.fp-tags,
.fp-footer,
.fp-new,
.fp-hint,
.fp-day-short { display: none; }

/* Stary przycisk "Zastosuj filtry" doklejany przez append_button() do listy
   dni - jego role przejela stopka panelu. W drawerze i tak byl ukryty. */
.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-apply-li { display: none !important; }

/* Tagi stoja w panelu "Wiecej" (na mobile w drawerze) - blok "Tagi" pod
   lista chowamy na kazdej szerokosci (decyzja 2026-10-29: wczesniej na
   mobile zostawal). Klase dostaje tylko, gdy panel faktycznie ma tagi, wiec
   przedmiot bez tagow w panelu blok zachowuje. Linki tagow dalej sa w HTML
   (pigulki w panelu), wiec roboty nic nie traca. */
.fp-sidebar-tags { display: none !important; }


@media (min-width: 768px) {

	/* ======================================================================
	   PASEK: pigulki 44 px, promien 8 px, stan aktywny brand-50/500/700
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) {
		padding: 16px;
		border-color: var(--fp-line2);
		border-radius: 16px;
	}
	/* Pasek to flex z odstepem 10 px, a .row z Bootstrapa dokleja puste ::before
	   i ::after (clearfix). We flexie licza sie jak elementy, wiec przedmiot
	   dostawal przed soba 10 px i stal na prawo od tagow i kolumn panelu. */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .offer-filters-inner.row::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .offer-filters-inner.row::after {
		display: none;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select > span,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .price-range-label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .lf-loc-pill,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .filter-expand {
		min-height: 44px;
		border-radius: 8px;
		border-color: var(--fp-line);
		color: var(--fp-text);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select.changed > span,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select.changed .cs-placeholder,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .price-range-label.is-active,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .lf-location.is-active .lf-loc-pill {
		background: var(--fp-b50) !important;
		border-color: var(--fp-b500) !important;
		color: var(--fp-b700) !important;
		font-weight: 600;
	}
	/* przedmiot: zawsze pelna zielen (glowny wybor, jak w makiecie) */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select.subject.changed > span,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select.subject.changed .cs-placeholder {
		background: var(--fp-b500) !important;
		border-color: var(--fp-b500) !important;
		color: #fff !important;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select.subject.changed > span::after {
		border-right-color: #fff;
		border-bottom-color: #fff;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .cs-select.cs-active > span,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .price-range-label.s-active {
		border-color: var(--fp-b500);
		box-shadow: 0 0 0 3px rgba(45, 185, 148, .18);
	}

	/* "Wiecej": przerywana ramka, przyciszony tekst */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .filter-expand {
		border-color: var(--fp-line) !important;
		color: var(--fp-text2);
		padding: 0 14px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .filter-expand .mf-label { color: var(--fp-text2); }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .filter-expand .mf-badge { background: var(--fp-b500); }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .filter-expand { border-color: var(--fp-b500) !important; }


	/* ======================================================================
	   PANEL "WIECEJ" - siatka z nazwanymi obszarami.
	   Bez row-gap: odstep pionowy daja marginesy sekcji, zeby pusty obszar
	   (brak tagow, brak "Miejsca lekcji") nie zostawial dziury.
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters {
		display: grid !important;
		column-gap: 32px;
		row-gap: 0;
		margin-top: 16px;
		padding-top: 18px;
		padding-bottom: 0;
		border-top: 1px solid var(--fp-line2);
		/* 768-991 (kontener 660 px) */
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"tags tags"
			"other spec"
			"when when"
			"foot foot";
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters.fp-has-place {
		grid-template-areas:
			"tags tags"
			"other spec"
			"place when"
			"foot foot";
	}
	/* bez specjalizacji przy tym przedmiocie */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters.fp-no-spec {
		grid-template-areas:
			"tags tags"
			"other when"
			"foot foot";
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters.fp-no-spec.fp-has-place {
		grid-template-areas:
			"tags tags"
			"other place"
			"when when"
			"foot foot";
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .fp-tags { grid-area: tags; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .mf-col-place { grid-area: place; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .mf-col-when { grid-area: when; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .mf-col-spec { grid-area: spec; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .mf-col-other { grid-area: other; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .fp-footer { grid-area: foot; }

	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters > .mf-col {
		margin: 0 0 24px !important;
		min-width: 0;
	}

	/* --- naglowki kolumn: male, wersaliki; rowno z lewa krawedzia kolumny,
	   tak jak tagi, kafelki i kwadraciki checkboxow (wiersze nizej) --- */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col-title {
		display: flex;
		align-items: center;
		gap: 6px;
		margin: 0 0 6px;
		padding-left: 0;
		font-size: 11px;
		font-weight: 600;
		line-height: 18px;
		letter-spacing: .05em;
		text-transform: uppercase;
		color: var(--fp-text3);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .mf-col-title {
		padding-left: 0;
		margin-bottom: 8px;
	}

	/* --- plakietka "Nowosc" i podpis pod opcja --- */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-new {
		display: inline-flex;
		align-items: center;
		height: 18px;
		padding: 0 8px;
		border-radius: 999px;
		background: var(--fp-b500);
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0;
		text-transform: none;
		vertical-align: middle;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-hint {
		display: block;
		flex: 0 0 100%;
		padding-left: 28px;
		margin-top: 1px;
		font-size: 12px;
		font-weight: 400;
		line-height: 1.3;
		color: var(--fp-text3);
	}


	/* ======================================================================
	   WIERSZE: radia (listy SelectFx: liczba opinii, aktywnosc, miejsce)
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options ul li {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options ul li span {
		gap: 10px;
		padding: 8px 10px !important;
		border-radius: 8px;
		font-size: 14px;
		line-height: 1.35;
		color: var(--fp-text);
		transition: background .12s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options ul li:hover span { background: var(--fp-hover) !important; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options ul li span::before {
		width: 18px;
		height: 18px;
		border: 1.5px solid var(--fp-line);
		background: #fff;
		box-shadow: none;
		transition: border .12s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options ul li.cs-selected span {
		color: var(--fp-text);
		font-weight: 600;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options ul li.cs-selected span::before {
		border: 5px solid var(--fp-b500);
		background: #fff;
		box-shadow: none;
	}


	/* ======================================================================
	   WIERSZE: checkboxy ("Pozostale")
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec .form-group-checkbox,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free {
		display: block;
		padding: 0;
		margin: 0;
		line-height: 1.35;
	}
	/* Zwykly przeplyw tekstu (nie flex): gdy "Nowosc" nie miesci sie obok
	   napisu, zawija sie pod tekst, a nie pod kwadracik checkboxa. */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec .form-group-checkbox label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free label {
		display: block;
		position: relative !important; /* listing.css:620 ma static !important */
		width: 100%;
		box-sizing: border-box;
		padding: 8px 10px 8px 38px;
		border-radius: 8px;
		font-size: 14px;
		line-height: 1.35;
		color: var(--fp-text);
		transition: background .12s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox label:hover,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec .form-group-checkbox label:hover,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free label:hover { background: var(--fp-hover); }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox label .fp-new,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free label .fp-new { margin-left: 4px; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox label .fp-hint,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec .form-group-checkbox label .fp-hint,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free label .fp-hint { padding-left: 0; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other input[type="checkbox"] + label::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec input[type="checkbox"] + label::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free input[type="checkbox"] + label::before {
		position: absolute;
		left: 10px;
		top: 9px;
		width: 18px;
		height: 18px;
		margin: 0;
		box-sizing: border-box;
		border: 1.5px solid var(--fp-line);
		border-radius: 5px;
		background: #fff;
		transition: all .12s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other input[type="checkbox"]:checked + label::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec input[type="checkbox"]:checked + label::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free input[type="checkbox"]:checked + label::before {
		border-color: var(--fp-b500);
		background: var(--fp-b500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
	}


	/* ======================================================================
	   KAFELKI: dni tygodnia (Dostepnosc + Wolne terminy) i pory dnia
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days {
		display: grid !important;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 6px;
		margin: 0 !important;
		padding: 0 !important;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days .form-group-checkbox,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .form-group-checkbox {
		display: block !important;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1 !important;
	}
	/* sam kafelek = etykieta checkboxa */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts label {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		width: 100%;
		height: 40px;
		box-sizing: border-box;
		margin: 0 !important;
		padding: 0 4px !important;
		border: 1px solid var(--fp-line);
		border-radius: 8px;
		background: #fff;
		font-size: 13px;
		font-weight: 500;
		line-height: 1.1 !important;
		color: var(--fp-text);
		text-align: center;
		white-space: nowrap;
		cursor: pointer;
		user-select: none;
		transition: background .12s, border-color .12s, color .12s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts label { height: 52px; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days label::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts label::before {
		content: none !important;
		display: none !important;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days label:hover,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts label:hover {
		border-color: var(--fp-b400);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days input:checked + label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts input:checked + label {
		border-color: var(--fp-b500);
		background: var(--fp-b100);
		color: var(--fp-b700);
		font-weight: 600;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .sch-filter-sub {
		font-size: 11px;
		font-weight: 400;
		color: var(--fp-text3);
		font-variant-numeric: tabular-nums;
	}
	/* skrot na kafelku; pelna nazwa zostaje dla czytnikow ekranu */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-day-short { display: inline; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-day-full {
		position: absolute !important;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}
	/* srodtytuly "Dni tygodnia" / "Pora dnia" i wiersz "Tylko wolne terminy" (makieta v2) */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-sub {
		margin: 0 0 8px;
		font-size: 13px;
		line-height: 18px;
		color: var(--fp-text2);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days + .fp-sub { margin-top: 14px; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts { max-width: 480px; }
	/* -10 px: kwadracik checkboxa rowno z lewa krawedzia kafelkow */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free { margin: 10px 0 0 -10px !important; }

	/* Wiersze checkboxow i radii maja 10 px wewnetrznego odstepu (tlo przy
	   najechaniu). Przesuwamy je o tyle w lewo, zeby kwadracik stal rowno
	   z pigulkami tagow i kafelkami dni - tlo wychodzi wtedy w odstep kolumn. */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-spec .form-group-checkbox {
		margin-left: -10px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters .mf-col .cs-select .cs-options {
		margin-left: -10px !important;
	}


	/* ======================================================================
	   TAGI przedmiotu (gora panelu)
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags {
		display: block;
		margin: 0 0 18px;
		padding: 0 0 18px;
		border-bottom: 1px solid var(--fp-line2);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-head {
		display: flex;
		align-items: baseline;
		flex-wrap: wrap;
		gap: 4px 8px;
		margin: 0 0 10px;
		padding-left: 0;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-title {
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .05em;
		text-transform: uppercase;
		color: var(--fp-text3);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-sub {
		font-size: 13px;
		color: var(--fp-text2);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tag {
		display: inline-flex;
		align-items: center;
		height: 34px;
		padding: 0 12px;
		box-sizing: border-box;
		border: 1px solid var(--fp-line);
		border-radius: 999px;
		background: #fff;
		color: var(--fp-text);
		font-size: 13px;
		font-weight: 500;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
		transition: background .12s, border-color .12s, color .12s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tag:hover,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tag:focus {
		border-color: var(--fp-b500);
		color: var(--fp-text);
		text-decoration: none;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tag.is-active {
		border-color: var(--fp-b500);
		background: var(--fp-b100);
		color: var(--fp-b700);
		font-weight: 600;
	}


	/* ======================================================================
	   STOPKA panelu: [Masz niezastosowane zmiany] [Anuluj zmiany] [Zastosuj filtry]
	   ====================================================================== */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-footer {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 16px;
		padding: 16px 0 0;
		border-top: 1px solid var(--fp-line2);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-dirty-note {
		display: none;
		font-size: 13px;
		color: var(--fp-text2);
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-footer button {
		height: 44px;
		margin: 0;
		border: 0;
		border-radius: 8px;
		font-family: inherit;
		line-height: 1;
		cursor: pointer;
		transition: background .15s;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-revert {
		display: none;
		padding: 0 14px;
		background: transparent;
		color: var(--fp-text2);
		font-size: 14px;
		font-weight: 600;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-revert:hover { background: var(--fp-hover); }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-apply {
		padding: 0 22px;
		background: var(--fp-b500);
		color: #fff;
		font-size: 15px;
		font-weight: 700;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-apply:hover { background: var(--fp-b600); }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters.fp-dirty .fp-dirty-note { display: inline; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .more-filters.fp-dirty .fp-revert { display: inline-block; }


	/* ======================================================================
	   AKTYWNE FILTRY (chipy pod paskiem)
	   ====================================================================== */
	.selected-filters-wrapper { gap: 8px; margin-bottom: 18px; }
	.selected-filters-wrapper::before { color: var(--fp-text2); }
	.selected-filters-wrapper .btn-frame-grey {
		height: 30px;
		gap: 7px;
		padding: 0 6px 0 12px !important;
		border: 0;
		border-radius: 999px;
		background: var(--fp-b100);
		color: var(--fp-b700);
		font-size: 13px;
		font-weight: 500;
	}
	.selected-filters-wrapper .btn-frame-grey:hover { background: var(--fp-b100); border: 0; }
	.selected-filters-wrapper .btn-frame-grey a {
		display: inline-grid;
		place-items: center;
		width: 20px;
		height: 20px;
		border-radius: 50%;
		transition: background .12s;
	}
	.selected-filters-wrapper .btn-frame-grey a:hover { background: var(--fp-b200); }
	.selected-filters-wrapper .btn-frame-grey img.x { width: 10px; height: 10px; opacity: .75; }
	.selected-filters-wrapper .clear-all-filters {
		padding: 0 12px;
		color: var(--fp-text2);
		font-weight: 600;
		text-underline-offset: 2px;
	}
}


/* --- od 992 (kontenery 900 i 1170 px): trzy kolumny jak w makiecie v2
   (kontakt i aktywnosc | termin zajec | specjalizacja). "Miejsce lekcji"
   w panelu (strona miasta) staje pod specjalizacja. Bez specjalizacji
   przy przedmiocie - termin i kontakt (+ miejsce) bez pustej kolumny. --- */
@media (min-width: 992px) {
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
		grid-template-areas:
			"tags tags tags"
			"other when spec"
			"foot foot foot";
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters.fp-has-place {
		grid-template-areas:
			"tags tags tags"
			"other when spec"
			"other when place"
			"foot foot foot";
	}
	/* Bez specjalizacji te same trzy kolumny - trzecia zostaje pusta, zeby
	   kontakt i termin nie rozjezdzaly sie na cala szerokosc panelu. */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters.fp-no-spec {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
		grid-template-areas:
			"tags  tags tags"
			"other when ."
			"foot  foot foot";
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters).exp .more-filters.fp-no-spec.fp-has-place {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
		grid-template-areas:
			"tags tags tags"
			"other when place"
			"foot foot foot";
	}
}


/* ==========================================================================
   DRAWER (<=767 px): kolumny jedna pod druga jak dotad (listing.css); tutaj
   tylko to, co doszlo z nowymi filtrami.
   ========================================================================== */
@media (max-width: 767px) {
	/* Podpis pod opcja ("zalogowani w ciagu 2 dni", "wystawia fakture") -
	   bez niego samo "Ostatnio aktywni" nie mowi, o jaki okres chodzi.
	   Wciecie = kwadracik checkboxa z drawera (22 px) + odstep (10 px). */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .fp-hint,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-hint {
		display: block;
		margin: 2px 0 0 32px;
		font-size: 12px;
		line-height: 1.3;
		color: #7c8886;
	}
	/* listing.css:2000 wyrzuca poza ekran label[for="ll"] i [for="reviews"] - chowal
	   opisy starych list. Teraz to etykiety checkboxow "Ostatnio aktywni" i "Tylko z opiniami". */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox > label[for="ll"],
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-other .form-group-checkbox > label[for="reviews"] {
		position: static !important;
		left: auto !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
	}
	/* srodtytuly w kolumnie "Termin zajec" - jak dawne "Pora dnia" w drawerze */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-sub {
		margin: 14px 0 4px;
		font-size: 12px;
		line-height: 16px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #7c8886;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .mf-col-title + .fp-sub { margin-top: 0; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .sch-filter-sub { color: #7c8886; }

	/* ------------------------------------------------------------------
	   Drawer wg makiety v2 "1b" - te same elementy co na desktopie, w kartach
	   (karty zostaja: listing.css, "kazda sekcja filtra jako KARTA").
	   ------------------------------------------------------------------ */

	/* plakietka "Nowosc" (desktop ma ja w bloku min-width: 768px) */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-new {
		display: inline-flex;
		align-items: center;
		height: 18px;
		margin-left: 6px;
		padding: 0 8px;
		border-radius: 999px;
		background: var(--fp-b500);
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0;
		text-transform: none;
		vertical-align: middle;
	}

	/* tagi przedmiotu - karta z pigulkami, jak pozostale sekcje drawera */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags {
		display: block;
		margin: 0 0 12px;
		padding: 14px;
		border: 1px solid #e8edf0;
		border-radius: 12px;
		background: #fff;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-head { margin: 0 0 10px; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-title {
		display: block;
		font-size: 16px;
		font-weight: 700;
		color: #1f2d3d;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-sub {
		display: block;
		margin-top: 2px;
		font-size: 12px;
		color: #7c8886;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tags-list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tag {
		display: inline-flex;
		align-items: center;
		height: 36px;
		padding: 0 14px;
		box-sizing: border-box;
		border: 1px solid var(--fp-line);
		border-radius: 999px;
		background: #fff;
		color: var(--fp-text);
		font-size: 14px;
		font-weight: 500;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .fp-tag.is-active {
		border-color: var(--fp-b500);
		background: var(--fp-b100);
		color: var(--fp-b700);
		font-weight: 600;
	}

	/* "Termin zajec": dni (7) i pory dnia (3) jako kafelki zamiast listy
	   checkboxow. Selektory mocniejsze niz kwadraciki drawera z listing.css. */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 6px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days .form-group-checkbox,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .form-group-checkbox {
		display: block !important;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1 !important;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days .form-group-checkbox label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .form-group-checkbox label {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		width: 100%;
		height: 44px;
		box-sizing: border-box;
		margin: 0 !important;
		padding: 0 2px !important;
		border: 1px solid var(--fp-line);
		border-radius: 8px;
		background: #fff;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.1 !important;
		color: var(--fp-text);
		text-align: center;
		white-space: nowrap;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .form-group-checkbox label { height: 56px; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days .form-group-checkbox input[type="checkbox"] + label::before,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .form-group-checkbox input[type="checkbox"] + label::before {
		content: none !important;
		display: none !important;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-days .form-group-checkbox input:checked + label,
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .form-group-checkbox input:checked + label {
		border-color: var(--fp-b500);
		background: var(--fp-b100);
		color: var(--fp-b700);
		font-weight: 600;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-parts .sch-filter-sub {
		font-size: 11px;
		font-weight: 400;
		color: #7c8886;
	}
	/* skrot na kafelku, pelna nazwa dla czytnikow ekranu */
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-day-short { display: inline; }
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-day-full {
		position: absolute !important;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}
	.offer-filters-wrapper:not(.job-offers):not(.student-filters) .mf-col-when .fp-free { margin-top: 12px !important; }
}
