/*!
 * JRX Imóveis Core — base styles
 * ------------------------------------------------------------------
 * Sumário (linhas aproximadas):
 *
 *  1. Search / filtros        (`.jrx-search`, `.jrx-field`, `.jrx-range`, `.jrx-chip`)        ~  1 – 127
 *  2. Listagem / cards        (`.jrx-archive__grid`, `.jrx-imob-card`, `.jrx-badge`, `.jrx-btn`) ~128 – 444
 *  3. Archive / toolbar       (`.jrx-archive__*`, `.jrx-filters-widget`)                        ~443 – 687
 *  4. Single de imóvel        (`.jrx-imovel-single`, hero, cta, lightbox, related)              ~688 – 1289
 *  5. Responsivo (≤ 920px / ≤ 600px)                                                           ~1290 – fim
 *
 * Variáveis usadas (do tema):
 *   --theme-border-color, --theme-text-color,
 *   --theme-palette-color-1, --theme-palette-color-8.
 *
 * Convenção: BEM + utilitários (`.is-*`, `.has-*`).
 * ------------------------------------------------------------------
 */

/* ============================================================
 * 1. Search / filtros
 * ============================================================ */

.jrx-search__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--theme-border-color);
}

.jrx-search__tab {
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	padding: 10px 14px;
	font-size: 0.9rem;
	color: var(--theme-text-color);
	cursor: pointer;
}

.jrx-search__tab.is-active {
	color: var(--theme-palette-color-1);
	border-bottom-color: var(--theme-palette-color-1);
}

.jrx-search__row {
	display: grid;
	gap: 12px;
}

.jrx-search__row--primary {
	grid-template-columns: repeat(4, minmax(160px, 1fr));
	align-items: end;
}

.jrx-search__submit {
	height: 44px;
}

.jrx-field__label {
	display: block;
	font-size: 0.75rem;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jrx-field select,
.jrx-field input[type="text"],
.jrx-field input[type="number"] {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--theme-border-color);
	border-radius: 10px;
	background: var(--theme-palette-color-8);
	color: inherit;
}

.jrx-search__more {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--theme-border-color);
}

.jrx-search__advanced {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(130px, 1fr));
	margin-top: 12px;
}

.jrx-field--span-2 {
	grid-column: span 2;
}

.jrx-search--archive .jrx-field--span-2 {
	grid-column: span 1;
}

.jrx-search__active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
}

.jrx-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.jrx-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--theme-border-color);
	background: var(--theme-palette-color-8);
	font-size: 0.78rem;
}

.jrx-chip button {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1;
}

.jrx-range {
	display: grid;
	gap: 8px;
}

.jrx-range [data-range-slider] {
	width: 100%;
}

.jrx-range__inputs {
	display: grid;
	grid-template-columns: repeat(2, minmax(70px, 1fr));
	gap: 8px;
}

/* ============================================================
 * 2. Listagem / cards
 * ============================================================ */

.jrx-results--grid,
.jrx-archive__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.jrx-imob-card {
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-border-color);
	border-radius: var(--theme-border-radius, var(--theme-border-radius-lg, inherit));
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.jrx-imob-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: inherit;
}

.jrx-imob-card__slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jrx-imob-card__slider-track {
	display: flex;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	gap: 0;
	min-width: 0;
}
.jrx-imob-card__slider.swiper .jrx-imob-card__slider-track {
	overflow: visible;
}

.jrx-imob-card__slider-slide {
	flex: 0 0 auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	align-self: stretch;
	box-sizing: border-box;
}

.jrx-imob-card__slide-link {
	display: block;
	height: 100%;
	min-height: 0;
	line-height: 0;
	outline-offset: -2px;
	border-radius: inherit;
}

.jrx-imob-card__slider .jrx-imob-card__slide-link:focus-visible {
	outline: 2px solid var(--theme-palette-color-1, currentColor);
}

.jrx-imob-card__slide-link--single {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	line-height: 0;
	border-radius: inherit;
}

