/**
 * Public property presentation.
 *
 * All selectors are plugin-scoped so themes can override these defaults safely.
 */

:where(.relc-property-list, .relc-single-property, .relc-property-not-found) {
	--relc-color-text: #17212b;
	--relc-color-muted: #5d6976;
	--relc-color-border: #d9dfe5;
	--relc-color-surface: #fff;
	--relc-color-surface-soft: #f5f7f9;
	--relc-color-primary: #176b57;
	--relc-color-primary-hover: #0e5645;
	--relc-color-focus: #146fdb;
	--relc-color-sale: #145da0;
	--relc-color-rent: #176b57;
	--relc-radius-small: 0.375rem;
	--relc-radius: 0.75rem;
	--relc-shadow: 0 0.5rem 1.5rem rgba(23, 33, 43, 0.08);
	--relc-content-width: 75rem;
	color: var(--relc-color-text);
	font: inherit;
}

:where(.relc-property-list, .relc-single-property) *,
:where(.relc-property-list, .relc-single-property) *::before,
:where(.relc-property-list, .relc-single-property) *::after {
	box-sizing: border-box;
}

.relc-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.relc-screen-reader-text:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto !important;
	height: auto !important;
	padding: 0.75rem 1rem !important;
	margin: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	white-space: normal !important;
	background: var(--relc-color-surface);
	color: var(--relc-color-text);
}

.relc-container {
	width: min(calc(100% - 2rem), var(--relc-content-width));
	margin-inline: auto;
}

.relc-property-list {
	width: 100%;
	margin-block: 2rem;
}

.relc-property-list__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 1rem;
}

.relc-property-list__heading,
.relc-property-list__count,
.relc-property-card :where(h3, p, dl, dt, dd),
.relc-single-property :where(h1, h2, p, dl, dt, dd, figure),
.relc-property-not-found :where(h1, p) {
	margin-block-start: 0;
}

.relc-property-list__heading {
	margin-block-end: 0;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	line-height: 1.2;
}

.relc-property-list__count {
	margin-block-end: 0;
	color: var(--relc-color-muted);
	font-size: 0.9375rem;
}

.relc-property-filters {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	margin-block-end: 2rem;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius);
	background: var(--relc-color-surface-soft);
}

.relc-property-filters__group {
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.relc-property-filters__classification {
	grid-column: span 4;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.relc-property-filters__location {
	grid-column: span 8;
}

.relc-property-filters__price {
	grid-column: span 8;
}

.relc-property-filters__field {
	min-width: 0;
}

.relc-property-filters__field > label,
.relc-property-filters__group > legend {
	display: block;
	width: 100%;
	margin-block-end: 0.375rem;
	color: var(--relc-color-text);
	font-size: 0.8125rem;
	font-weight: 650;
	line-height: 1.3;
}

.relc-property-filters__price-inputs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.625rem;
}

.relc-property-filters :where(input, select) {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius-small);
	background-color: var(--relc-color-surface);
	color: var(--relc-color-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.25;
}

.relc-property-filters :where(input, select):focus-visible,
.relc-button:focus-visible,
.relc-property-card a:focus-visible,
.relc-single-property a:focus-visible,
.relc-single-property button:focus-visible,
.relc-pagination a:focus-visible {
	outline: 3px solid var(--relc-color-focus);
	outline-offset: 2px;
}

.relc-property-filters__advanced {
	grid-column: 1 / -1;
	min-width: 0;
	padding: 1rem;
	margin: 0;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius-small);
	background: var(--relc-color-surface);
}

.relc-property-filters__advanced[hidden] {
	display: none;
}

.relc-property-filters__advanced > legend {
	padding-inline: 0.25rem;
	font-weight: 700;
}

.relc-property-filters__advanced-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.relc-property-filters__advanced-field {
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.relc-property-filters__advanced-field > :where(label, legend) {
	display: block;
	width: 100%;
	margin-block-end: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 650;
	line-height: 1.3;
}

.relc-property-filters__range-inputs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.5rem;
}

.relc-property-filters__number-unit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
}

.relc-property-filters__number-unit > span {
	color: var(--relc-color-muted);
	font-size: 0.875rem;
	white-space: nowrap;
}

.relc-property-filters__actions {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}

