/* State Filter Cards – base styles (all overridable from Elementor) */

.sfc-wrap {
	--sfc-duration: 600ms;
	--sfc-easing: cubic-bezier(.22, .61, .36, 1);
	--sfc-hover-lift: -6px;
	--sfc-img-zoom: 1.06;
	--sfc-hover-duration: 300ms;
	--sfc-anim: none;
	width: 100%;
}

/* ---------- Filter buttons ---------- */
.sfc-wrap .sfc-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 32px;
}

.sfc-wrap .sfc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 22px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #1f2933;
	background-color: #ffffff;
	border: 2px solid #1f2933;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sfc-wrap .sfc-btn:hover {
	color: #ffffff;
	background-color: #3e4c59;
	border-color: #3e4c59;
}

.sfc-wrap .sfc-btn.is-active {
	color: #ffffff;
	background-color: #1f2933;
	border-color: #1f2933;
}

.sfc-wrap .sfc-btn:active {
	transform: scale(.97);
}

.sfc-wrap .sfc-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.sfc-wrap .sfc-count {
	display: inline-block;
	min-width: 1.6em;
	padding: 2px 7px;
	font-size: .75em;
	line-height: 1.3;
	text-align: center;
	border-radius: 999px;
	background-color: rgba(127, 127, 127, .18);
}

/* ---------- Grid ---------- */
.sfc-wrap .sfc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 1024px) {
	.sfc-wrap .sfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.sfc-wrap .sfc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Card ---------- */
.sfc-wrap .sfc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #ffffff;
	border-radius: 14px;
	box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 24px rgba(15, 23, 42, .08);
	transition:
		transform var(--sfc-hover-duration) ease,
		box-shadow var(--sfc-hover-duration) ease,
		background-color var(--sfc-hover-duration) ease,
		border-color var(--sfc-hover-duration) ease;
}

.sfc-wrap .sfc-card:hover {
	transform: translateY(var(--sfc-hover-lift));
}

.sfc-wrap .sfc-card.sfc-hidden {
	display: none !important;
}

/* Image */
.sfc-wrap .sfc-card-media {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.sfc-wrap .sfc-card-media img {
	display: block;
	width: 100%;
	height: 220px;
	max-width: 100%;
	object-fit: cover;
	transition: transform var(--sfc-hover-duration) ease;
}

.sfc-wrap .sfc-card:hover .sfc-card-media img {
	transform: scale(var(--sfc-img-zoom));
}

.sfc-wrap .sfc-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: transparent;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--sfc-hover-duration) ease;
}

.sfc-wrap .sfc-card:hover .sfc-card-media::after {
	opacity: 1;
}

/* Body */
.sfc-wrap .sfc-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	padding: 22px 22px 24px;
}

.sfc-wrap .sfc-badge {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .02em;
	color: #ffffff;
	background-color: #1f2933;
	border-radius: 999px;
}

.sfc-wrap .sfc-card-media .sfc-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	margin: 0;
}

/* ---------- Sold ---------- */
.sfc-wrap .sfc-sold-label {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #ffffff;
	background-color: #E30613;
	border-radius: 3px;
}

.sfc-wrap .sfc-card-media .sfc-sold-label {
	--sfc-sold-offset: 14px;
	position: absolute;
	top: var(--sfc-sold-offset);
	left: var(--sfc-sold-offset);
	z-index: 3;
	margin: 0;
}

.sfc-wrap .sfc-sold-pos-right .sfc-card-media .sfc-sold-label {
	left: auto;
	right: var(--sfc-sold-offset);
}

/* Move the state badge to the other corner so it doesn't sit under the sold label */
.sfc-wrap .sfc-sold-pos-left .sfc-card-media .sfc-badge {
	left: auto;
	right: 14px;
}

.sfc-wrap .sfc-card-media img {
	transition: transform var(--sfc-hover-duration) ease, opacity var(--sfc-hover-duration) ease, filter var(--sfc-hover-duration) ease;
}

.sfc-wrap .sfc-title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #1f2933;
	transition: color var(--sfc-hover-duration) ease;
}

.sfc-wrap .sfc-desc {
	margin: 0 0 20px;
	color: #52606d;
	line-height: 1.6;
}

.sfc-wrap .sfc-desc p {
	margin: 0 0 .6em;
}

.sfc-wrap .sfc-desc p:last-child {
	margin-bottom: 0;
}