.jrx-imob-card__slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--theme-text-color, inherit);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
	transition: background 0.15s ease;
	align-items: center;
	justify-content: center;
	display: inline-flex;
}
.jrx-imob-card__slider-arrow.jrx-swiper-arrow {
	width: 44px;
	height: 44px;
	color: #ffffff;
	border: 1px solid color-mix(in srgb, #ffffff 60%, transparent);
	background-color: color-mix(in srgb, #000000 25%, transparent);
	backdrop-filter: blur(4px);
}

.jrx-imob-card__slider-arrow:hover {
	background-color: color-mix(in srgb, #000000 45%, transparent);
	border-color: #ffffff;
	color: #ffffff;
}

.jrx-imob-card__slider-arrow--prev {
	left: 8px;
}

.jrx-imob-card__slider-arrow--next {
	right: 8px;
}

.jrx-imob-card__slider-count {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 4;
	padding: 5px 9px;
	border-radius: var(--theme-border-radius-sm, var(--theme-border-radius, 999px));
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	background: rgba(17, 24, 39, 0.72);
	color: #fff;
	pointer-events: none;
}

.jrx-imob-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: middle;
}

.jrx-imob-card__slide-link:not(.jrx-imob-card__slider .jrx-imob-card__slide-link) img,
.jrx-imob-card__slider-slide .jrx-imob-card__img {
	min-height: 100%;
	display: block;
}

.jrx-imob-card__placeholder {
	position: absolute;
	inset: 0;
	background: var(--theme-palette-color-7);
	z-index: 0;
	border-radius: inherit;
}

.jrx-imob-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}

.jrx-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--theme-border-radius-sm, var(--theme-border-radius, 999px));
	font-size: 0.72rem;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.jrx-badge--featured {
	background: var(--theme-palette-color-1);
}

.jrx-imob-card__code {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	padding: 4px 8px;
	border-radius: var(--theme-border-radius-sm, var(--theme-border-radius, 8px));
	font-size: 0.72rem;
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	pointer-events: none;
}

.jrx-imob-card__body {
	padding: 16px;
	display: grid;
	gap: 10px;
	flex: 1;
}

.jrx-imob-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
}

.jrx-imob-card__location-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.jrx-imob-card__location-link:hover,
.jrx-imob-card__location-link:focus-visible {
	text-decoration: underline;
}

.jrx-imob-card__features {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 10px 0 0;
	border-top: 1px dashed var(--theme-border-color);
	font-size: clamp(0.68rem, 2.8vw, 0.82rem);
	color: var(--theme-text-color-2, inherit);
}

.jrx-imob-card__features li {
	display: inline-flex;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

.jrx-imob-card__features svg {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	color: var(--theme-text-color, inherit);
	opacity: 0.88;
}

.jrx-imob-card__feat-num {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--theme-text-color, inherit);
}

.jrx-imob-card__feat-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 900px) {
	.jrx-imob-card__feat-label {
		display: none;
	}

	.jrx-imob-card__features {
		gap: 2px;
		font-size: 0.78rem;
	}

	.jrx-imob-card__features li {
		gap: 2px;
	}
}

.jrx-imob-card__title {
	margin: 0;
}

.jrx-imob-card__title a {
	text-decoration: none;
	color: var(--theme-text-color) !important;
}

.jrx-imob-card__price {
	font-weight: 700;
	color: var(--theme-palette-color-1);
}

.jrx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	border: 1px solid var(--theme-border-color);
	text-decoration: none;
	font-weight: 600;
}

.jrx-btn--primary {
	background: var(--theme-palette-color-1);
	border-color: var(--theme-palette-color-1);
	color: #fff;
}

.jrx-btn--outline {
	color: var(--theme-palette-color-1);
	border-color: var(--theme-palette-color-1);
	background: transparent;
}

.jrx-btn--block {
	width: 100%;
}

.jrx-btn--small {
	padding: 6px 10px;
	font-size: 0.78rem;
}

.jrx-archive__header {
	padding: 28px 0 12px;
}

.jrx-archive__container {
	padding-bottom: 56px;
}

.jrx-archive__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	min-width: 0;
}

