/* Properties Grid + Filter — base styles (Elementor overrides via selectors) */
:root {
	--hb-grid-gap: 24px;
	--hb-card-bg: #ffffff;
	--hb-card-radius: 16px;
	--hb-card-shadow: 0 10px 28px rgba(20, 33, 43, 0.06);
	--hb-card-shadow-hover: 0 18px 40px rgba(20, 33, 43, 0.12);
	--hb-title-color: #14212b;
	--hb-meta-color: #5c6b76;
}

.hb-props-grid-wrapper {
	position: relative;
	width: 100%;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.hb-props-grid:not(.swiper-wrapper) {
	display: grid;
	gap: var(--hb-grid-gap);
	transition: opacity 0.25s ease;
}

.hb-props-grid:not(.swiper-wrapper).loading {
	opacity: 0.45;
	pointer-events: none;
}

.hb-props-grid.hb-layout-list:not(.swiper-wrapper) {
	grid-template-columns: 1fr !important;
}

.hb-props-grid.hb-layout-list .hb-prop-card {
	display: grid;
	grid-template-columns: minmax(180px, 320px) 1fr;
}

/* Swiper carousel — nav lives outside overflow so all slides stay fully visible. */
.hb-is-carousel {
	overflow: visible;
}

.hb-is-carousel .hb-carousel-shell {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.hb-is-carousel .hb-swiper-container.swiper {
	position: relative;
	width: 100%;
	min-width: 0;
	padding: 4px 2px 44px;
	overflow: hidden;
}

.hb-is-carousel .swiper-wrapper.hb-props-grid {
	display: flex;
	align-items: stretch;
	gap: 0 !important;
	width: 100%;
	height: auto;
	box-sizing: content-box;
	transition-property: transform;
	will-change: transform;
}

.hb-is-carousel .swiper-slide {
	height: auto;
	box-sizing: border-box;
	flex-shrink: 0;
	width: auto;
	max-width: 100%;
}

.hb-is-carousel .hb-prop-card {
	height: 100%;
	width: 100%;
	max-width: 100%;
}

.hb-is-carousel .hb-prop-card:hover {
	transform: none;
	box-shadow: var(--hb-card-shadow-hover);
}

.hb-swiper-pagination.swiper-pagination-bullets {
	bottom: 8px !important;
}

.hb-swiper-pagination .swiper-pagination-bullet {
	background: #94a3b8;
	opacity: 1;
}

.hb-swiper-pagination .swiper-pagination-bullet-active {
	background: var(--hb-accent);
}

.hb-is-carousel .hb-swiper-prev,
.hb-is-carousel .hb-swiper-next,
.hb-is-carousel .swiper-button-prev,
.hb-is-carousel .swiper-button-next {
	position: static;
	width: 42px;
	height: 42px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 18px rgba(20, 33, 43, 0.14);
	color: #14212b;
	flex: 0 0 42px;
	cursor: pointer;
}

.hb-is-carousel .swiper-button-prev::after,
.hb-is-carousel .swiper-button-next::after {
	font-size: 14px;
	font-weight: 700;
}

.hb-is-carousel .swiper-button-prev:hover,
.hb-is-carousel .swiper-button-next:hover {
	background: var(--hb-accent);
	color: #fff;
}

.hb-is-carousel .swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 720px) {
	.hb-is-carousel .hb-carousel-shell {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.hb-is-carousel .hb-swiper-prev,
	.hb-is-carousel .hb-swiper-next {
		display: none;
	}
}

.hb-prop-card {
	background: var(--hb-card-bg);
	border-radius: var(--hb-card-radius);
	box-shadow: var(--hb-card-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid rgba(20, 33, 43, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-prop-card:hover {
	box-shadow: var(--hb-card-shadow-hover);
}

.hb-card-image-wrap {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 66.66%;
	overflow: hidden;
	background: #e8eef1;
}

.hb-card-image-wrap--fallback .hb-media-fallback {
	position: absolute;
	inset: 0;
}

.hb-layout-list .hb-card-image-wrap {
	padding-top: 0;
	min-height: 100%;
	height: 100%;
}

.hb-card-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.hb-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.hb-prop-card:hover .hb-card-overlay {
	opacity: 1;
}

.hb-card-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hb-card-badges-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.hb-card-badge {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: #14212b;
	color: #fff;
}

.hb-card-content {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.hb-card-address {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hb-meta-color);
}

.hb-card-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 750;
	line-height: 1.3;
	color: var(--hb-title-color);
}

.hb-card-title a {
	color: inherit;
	text-decoration: none;
}

.hb-card-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 0;
	font-size: 13px;
	font-weight: 650;
	color: var(--hb-meta-color);
}

.hb-card-rating .hb-stars {
	color: var(--hb-accent, #1f6f5b);
}

.hb-card-rating__avg {
	color: var(--hb-title-color);
}

.hb-card-rating__count {
	opacity: 0.8;
}

.hb-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 13px;
	font-weight: 550;
	color: var(--hb-meta-color);
}

.hb-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
}

.hb-meta-icon {
	flex: 0 0 auto;
	display: block;
	opacity: 0.85;
}

.hb-meta-item__label {
	white-space: nowrap;
}

.hb-card-excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: var(--hb-meta-color);
}

.hb-card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(20, 33, 43, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hb-card-price {
	font-size: 1.1rem;
	font-weight: 750;
	color: var(--hb-title-color);
}

.hb-card-price small {
	font-size: 13px;
	font-weight: 500;
	color: var(--hb-meta-color);
	margin-left: 2px;
}

.hb-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--hb-accent);
	color: #fff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.hb-card-btn:hover {
	background: var(--hb-accent-hover, #185a4a);
	color: #fff !important;
}

/* Wins over saved Elementor button colors when "Use plugin color scheme" is on. */
.hb-card-btn.hb-card-btn--brand {
	background: var(--hb-accent) !important;
	color: #fff !important;
}

.hb-card-btn.hb-card-btn--brand:hover {
	background: var(--hb-accent-hover, #185a4a) !important;
	color: #fff !important;
}

.hb-no-results {
	grid-column: 1 / -1;
	padding: 36px 20px;
	text-align: center;
	color: var(--hb-meta-color);
	background: #f4f7f8;
	border-radius: 14px;
	border: 1px dashed #e4e9ed;
}

.hb-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	justify-content: center;
}

.hb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e4e9ed;
	color: #14212b;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.hb-pagination .page-numbers.current,
.hb-pagination .page-numbers:hover {
	background: var(--hb-accent);
	border-color: var(--hb-accent);
	color: #fff;
}

/* Filter bar */
.hb-grid-filter-wrap {
	background: #fff;
	border: 1px solid #e4e9ed;
	border-radius: 16px;
	padding: 14px;
	margin-bottom: 24px;
	box-shadow: 0 8px 24px rgba(20, 33, 43, 0.06);
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.hb-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.hb-filter-input,
.hb-filter-select {
	flex: 1 1 160px;
	min-width: 140px;
	padding: 11px 14px;
	border: 1px solid #e4e9ed;
	border-radius: 10px;
	background: #f4f7f8;
	color: #14212b;
	font-size: 14px;
	outline: none;
}

.hb-filter-input:focus,
.hb-filter-select:focus {
	border-color: var(--hb-accent);
	background: #fff;
}

.hb-filter-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.hb-filter-count-text {
	font-size: 13px;
	color: var(--hb-meta-color);
	white-space: nowrap;
}

.hb-filter-count {
	color: #14212b;
}

.hb-layout-toggles {
	display: inline-flex;
	gap: 4px;
	background: #f4f7f8;
	padding: 4px;
	border-radius: 10px;
}

.hb-layout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #5c6b76;
	cursor: pointer;
}

.hb-layout-btn.is-active,
.hb-layout-btn:hover {
	background: #fff;
	color: #14212b;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hb-filter-submit {
	padding: 11px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--hb-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.hb-grid-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.hb-grid-loader .spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #e4e9ed;
	border-top-color: var(--hb-accent);
	border-radius: 50%;
	animation: hb-spin 0.7s linear infinite;
}

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

@media (max-width: 720px) {
	.hb-props-grid.hb-layout-list .hb-prop-card {
		grid-template-columns: 1fr;
	}

	.hb-filter-meta {
		width: 100%;
		margin-left: 0;
		justify-content: space-between;
	}
}
