/*
 * RightHomes4U — PropertyHive filters & results.
 * v3.4 — modern refresh + theme-proof isolation.
 *
 * Everything is scoped under .rh-* so it cannot leak out into the rest of the
 * site. The reset block below also stops YOUR THEME (Hello / Elementor /
 * PropertyHive) from leaking IN and breaking colours, radii or spacing.
 * Retheme the whole page from the token block in .rh-page.
 */

/* ==========================================================================
   0. Tokens
   ========================================================================== */

.rh-page {
	--rh-orange: #f2600c;
	--rh-orange-dark: #d24e05;
	--rh-orange-soft: rgba(242, 96, 12, .09);
	--rh-orange-ring: rgba(242, 96, 12, .18);

	--rh-ink: #14161b;
	--rh-ink-2: #3d434e;
	--rh-muted: #737b8a;
	--rh-line: #e7e9ee;
	--rh-line-2: #f0f2f5;
	--rh-surface: #ffffff;
	--rh-bg: #f6f7f9;
	--rh-bg-2: #fafbfc;

	--rh-radius: 16px;
	--rh-radius-sm: 11px;
	--rh-radius-xs: 9px;

	--rh-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
	--rh-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -20px rgba(16, 24, 40, .45);
	--rh-shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 28px 50px -28px rgba(16, 24, 40, .45);
	--rh-ease: cubic-bezier(.22, .72, .3, 1);

	--rh-max: 1320px;
	--rh-gutter: 28px;

	background: var(--rh-bg);
	color: var(--rh-ink);
	font-size: 15px;
	line-height: 1.55;
	padding: 34px 0 56px;
	-webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. Theme-proof reset — keeps foreign CSS out
   ========================================================================== */

.rh-page *,
.rh-page *::before,
.rh-page *::after { box-sizing: border-box; }

.rh-page [class^="rh-"],
.rh-page [class*=" rh-"] {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

/* Themes love to restyle every button/input/select globally. Neutralise it. */
.rh-page button,
.rh-page input,
.rh-page select,
.rh-page textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
	max-width: none;
	min-height: 0;
	line-height: 1.4;
	box-shadow: none;
}

.rh-page button { text-shadow: none; }

.rh-page select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23737b8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px !important;
}

.rh-page a { text-decoration: none; }
.rh-page ul, .rh-page ol { margin: 0; padding: 0; }
.rh-page img { max-width: 100%; height: auto; }

/* ==========================================================================
   2. Page shell
   ========================================================================== */

.rh-page__inner {
	width: 100%;
	max-width: var(--rh-max);
	margin: 0 auto;
	padding: 0 var(--rh-gutter);
}

@media (max-width: 640px) {
	.rh-page { --rh-gutter: 16px; padding-top: 22px; }
}

.rh-page__head { margin: 0 0 22px; }

.rh-page__title {
	margin: 0 0 6px;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--rh-ink);
}

.rh-page__head p { margin: 0; color: var(--rh-muted); font-size: 15px; }

.rh-layout {
	display: grid;
	grid-template-columns: 312px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	position: relative;
}

@media (max-width: 1080px) {
	.rh-layout { grid-template-columns: 1fr; }
}

.rh-layout__side { position: sticky; top: 24px; }

@media (max-width: 1080px) {
	.rh-layout__side { position: static; }
}

/* ==========================================================================
   3. Top search widget
   ========================================================================== */

.rh-layout__search {
	grid-column: 1 / -1;
	margin-bottom: 26px;
}

.rh-search {
	background: var(--rh-surface);
	border: 1px solid var(--rh-line);
	border-radius: 20px;
	box-shadow: var(--rh-shadow);
	overflow: hidden;
}

.rh-search__tabs {
	display: flex;
	gap: 6px;
	padding: 10px 10px 0;
	background: linear-gradient(180deg, var(--rh-orange-soft), rgba(255, 255, 255, 0));
	border-bottom: 1px solid var(--rh-line-2);
}

.rh-search__tab {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 700;
	color: var(--rh-muted);
	border-radius: 12px 12px 0 0;
	cursor: pointer;
	position: relative;
	transition: color .2s var(--rh-ease), background .2s var(--rh-ease);
}