.relc-button {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--relc-radius-small);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.relc-button--primary {
	border-color: var(--relc-color-primary);
	background: var(--relc-color-primary);
	color: #fff;
}

.relc-button--primary:hover {
	border-color: var(--relc-color-primary-hover);
	background: var(--relc-color-primary-hover);
	color: #fff;
}

.relc-button--secondary {
	border-color: var(--relc-color-border);
	background: var(--relc-color-surface);
	color: var(--relc-color-text);
	text-decoration: none;
}

.relc-button--secondary:hover {
	border-color: var(--relc-color-primary);
	color: var(--relc-color-primary);
}

.relc-button--text {
	background: transparent;
	color: var(--relc-color-primary);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.relc-property-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.25rem);
}

.relc-property-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius);
	background: var(--relc-color-surface);
	box-shadow: var(--relc-shadow);
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.relc-property-card:hover,
.relc-property-card:focus-within {
	border-color: color-mix(in srgb, var(--relc-color-primary) 45%, var(--relc-color-border));
	background: color-mix(in srgb, var(--relc-color-primary) 2%, var(--relc-color-surface));
	box-shadow: 0 0.65rem 1.5rem rgba(23, 33, 43, 0.12);
}

.relc-property-card__link {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex: 1;
	flex-direction: column;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

.relc-property-card__link:hover {
	color: inherit;
	text-decoration: none;
}

.relc-property-card__link:focus-visible {
	outline: 3px solid var(--relc-color-focus);
	outline-offset: -3px;
}

.relc-property-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--relc-color-surface-soft);
}

.relc-property-card__image,
.relc-property-card__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.relc-property-card__image {
	object-fit: cover;
	transition: transform 240ms ease;
}

.relc-property-card:hover .relc-property-card__image {
	transform: scale(1.02);
}

.relc-property-card__image-placeholder {
	display: grid;
	place-items: center;
	background: var(--relc-color-surface-soft);
	color: var(--relc-color-muted);
	font-size: 0.875rem;
	font-weight: 650;
}

.relc-badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	min-height: 1.75rem;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.015em;
	line-height: 1.1;
}

.relc-badge--transaction {
	background: var(--relc-color-primary);
	color: #fff;
}

.relc-badge--transaction-sale {
	background: var(--relc-color-sale);
}

.relc-badge--transaction-rent {
	background: var(--relc-color-rent);
}

.relc-badge--status {
	border: 1px solid var(--relc-color-border);
	background: var(--relc-color-surface-soft);
	color: var(--relc-color-text);
}

.relc-badge--reserved {
	border-color: #d8aa43;
	background: #fff6dc;
	color: #71520b;
}

.relc-badge--sold,
.relc-badge--rented {
	border-color: #8b97a3;
	background: #eef1f3;
	color: #36414b;
}

.relc-badge--hidden {
	border-color: #bd6b73;
	background: #fff0f1;
	color: #7e202a;
}

.relc-property-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0.75rem;
}

.relc-property-card__classification {
	display: flex;
	min-height: 1.75rem;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-block-end: 0.375rem;
	overflow: hidden;
}

