/* ===========================================================
   CAMPER BLOG GRID – style v1.1
   =========================================================== */

.cf-blog,
.cf-blog * { box-sizing: border-box; }

.cf-blog {
	--cf-radius: 8px;
	--cf-gap: 10px;
	--cf-ink: #ffffff;
	--cf-muted: rgba(255, 255, 255, .82);
	--cf-shadow: 0 10px 30px rgba(15, 23, 42, .12);
	--cf-accent: #f35120;

	font-family: inherit;
	color: #0f172a;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 0 24px;
	padding: 0;
	clear: both;
}

/* ---------- Header ---------- */
.cf-blog__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 0 4px 18px;
}
.cf-blog__title {
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	margin: 0;
	color: #0f172a;
}
.cf-blog__all {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	white-space: nowrap;
}
.cf-blog__all:hover { color: #0f172a; }

.cf-blog__empty {
	padding: 24px;
	text-align: center;
	color: #64748b;
}

/* ===========================================================
   DESKTOP GRID
   =========================================================== */
.cf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	gap: var(--cf-gap);
}

/* ---------- Karta ---------- */
.cf-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--cf-radius);
	background-color: #1e293b;
	background-size: cover;
	background-position: center;
	color: var(--cf-ink);
	text-decoration: none;
	box-shadow: var(--cf-shadow);
	isolation: isolate;
	min-height: 200px;
	transition: box-shadow .3s ease;
}
.cf-card::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0,0,0,0) 30%,
		rgba(0,0,0,.35) 65%,
		rgba(0,0,0,.82) 100%
	);
	z-index: 1;
}
.cf-card:hover {
	box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}

/* ---------- Treść karty ---------- */
.cf-card__body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 18px 20px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cf-card__title {
	font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 600;
	margin: 0;
	color: var(--cf-ink);
	text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.cf-card__excerpt {
	display: none;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cf-muted);
	margin: 0;
}
.cf-card__cta {
	display: none;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	padding: 11px 18px;
	background: var(--cf-accent);
	color: #ffffff;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.cf-card__date {
	display: none !important;
}

/* ---------- Karta wyróżniona (duża) ---------- */
.cf-card--featured {
	grid-column: span 2;
	grid-row: span 2;
}
.cf-card--featured .cf-card__title {
	font-size: clamp(22px, 2.2vw, 32px);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.01em;
	max-width: 80%;
}
.cf-card--featured .cf-card__excerpt {
	display: block;
	max-width: 80%;
}
/* Desktop: brak przycisku CTA na dużej karcie */
.cf-card--featured .cf-card__cta { display: none; }

.cf-card--featured .cf-card__body { padding: 24px 28px; gap: 20px; }
.cf-card--featured::after {
	background: linear-gradient(
		180deg,
		rgba(0,0,0,0) 20%,
		rgba(0,0,0,.45) 60%,
		rgba(0,0,0,.85) 100%
	);
}

/* ===========================================================
   MOBILE / TABLET SLIDER (≤1024px)
   =========================================================== */
.cf-slider {
	display: none;
	position: relative;
	width: 100%;
}

.cf-slider__track {
	display: flex;
	align-items: flex-start;
	gap: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0;
	margin: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.cf-slider__track::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Slajd = pełna szerokość viewport, twarda wysokość (jak v1.18.4 — działało). */
.cf-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	height: 66vw;
	max-height: 460px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	box-sizing: border-box;
	position: relative;
}

/* Karta wypełnia cały slajd */
.cf-slider__slide .cf-card,
.cf-slider__slide .cf-card--featured {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: var(--cf-radius);
	background-size: cover;
	background-position: center;
	grid-column: auto;
	grid-row: auto;
}
.cf-slider__slide .cf-card__body {
	padding: 16px 18px 18px;
	gap: 8px;
}
.cf-slider__slide .cf-card__title,
.cf-slider__slide .cf-card--featured .cf-card__title {
	font-size: clamp(16px, 4.5vw, 22px);
	line-height: 1.25;
	font-weight: 700;
	max-width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cf-slider__slide .cf-card__excerpt { display: none; }
.cf-slider__slide .cf-card__cta { display: none; }

/* Mocniejszy gradient pod tekstem — czytelność na jasnych zdjęciach */
.cf-slider__slide .cf-card::after {
	background: linear-gradient(
		180deg,
		rgba(0,0,0,0) 35%,
		rgba(0,0,0,.45) 65%,
		rgba(0,0,0,.88) 100%
	);
}

/* Kontrolki: strzałki ukryte, kropki pod sliderem */
.cf-slider__btn { display: none !important; }

.cf-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
}
.cf-slider__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}
.cf-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: #cbd5e1;
	cursor: pointer;
	transition: width .25s ease, background .25s ease;
}
.cf-slider__dot[aria-current="true"] {
	width: 26px;
	background: var(--cf-accent);
}