.jrx-archive__toolbar-item--sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 14px;
	min-width: 0;
	box-sizing: border-box;
	line-height: 1;
	border: 1px solid var(--theme-border-color);
	border-radius: 10px;
	background: var(--theme-palette-color-8);
	color: var(--theme-text-color);
	font-weight: 600;
	cursor: pointer;
}

.jrx-archive__sort-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}

.jrx-archive__sort-icon {
	display: inline-block;
	flex: 0 0 auto;
	pointer-events: none;
}

.jrx-archive__sort-value {
	display: inline-flex;
	align-items: center;
	max-width: 170px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.82rem;
	opacity: 0.8;
}

.jrx-archive__toolbar-item--sort select[data-jrx-sort] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	border: 0;
}

.jrx-archive__view-switch {
	display: inline-flex;
	height: 44px;
	border: 1px solid var(--theme-border-color);
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
}

.jrx-archive__view-btn {
	border: 0;
	padding: 0 14px;
	background: transparent;
	cursor: pointer;
	color: var(--theme-text-color);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.jrx-archive__tool-icon {
	flex: 0 0 auto;
}

.jrx-archive__view-btn.is-active {
	background: var(--theme-palette-color-1);
	color: #fff;
}

.jrx-archive__filters-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	height: 44px;
	border: 1px solid var(--theme-border-color);
	border-radius: 10px;
	background: var(--theme-palette-color-8);
	color: var(--theme-text-color);
	padding: 0 14px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	box-sizing: border-box;
	cursor: pointer;
}

.jrx-archive__filters-close,
.jrx-archive__filters-overlay {
	display: none;
}

.jrx-filters-widget {
	position: relative;
}

.jrx-archive__layout {
	display: grid;
	grid-template-columns: minmax(240px, 300px) 1fr;
	gap: 20px;
	align-items: start;
	min-width: 0;
}

.jrx-archive__main,
.jrx-archive__results,
.jrx-archive__results [data-jrx-results] {
	min-width: 0;
}

.jrx-archive--filters-top .jrx-archive__layout {
	grid-template-columns: 1fr;
}

.jrx-archive__sidebar .jrx-search {
	position: sticky;
	top: 20px;
	background: var(--theme-palette-color-8);
	padding: 16px;
	border-radius: 12px;
	border: 1px solid var(--theme-border-color);
}

.jrx-search--archive .jrx-search__row--primary,
.jrx-search--archive .jrx-search__advanced {
	grid-template-columns: 1fr;
}

.jrx-search--archive .jrx-search__submit {
	width: 100%;
	margin-top: 12px;
}

.jrx-archive__filters--top .jrx-search--archive {
	padding: 16px;
	border: 1px solid var(--theme-border-color);
	border-radius: 12px;
	background: var(--theme-palette-color-8);
}