.rh-search__tab::after {
	content: "";
	position: absolute;
	left: 18px; right: 18px; bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--rh-orange);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .25s var(--rh-ease);
}

.rh-search__tab:hover { color: var(--rh-orange); background: var(--rh-orange-soft); }
.rh-search__tab:hover::after { transform: scaleX(.55); }

.rh-search__tab.is-active, .rh-search__tab:focus {
	color: #fff;
	background: var(--rh-orange);
	box-shadow: 0 -1px 0 var(--rh-orange) inset;
}

.rh-search__tab.is-active::after { transform: scaleX(1); background: var(--rh-orange-dark); }

.rh-search__row {
	display: grid;
	grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)) auto;
	gap: 14px;
	align-items: end;
	padding: 18px;
}

.rh-search__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.rh-search__lbl {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase !important;
	color: #97a0af;
}

.rh-search__lbl .rh-ico { width: 14px; height: 14px; color: var(--rh-orange); }

.rh-search__input {
	width: 100% !important;
	height: 46px;
	padding: 0 14px !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: 12px !important;
	background: var(--rh-bg-2);
	font-size: 14.5px;
	color: var(--rh-ink);
	transition: border-color .18s var(--rh-ease), box-shadow .18s var(--rh-ease), background .18s var(--rh-ease) !important;
}

.rh-search__input:hover { border-color: #d5d9e0; }

.rh-search__input:focus {
	outline: none;
	background: #fff;
	border-color: var(--rh-orange);
	box-shadow: 0 0 0 4px var(--rh-orange-ring);
}

select.rh-search__input { cursor: pointer; }

.rh-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	background: #ff5b00 !important;
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 14px 26px -16px rgba(242, 96, 12, .9);
	transition: transform .18s var(--rh-ease), box-shadow .18s var(--rh-ease), filter .18s var(--rh-ease);
}

.rh-search__btn:hover {
	transform: translateY(-2px);
	filter: saturate(1.08);
	box-shadow: 0 20px 32px -16px rgba(242, 96, 12, .95);
}

.rh-search__btn:active { transform: translateY(0); }
.rh-search__btn .rh-ico { width: 17px; height: 17px; }

@media (max-width: 1180px) {
	.rh-search__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rh-search__field--grow { grid-column: 1 / -1; }
	.rh-search__btn { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	.rh-search__row { grid-template-columns: 1fr 1fr; padding: 14px; gap: 12px; }
	.rh-search__tab { flex: 1; padding: 12px 8px; font-size: 13px; }
}

/* ==========================================================================
   4. Sidebar
   ========================================================================== */

.rh-filters {
	background: var(--rh-surface);
	border: 1px solid var(--rh-line);
	border-radius: var(--rh-radius);
	box-shadow: var(--rh-shadow);
	overflow: hidden;
}

.rh-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--rh-line-2);
	background: linear-gradient(180deg, var(--rh-bg-2), #fff);
}

.rh-filters__title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: -.01em;
}

.rh-filters__title .rh-ico { color: var(--rh-orange); }

.rh-filters__resetall {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 4px 8px;
	margin-right: -8px;
	border-radius: 8px;
	color: var(--rh-orange);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s var(--rh-ease), color .18s var(--rh-ease);
}

.rh-filters__resetall:hover { background: var(--rh-orange-soft); }
.rh-filters__resetall:hover .rh-ico { transform: rotate(-140deg); }
.rh-filters__resetall .rh-ico { transition: transform .45s var(--rh-ease); }

.rh-ico { width: 17px; height: 17px; flex: 0 0 auto; }

/* --- accordion panels --- */

.rh-panel { border-bottom: 1px solid var(--rh-line-2); }
.rh-panel:last-of-type { border-bottom: 0; }
.rh-panel.is-dept-hidden { display: none; }

.rh-panel__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: none;
	border: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--rh-ink);
	cursor: pointer;
	text-align: left;
	transition: background .18s var(--rh-ease), color .18s var(--rh-ease);
}

.rh-panel__toggle:hover { background: var(--rh-bg-2); color: var(--rh-orange); }
.rh-panel__toggle:focus-visible { outline: 2px solid var(--rh-orange); outline-offset: -2px; }
.rh-panel.is-open .rh-panel__toggle { color: var(--rh-ink); }

