.repliers-wrap {
	--rl-accent: #1a5cff;
	--rl-ink: #14171f;
	--rl-muted: #6b7280;
	--rl-line: #e5e7eb;
	--rl-surface: #ffffff;
	--rl-bg: #f7f8fa;
	--rl-radius: 14px;
	--rl-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
	--rl-gap: 22px;
	color: var(--rl-ink);
}

.repliers-heading {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 .75rem;
}

.repliers-meta {
	color: var(--rl-muted);
	font-size: .875rem;
	margin: 0 0 1rem;
}

/* ---------- Filters ---------- */
.repliers-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
	align-items: end;
	padding: 16px;
	margin: 0 0 1.5rem;
	background: var(--rl-surface);
	border: 1px solid var(--rl-line);
	border-radius: var(--rl-radius);
}
.repliers-filters__field { display: flex; flex-direction: column; gap: 4px; }
.repliers-filters__field label {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--rl-muted);
}
.repliers-filters__field input,
.repliers-filters__field select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--rl-line);
	border-radius: 9px;
	background: #fff;
	font-size: .9rem;
	color: var(--rl-ink);
}
.repliers-filters__actions { display: flex; }
.repliers-filters__section {
	border: 0;
	padding: 0;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rl-line);
}
.repliers-filters__section:last-of-type {
	border-bottom: none;
}
.repliers-filters__section-title {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--rl-ink);
	margin-bottom: 8px;
}

/* ---------- Price Range Slider ---------- */
.repliers-price-slider-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.repliers-price-slider {
	position: relative;
	height: 30px;
	--min-percent: 0%;
	--max-percent: 100%;
}

.repliers-price-track {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 5px;
	border-radius: 3px;
	background: transparent;
	outline: none;
	cursor: pointer;
	pointer-events: none;
	z-index: 5;
}

.repliers-price-track::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--rl-accent);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
	border: 2px solid #fff;
	pointer-events: auto;
	z-index: 5;
}

.repliers-price-track::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--rl-accent);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
	border: 2px solid #fff;
	pointer-events: auto;
	z-index: 5;
}

/* Track background fill between min/max */
.repliers-price-slider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: var(--min-percent);
	right: calc(100% - var(--max-percent));
	height: 5px;
	border-radius: 3px;
	background: var(--rl-accent);
	transform: translateY(-50%);
	pointer-events: none;
}

/* Inactive track */
.repliers-price-slider::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 5px;
	border-radius: 3px;
	background: var(--rl-line);
	transform: translateY(-50%);
	z-index: 1;
}

.repliers-price-display {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background: var(--rl-bg);
	border-radius: 8px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--rl-ink);
}

.repliers-price-separator {
	color: var(--rl-muted);
	margin: 0 6px;
}

/* ---------- Range Sliders (Beds, Baths, Sqft) ---------- */
.repliers-range-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 12px;
}

.repliers-range-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--rl-ink);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.repliers-range-value {
	font-size: 0.75rem;
	color: var(--rl-accent);
	font-weight: 700;
	white-space: nowrap;
}

.repliers-range-input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 5px;
	border-radius: 3px;
	background: var(--rl-line);
	outline: none;
	cursor: pointer;
}

.repliers-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--rl-accent);
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,.15);
	border: 2px solid #fff;
}

.repliers-range-input::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--rl-accent);
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,.15);
	border: 2px solid #fff;
}

/* ---------- Status Checkboxes ---------- */
.repliers-status-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.repliers-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--rl-ink);
}

.repliers-checkbox input[type="checkbox"] {
	cursor: pointer;
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--rl-accent);
}

.repliers-checkbox span {
	user-select: none;
}
.repliers-ptypes-tree {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.repliers-ptype-branch {
	padding: 6px;
	border-left: 2px solid var(--rl-accent);
	background: var(--rl-bg);
	border-radius: 4px;
	font-size: .85rem;
}
.repliers-ptype-branch-label {
	font-weight: 600;
	color: var(--rl-ink);
	margin-bottom: 4px;
	font-size: .8rem;
}
.repliers-ptype-children {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 8px;
}
.repliers-ptype-checkbox {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	font-size: .85rem;
}
.repliers-ptype-checkbox input[type="checkbox"] {
	cursor: pointer;
	margin: 0;
	width: auto;
}
.repliers-ptype-checkbox span {
	line-height: 1.2;
}

/* ---------- Left sidebar layout (optional: wrap filters in a sidebar) ---------- */
.repliers-wrap.repliers-has-sidebar {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}
.repliers-wrap.repliers-has-sidebar .repliers-filters {
	grid-column: 1;
	position: sticky;
	top: 20px;
	margin: 0;
}
.repliers-wrap.repliers-has-sidebar .repliers-content {
	grid-column: 2;
}
@media (max-width: 1024px) {
	.repliers-wrap.repliers-has-sidebar {
		grid-template-columns: 1fr;
	}
	.repliers-wrap.repliers-has-sidebar .repliers-filters {
		grid-column: 1;
		position: static;
	}
}


.repliers-btn {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--rl-accent);
	color: #fff;
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}
.repliers-btn:hover { filter: brightness(.94); }

/* ---------- Grid ---------- */
.repliers-grid {
	display: grid;
	gap: var(--rl-gap);
	grid-template-columns: repeat(3, 1fr);
}
.repliers-cols-1 .repliers-grid { grid-template-columns: 1fr; }
.repliers-cols-2 .repliers-grid { grid-template-columns: repeat(2, 1fr); }
.repliers-cols-3 .repliers-grid { grid-template-columns: repeat(3, 1fr); }
.repliers-cols-4 .repliers-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) { .repliers-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .repliers-grid { grid-template-columns: 1fr !important; } }

