/* ===== Elementor Filtered Posts ===== */

.efp-wrapper {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 36px;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #2b2b2b;
}

@media (max-width: 860px) {
	.efp-wrapper {
		grid-template-columns: 1fr;
	}
}

/* ----- Sidebar ----- */
.efp-sidebar {
	background: #f5f1ea;
	padding: 24px 22px 26px;
	border-radius: 10px;
	align-self: start;
}

.efp-filters-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 22px;
	color: #8a8275;
	text-transform: uppercase;
}

/* ===== Slider (HORIZONTAL — wymuszone) ===== */
.efp-slider {
	margin: 4px 0 28px !important;
	padding: 0 !important;
	width: 100% !important;
}

.efp-slider-track {
	position: relative !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	width: 100% !important;
	padding-top: 4px !important;
	box-sizing: border-box !important;
}

.efp-slider-line,
.efp-slider-fill {
	position: absolute !important;
	top: 10px !important;
	height: 2px !important;
	border-radius: 2px !important;
	pointer-events: none !important;
	margin: 0 !important;
}

.efp-slider-line {
	left: 0 !important;
	right: 0 !important;
	background: #ddd5c6 !important;
}

.efp-slider-fill {
	left: 0 !important;
	width: 0 !important;
	background: #e8743b !important;
	transition: width 0.3s ease, left 0.3s ease !important;
	z-index: 1 !important;
}

.efp-slider-step {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	flex: 1 1 0 !important;
	min-width: 0 !important;
	width: auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 4px !important;
	cursor: pointer !important;
	font: inherit;
	color: #8a8275;
	transition: color 0.2s ease;
	position: relative;
	z-index: 2;
	text-align: center !important;
	line-height: 1.2 !important;
}

.efp-slider-step:hover { color: #2b2b2b; }
.efp-slider-step:focus { outline: 0; }
.efp-slider-step:focus-visible { outline: 2px solid #e8743b; outline-offset: 4px; border-radius: 4px; }

.efp-slider-dot {
	display: block !important;
	width: 12px !important;
	height: 12px !important;
	border-radius: 50% !important;
	background: #fff !important;
	border: 2px solid #c8c2b6 !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	flex-shrink: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.efp-slider-step.is-active {
	color: #e8743b;
	font-weight: 600;
}

.efp-slider-step.is-active .efp-slider-dot {
	background: #e8743b !important;
	border-color: #e8743b !important;
	width: 14px !important;
	height: 14px !important;
	box-shadow: 0 0 0 4px rgba(232, 116, 59, 0.18) !important;
}

.efp-slider-label {
	display: block !important;
	font-size: 11px;
	line-height: 1.25;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	text-align: center;
	letter-spacing: 0.02em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

@media (max-width: 380px) {
	.efp-slider-label { font-size: 10px; }
}

/* ----- Kategorie (checkboxy) ----- */
.efp-cats-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 14px;
	color: #8a8275;
	text-transform: uppercase;
}

.efp-cats {
	margin-top: 4px;
}

.efp-cats-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
}

.efp-cat {
	position: relative;
	margin: 0 !important;
}

.efp-cat::before { content: none !important; }

.efp-cat input[type="checkbox"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	pointer-events: none !important;
	margin: 0 !important;
}

.efp-cat label {
	display: flex !important;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 400;
	color: #5a5247;
	cursor: pointer;
	user-select: none;
	padding: 7px 0 !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	transition: color 0.15s ease;
}

.efp-cat label:hover { color: #1a1a1a; }

.efp-cat label::before {
	content: '';
	width: 15px;
	height: 15px;
	border: 1px solid #c5beb0;
	border-radius: 3px;
	background: #fff;
	display: inline-block;
	flex-shrink: 0;
	box-sizing: border-box;
	transition: all 0.15s ease;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 11px;
}

.efp-cat label:hover::before {
	border-color: #8a8275;
}

.efp-cat input:checked + label {
	color: #1a1a1a;
	font-weight: 500;
}

.efp-cat input:checked + label::before {
	background-color: #e8743b;
	border-color: #e8743b;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.5 3.5 6.5-7'/></svg>");
}

.efp-cat input:focus-visible + label::before {
	outline: 2px solid #e8743b;
	outline-offset: 2px;
}

/* ----- Main / heading ----- */
.efp-list-heading {
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 26px;
	color: #1a1a1a;
	letter-spacing: -0.01em;
}

/* ----- Grid ----- */
.efp-grid {
	display: grid;
	gap: 22px;
}

.efp-cols-1 { grid-template-columns: 1fr; }
.efp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.efp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.efp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.efp-cols-3, .efp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
	.efp-cols-2, .efp-cols-3, .efp-cols-4 { grid-template-columns: 1fr; }
}

/* ----- Card ----- */
.efp-card {
	background: #fff8ee;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.efp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.efp-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.efp-card-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ece6db;
}

.efp-card-img,
.efp-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.efp-card:hover .efp-card-thumb img {
	transform: scale(1.04);
}

.efp-card-body {
	padding: 14px 16px 18px;
}

.efp-card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 6px;
	color: #1a1a1a;
}

.efp-card-excerpt {
	font-size: 12.5px;
	line-height: 1.5;
	color: #7a7165;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ----- Stany ----- */
.efp-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.efp-empty {
	padding: 48px 20px;
	text-align: center;
	color: #8a8275;
	background: #faf7f1;
	border-radius: 10px;
	font-size: 14px;
}