.rh-panel__label { display: inline-flex; align-items: center; gap: 10px; }

.rh-panel__label .rh-ico {
	color: var(--rh-orange);
	transition: transform .25s var(--rh-ease);
}

.rh-panel__toggle:hover .rh-panel__label .rh-ico { transform: translateY(-1px) scale(1.06); }

.rh-panel__chev {
	width: 9px;
	height: 9px;
	border-right: 2px solid #a9b0bc;
	border-bottom: 2px solid #a9b0bc;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform .28s var(--rh-ease), border-color .18s var(--rh-ease);
}

.rh-panel__toggle:hover .rh-panel__chev { border-color: var(--rh-orange); }
.rh-panel.is-open .rh-panel__chev { transform: rotate(-135deg); margin-top: 3px; }

.rh-panel__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s var(--rh-ease);
}

.rh-panel.is-open .rh-panel__body { grid-template-rows: 1fr; }
.rh-panel__body > * { overflow: hidden; }
.rh-panel.is-open .rh-panel__body > * { padding: 2px 18px 18px; }

/* --- controls --- */

.rh-input {
	width: 100%;
	padding: 11px 13px !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: var(--rh-radius-sm) !important;
	font-size: 14px;
	background: var(--rh-bg-2);
	color: var(--rh-ink);
	transition: border-color .18s var(--rh-ease), box-shadow .18s var(--rh-ease), background .18s var(--rh-ease) !important;
}

.rh-input:hover { border-color: #d5d9e0; }

.rh-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--rh-orange);
	box-shadow: 0 0 0 4px var(--rh-orange-ring);
}

.rh-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px !important;
	background: var(--rh-bg);
	border: 1px solid var(--rh-line-2);
	border-radius: 13px;
}

.rh-toggle__opt {
	position: relative;
	text-align: center;
	padding: 10px 6px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--rh-muted);
	cursor: pointer;
	transition: background .2s var(--rh-ease), color .2s var(--rh-ease), box-shadow .2s var(--rh-ease);
}

.rh-toggle__opt:hover { color: var(--rh-orange); background: rgba(255, 255, 255, .8); }
.rh-toggle__opt input { position: absolute; opacity: 0; pointer-events: none; }

.rh-toggle__opt:has(input:checked) {
	background: var(--rh-orange);
	color: #fff;
	box-shadow: 0 8px 16px -10px rgba(242, 96, 12, .95);
}

.rh-toggle__opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--rh-orange-ring); }

/* --- dual range slider --- */

.rh-range { padding-top: 8px; }
.rh-range__track { position: relative; height: 26px; }

.rh-range__track::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 11px;
	height: 5px;
	border-radius: 5px;
	background: #e9ecf1;
}

.rh-range__fill {
	position: absolute;
	top: 11px;
	height: 5px;
	border-radius: 5px;
	background: linear-gradient(90deg, #ff8a45, var(--rh-orange));
}

.rh-range input[type="range"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 26px;
	margin: 0;
	padding: 0;
	background: none;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.rh-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--rh-orange);
	box-shadow: 0 2px 8px rgba(16, 24, 40, .28);
	cursor: grab;
	transition: transform .16s var(--rh-ease), box-shadow .16s var(--rh-ease);
}

.rh-range input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
.rh-range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 6px var(--rh-orange-ring); }

.rh-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--rh-orange);
	box-shadow: 0 2px 8px rgba(16, 24, 40, .28);
	cursor: grab;
}

.rh-range__vals {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--rh-ink-2);
}

/* --- checkboxes --- */

.rh-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
	max-height: 268px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.rh-checks::-webkit-scrollbar { width: 6px; }
.rh-checks::-webkit-scrollbar-thumb { background: #dfe3e9; border-radius: 6px; }

.rh-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	margin: 0 -8px;
	border-radius: 9px;
	font-size: 14px;
	cursor: pointer;
	color: var(--rh-ink-2);
	transition: background .16s var(--rh-ease), color .16s var(--rh-ease);
}

.rh-check:hover { background: var(--rh-orange-soft); color: var(--rh-orange); }
.rh-check input { position: absolute; opacity: 0; width: 0; height: 0; }