.sfc-wrap .sfc-button {
	position: relative;
	z-index: 3;
	display: inline-block;
	margin-top: auto;
	padding: 10px 20px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: #ffffff;
	background-color: #1f2933;
	border: 0 solid transparent;
	border-radius: 8px;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.sfc-wrap .sfc-button:hover {
	color: #ffffff;
	background-color: #3e4c59;
}

/* Whole card clickable */
.sfc-wrap .sfc-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sfc-wrap.sfc-clickable .sfc-card {
	cursor: pointer;
}

/* Empty message */
.sfc-wrap .sfc-empty {
	display: none;
	margin: 24px 0 0;
	padding: 24px;
	text-align: center;
	color: #52606d;
}

.sfc-wrap .sfc-empty.is-visible {
	display: block;
}

/* ---------- Mobile: swipe filters ---------- */
@media (max-width: 767px) {
	.sfc-wrap.sfc-scroll-mobile .sfc-filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.sfc-wrap.sfc-scroll-mobile .sfc-filters::-webkit-scrollbar {
		display: none;
	}
	.sfc-wrap.sfc-scroll-mobile .sfc-btn {
		flex: 0 0 auto;
	}
}

/* ---------- Animations ---------- */
.sfc-wrap.sfc-anim-fade        { --sfc-anim: sfcFade; }
.sfc-wrap.sfc-anim-fade-up     { --sfc-anim: sfcFadeUp; }
.sfc-wrap.sfc-anim-fade-down   { --sfc-anim: sfcFadeDown; }
.sfc-wrap.sfc-anim-zoom-in     { --sfc-anim: sfcZoomIn; }
.sfc-wrap.sfc-anim-zoom-out    { --sfc-anim: sfcZoomOut; }
.sfc-wrap.sfc-anim-slide-left  { --sfc-anim: sfcSlideLeft; }
.sfc-wrap.sfc-anim-slide-right { --sfc-anim: sfcSlideRight; }
.sfc-wrap.sfc-anim-flip        { --sfc-anim: sfcFlip; }
.sfc-wrap.sfc-anim-blur        { --sfc-anim: sfcBlur; }

/* "backwards" keeps the start state during the delay, then hands control
   back to normal styles so hover effects keep working afterwards. */
.sfc-wrap .sfc-card.sfc-animate {
	animation-name: var(--sfc-anim);
	animation-duration: var(--sfc-duration);
	animation-timing-function: var(--sfc-easing);
	animation-delay: var(--sfc-delay, 0ms);
	animation-fill-mode: backwards;
}

/* Waiting to scroll into view */
.sfc-wrap.sfc-pending .sfc-card {
	opacity: 0;
}

/* Quick fade-out before switching filter */
.sfc-wrap.sfc-out .sfc-card {
	opacity: 0;
	transition: opacity 180ms ease;
}

@keyframes sfcFade      { from { opacity: 0; } to { opacity: 1; } }
@keyframes sfcFadeUp    { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes sfcFadeDown  { from { opacity: 0; transform: translateY(-32px); } to { opacity: 1; transform: none; } }
@keyframes sfcZoomIn    { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes sfcZoomOut   { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes sfcSlideLeft { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes sfcSlideRight{ from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes sfcFlip      { from { opacity: 0; transform: perspective(900px) rotateY(-75deg); } to { opacity: 1; transform: perspective(900px) rotateY(0); } }
@keyframes sfcBlur      { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
	.sfc-wrap .sfc-card.sfc-animate { animation: none; }
	.sfc-wrap .sfc-card,
	.sfc-wrap .sfc-card-media img { transition: none; }
	.sfc-wrap .sfc-card:hover { transform: none; }
}

/* ---------- Detail tags + address ---------- */
.sfc-wrap .sfc-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 16px;
	height: auto;
	vertical-align: middle;
}

.sfc-wrap .sfc-details {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.sfc-wrap .sfc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: #3b4250;
	background-color: #f1f3f5;
	border-radius: 8px;
}

.sfc-wrap .sfc-chip .sfc-icon {
	color: #4b5563;
}

.sfc-wrap .sfc-address {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	max-width: 100%;
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.sfc-wrap .sfc-address .sfc-icon {
	width: 14px;
	margin-top: 3px;
	color: #9aa1ab;
}

/* Icons chosen from the Elementor library or uploaded SVGs */
.sfc-wrap .sfc-chip i {
	font-size: 15px;
	line-height: 1;
	color: #4b5563;
}
.sfc-wrap .sfc-chip svg:not(.sfc-icon) {
	width: 16px;
	height: auto;
	fill: #4b5563;
}