/* ---------- Card ---------- */
.repliers-card {
	display: flex;
	flex-direction: column;
	background: var(--rl-surface);
	border: 1px solid var(--rl-line);
	border-radius: var(--rl-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.repliers-card:hover { transform: translateY(-3px); box-shadow: var(--rl-shadow); }

.repliers-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--rl-bg);
}
.repliers-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.repliers-card__noimg {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	color: var(--rl-muted); font-size: .85rem;
}
.repliers-card__badge {
	position: absolute; top: 10px; left: 10px;
	padding: 4px 10px;
	background: rgba(20, 23, 31, .82);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .03em;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.repliers-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.repliers-card__price { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.repliers-card__specs { display: flex; gap: 14px; color: var(--rl-muted); font-size: .85rem; }
.repliers-card__specs strong { color: var(--rl-ink); }
.repliers-card__address { font-size: .9rem; color: var(--rl-ink); }
.repliers-card__ptype { font-size: .78rem; color: var(--rl-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Pagination ---------- */
.repliers-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2rem; }
.repliers-page {
	min-width: 38px;
	padding: 8px 12px;
	text-align: center;
	border: 1px solid var(--rl-line);
	border-radius: 9px;
	background: #fff;
	color: var(--rl-ink);
	text-decoration: none;
	font-size: .9rem;
}
.repliers-page:hover { border-color: var(--rl-accent); color: var(--rl-accent); }
.repliers-page--current { background: var(--rl-accent); border-color: var(--rl-accent); color: #fff; font-weight: 600; }
.repliers-page--gap { border: 0; background: transparent; }

/* ---------- Notices ---------- */
.repliers-notice { padding: 18px 20px; border-radius: var(--rl-radius); background: var(--rl-bg); border: 1px solid var(--rl-line); }
.repliers-notice--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.repliers-notice--empty { text-align: center; color: var(--rl-muted); }
.repliers-notice p { margin: 0 0 4px; }

/* ---------- Editor placeholder ---------- */
.repliers-editor-placeholder {
	padding: 28px;
	border: 2px dashed var(--rl-line, #e5e7eb);
	border-radius: 14px;
	text-align: center;
	color: #6b7280;
	background: #fafbfc;
}
.repliers-editor-placeholder strong { display: block; font-size: 1.05rem; color: #14171f; margin-bottom: 4px; }

/* ---------- Single listing ---------- */
.repliers-single { max-width: 1200px; margin: 0 auto; padding: 32px 20px 48px; }

.repliers-single__header {
	margin-bottom: 2rem;
}

.repliers-single__price {
	font-size: 2.4rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--rl-accent);
}

.repliers-single__address {
	color: var(--rl-ink);
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 4px;
}

.repliers-single__neighborhood {
	color: var(--rl-muted);
	font-size: 0.95rem;
	margin: 0;
}

.repliers-single__gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 200px;
	gap: 10px;
	margin-bottom: 2.5rem;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--rl-shadow);
}

.repliers-single__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.repliers-single__photo.is-hero {
	grid-row: span 2;
	grid-column: 1;
}

@media (max-width: 1024px) {
	.repliers-single__gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
	.repliers-single__photo.is-hero { grid-row: auto; grid-column: auto; }
}

@media (max-width: 600px) {
	.repliers-single__gallery { grid-template-columns: 1fr; grid-auto-rows: 250px; }
}

/* Key Stats Section */
.repliers-single__section--key-stats .repliers-single__stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	padding: 24px;
	background: var(--rl-bg);
	border-radius: 14px;
	border: 1px solid var(--rl-line);
}

.repliers-single__stat {
	text-align: center;
	padding: 16px;
	background: var(--rl-surface);
	border-radius: 10px;
	border: 1px solid var(--rl-line);
}

.repliers-single__stat-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rl-muted);
	margin-bottom: 8px;
}

.repliers-single__stat-value {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--rl-accent);
}

/* Collapsible Sections */
.repliers-single__section {
	margin-bottom: 2rem;
	border: 1px solid var(--rl-line);
	border-radius: 12px;
	background: var(--rl-surface);
	overflow: hidden;
}

.repliers-single__section-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	border: 0;
	background: var(--rl-bg);
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s ease;
}

.repliers-single__section-toggle:hover {
	background: #f0f0f0;
}

.repliers-single__section-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	color: var(--rl-ink);
}

.repliers-single__toggle-icon {
	font-size: 1.4rem;
	font-weight: 300;
	color: var(--rl-muted);
	transition: transform 0.2s ease;
}

.repliers-single__section-content {
	display: none;
	padding: 20px;
	border-top: 1px solid var(--rl-line);
	animation: slideDown 0.2s ease;
}

.repliers-single__section-content.open,
.repliers-single__section--key-stats .repliers-single__stats-grid {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.repliers-single__details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.repliers-single__detail-item {
	padding: 12px;
	background: var(--rl-bg);
	border-radius: 8px;
	border-left: 3px solid var(--rl-accent);
}

.repliers-single__detail-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rl-muted);
	margin-bottom: 4px;
	font-weight: 600;
}

.repliers-single__detail-value {
	display: block;
	font-size: 0.95rem;
	color: var(--rl-ink);
	word-break: break-word;
}

.repliers-single__description {
	line-height: 1.7;
	color: var(--rl-ink);
	font-size: 0.95rem;
}

.repliers-single__location-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.repliers-single__location-info p {
	margin: 0 0 12px;
	font-size: 0.9rem;
	line-height: 1.6;
}

.repliers-single__location-info strong {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--rl-accent);
}

.repliers-single__back {
	margin-top: 2rem;
	text-align: center;
}

.repliers-single__back a {
	color: var(--rl-accent);
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.repliers-single__back a:hover {
	opacity: 0.8;
}