/* ===========================================================
   RESPONSIVE — przełącznik grid ↔ slider przy 1024px
   =========================================================== */
@media (min-width: 1025px) {
	.cf-grid   { display: grid; }
	.cf-slider { display: none; }
}
@media (max-width: 1024px) {
	.cf-grid   { display: none !important; }
	.cf-slider { display: block !important; }
	.cf-blog__title { font-size: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.cf-card,
	.cf-slider__track,
	.cf-slider__dot { transition: none; }
	.cf-slider__track { scroll-behavior: auto; }
}

/* =========================================================
   v1.3 — Camper Blog Row [camper_blog_row]
   ========================================================= */
.cf-row,
.cf-row * { box-sizing: border-box; }

.cf-row {
	width: 100%;
	font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
}

/* Nagłówek */
.cf-row__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 0 4px 18px;
}
.cf-row__title {
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	margin: 0;
}
.cf-row__all {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	white-space: nowrap;
}
.cf-row__all:hover { color: #0f172a; }

.cf-row__empty {
	padding: 30px;
	text-align: center;
	color: #64748b;
}

/* GRID ===================================================== */
.cf-row__inner {
	display: grid;
	gap: 20px;
	position: relative;
}
.cf-row__track {
	display: contents; /* na desktop slidy są dziećmi gridu */
}
.cf-row--cols-2 .cf-row__inner { grid-template-columns: repeat(2, 1fr); }
.cf-row--cols-3 .cf-row__inner { grid-template-columns: repeat(3, 1fr); }
.cf-row--cols-4 .cf-row__inner { grid-template-columns: repeat(4, 1fr); }

/* Karta wpisu */
.cf-row__item {
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-decoration: none;
	color: inherit;
	transition: transform .3s ease;
}
.cf-row__item:hover { transform: translateY(-3px); }

.cf-row__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 11;
	border-radius: 12px;
	overflow: hidden;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
	transition: box-shadow .3s ease;
}
.cf-row__item:hover .cf-row__media {
	box-shadow: 0 18px 40px rgba(15, 23, 42, .15);
}

.cf-row__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #fbbf24;
	color: #0f172a;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 8px;
	line-height: 1.2;
}