.rh-check__box {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	border: 1.5px solid #ccd1d9;
	border-radius: 6px;
	background: #fff;
	position: relative;
	transition: background .16s var(--rh-ease), border-color .16s var(--rh-ease), transform .16s var(--rh-ease);
}

.rh-check:hover .rh-check__box { border-color: var(--rh-orange); }

.rh-check input:checked + .rh-check__box {
	background: var(--rh-orange);
	border-color: var(--rh-orange);
	transform: scale(1.04);
}

.rh-check input:checked + .rh-check__box::after {
	content: "";
	position: absolute;
	left: 6px; top: 2px;
	width: 5px; height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.rh-check input:focus-visible + .rh-check__box { box-shadow: 0 0 0 4px var(--rh-orange-ring); }

/* --- buttons --- */

.rh-filters__actions {
	padding: 16px 18px 18px;
	display: grid;
	gap: 10px;
	border-top: 1px solid var(--rh-line-2);
	background: linear-gradient(180deg, #fff, var(--rh-bg-2));
}

.rh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: var(--rh-radius-sm);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .16s var(--rh-ease), background .2s var(--rh-ease),
		box-shadow .2s var(--rh-ease), color .2s var(--rh-ease), border-color .2s var(--rh-ease);
}

.rh-btn:active { transform: translateY(1px); }

.rh-btn--primary {
	background: #ff5b00;
	color: #fff !important;
	box-shadow: 0 12px 24px -16px rgba(242, 96, 12, .95);
}

.rh-btn--primary:hover {
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 18px 30px -16px rgba(242, 96, 12, 1);
}

.rh-btn--ghost {
	background: #fff;
	color: var(--rh-orange) !important;
	border-color: rgba(242, 96, 12, .45);
}

.rh-btn--ghost:hover {
	background: var(--rh-orange-soft);
	border-color: var(--rh-orange);
	transform: translateY(-1px);
}

.rh-btn .rh-ico { transition: transform .25s var(--rh-ease); }
.rh-btn--ghost:hover .rh-ico { transform: rotate(-140deg); }

/* ==========================================================================
   5. Toolbar
   ========================================================================== */

.rh-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.rh-count { margin: 0 auto 0 0; font-size: 16px; font-weight: 600; color: var(--rh-ink-2); }
.rh-count strong { color: var(--rh-orange); font-size: 21px; font-weight: 800; margin-right: 2px; }

.rh-viewtoggle {
	display: inline-flex;
	background: #fff;
	border: 1px solid var(--rh-line);
	border-radius: 12px;
	padding: 4px;
	gap: 4px;
	box-shadow: var(--rh-shadow-xs);
}

.rh-view {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: 0;
	border-radius: 9px;
	background: none;
	font-size: 13px;
	font-weight: 700;
	color: var(--rh-muted);
	cursor: pointer;
	white-space: nowrap;
	transition: background .18s var(--rh-ease), color .18s var(--rh-ease);
}

.rh-view:hover { color: var(--rh-orange); background: var(--rh-orange-soft); }

.rh-view.is-active {
	background: var(--rh-orange);
	color: #fff;
	box-shadow: 0 8px 16px -10px rgba(242, 96, 12, .9);
}

.rh-sort,
.rh-perpage {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rh-muted);
	white-space: nowrap;
}

.rh-sort select,
.rh-perpage select {
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rh-line);
	border-radius: 11px;
	background-color: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--rh-ink);
	cursor: pointer;
	transition: border-color .18s var(--rh-ease), box-shadow .18s var(--rh-ease);
}

.rh-sort select:hover,
.rh-perpage select:hover { border-color: var(--rh-orange); }

.rh-sort select:focus,
.rh-perpage select:focus { outline: none; border-color: var(--rh-orange); box-shadow: 0 0 0 4px var(--rh-orange-ring); }

/* --- chips --- */

.rh-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }

.rh-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	background: #fff;
	border: 1px solid var(--rh-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rh-ink-2);
	cursor: pointer;
	box-shadow: var(--rh-shadow-xs);
	animation: rh-pop .22s var(--rh-ease) both;
	transition: border-color .18s var(--rh-ease), color .18s var(--rh-ease), background .18s var(--rh-ease);
}