.relc-property-card__chip {
	display: inline-flex;
	min-width: 0;
	max-width: min(100%, 9rem);
	min-height: 1.75rem;
	align-items: center;
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--relc-color-border);
	border-radius: 999px;
	color: var(--relc-color-muted);
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.relc-property-card__title {
	display: -webkit-box;
	min-height: 1.3em;
	max-height: 2.6em;
	overflow: hidden;
	margin-block-end: 0.125rem;
	color: var(--relc-color-text);
	font-size: 1.125rem;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.relc-property-card__link:hover .relc-property-card__title {
	color: var(--relc-color-primary);
}

.relc-property-card__location {
	color: var(--relc-color-text);
}

.relc-property-card__price-row {
	display: grid;
	min-height: 1.7rem;
	gap: 0.1rem;
	margin-block-end: 0.25rem;
}

.relc-property-card__price {
	display: block;
	overflow: hidden;
	color: var(--relc-color-text);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.relc-property-card__specifications,
.relc-property-card__facts {
	display: grid;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	justify-items: stretch;
	padding: 0.45rem 0 0;
	margin: 0;
	border-block-start: 1px solid var(--relc-color-border);
	font-size: 0.8125rem;
	line-height: 1.25;
	list-style: none;
}

.relc-property-card ul.relc-property-card__facts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.relc-property-card__facts--count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relc-property-card__facts--count-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.relc-property-card__specification,
.relc-property-card__facts li {
	display: grid;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-content: center;
	justify-items: center;
	gap: 0.15rem;
	padding: 0.1rem 0.45rem;
	text-align: center;
}

.relc-property-card__specification + .relc-property-card__specification::before,
.relc-property-card__facts li + li::before {
	display: none;
	content: none;
}

.relc-property-card__facts li + li {
	border-inline-start: 1px solid var(--relc-color-border);
}

.relc-property-card__specifications span,
.relc-property-card__facts span {
	max-width: 100%;
	min-width: 0;
	color: var(--relc-color-muted);
	font-size: 0.72rem;
	font-weight: 550;
	overflow-wrap: anywhere;
	text-align: center;
}

.relc-property-card__specifications strong,
.relc-property-card__facts strong {
	max-width: 100%;
	min-width: 0;
	color: var(--relc-color-text);
	font-weight: 700;
	overflow-wrap: anywhere;
	text-align: center;
}

.relc-property-list__empty,
.relc-property-not-found {
	padding: clamp(2rem, 7vw, 4rem) 1.5rem;
	border: 1px dashed var(--relc-color-border);
	border-radius: var(--relc-radius);
	background: var(--relc-color-surface-soft);
	text-align: center;
}

.relc-property-list__empty h3,
.relc-property-not-found h1 {
	margin-block-end: 0.5rem;
}

.relc-property-list__empty p,
.relc-property-not-found p {
	margin-block-end: 0;
	color: var(--relc-color-muted);
}

.relc-property-list__empty .relc-button {
	margin-block-start: 1rem;
}

.relc-pagination {
	margin-block-start: 2rem;
}

.relc-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.relc-pagination a.page-numbers,
.relc-pagination span.page-numbers {
	display: inline-flex;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius-small);
	background: var(--relc-color-surface);
	color: var(--relc-color-text);
	line-height: 1;
	text-decoration: none;
}

.relc-pagination a.page-numbers:hover {
	border-color: var(--relc-color-primary);
	color: var(--relc-color-primary);
}

.relc-pagination .page-numbers.current {
	border-color: var(--relc-color-primary);
	background: var(--relc-color-primary);
	color: #fff;
	font-weight: 700;
}

/* Single property. */

.relc-site-main {
	padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

.relc-single-property__header {
	max-width: 64rem;
	margin-block-end: clamp(1rem, 2vw, 1.5rem);
}

.relc-single-property__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block-end: 0.875rem;
}

.relc-single-property__title {
	margin-block-end: 0;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.75rem);
	line-height: 1.08;
	text-wrap: balance;
}

.relc-property-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	margin-block-end: clamp(1rem, 2.5vw, 1.5rem);
}

.relc-property-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	aspect-ratio: 4 / 3;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--relc-radius-small);
	background: var(--relc-color-surface-soft);
	cursor: zoom-in;
	font: inherit;
	text-align: start;
}

.relc-property-gallery__lightbox-item[hidden] {
	display: none !important;
}

.relc-property-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease, filter 160ms ease;
}

.relc-property-gallery__item:hover .relc-property-gallery__image {
	filter: brightness(0.94);
	transform: scale(1.015);
}

.relc-property-gallery__remaining {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgb(0 0 0 / 58%);
	color: #fff;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 750;
	line-height: 1;
	pointer-events: none;
}

.relc-single-property__content {
	min-width: 0;
}

.relc-property-detail-panel {
	min-width: 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	margin-block-end: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius);
	background: var(--relc-color-surface-soft);
}

.relc-property-section {
	padding-block-end: clamp(1.25rem, 3vw, 2rem);
	margin-block-end: clamp(1.25rem, 3vw, 2rem);
	border-block-end: 1px solid var(--relc-color-border);
}

.relc-property-section:last-child {
	margin-block-end: 0;
	border-block-end: 0;
}

.relc-property-section h2,
.relc-property-detail-panel h2 {
	margin-block-end: 0.875rem;
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
	line-height: 1.25;
}