.cf-row__item-title {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	padding: 0 2px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Kropki (mobile carousel) */
.cf-row__dots { display: none; }

/* RESPONSIVE =============================================== */
@media (max-width: 1024px) {
	.cf-row--cols-4 .cf-row__inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
	.cf-row--cols-3 .cf-row__inner,
	.cf-row--cols-4 .cf-row__inner { grid-template-columns: repeat(2, 1fr); }
}

/* MOBILE: GRID (2 kolumny – zachowuje 2x2 dla 4 wpisów) */
@media (max-width: 560px) {
	.cf-row--mobile-grid .cf-row__inner {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px;
	}
	.cf-row--mobile-grid .cf-row__item-title {
		font-size: 14px;
	}
	.cf-row--mobile-grid .cf-row__badge {
		font-size: 10px;
		padding: 4px 9px;
		top: 8px;
		left: 8px;
	}
}

/* MOBILE: CAROUSEL */
@media (max-width: 720px) {
	.cf-row--mobile-carousel .cf-row__inner {
		display: block;
	}
	.cf-row--mobile-carousel .cf-row__track {
		display: flex;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		padding: 4px 4px 12px;
		margin: 0 -4px;
		scrollbar-width: none;
	}
	.cf-row--mobile-carousel .cf-row__track::-webkit-scrollbar { display: none; }
	.cf-row--mobile-carousel .cf-row__item {
		flex: 0 0 80%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}
	.cf-row--mobile-carousel .cf-row__dots {
		display: flex;
		justify-content: center;
		gap: 6px;
		margin-top: 10px;
	}
	.cf-row__dot {
		width: 6px;
		height: 6px;
		border: 0;
		border-radius: 999px;
		background: rgba(15, 23, 42, .22);
		cursor: pointer;
		padding: 0;
		transition: width .25s ease, background .25s ease;
	}
	.cf-row__dot.is-active {
		width: 22px;
		background: #0f172a;
	}
}

/* =========================================================
   v1.4 — Camper Tags [camper_tags]
   ========================================================= */
.cf-tags,
.cf-tags * { box-sizing: border-box; }

.cf-tags {
	width: 100%;
	font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
}

.cf-tags__heading {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 0 0 16px;
	color: #0f172a;
}

.cf-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cf-tags--align-center .cf-tags__list { justify-content: center; }
.cf-tags--align-right  .cf-tags__list { justify-content: flex-end; }

.cf-tags__empty,
.cf-tags__error {
	padding: 16px;
	text-align: center;
	color: #64748b;
}
.cf-tags__error { color: #b91c1c; }

/* Pigułka */
.cf-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	padding: 14px 28px;
	border: 1px solid #d4d8e0;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .03);

	font-size: 16px;
	font-weight: 500;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;

	transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.cf-tag:hover {
	border-color: #0f172a;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
	transform: translateY(-1px);
}
.cf-tag:active {
	transform: translateY(0);
}
.cf-tag--static { cursor: default; }
.cf-tag--static:hover {
	border-color: #d4d8e0;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
	transform: none;
}

.cf-tag__count {
	font-weight: 600;
	color: #94a3b8;
	font-size: .9em;
}

/* Rozmiary */
.cf-tags--size-sm .cf-tag {
	padding: 9px 18px;
	border-radius: 10px;
	font-size: 14px;
}
.cf-tags--size-lg .cf-tag {
	padding: 18px 34px;
	border-radius: 16px;
	font-size: 18px;
}

/* Responsywność */
@media (max-width: 560px) {
	.cf-tags__list { gap: 8px; }
	.cf-tag {
		padding: 11px 20px;
		font-size: 15px;
	}
	.cf-tags--size-lg .cf-tag {
		padding: 14px 24px;
		font-size: 16px;
	}
}

/* =========================================================
   v1.5 — Camper Blog Overlay [camper_blog_overlay]
   ========================================================= */
.cf-overlay,
.cf-overlay * { box-sizing: border-box; }

.cf-overlay {
	width: 100%;
	font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
	--cf-overlay-h: 220px;
}

.cf-overlay__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 0 4px 16px;
}
.cf-overlay__title {
	font-size: clamp(16px, 1.8vw, 22px);
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	margin: 0;
}
.cf-overlay__all {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	white-space: nowrap;
}
.cf-overlay__all:hover { color: #0f172a; }

/* Grid */
.cf-overlay__grid {
	display: grid;
	gap: 20px;
}
.cf-overlay--cols-2 .cf-overlay__grid { grid-template-columns: repeat(2, 1fr); }
.cf-overlay--cols-3 .cf-overlay__grid { grid-template-columns: repeat(3, 1fr); }
.cf-overlay--cols-4 .cf-overlay__grid { grid-template-columns: repeat(4, 1fr); }
.cf-overlay--cols-5 .cf-overlay__grid { grid-template-columns: repeat(5, 1fr); }
.cf-overlay--cols-6 .cf-overlay__grid { grid-template-columns: repeat(6, 1fr); }

/* Karta */
.cf-overlay__item {
	position: relative;
	display: block;
	height: var(--cf-overlay-h);
	border-radius: 12px;
	overflow: hidden;
	background-color: #1e293b;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	color: #fff;
	transition: transform .3s ease, box-shadow .3s ease;
}
.cf-overlay__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.cf-overlay__gradient {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 70%;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, .35) 45%,
		rgba(0, 0, 0, .82) 100%
	);
	pointer-events: none;
}