.rh-chip:hover { border-color: var(--rh-orange); color: var(--rh-orange); background: var(--rh-orange-soft); }
.rh-chip span { color: #9aa2ae; font-size: 15px; line-height: 1; transition: color .18s var(--rh-ease); }
.rh-chip:hover span { color: var(--rh-orange); }

@keyframes rh-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

.rh-chips__clear {
	background: none;
	border: 0;
	padding: 6px 8px;
	border-radius: 8px;
	color: var(--rh-orange);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s var(--rh-ease);
}

.rh-chips__clear:hover { background: var(--rh-orange-soft); }

/* ==========================================================================
   6. Result cards
   ========================================================================== */

.rh-results { position: relative; }
.rh-results__list { display: grid; gap: 20px; }

.rh-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--rh-surface);
	border: 1px solid var(--rh-line);
	border-radius: var(--rh-radius);
	overflow: hidden;
	box-shadow: var(--rh-shadow);
	animation: rh-rise .35s var(--rh-ease) both;
	transition: transform .26s var(--rh-ease), box-shadow .26s var(--rh-ease), border-color .26s var(--rh-ease);
}

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

.rh-card:nth-child(2) { animation-delay: .04s; }
.rh-card:nth-child(3) { animation-delay: .08s; }
.rh-card:nth-child(4) { animation-delay: .12s; }
.rh-card:nth-child(n+5) { animation-delay: .16s; }

.rh-card:hover {
	transform: translateY(-3px);
	border-color: rgba(242, 96, 12, .35);
	box-shadow: var(--rh-shadow-lg);
}

@media (max-width: 860px) {
	.rh-card { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.rh-card { grid-template-columns: 1fr; }
}

.rh-card__media {
	position: relative;
	display: block;
	background: var(--rh-bg);
	min-height: 232px;
	overflow: hidden;
}

.rh-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .55s var(--rh-ease);
}

.rh-card:hover .rh-card__media img { transform: scale(1.055); }

.rh-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 45%;
	background: linear-gradient(to top, rgba(10, 12, 16, .35), transparent);
	opacity: 0;
	transition: opacity .35s var(--rh-ease);
	pointer-events: none;
}

.rh-card:hover .rh-card__media::after { opacity: 1; }

.rh-card__noimg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 232px;
	background: linear-gradient(135deg, #eceff3, #dfe3e9);
}

.rh-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase !important;
	color: #fff !important;
	background: var(--rh-orange);
	box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
}

.rh-badge--status {
	left: auto;
	right: 14px;
	background: rgba(18, 20, 25, .82);
	backdrop-filter: blur(4px);
}

.rh-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.rh-card__price {
	margin: 0;
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--rh-orange);
	line-height: 1.08;
}

.rh-card__price span { font-size: 13px; font-weight: 700; color: var(--rh-muted); margin-left: 5px; letter-spacing: .02em; }

.rh-card__title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }

.rh-card__title a {
	color: var(--rh-ink);
	background-image: linear-gradient(var(--rh-orange), var(--rh-orange));
	background-size: 0 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: color .2s var(--rh-ease), background-size .3s var(--rh-ease);
}

.rh-card__title a:hover { color: var(--rh-orange); background-size: 100% 2px; }

.rh-card__address { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--rh-muted); }
.rh-card__address .rh-ico { color: var(--rh-orange); width: 15px; height: 15px; }

.rh-pills { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }

.rh-pills li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--rh-line);
	border-radius: 11px;
	font-size: 12.5px;
	line-height: 1.25;
	color: var(--rh-muted);
	background: var(--rh-bg-2);
	transition: border-color .2s var(--rh-ease), background .2s var(--rh-ease), transform .2s var(--rh-ease);
}

