.dp-cs-wrap {
	position: relative;
	margin: 0 0 12px;
	padding: 0;
}
.dp-cs-wrap .dp-cs-input {
	display: block;
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 0 12px;
	padding-inline-end: 34px;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 13px;
	line-height: 38px;
	box-shadow: none;
	box-sizing: border-box;
	direction: inherit;
}
.dp-cs-wrap .dp-cs-input:focus {
	outline: 0;
	border-color: #999;
}
.dp-cs-wrap .dp-cs-clear {
	position: absolute;
	top: 50%;
	inset-inline-end: 6px;
	width: 24px;
	height: 24px;
	margin: -12px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #888;
	font-size: 18px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	display: none;
}
.dp-cs-wrap.has-value .dp-cs-clear {
	display: block;
}
.dp-cs-wrap .dp-cs-clear:hover {
	color: #000;
	background: #f2f2f2;
}
.dp-cs-empty {
	margin: 8px 0 0;
	font-size: 12px;
	color: #888;
}
.dp-cs-empty[hidden] {
	display: none;
}
.dp-cs-tree-hidden {
	display: none !important;
}
.dp-cs-wrap.is-loading .dp-cs-input {
	background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .06), transparent);
	background-size: 200% 100%;
	animation: dp-cs-load 1s linear infinite;
}
@keyframes dp-cs-load {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}
.dp-cs-results[hidden] {
	display: none;
}
.dp-cs-result-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.dp-cs-result-list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f0f0f0;
}
.dp-cs-result-list li:before {
	content: none;
}
.dp-cs-result {
	display: block;
	padding: 10px 2px;
	line-height: 1.7;
	font-size: 14px;
	color: inherit;
	text-decoration: none;
}
.dp-cs-result.is-child {
	opacity: .85;
}
.dp-cs-result .dp-cs-crumb {
	color: #888;
	font-size: 12px;
}
.dp-cs-result mark,
.dp-ls-box mark {
	background: #fff1b8;
	color: inherit;
	padding: 0;
	border-radius: 2px;
}
.dp-cs-noresult {
	margin: 8px 0;
	font-size: 13px;
	color: #888;
}

/* حالت جستجو */
.dp-cs-searching li.dp-cs-hide {
	display: none !important;
}
.dp-cs-searching li.dp-cs-open > ul {
	display: block !important;
}
.dp-cs-searching li.dp-cs-self > a {
	font-weight: 700;
}

/* ===== موبایل: فیلتر به‌صورت پنل تمام‌صفحه ===== */
.dp-sheet-head {
	display: none;
}
@media (max-width: 991.98px) {
	html.dp-sheet-lock,
	html.dp-sheet-lock body {
		overflow: hidden !important;
	}
	.sidebar-listing-archive.dp-sheet-open {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		margin: 0;
		padding: 0 16px 0;
		background: #fff;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		box-sizing: border-box;
	}
	.sidebar-listing-archive.dp-sheet-open .dp-sheet-head {
		position: sticky;
		top: 0;
		z-index: 6;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 52px;
		margin: 0 -16px 8px;
		padding: 0 16px;
		background: #fff;
		border-bottom: 1px solid #eee;
		font-size: 15px;
		font-weight: 700;
	}
	.dp-sheet-head .dp-sheet-close {
		width: 36px;
		height: 36px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f4f4f4;
		color: #333;
		font-size: 24px;
		line-height: 36px;
		text-align: center;
		cursor: pointer;
	}
	/* کادر جستجو هنگام اسکرول بالای لیست بماند */
	.sidebar-listing-archive.dp-sheet-open .dp-cs-wrap {
		position: sticky;
		top: 52px;
		z-index: 4;
		margin: 0 0 8px;
		padding: 8px 0;
		background: #fff;
	}
	.sidebar-listing-archive.dp-sheet-open .dp-cs-wrap .dp-cs-input {
		height: 44px;
		line-height: 44px;
		font-size: 16px; /* جلوگیری از زوم خودکار iOS */
	}
	/* دکمه‌ی اعمال فیلتر همیشه پایین پنل دیده شود */
	.sidebar-listing-archive.dp-sheet-open .rtcl-filter-form .ui-buttons {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 0 -16px;
		padding: 12px 16px;
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -6px 12px -8px rgba(0, 0, 0, .25);
	}
}


/* ===== پیشنهاد زنده‌ی جستجوی اصلی سایت ===== */
html.dp-ls-focus .ui-autocomplete {
	display: none !important; /* منوی قدیمی افزونه، تا دوتا منو نیاید */
}
.dp-ls-box {
	position: fixed;
	z-index: 2147483000;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	box-sizing: border-box;
	background: #fff;
	color: #222;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
	font-size: 14px;
	line-height: 1.6;
}
.dp-ls-box[hidden] {
	display: none;
}
.dp-ls-head {
	padding: 8px 14px 4px;
	font-size: 12px;
	color: #888;
}
.dp-ls-box .dp-ls-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 6px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}
.dp-ls-box .dp-ls-row:hover,
.dp-ls-box .dp-ls-row.is-active {
	background: #f5f5f5;
}
.dp-ls-ico {
	flex: 0 0 auto;
	display: inline-flex;
	color: #999;
}
.dp-ls-text {
	flex: 1 1 auto;
	min-width: 0;
}
.dp-ls-crumb {
	color: #888;
	font-size: 12px;
}
.dp-ls-thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: #f0f0f0;
	overflow: hidden;
}
.dp-ls-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dp-ls-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dp-ls-sub {
	display: block;
	font-size: 12px;
	color: #888;
}
.dp-ls-box .dp-ls-all {
	justify-content: center;
	border-top: 1px solid #eee;
	color: #a62222;
	font-weight: 700;
}
.dp-ls-none {
	padding: 16px;
	text-align: center;
	color: #888;
}
@media (max-width: 991.98px) {
	.dp-ls-box {
		font-size: 15px;
	}
	.dp-ls-box .dp-ls-row {
		min-height: 52px;
	}
}