.relc-property-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
}

.relc-property-facts__item {
	min-width: 0;
	padding: 0.75rem;
	border-radius: var(--relc-radius-small);
	background: var(--relc-color-surface);
}

.relc-property-facts__item dt {
	margin-block-end: 0.25rem;
	color: var(--relc-color-muted);
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.35;
}

.relc-property-facts__item dd {
	margin-inline-start: 0;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.relc-pricing-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
}

.relc-pricing-details > div {
	min-width: 0;
	padding: 0.75rem;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius-small);
}

.relc-pricing-details dt {
	margin-block-end: 0.25rem;
	color: var(--relc-color-muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.relc-pricing-details dd {
	margin-inline-start: 0;
	font-size: 1.0625rem;
	font-weight: 750;
	overflow-wrap: anywhere;
}

.relc-pricing-details__item--wide {
	grid-column: span 2;
}

.relc-property-description__content {
	font-size: 1rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.relc-property-description__content > :last-child {
	margin-block-end: 0;
}

.relc-property-description__content :where(img, video, iframe) {
	max-width: 100%;
}

.relc-property-description__content :where(img, video) {
	height: auto;
}

.relc-amenity-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.625rem 1.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.relc-amenity-list li {
	position: relative;
	padding-inline-start: 1.35rem;
	line-height: 1.5;
}

.relc-amenity-list li::before {
	position: absolute;
	top: 0.12em;
	inset-inline-start: 0;
	color: var(--relc-color-primary);
	content: "✓";
	font-weight: 800;
}

.relc-property-section address {
	margin-block: 0;
	font-style: normal;
	line-height: 1.6;
	white-space: pre-line;
}

.relc-floor-plan__button img {
	display: block;
	width: 100%;
	height: 10rem;
	object-fit: contain;
	background: var(--relc-color-surface);
}

.relc-floor-plan__button {
	display: block;
	box-sizing: border-box;
	width: min(100%, 18rem);
	padding: 0.375rem;
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius-small);
	background: var(--relc-color-surface-soft);
	cursor: zoom-in;
	font: inherit;
}

.relc-floor-plan__button:hover img {
	filter: brightness(0.96);
}

.relc-media-links,
.relc-contact-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.relc-additional-media__content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.relc-media-links .relc-button {
	border-color: var(--relc-color-border);
	background: var(--relc-color-surface-soft);
	color: var(--relc-color-primary);
}

.relc-contact-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--relc-color-border);
	border-radius: var(--relc-radius);
	background: var(--relc-color-surface-soft);
}

.relc-contact-panel h2 {
	margin-block-end: 0.35rem;
}

.relc-contact-panel__identity p {
	margin-block-end: 0.2rem;
}

.relc-contact-panel__phone {
	color: var(--relc-color-muted);
	font-size: 0.9375rem;
}

.relc-contact-action {
	border-color: var(--relc-color-primary);
	background: var(--relc-color-surface);
	color: var(--relc-color-primary);
}

.relc-contact-action:hover,
.relc-media-links .relc-button:hover {
	border-color: var(--relc-color-primary);
	background: color-mix(in srgb, var(--relc-color-primary) 8%, var(--relc-color-surface));
	color: var(--relc-color-primary-hover);
}

.relc-location-panel__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem 1.5rem;
}

.relc-location-panel__details p {
	margin-block-end: 0;
}

.relc-location-panel__details dd {
	white-space: pre-line;
}

/* Single-property image lightbox. */
body.relc-lightbox-open {
	overflow: hidden;
}

.relc-lightbox[hidden] {
	display: none !important;
}

.relc-lightbox :where([hidden]) {
	display: none !important;
}

.relc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: clamp(0.75rem, 3vw, 2rem);
	background: rgb(8 13 18 / 92%);
}

.relc-lightbox__backdrop {
	position: absolute;
	inset: 0;
}

.relc-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	width: min(100%, 90rem);
	height: min(90vh, 60rem);
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem;
	pointer-events: none;
}

.relc-lightbox__figure {
	display: grid;
	min-width: 0;
	min-height: 0;
	height: 100%;
	grid-column: 2;
	grid-row: 1;
	grid-template-rows: minmax(0, 1fr) auto;
	place-items: center;
	margin: 0;
}