.rh-card:hover .rh-pills li { border-color: #dfe3ea; }
.rh-pills li:hover { border-color: var(--rh-orange); background: var(--rh-orange-soft); transform: translateY(-1px); }
.rh-pills strong { color: var(--rh-ink); font-weight: 700; }
.rh-pills .rh-ico { color: #9aa2ae; width: 16px; height: 16px; }
.rh-pills li:hover .rh-ico { color: var(--rh-orange); }

.rh-card__excerpt {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5b6270;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rh-card__foot {
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--rh-line-2);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 13px;
	color: var(--rh-muted);
}

.rh-meta { display: inline-flex; align-items: center; gap: 7px; }
.rh-card__cta { margin-left: auto; padding: 10px 18px; font-size: 13.5px; }
.rh-card__cta .rh-ico { transition: transform .25s var(--rh-ease); }
.rh-card__cta:hover .rh-ico { transform: translateX(3px); }

.rh-epc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

.rh-epc--a, .rh-epc--b { background: #16a34a; }
.rh-epc--c { background: #65a30d; }
.rh-epc--d { background: #eab308; }
.rh-epc--e { background: #f59e0b; }
.rh-epc--f, .rh-epc--g { background: #dc2626; }

/* ==========================================================================
   7. Empty state / pagination / loader
   ========================================================================== */

.rh-empty {
	text-align: center;
	padding: 66px 24px;
	background: #fff;
	border: 1px dashed #d9dee6;
	border-radius: var(--rh-radius);
}

.rh-empty h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.rh-empty p { margin: 0 0 18px; color: var(--rh-muted); }

.rh-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.rh-pager { display: inline-flex; gap: 7px; flex-wrap: wrap; }

.rh-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	border: 1px solid var(--rh-line);
	border-radius: 11px;
	background: #fff;
	color: var(--rh-ink) !important;
	font-size: 14px;
	font-weight: 700;
	box-shadow: var(--rh-shadow-xs);
	transition: background .18s var(--rh-ease), color .18s var(--rh-ease),
		border-color .18s var(--rh-ease), transform .18s var(--rh-ease);
}

.rh-pager .page-numbers:hover {
	border-color: var(--rh-orange);
	color: var(--rh-orange) !important;
	transform: translateY(-1px);
}

.rh-pager .page-numbers.current {
	background: var(--rh-orange);
	border-color: var(--rh-orange);
	color: #fff !important;
	box-shadow: 0 10px 18px -12px rgba(242, 96, 12, .95);
}

.rh-pager .page-numbers.dots { border-color: transparent; background: none; box-shadow: none; }

.rh-perpage select { height: 38px; }

.rh-loader {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(246, 247, 249, .68);
	backdrop-filter: blur(3px);
	border-radius: var(--rh-radius);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s var(--rh-ease);
	z-index: 5;
}

.rh-loader[aria-hidden="false"] { opacity: 1; pointer-events: all; }

.rh-loader span {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid rgba(242, 96, 12, .22);
	border-top-color: var(--rh-orange);
	animation: rh-spin .7s linear infinite;
}

@keyframes rh-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.rh-page *,
	.rh-page *::before,
	.rh-page *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.rh-loader span { animation-duration: 2s !important; animation-iteration-count: infinite !important; }
}

/* Admin-only debug box */
.rh-debug-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ==========================================================================
   13. v3.7 fixes — rectangular card images, non-sticky sidebar,
       orange status badges, clean accordion collapse
   ========================================================================== */

/* --- 13.1 sidebar follows the page instead of sticking to the viewport --- */
.rh-page .rh-layout__side { position: static !important; top: auto !important; }

/* --- 13.2 rectangular (landscape) card images --- */
.rh-page .rh-card { align-items: start !important; }

.rh-page .rh-card__media,
.rh-page .rh-card__noimg {
	/* aspect-ratio: 16 / 10 !important; */
	min-height: 0 !important;
	height: 100% !important;
	align-self: start !important;
	border-radius: 0 !important;
}

.rh-page .rh-card__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

@media (max-width: 640px) {
	.rh-page .rh-card__media,
	.rh-page .rh-card__noimg { aspect-ratio: 16 / 9 !important; }
}

/* --- 13.3 status badges in brand orange --- */
.rh-page .rh-badge,
.rh-page .rh-badge--status {
	background: var(--rh-orange) !important;
	color: #fff !important;
	backdrop-filter: none !important;
	box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55) !important;
}

/* --- 13.4 nothing peeks out of a closed accordion panel --- */
.rh-page .rh-panel__body > * { min-height: 0 !important; overflow: hidden !important; }

.rh-page .rh-panel:not(.is-open) .rh-panel__body > * {
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.rh-page .rh-panel.is-open .rh-panel__body > * {
	opacity: 1 !important;
	visibility: visible !important;
	transition: opacity .22s var(--rh-ease);
}