.jrx-archive__filters--top .jrx-search--archive .jrx-search__row--primary {
	grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.jrx-archive__filters--top .jrx-search--archive .jrx-search__submit {
	margin-top: 0;
	height: 44px;
}

.jrx-archive__filters--top .jrx-search--archive .jrx-search__more {
	margin-top: 10px;
}

.jrx-archive__filters--top {
	margin-bottom: 20px;
}

.jrx-archive--grid .jrx-archive__grid {
	grid-template-columns: repeat(var(--jrx-archive-columns, 3), minmax(220px, 1fr));
}

.jrx-archive__results.is-grid .jrx-archive__grid {
	grid-template-columns: repeat(var(--jrx-archive-columns, 3), minmax(220px, 1fr));
}

.jrx-archive--list .jrx-archive__grid {
	grid-template-columns: 1fr;
}

.jrx-archive__results.is-list .jrx-archive__grid {
	grid-template-columns: 1fr;
}

.jrx-archive__results.is-list .jrx-imob-card {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
}

.jrx-archive__results.is-list .jrx-imob-card__media {
	height: 100%;
	aspect-ratio: auto;
	min-height: 220px;
}

.jrx-archive__results.is-list .jrx-imob-card__img {
	height: 100%;
}

.jrx-archive__results.is-list .jrx-imob-card__body {
	align-content: start;
}

.jrx-imoveis-carousel {
	--jrx-grid-gap: 24px;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	padding-bottom: 56px;
}

.jrx-imoveis-carousel__track {
	display: flex;
	gap: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.jrx-imoveis-carousel.swiper .jrx-imoveis-carousel__track {
	overflow: visible;
	padding: 0;
}

.jrx-imoveis-carousel__slide {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
}
.jrx-imoveis-carousel .swiper-wrapper {
	align-items: stretch;
}
.jrx-imoveis-carousel__slide > * {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.jrx-imoveis-carousel__slide > .jrx-imob-card {
	height: 100%;
}

/* Fallback seguro enquanto Swiper não inicializa */
.jrx-imoveis-carousel:not([data-jrx-swiper-init="1"]) .jrx-imoveis-carousel__track {
	gap: var(--jrx-grid-gap, 24px);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.jrx-imoveis-carousel:not([data-jrx-swiper-init="1"]) .jrx-imoveis-carousel__track::-webkit-scrollbar {
	display: none;
}
.jrx-imoveis-carousel:not([data-jrx-swiper-init="1"]) .jrx-imoveis-carousel__slide {
	flex: 0 0 calc((100% - (var(--jrx-carousel-per-view-desktop, 3) - 1) * var(--jrx-grid-gap, 24px)) / var(--jrx-carousel-per-view-desktop, 3));
}
@media (max-width: 991px) {
	.jrx-imoveis-carousel:not([data-jrx-swiper-init="1"]) .jrx-imoveis-carousel__slide {
		flex-basis: calc((100% - (var(--jrx-carousel-per-view-tablet, 2) - 1) * var(--jrx-grid-gap, 24px)) / var(--jrx-carousel-per-view-tablet, 2));
	}
}
@media (max-width: 575px) {
	.jrx-imoveis-carousel:not([data-jrx-swiper-init="1"]) .jrx-imoveis-carousel__slide {
		flex-basis: calc((100% - (var(--jrx-carousel-per-view-mobile, 1.15) - 1) * var(--jrx-grid-gap, 24px)) / var(--jrx-carousel-per-view-mobile, 1.15));
	}
}

.jrx-imoveis-carousel__controls {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	pointer-events: auto;
	z-index: 3;
}

.jrx-imoveis-carousel__arrow {
	position: static;
	top: auto;
	transform: none;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
	color: var(--theme-text-color, inherit);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.65rem;
	line-height: 1;
	pointer-events: auto;
}
.jrx-imoveis-carousel__arrow.jrx-swiper-arrow {
	width: 44px;
	height: 44px;
	color: #ffffff;
	border: 1px solid color-mix(in srgb, #ffffff 60%, transparent);
	background-color: color-mix(in srgb, #000000 25%, transparent);
	backdrop-filter: blur(4px);
}

.jrx-imoveis-carousel__arrow.is-prev {
	left: auto;
}

.jrx-imoveis-carousel__arrow.is-next {
	right: auto;
}

.jrx-imoveis-carousel__arrow[disabled] {
	opacity: 0.4;
	cursor: default;
}

.jrx-imob-card__body .jrx-imob-card__title {
	margin-bottom: 2px;
}

.jrx-archive__pagination {
	margin-top: 28px;
	display: flex;
	justify-content: center;
}

.jrx-archive__infinite-sentinel {
	width: 100%;
	height: 2px;
}

/* ============================================================
 * 4. Single de imóvel (galeria, breadcrumbs, CTA, lightbox, related)
 * ============================================================ */

.jrx-imovel-single {
	padding-top: var(--theme-content-vertical-spacing);
	font-family: inherit;
	color: inherit;
}

.jrx-imovel-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}

.jrx-imovel-single__column-main {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.jrx-imovel-single__hero {
	background: var(--theme-palette-color-7, rgba(0, 0, 0, 0.04));
	overflow: hidden;
	border-radius: 2px;
}

.jrx-imovel-single__hero-carousel {
	position: relative;
	width: 100%;
	--jrx-grid-gap: 0px;
}

.jrx-imovel-single__hero-viewport {
	aspect-ratio: 16 / 9;
	min-height: 200px;
	max-height: min(72vh, 680px);
}

.jrx-imovel-single__hero-carousel .jrx-carousel__track {
	gap: 0;
}

.jrx-imovel-single__hero-slide {
	align-self: stretch;
	display: flex;
	min-height: 0;
}

.jrx-imovel-single__hero-slide-open {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	flex: 1;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	cursor: grab;
	text-align: left;
}

.jrx-imovel-single__hero-slide-open:focus-visible {
	outline: 2px solid var(--theme-palette-color-1, #111);
	outline-offset: 2px;
}

.jrx-imovel-single__hero-slide-open img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	aspect-ratio: 16 / 9;
	user-select: none;
	-webkit-user-drag: none;
}

.jrx-imovel-single .jrx-carousel__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	min-width: 0;
	box-sizing: border-box;
}
.jrx-imovel-single .jrx-carousel.swiper .jrx-carousel__track {
	overflow: visible;
}

.jrx-imovel-single .jrx-carousel__slide {
	flex: 0 0 auto;
	min-width: 0;
}

.jrx-imovel-single__hero-count {
	position: absolute;
	bottom: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(17, 24, 39, 0.72);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 6px;
	line-height: 1;
}

.jrx-imovel-single__hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--theme-text-color, inherit);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
	transition: background 0.15s ease;
}
.jrx-imovel-single__hero-arrow.jrx-swiper-arrow {
	width: 44px;
	height: 44px;
	color: #ffffff;
	border: 1px solid color-mix(in srgb, #ffffff 60%, transparent);
	background-color: color-mix(in srgb, #000000 25%, transparent);
	backdrop-filter: blur(4px);
}

.jrx-imovel-single__hero-arrow:hover {
	background-color: color-mix(in srgb, #000000 45%, transparent);
	border-color: #ffffff;
	color: #ffffff;
}

.jrx-imovel-single__hero-arrow.is-prev {
	left: 12px;
}

.jrx-imovel-single__hero-arrow.is-next {
	right: 12px;
}

.jrx-imovel-single__related {
	margin-top: clamp(32px, 5vw, 56px);
	padding-top: clamp(24px, 4vw, 40px);
	border-top: 1px solid var(--theme-border-color, currentColor);
	width: 100%;
}

.jrx-imovel-single__related-title {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: clamp(16px, 3vw, 24px);
}

.jrx-imovel-single__toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 18px 0 12px;
	border-bottom: 1px solid var(--theme-border-color, currentColor);
	margin-top: 4px;
}

.jrx-imovel-single__breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
	color: var(--theme-text-color-2, inherit);
}

.jrx-imovel-single__breadcrumbs ol li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.jrx-imovel-single__breadcrumbs ol li:not(:first-child)::before {
	content: "›";
	color: #d1d5db;
	font-weight: 300;
	font-size: 0.85rem;
	margin-right: 2px;
}

.jrx-imovel-single__breadcrumbs a {
	color: var(--theme-text-color-2, inherit);
	text-decoration: none;
}

.jrx-imovel-single__breadcrumbs a:hover {
	color: var(--theme-text-color, inherit);
	text-decoration: underline;
}

.jrx-imovel-single__bc-current {
	color: var(--theme-text-color-2, inherit);
	max-width: min(52vw, 420px);
}

.jrx-imovel-single__actions {
	display: flex;
	gap: 10px;
}

.jrx-imovel-single__icon-btn {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--theme-border-color, currentColor);
	border-radius: 4px;
	background: var(--theme-palette-color-8, #fff);
	color: var(--theme-text-color, inherit);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.jrx-imovel-single__icon-btn:hover {
	border-color: #cbd5e1;
	background: #fafafa;
}

.jrx-imovel-single__icon-btn--muted {
	opacity: 0.5;
	pointer-events: none;
	cursor: default;
}

.jrx-imovel-single__titleblock {
	padding: 22px 0 18px;
}

.jrx-imovel-single__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__subtitle {
	margin: 10px 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__address {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: var(--theme-text-color-2, inherit);
	line-height: 1.45;
}

.jrx-imovel-single__specs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(14px, 3vw, 36px);
	margin: 0;
	padding: 22px 0 28px;
	list-style: none;
	border-bottom: 1px solid var(--theme-border-color, currentColor);
}

.jrx-imovel-single__specs li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 0.92rem;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__spec-icon {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--theme-text-color-2, inherit);
}

.jrx-imovel-single__below-fold {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 8px;
}

.jrx-imovel-single__section {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.jrx-imovel-single__section--plain h3,
.jrx-imovel-single__section--features h3 {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__section--plain .jrx-imovel-single__description {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--theme-text-color-2, inherit);
}

.jrx-imovel-single__description > :last-child {
	margin-bottom: 0;
}

.jrx-imovel-single__section--features .jrx-imovel-single__features-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px 16px;
}

.jrx-imovel-single__features-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	font-size: 0.92rem;
	border: 0;
	background: transparent;
}

.jrx-imovel-single__feature-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__feature-label {
	line-height: 1.4;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__map {
	width: 100%;
	height: 320px;
	border: 0;
	border-radius: 4px;
}

.jrx-imovel-single__column-aside {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.jrx-imovel-single__cta-card {
	position: sticky;
	top: calc(72px + env(safe-area-inset-top));
	padding: 22px;
	border: 1px solid var(--theme-border-color, currentColor);
	border-radius: 6px;
	background: var(--theme-palette-color-8, #fff);
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.jrx-imovel-single__cta-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 12px;
}

.jrx-imovel-single__cta-op {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--theme-text-color-2, inherit);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jrx-imovel-single__cta-price {
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 700;
	color: var(--theme-text-color, inherit);
	text-align: right;
	line-height: 1.2;
}

.jrx-imovel-single__cta-code {
	margin: 0 0 10px;
	font-size: 0.78rem;
	color: var(--theme-text-color-2, inherit);
}

.jrx-imovel-single__cta-tag {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--theme-palette-color-1, #111);
}

.jrx-imovel-single__btn {
	display: block;
	width: 100%;
	padding: 14px 18px;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	margin-top: 10px;
}

.jrx-imovel-single__btn--primary {
	border: 1px solid var(--theme-palette-color-1, currentColor);
	background: var(--theme-palette-color-1, currentColor);
	color: var(--theme-button-text-initial, #fff);
}

.jrx-imovel-single__btn--primary:hover {
	filter: brightness(0.92);
}

.jrx-imovel-single__btn--ghost {
	border: 1px solid var(--theme-text-color, inherit);
	background: var(--theme-palette-color-8, #fff);
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__btn--ghost:hover {
	background: var(--theme-palette-color-7, #f5f5f5);
}

.jrx-imovel-single__btn--whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	line-height: 1.3;
	text-decoration: none;
	background: #25d366;
	color: #fff;
	border: 1px solid #1fa855;
}

.jrx-imovel-single__whatsapp-icon {
	flex-shrink: 0;
}

.jrx-imovel-single__btn--whatsapp:hover {
	filter: brightness(0.95);
	color: #fff;
}

.jrx-imovel-single__form-panel {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--theme-border-color, currentColor);
}

.jrx-imovel-single__form-panel h3 {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--theme-text-color, inherit);
}

.jrx-imovel-single__form-help {
	font-size: 0.88rem;
	color: var(--theme-text-color-2, inherit);
	margin: 0;
}

.jrx-imovel-single__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 23, 42, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	box-sizing: border-box;
}

.jrx-imovel-single__lightbox[hidden] {
	display: none !important;
}

.jrx-imovel-single__lightbox-body {
	position: relative;
	max-width: min(96vw, 1100px);
	max-height: 85vh;
	margin: 0 auto;
}

.jrx-imovel-single__lightbox-body img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.jrx-imovel-single__lightbox-counter {
	margin: 12px 0 0;
	text-align: center;
	color: #e5e7eb;
	font-size: 0.85rem;
}

.jrx-imovel-single__lightbox-close {
	position: fixed;
	top: 16px;
	right: 20px;
	z-index: 2;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.jrx-imovel-single__lightbox-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.jrx-imovel-single__lightbox-nav.is-prev {
	left: 12px;
}

.jrx-imovel-single__lightbox-nav.is-next {
	right: 12px;
}

body.jrx-imovel-lightbox-open {
	overflow: hidden;
}

.jrx-archive__results[data-jrx-infinite="1"] .jrx-archive__pagination {
	display: none;
}

/* ============================================================
 * 5. Responsivo
 * ============================================================ */

@media (max-width: 920px) {
	.jrx-no-scroll {
		overflow: hidden;
	}

/* ============================================================
 * 3. Archive / toolbar
 * ============================================================ */

.jrx-archive__header {
	padding: 20px 0 8px;
}

	.jrx-imovel-single__layout {
		grid-template-columns: 1fr;
	}

	.jrx-imovel-single__breadcrumbs {
		display: none;
	}

	.jrx-imovel-single__cta-card {
		position: static;
		box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	}

	.jrx-archive__container {
		padding-bottom: 40px;
	}

	.jrx-archive__filters-toggle {
		display: inline-flex;
		flex: 0 0 auto;
	}

	.jrx-archive__toolbar {
		flex-wrap: nowrap;
		gap: 10px;
		margin-bottom: 14px;
	}

	.jrx-archive__toolbar .jrx-archive__toolbar-item {
		flex: 0 1 auto;
	}

	.jrx-archive__toolbar .jrx-archive__view-switch {
		display: none;
	}

	.jrx-archive__filters-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(16, 24, 40, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
		z-index: 9997;
	}

	.jrx-archive__sidebar[data-jrx-filters-panel],
	.jrx-archive__filters--top[data-jrx-filters-panel] {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		height: 100dvh;
		width: min(92vw, 360px);
		max-width: 360px;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		z-index: 9998;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: var(--theme-palette-color-8);
		padding: calc(48px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
		margin: 0;
		border-radius: 0;
		border-right: 1px solid var(--theme-border-color);
	}

	.jrx-archive__filters-close {
		display: inline-flex;
		position: absolute;
		top: calc(12px + env(safe-area-inset-top));
		right: 12px;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 999px;
		background: var(--theme-palette-color-7);
		color: var(--theme-text-color);
		align-items: center;
		justify-content: center;
		cursor: pointer;
		font-size: 22px;
		line-height: 1;
	}

	.jrx-archive.is-filters-open .jrx-archive__filters-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.jrx-archive.is-filters-open .jrx-archive__sidebar[data-jrx-filters-panel],
	.jrx-archive.is-filters-open .jrx-archive__filters--top[data-jrx-filters-panel] {
		transform: translateX(0);
	}

	.jrx-archive__sidebar .jrx-search,
	.jrx-archive__filters--top .jrx-search--archive {
		position: static;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.jrx-search__row--primary,
	.jrx-search__advanced {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}

	.jrx-archive__layout {
		grid-template-columns: 1fr;
	}

	.jrx-archive__filters--top .jrx-search--archive .jrx-search__row--primary {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}

	.jrx-archive--grid .jrx-archive__grid,
	.jrx-archive__results.is-grid .jrx-archive__grid {
		grid-template-columns: repeat(
			var(--jrx-archive-columns-mobile, 1),
			minmax(0, 1fr)
		);
	}

	.jrx-archive__results.is-list .jrx-imob-card {
		grid-template-columns: 1fr;
	}

	.jrx-archive__results.is-list .jrx-imob-card__media {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.jrx-filters-widget .jrx-archive__filters-toggle {
		display: inline-flex;
		flex: 0 0 auto;
		margin-bottom: 12px;
	}

	.jrx-filters-widget .jrx-search--archive[data-jrx-widget-filters-panel] {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		height: 100dvh;
		width: min(92vw, 360px);
		max-width: 360px;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		z-index: 9998;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: var(--theme-palette-color-8);
		padding: calc(48px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
		margin: 0;
		border-radius: 0;
		border-right: 1px solid var(--theme-border-color);
	}

	.jrx-filters-widget .jrx-archive__filters-overlay[data-jrx-widget-filters-overlay] {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(16, 24, 40, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
		z-index: 9997;
	}

	.jrx-filters-widget.is-open .jrx-search--archive[data-jrx-widget-filters-panel] {
		transform: translateX(0);
	}

	.jrx-filters-widget.is-open .jrx-archive__filters-overlay[data-jrx-widget-filters-overlay] {
		opacity: 1;
		pointer-events: auto;
	}

	.jrx-filters-widget .jrx-archive__filters-close[data-jrx-widget-filters-close] {
		display: inline-flex;
		position: absolute;
		top: calc(12px + env(safe-area-inset-top));
		right: 12px;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 999px;
		background: var(--theme-palette-color-7);
		color: var(--theme-text-color);
		align-items: center;
		justify-content: center;
		cursor: pointer;
		font-size: 22px;
		line-height: 1;
	}
}

@media (max-width: 640px) {
	.jrx-imovel-single {
		margin-top: 0;
		padding-top: 0;
	}

	.jrx-imovel-single__hero {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		margin-top: 0;
		border-radius: 0;
	}

	.jrx-imovel-single__toolbar {
		position: relative;
		display: block;
		padding: 0;
		margin: 0;
		min-height: 0;
		border-bottom: 0;
	}

	.jrx-imovel-single__actions {
		position: absolute;
		top: -42px;
		right: max(10px, env(safe-area-inset-right));
		z-index: 4;
		margin: 0;
	}

	.jrx-imovel-single__icon-btn {
		width: 34px;
		height: 34px;
		border-radius: 999px;
		box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
	}

	.jrx-imovel-single__icon-btn svg {
		width: 15px;
		height: 15px;
	}

	.jrx-imovel-single__specs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 10px;
		padding: 14px 0 18px;
	}

	.jrx-imovel-single__specs li {
		gap: 8px;
		font-size: 0.84rem;
	}

	.jrx-imovel-single__spec-icon svg {
		width: 18px;
		height: 18px;
	}

	.jrx-imovel-single__section--features .jrx-imovel-single__features-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px 10px;
	}

	.jrx-imovel-single__features-list li {
		padding: 4px 0;
		gap: 8px;
		font-size: 0.84rem;
	}

	.jrx-imovel-single__feature-icon {
		width: 18px;
		height: 18px;
	}

	.jrx-imovel-single__hero-viewport {
		max-height: min(56vh, 520px);
	}

	.jrx-archive__header {
		padding: 16px 0 4px;
	}

	.jrx-archive__toolbar {
		gap: 8px;
		margin-bottom: 12px;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.jrx-archive__filters-toggle,
	.jrx-archive__toolbar-item--sort {
		height: 42px;
		padding: 0 12px;
	}

	.jrx-archive__toolbar .jrx-archive__sort-label {
		font-size: 0.85rem;
	}

	.jrx-archive__view-btn span {
		display: none;
	}

	.jrx-archive__view-btn {
		padding: 0 10px;
		min-width: 42px;
		justify-content: center;
	}

	.jrx-archive__sort-value {
		display: none;
	}

	.jrx-results--grid,
	.jrx-archive__grid {
		gap: 14px;
	}

	.jrx-imoveis-carousel {
		--jrx-grid-gap: 14px;
		padding-bottom: 50px;
	}

	.jrx-imoveis-carousel__arrow {
		width: 34px;
		height: 34px;
		font-size: 1.45rem;
	}

	.jrx-search__row--primary,
	.jrx-search__advanced {
		grid-template-columns: 1fr;
	}

	.jrx-archive__filters--top .jrx-search--archive .jrx-search__row--primary {
		grid-template-columns: 1fr;
	}

	.jrx-search__submit,
	.jrx-btn--block {
		width: 100%;
	}

	.jrx-field--span-2 {
		grid-column: span 1;
	}
}