.cf-overlay__item-title {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tablet */
@media (max-width: 1100px) {
	.cf-overlay--cols-5 .cf-overlay__grid,
	.cf-overlay--cols-6 .cf-overlay__grid { grid-template-columns: repeat(3, 1fr); }
	.cf-overlay--cols-4 .cf-overlay__grid { grid-template-columns: repeat(3, 1fr); }

	.cf-overlay--tablet-1 .cf-overlay__grid { grid-template-columns: 1fr !important; }
	.cf-overlay--tablet-2 .cf-overlay__grid { grid-template-columns: repeat(2, 1fr) !important; }
	.cf-overlay--tablet-3 .cf-overlay__grid { grid-template-columns: repeat(3, 1fr) !important; }
	.cf-overlay--tablet-4 .cf-overlay__grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Mobile */
@media (max-width: 720px) {
	.cf-overlay__item {
		height: calc(var(--cf-overlay-h) * .85);
	}
	.cf-overlay__item-title {
		font-size: 13px;
		left: 14px;
		right: 14px;
		bottom: 14px;
	}

	/* Domyślnie 2 kolumny na mobile (jak na screenie po skalowaniu) */
	.cf-overlay--mobile-grid .cf-overlay__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.cf-overlay--mobile-grid.cf-overlay--mcols-1 .cf-overlay__grid {
		grid-template-columns: 1fr !important;
	}
	.cf-overlay--mobile-grid.cf-overlay--mcols-2 .cf-overlay__grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.cf-overlay--mobile-grid.cf-overlay--mcols-3 .cf-overlay__grid {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 8px;
	}
	.cf-overlay--mobile-grid.cf-overlay--mcols-3 .cf-overlay__item-title {
		font-size: 11px;
		left: 10px; right: 10px; bottom: 10px;
	}

	/* Carousel na mobile */
	.cf-overlay--mobile-carousel .cf-overlay__grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		padding: 4px 4px 12px;
		margin: 0 -4px;
		scrollbar-width: none;
	}
	.cf-overlay--mobile-carousel .cf-overlay__grid::-webkit-scrollbar { display: none; }
	.cf-overlay--mobile-carousel .cf-overlay__item {
		flex: 0 0 80%;
		scroll-snap-align: center;
	}
}

/* =========================================================
   v1.6 — Galeria wpisu [camper_gallery]
   ========================================================= */
.cf-gallery,
.cf-gallery * { box-sizing: border-box; }

.cf-gallery {
	font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	display: block;
	width: 100%;
	margin: 24px 0;
	clear: both;
}
.cf-gallery__heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #0f172a;
}

/* Układ AUTO: 1 duże + siatka */
.cf-gallery__split {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 8px;
	align-items: stretch;
}
.cf-gallery__main {
	display: block;
	width: 100%;
	min-height: 420px;
	border-radius: 12px;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
	cursor: zoom-in;
	transition: transform .3s ease, box-shadow .3s ease;
}
.cf-gallery__main:hover {
	transform: scale(1.005);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}
.cf-gallery__thumbs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
	gap: 8px;
}
.cf-gallery__thumb {
	display: block;
	width: 100%;
	min-height: 134px;
	border-radius: 10px;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
	position: relative;
	cursor: zoom-in;
	transition: transform .3s ease;
}
.cf-gallery__thumb:hover { transform: scale(1.01); }
.cf-gallery__thumb--more::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(15, 23, 42, .55);
	border-radius: 10px;
}
.cf-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	z-index: 1;
	letter-spacing: .01em;
}

.cf-gallery__hidden { display: none !important; }

/* Układ GRID — wszystkie zdjęcia równe kwadraty */
.cf-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.cf-gallery__grid-item {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
	cursor: zoom-in;
	transition: transform .3s ease;
}
.cf-gallery__grid-item:hover { transform: scale(1.02); }

/* Układ STRIP — poziomy pasek przewijany */
.cf-gallery__strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 6px;
}
.cf-gallery__strip-item {
	flex: 0 0 220px;
	height: 160px;
	border-radius: 10px;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
	scroll-snap-align: start;
	cursor: zoom-in;
}

