.fbas-widget-placeholder {
	padding: 14px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
	color: #50575e;
}

.fbas-property-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.fbas-property-price__amount {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

.fbas-property-price__meta {
	color: #6b7280;
	font-size: 0.95rem;
}

.fbas-property-gallery {
	display: grid;
	gap: 12px;
}

.fbas-property-gallery__main {
	background: #f3f4f6;
	overflow: hidden;
}

.fbas-property-gallery__main-image {
	display: block;
	width: 100%;
	height: auto;
}

.fbas-property-gallery__thumbs {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.fbas-property-gallery__carousel {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 38px;
	align-items: center;
	gap: 8px;
}

.fbas-property-gallery__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #111827;
	cursor: pointer;
}

.fbas-property-gallery__nav:focus-visible {
	border-color: #111827;
	outline: 2px solid #111827;
	outline-offset: 2px;
}

.fbas-property-gallery__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.fbas-property-gallery__nav .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.fbas-property-gallery__thumb {
	display: block;
	flex: 0 0 var(--fbas-gallery-thumb-basis, 120px);
	min-width: 84px;
	padding: 0;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	scroll-snap-align: start;
}

.fbas-property-gallery__thumb.is-active {
	display: none;
}

.fbas-property-gallery__thumb:focus-visible {
	border-color: #111827;
	outline: none;
}

.fbas-property-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fbas-property-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

.fbas-property-summary__item {
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.fbas-property-summary__label {
	display: block;
	color: #6b7280;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.fbas-property-summary__value {
	display: block;
	font-weight: 600;
}

.fbas-property-location {
	display: grid;
	gap: 8px;
}

.fbas-property-documents {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fbas-property-documents--stacked {
	flex-direction: column;
	align-items: flex-start;
}

.fbas-property-terms-widget {
	display: grid;
	gap: 12px;
}

.fbas-property-terms__header {
	display: grid;
	gap: 4px;
}

.fbas-property-terms__title,
.fbas-property-terms__subtitle {
	margin: 0;
}

.fbas-property-terms {
	display: grid;
	grid-template-columns: repeat(var(--fbas-terms-columns, 2), minmax(0, 1fr));
	gap: 10px 18px;
	align-items: start;
}

.fbas-property-terms--stacked .fbas-property-term {
	width: 100%;
}

.fbas-property-terms--badges .fbas-property-term {
	justify-self: start;
}

.fbas-property-term,
.fbas-property-document {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f3f4f6;
	color: inherit;
	text-decoration: none;
}

.fbas-property-terms--list .fbas-property-term {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.fbas-property-document {
	border-radius: 10px;
}

.fbas-property-term__icon,
.fbas-property-document__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.fbas-property-term__icon .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.fbas-property-term__icon img {
	max-width: 18px;
	max-height: 18px;
	display: block;
}

.fbas-property-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fbas-property-meta__label {
	font-weight: 600;
}

.fbas-property-features {
	display: grid;
	gap: 16px;
}

.fbas-property-features__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.fbas-property-features__grid {
	display: grid;
	gap: 14px;
}

.fbas-property-features__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.fbas-property-features__label {
	font-weight: 600;
}

.fbas-property-features__value {
	color: #6b7280;
}

.fbas-property-features__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	font-size: 0.95rem;
	line-height: 1;
	color: #198754;
}

@media (max-width: 767px) {
	.fbas-property-features__grid {
		grid-template-columns: 1fr !important;
	}
}

.fbas-property-listings {
	--fbas-listing-gap: 24px;
	--fbas-button-background: #111111;
	--fbas-button-text: #ffffff;
	--fbas-badge-background: #198754;
	--fbas-badge-text: #ffffff;
	display: grid;
	gap: var(--fbas-listing-gap);
}

.fbas-property-listings__filters {
	display: grid;
	gap: 16px;
	padding: 0 0 6px;
}

.fbas-property-listings__filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fbas-property-listings__filter-label {
	min-width: 110px;
	font-weight: 600;
	color: #111827;
}

.fbas-property-listings__filter {
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	padding: 8px 12px;
}

.fbas-property-listings__filter.is-active,
.fbas-property-listings__filter:focus-visible {
	border-color: #111827;
	background: #111827;
	color: #fff;
	outline: none;
}

.fbas-property-listings__grid {
	display: grid;
	gap: var(--fbas-listing-gap);
}

.fbas-property-listings--columns-1 .fbas-property-listings__grid {
	grid-template-columns: 1fr;
}

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

.fbas-property-listings--columns-3 .fbas-property-listings__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fbas-property-listings--columns-4 .fbas-property-listings__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fbas-property-card {
	background: #fff;
	border: 1px solid #ece7e3;
	border-radius: 22px;
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
}

.fbas-property-card[hidden] {
	display: none;
}

.fbas-property-card__media-wrap {
	position: relative;
}

.fbas-property-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3f4f6;
	overflow: hidden;
}

.fbas-property-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fbas-property-card__media-placeholder {
	align-items: center;
	color: #6b7280;
	display: flex;
	font-size: 0.95rem;
	height: 100%;
	justify-content: center;
	min-height: 240px;
	padding: 20px;
	text-align: center;
}

.fbas-property-card__badge {
	align-items: center;
	background: var(--fbas-badge-background);
	border-radius: 999px;
	color: var(--fbas-badge-text);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	left: 18px;
	letter-spacing: 0.02em;
	line-height: 1;
	max-width: calc(100% - 36px);
	padding: 9px 14px;
	position: absolute;
	top: 18px;
}

.fbas-property-card__body {
	display: grid;
	gap: 12px;
	padding: 24px;
}

.fbas-property-card__title {
	color: #111111;
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}

.fbas-property-card__title a {
	color: inherit;
	text-decoration: none;
}

.fbas-property-card__title a:hover,
.fbas-property-card__title a:focus-visible {
	color: inherit;
	text-decoration: none;
}

.fbas-property-card__surface,
.fbas-property-card__location,
.fbas-property-card__reference,
.fbas-property-card__price,
.fbas-property-card__excerpt {
	margin: 0;
}

.fbas-property-card__surface {
	color: #111111;
	font-size: 0.98rem;
	font-weight: 600;
}

.fbas-property-card__location {
	color: #4b5563;
	font-size: 0.98rem;
}

.fbas-property-card__reference {
	color: #5b6472;
	font-size: 0.93rem;
}

.fbas-property-card__reference-label {
	color: #111111;
	font-weight: 600;
}

.fbas-property-card__price {
	color: #111111;
	font-size: 1.35rem;
	font-weight: 700;
}

.fbas-property-card__excerpt {
	color: #4b5563;
	line-height: 1.6;
}

.fbas-property-card__button {
	align-items: center;
	background: var(--fbas-button-background);
	border-radius: 999px;
	color: var(--fbas-button-text);
	display: inline-flex;
	font-size: 0.98rem;
	font-weight: 600;
	justify-content: center;
	margin-top: 4px;
	min-height: 50px;
	padding: 14px 18px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	width: 100%;
}

.fbas-property-card__button:hover,
.fbas-property-card__button:focus-visible {
	box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
	color: var(--fbas-button-text);
	outline: none;
	text-decoration: none;
	transform: translateY(-1px);
}

.fbas-property-listings__empty {
	margin: 0;
	color: #6b7280;
}

@media (max-width: 1024px) {
	.fbas-property-listings--columns-3 .fbas-property-listings__grid,
	.fbas-property-listings--columns-4 .fbas-property-listings__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.fbas-property-gallery__thumbs {
		scrollbar-width: none;
	}

	.fbas-property-gallery__thumbs::-webkit-scrollbar {
		display: none;
	}

	.fbas-property-gallery__thumb {
		flex-basis: calc((100% - 8px) / 2);
	}

	.fbas-property-terms,
	.fbas-property-listings__grid {
		grid-template-columns: 1fr;
	}

	.fbas-property-listings__filter-label {
		width: 100%;
	}

	.fbas-property-card {
		border-radius: 18px;
	}

	.fbas-property-card__body {
		padding: 20px;
	}

	.fbas-property-card__badge {
		left: 14px;
		top: 14px;
	}

	.fbas-property-card__media-placeholder {
		min-height: 220px;
	}
}