.relc-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	border-radius: var(--relc-radius-small);
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 42%);
	pointer-events: auto;
}

.relc-lightbox__caption {
	grid-row: 2;
	margin: 0;
	color: #fff;
	font-size: 0.875rem;
	text-align: center;
}

.relc-lightbox__close,
.relc-lightbox__previous,
.relc-lightbox__next {
	z-index: 2;
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 36%);
	border-radius: 999px;
	background: rgb(0 0 0 / 64%);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 1.75rem;
	line-height: 1;
	pointer-events: auto;
}

.relc-lightbox__close:hover,
.relc-lightbox__previous:hover,
.relc-lightbox__next:hover {
	background: rgb(255 255 255 / 18%);
}

.relc-lightbox__close {
	position: absolute;
	top: 0;
	right: 0;
}

.relc-lightbox__previous {
	grid-column: 1;
	grid-row: 1;
}

.relc-lightbox__next {
	grid-column: 3;
	grid-row: 1;
}

.relc-lightbox__counter {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	background: rgb(0 0 0 / 64%);
	color: #fff;
	font-size: 0.8125rem;
	pointer-events: none;
}

@media (max-width: 64rem) {
	.relc-property-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.relc-property-filters__classification,
	.relc-property-filters__price,
	.relc-property-filters__actions {
		grid-column: 1 / -1;
	}

	.relc-property-filters__location {
		grid-column: auto;
	}

	.relc-property-filters__advanced-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.relc-property-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.relc-property-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.relc-property-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 48rem) {
	.relc-property-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.relc-amenity-list,
	.relc-location-panel__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.relc-pricing-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 32rem) {
	.relc-property-list__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.375rem;
	}

	.relc-property-filters {
		grid-template-columns: minmax(0, 1fr);
	}

	.relc-property-filters__classification,
	.relc-property-filters__location,
	.relc-property-filters__price,
	.relc-property-filters__advanced,
	.relc-property-filters__actions {
		grid-column: auto;
	}

	.relc-property-filters__classification,
	.relc-property-filters__price-inputs {
		grid-template-columns: minmax(0, 1fr);
	}

	.relc-property-filters__price-inputs > span {
		display: none;
	}

	.relc-property-filters__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.relc-property-filters__actions .relc-button {
		width: 100%;
	}

	.relc-property-filters__advanced-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.relc-property-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.relc-amenity-list,
	.relc-location-panel__details {
		grid-template-columns: minmax(0, 1fr);
	}

	.relc-property-facts__item,
	.relc-pricing-details > div {
		padding: 0.625rem;
	}

	.relc-property-facts__item--wide {
		grid-column: 1 / -1;
	}

	.relc-contact-panel {
		align-items: stretch;
		flex-direction: column;
	}

	.relc-contact-actions li {
		flex: 1 1 calc(50% - 0.5rem);
	}

	.relc-contact-action {
		width: 100%;
	}

	.relc-lightbox {
		padding: 0.75rem;
	}

	.relc-lightbox__dialog {
		height: 92vh;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: minmax(0, 1fr) auto;
	}

	.relc-lightbox__figure {
		grid-column: 1 / -1;
	}

	.relc-lightbox__previous,
	.relc-lightbox__next {
		width: 2.75rem;
		height: 2.75rem;
		grid-row: 2;
	}

	.relc-lightbox__previous {
		grid-column: 1;
		justify-self: start;
	}

	.relc-lightbox__next {
		grid-column: 2;
		justify-self: end;
	}

}

@media (max-width: 20rem) {
	.relc-property-gallery,
	.relc-property-facts,
	.relc-pricing-details {
		grid-template-columns: minmax(0, 1fr);
	}

	.relc-pricing-details__item--wide {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.relc-property-card,
	.relc-property-card__image,
	.relc-property-gallery__image {
		transition: none;
	}

	.relc-property-card:hover,
	.relc-property-card:hover .relc-property-card__image,
	.relc-property-gallery__item:hover .relc-property-gallery__image {
		transform: none;
	}
}

@media print {
	.relc-property-filters,
	.relc-pagination,
	.relc-contact-panel {
		display: none !important;
	}

	.relc-lightbox {
		display: none !important;
	}

	.relc-property-card {
		box-shadow: none;
	}
}