/* Źródło */
.cf-gallery__source {
	margin: 14px 0 0;
	font-size: 13px;
	color: #64748b;
}
.cf-gallery__source span { color: #0f172a; font-weight: 600; }

/* Mobile */
@media (max-width: 720px) {
	.cf-gallery__split {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.cf-gallery__main { min-height: 240px; }
	.cf-gallery__thumbs {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto;
		gap: 6px;
	}
	.cf-gallery__thumb { min-height: 88px; }
	.cf-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.cf-gallery__more { font-size: 16px; }
}

/* =========================================================
   Lightbox
   ========================================================= */
.cf-lb {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .92);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}
.cf-lb.is-open { display: flex; }
.cf-lb__img {
	max-width: 92vw;
	max-height: 85vh;
	border-radius: 8px;
	display: block;
	background: #fff;
	border: 2px solid #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	user-select: none;
	box-sizing: border-box;
}
.cf-lb__btn {
	position: absolute;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	transition: background .2s ease;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.cf-lb__btn:hover { background: rgba(255, 255, 255, .25); }
.cf-lb__close { top: 20px; right: 20px; }
.cf-lb__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.cf-lb__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.cf-lb__counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	background: rgba(255, 255, 255, .12);
	padding: 6px 14px;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
@media (max-width: 720px) {
	.cf-lb__btn { width: 40px; height: 40px; font-size: 20px; }
	.cf-lb__close { top: 14px; right: 14px; }
	.cf-lb__prev  { left: 8px; }
	.cf-lb__next  { right: 8px; }
}

/* =========================================================
   v1.6.1 — Nowy układ AUTO: 2 kolumny (2 + 3 zdjęcia)
   ========================================================= */

/* Ukrywamy stare elementy, gdyby gdzieś zostały */
.cf-gallery--auto .cf-gallery__split,
.cf-gallery--auto .cf-gallery__main,
.cf-gallery--auto .cf-gallery__thumbs { display: none; }

/* Galeria = kwadrat. Lewa kolumna 2 zdjęcia, prawa 3 — pełna wysokość. */
.cf-gallery__cols {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;        /* desktop: kwadrat z szerokości kontenera */
}
/* Wewnętrzny grid wypełnia kwadrat absolutnie */
.cf-gallery__cols > .cf-gallery__col {
	position: absolute;
	top: 0;
	bottom: 0;
	width: calc(50% - 4px);     /* połowa minus pół gapu */
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cf-gallery__col--left  { left: 0; }
.cf-gallery__col--right { right: 0; }

/* Kafelki dzielą wysokość kolumny równo — flex:1 daje im równe części */
.cf-gallery__tile {
	display: block;
	flex: 1 1 0;
	width: 100%;
	min-height: 0;
	border-radius: 10px;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
	position: relative;
	cursor: zoom-in;
	transition: opacity .15s ease;
}
.cf-gallery__tile:hover { opacity: .92; }

.cf-gallery__tile--more::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(15, 23, 42, .55);
	border-radius: 10px;
}
.cf-gallery__cols .cf-gallery__more {
	position: absolute; inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	z-index: 1;
}

/* Mobile: aspect-ratio bywa zawodne — wymuszamy kwadrat twardą wysokością opartą o szerokość ekranu.
   Galeria zajmuje pełną szerokość viewport minus typowy padding sekcji (~40px). */
@media (max-width: 768px) {
	.cf-gallery__cols {
		aspect-ratio: auto;
		height: calc(100vw - 40px);   /* kwadrat = szerokość ekranu (pomniejszona o padding) */
	}
}

/* Wąskie ekrany — tylko mniejszy gap/font, układ kwadratu ZOSTAJE */
@media (max-width: 560px) {
	.cf-gallery__cols > .cf-gallery__col { gap: 5px; width: calc(50% - 2.5px); }
	.cf-gallery__more { font-size: 14px; }
}

/* =========================================================
   v1.7 — [camper_blog_archive] — grid wpisów z paginacją
   ========================================================= */
.cf-archive {
	max-width: 1200px;
	margin: 0 auto;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.cf-archive__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);   /* default */
}
.cf-archive--cols-1 .cf-archive__grid { grid-template-columns: 1fr; }
.cf-archive--cols-2 .cf-archive__grid { grid-template-columns: repeat(2, 1fr); }
.cf-archive--cols-3 .cf-archive__grid { grid-template-columns: repeat(3, 1fr); }
.cf-archive--cols-4 .cf-archive__grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.cf-archive--cols-3 .cf-archive__grid,
	.cf-archive--cols-4 .cf-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.cf-archive__grid { grid-template-columns: 1fr !important; }
	.cf-archive--mcols-2 .cf-archive__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}

.cf-archive__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	transition: all .2s ease;
}
.cf-archive__card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
	transform: translateY(-2px);
}

.cf-archive__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: #e2e8f0 center / cover;
	position: relative;
	overflow: hidden;
}
.cf-archive__thumb::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.4) 100%);
	opacity: 0;
	transition: opacity .2s ease;
}
.cf-archive__card:hover .cf-archive__thumb::after {
	opacity: 1;
}

.cf-archive__badge {
	position: absolute;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.cf-archive__badge--featured {
	top: 12px;
	left: 12px;
	background: #fbbf24;
	color: #131313;
}
.cf-archive__badge--cat {
	bottom: 12px;
	left: 12px;
	background: #475569;
	color: #fff;
}
/* Kolory per slug kategorii — można nadpisać */
.cf-cat-aktualnosci  { background: #2563eb !important; }
.cf-cat-porady       { background: #16a34a !important; }
.cf-cat-poradniki    { background: #16a34a !important; }
.cf-cat-recenzje     { background: #ea580c !important; }
.cf-cat-podroze      { background: #0891b2 !important; }
.cf-cat-relacje      { background: #0891b2 !important; }
.cf-cat-newsy        { background: #7c3aed !important; }
.cf-cat-wydarzenia   { background: #db2777 !important; }

.cf-archive__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}
.cf-archive__meta {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.cf-archive__title {
	font-size: 18px;
	font-weight: 700;
	color: #131313;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.cf-archive__title a {
	color: inherit;
	text-decoration: none;
}
.cf-archive__title a:hover { color: #1e3a5f; }

.cf-archive__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #64748b;
	margin: 0;
}

.cf-archive__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	color: #1e3a5f;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: gap .2s ease, color .2s ease;
	align-self: flex-start;
}
.cf-archive__more:hover {
	color: #f35120;
	gap: 10px;
}
.cf-archive__more svg { transition: transform .2s ease; }

/* Paginacja */
.cf-archive__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	flex-wrap: wrap;
}
.cf-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #131313;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .15s ease;
}
.cf-page:hover {
	background: #f35120;
	color: #fff;
	border-color: #f35120;
}
.cf-page--current {
	background: #f35120;
	color: #fff;
	border-color: #f35120;
	cursor: default;
}
.cf-page--current:hover {
	background: #B82B00;
	border-color: #B82B00;
}
.cf-page--dots {
	border: 0;
	background: transparent;
	color: #94a3b8;
	pointer-events: none;
}

/* Empty state */
.cf-archive__empty {
	text-align: center;
	padding: 60px 20px;
	color: #64748b;
}
.cf-archive__empty svg { color: #cbd5e1; margin-bottom: 16px; }
.cf-archive__empty p { font-size: 15px; margin: 0; }

/* =========================================================
   v1.7 — [camper_categories]
   ========================================================= */
.cf-categories {
	max-width: 1200px;
	margin: 0 auto;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* --- TILES --- */
.cf-categories--tiles .cf-categories__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
}
.cf-categories--cols-1 .cf-categories__grid { grid-template-columns: 1fr; }
.cf-categories--cols-2 .cf-categories__grid { grid-template-columns: repeat(2, 1fr); }
.cf-categories--cols-3 .cf-categories__grid { grid-template-columns: repeat(3, 1fr); }
.cf-categories--cols-4 .cf-categories__grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.cf-categories--cols-3 .cf-categories__grid,
	.cf-categories--cols-4 .cf-categories__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.cf-categories--tiles .cf-categories__grid { grid-template-columns: 1fr; }
}

.cf-cat-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all .2s ease;
}
.cf-cat-tile:hover {
	border-color: #cbd5e1;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
	transform: translateY(-2px);
}
.cf-cat-tile__img {
	aspect-ratio: 16 / 9;
	background: #f1f5f9 center / cover;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
}
.cf-cat-tile__body {
	padding: 16px 18px;
}
.cf-cat-tile__name {
	font-size: 16px;
	font-weight: 700;
	color: #131313;
	margin: 0 0 4px;
	letter-spacing: -.01em;
}
.cf-cat-tile__count {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

/* --- PILLS --- */
.cf-categories--pills .cf-categories__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cf-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	text-decoration: none;
	color: #131313;
	font-size: 14px;
	font-weight: 600;
	transition: all .15s ease;
}
.cf-cat-pill:hover {
	background: #1e3a5f;
	color: #fff;
	border-color: #1e3a5f;
}
.cf-cat-pill__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	transition: all .15s ease;
}
.cf-cat-pill:hover .cf-cat-pill__count {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}

/* --- LIST --- */
.cf-categories--list .cf-categories__list {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}
.cf-categories--list li {
	border-bottom: 1px solid #f1f5f9;
}
.cf-categories--list li:last-child { border-bottom: 0; }

.cf-cat-list-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 18px;
	text-decoration: none;
	color: #131313;
	transition: all .15s ease;
}
.cf-cat-list-item:hover {
	background: #f8fafc;
}
.cf-cat-list-item:hover .cf-cat-list-item__arrow {
	transform: translateX(3px);
	color: #f35120;
}
.cf-cat-list-item__icon {
	color: #1e3a5f;
	flex-shrink: 0;
}
.cf-cat-list-item__name {
	font-size: 15px;
	font-weight: 600;
	flex: 1;
}
.cf-cat-list-item__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 8px;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.cf-cat-list-item__arrow {
	color: #cbd5e1;
	transition: transform .2s ease, color .2s ease;
}

/* =========================================================
   v1.7.1 — Wariant WIDGET (sidebar) dla [camper_categories]
   ========================================================= */
.cf-categories--widget {
	max-width: 100%;
}
.cf-categories--widget .cf-categories__list {
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}
.cf-categories--widget .cf-categories__list li {
	border-bottom: 1px solid #e2e8f0;
}
.cf-categories--widget .cf-categories__list li:first-child {
	border-top: 1px solid #e2e8f0;
}
.cf-categories--widget .cf-cat-list-item {
	padding: 10px 4px;
	font-size: 14px;
	gap: 8px;
}
.cf-categories--widget .cf-cat-list-item:hover {
	background: transparent;
}
.cf-categories--widget .cf-cat-list-item:hover .cf-cat-list-item__name {
	color: #f35120;
}
.cf-categories--widget .cf-cat-list-item__name {
	font-size: 14px;
	font-weight: 500;
	color: #131313;
	transition: color .15s ease;
}
.cf-categories--widget .cf-cat-list-item__count {
	background: transparent;
	color: #94a3b8;
	min-width: 0;
	padding: 0;
	font-weight: 500;
	font-size: 13px;
}
.cf-categories--widget .cf-cat-list-item__count::before { content: "("; }
.cf-categories--widget .cf-cat-list-item__count::after  { content: ")"; }
.cf-categories--widget .cf-cat-list-item__arrow {
	width: 14px;
	height: 14px;
}

/* =========================================================
   v1.8 — [camper_categories_tree] — drzewko kategorii
   ========================================================= */
.cf-cat-tree {
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	color: #131313;
	max-width: 100%;
}
.cf-cat-tree__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	letter-spacing: -.01em;
	color: #131313;
}

.cf-cat-tree__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cf-cat-tree__list--depth-0 > .cf-cat-tree__item {
	border-bottom: 1px solid #f1f5f9;
}
.cf-cat-tree__list--depth-0 > .cf-cat-tree__item:last-child {
	border-bottom: 0;
}

/* Wcięte poziomy */
.cf-cat-tree__list--depth-1 { padding-left: 22px; border-left: 1px solid #e2e8f0; margin-left: 10px; }
.cf-cat-tree__list--depth-2 { padding-left: 22px; border-left: 1px solid #e2e8f0; margin-left: 10px; }

/* Zwijanie: dzieci ukryte gdy item NIE jest expanded */
.cf-cat-tree__item:not(.is-expanded) > .cf-cat-tree__list {
	display: none;
}

/* Wiersz */
.cf-cat-tree__row {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
}

/* Toggle (chevron) */
.cf-cat-tree__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #64748b;
	border-radius: 4px;
	flex-shrink: 0;
	transition: background .15s ease, color .15s ease;
}
.cf-cat-tree__toggle:hover {
	background: #f1f5f9;
	color: #131313;
}
.cf-cat-tree__chevron {
	transition: transform .2s ease;
}
.cf-cat-tree__item.is-expanded > .cf-cat-tree__row > .cf-cat-tree__toggle .cf-cat-tree__chevron {
	transform: rotate(90deg);
}

/* Bullet (gdy brak dzieci) */
.cf-cat-tree__bullet {
	display: inline-block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	position: relative;
}
.cf-cat-tree__bullet::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #cbd5e1;
}

/* Link */
.cf-cat-tree__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 1;
	padding: 2px 6px;
	border-radius: 6px;
	color: #131313;
	text-decoration: none;
	font-size: 14px;
	transition: background .15s ease, color .15s ease;
	min-width: 0;
}
.cf-cat-tree__link:hover {
	background: #f8fafc;
	color: #f35120;
}
.cf-cat-tree__name {
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cf-cat-tree__count {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}
.cf-cat-tree__count::before { content: "("; }
.cf-cat-tree__count::after  { content: ")"; }

/* Aktualna kategoria — wyróżniona pomarańczowo + pogrubiona */
.cf-cat-tree__item.is-current > .cf-cat-tree__row > .cf-cat-tree__link {
	color: #f35120;
	background: #fff5f0;
}
.cf-cat-tree__item.is-current > .cf-cat-tree__row > .cf-cat-tree__link .cf-cat-tree__name {
	font-weight: 700;
}
.cf-cat-tree__item.is-current > .cf-cat-tree__row > .cf-cat-tree__link .cf-cat-tree__count {
	color: #f35120;
}

/* Ścieżka do aktualnej (rodzice) — lekkie pogrubienie */
.cf-cat-tree__item.is-in-path:not(.is-current) > .cf-cat-tree__row > .cf-cat-tree__link .cf-cat-tree__name {
	font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
	.cf-cat-tree__list--depth-1,
	.cf-cat-tree__list--depth-2 {
		padding-left: 16px;
		margin-left: 8px;
	}
	.cf-cat-tree__link {
		font-size: 13px;
	}
}

/* =========================================================
   v1.9 — [camper_tags_tree] — drobny override: bullet jako #
   ========================================================= */
.cf-cat-tree__bullet--tag {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 700;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}
.cf-cat-tree__bullet--tag::before {
	display: none !important;
}
.cf-tag-tree .cf-cat-tree__item.is-current .cf-cat-tree__bullet--tag {
	color: #f35120;
}

/* =========================================================
   v1.10 — [camper_post_intro] + [camper_post_thumb]
   ========================================================= */
.cf-post-intro {
	max-width: 800px;
	margin: 0 auto 20px;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #131313;
}
.cf-post-intro p:first-child { margin-top: 0; }
.cf-post-intro p:last-child  { margin-bottom: 0; }

.cf-post-thumb {
	margin: 0 0 20px;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.cf-post-thumb img {
	width: 100%;
	/* CF-27: klient prosił o mniej płaskie zdjęcie (było 16:9) — kadr 3:4 (portret). */
	aspect-ratio: 3 / 4;
	height: auto;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 8px;
}
.cf-post-thumb__source {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: #64748b;
	font-style: italic;
	text-align: right;
}

/* =========================================================
   v1.10 — Badge tylko gwiazdka (bez tekstu "Wyróżnione")
   ========================================================= */
.cf-row__badge--star,
.cf-archive__badge--star {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	font-size: 16px !important;
	line-height: 1 !important;
	background: #fbbf24 !important;
	color: #131313 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2) !important;
	font-weight: 700 !important;
}

/* =========================================================
   v1.12 — [camper_post_source]
   ========================================================= */
.cf-post-source {
	display: block;
	margin: -10px 0 16px;
	font-size: 12px;
	color: #64748b;
	font-style: italic;
	text-align: right;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* =========================================================
   v1.15 — Sparkle SVG zamiast ★
   ========================================================= */
.cf-sparkle {
	width: 20px;
	height: 20px;
	display: block;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}
.cf-row__badge--star,
.cf-archive__badge--star {
	overflow: hidden;
}
