/*!
 * Doorstep — cards.css (handle `stepfox-re-cards`, dep `stepfox-re`)
 *
 * The canonical property card (.sfre-card + variants), skeletons, agent cards,
 * location tiles, every FIELD block (.sfre-f-*), loops, loop pagination,
 * context wrappers, hearts / compare toggles, the header Saved link, the
 * compare tray and the fallback toast.
 *
 * Rules: every colour is a palette preset var (dark mode flips by re-mapping
 * the presets on :root); white is used only for text over photos. Hover
 * effects are gated by (hover:hover); motion is off under reduced motion.
 * Class selectors only — Stepfox Looks `#block_x` / `:is(#block_x,.block_x)`
 * rules always win over these defaults.
 */

/* ======================================================================
 * 0. Tokens (scoped, derived from the 16-slug palette)
 * ==================================================================== */
:root {
	--sfre-card-bg: var(--wp--preset--color--panel, #fff);
	--sfre-card-bg-2: var(--wp--preset--color--panel-2, #efeae1);
	--sfre-card-page: var(--wp--preset--color--base, #f7f5f0);
	--sfre-card-ink: var(--wp--preset--color--ink, #14181f);
	--sfre-card-muted: var(--wp--preset--color--muted, #5d6672);
	--sfre-card-line: var(--wp--preset--color--line, rgba(20, 24, 31, 0.1));
	--sfre-card-edge: var(--wp--preset--color--edge, rgba(20, 24, 31, 0.08));
	--sfre-card-accent: var(--wp--preset--color--accent, #e0553d);
	/* Coral that carries text (fills with a base-coloured label, coral links):
	   deep coral #c2412a in light (4.7:1 with paper), the accent itself in dark
	   (6.9:1 with the near-black base). The plain accent is for icons, dots and
	   rings only (3.5:1). Defined in real-estate.css. */
	--sfre-card-accent-strong: var(--sfre-accent-strong, #c2412a);
	--sfre-card-accent-2: var(--wp--preset--color--accent-2, #0f766e);
	--sfre-card-navy: var(--wp--preset--color--violet, #1d3557);
	--sfre-card-gold: var(--wp--preset--color--gold, #8a6400);
	--sfre-card-mint: var(--wp--preset--color--turf, #dcefe9);
	--sfre-card-glass: var(--wp--preset--color--glass, rgba(255, 255, 255, 0.86));
	--sfre-card-on: var(--wp--preset--color--base, #f7f5f0);
	--sfre-card-radius: 16px;
	--sfre-card-shadow: var(--wp--preset--shadow--depth-1, 0 1px 2px rgba(20, 24, 31, 0.05), 0 4px 14px rgba(20, 24, 31, 0.05));
	--sfre-card-shadow-hover: var(--wp--preset--shadow--depth-3, 0 6px 16px rgba(20, 24, 31, 0.08), 0 18px 40px rgba(20, 24, 31, 0.12));
	--sfre-card-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--sfre-font-ui: var(--wp--preset--font-family--ui, "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--sfre-font-display: var(--wp--preset--font-family--display, "Fraunces", Georgia, "Times New Roman", serif);
	--sfre-font-body: var(--wp--preset--font-family--body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--sfre-font-num: var(--wp--preset--font-family--num, var(--wp--preset--font-family--ui, "Manrope", system-ui, sans-serif));
	--sfre-photo-ink: #fff;
	--sfre-photo-scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%);
}

/* ======================================================================
 * 1. Atoms
 * ==================================================================== */
.sfre-ico {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.sfre-ico svg {
	display: block;
}

.sfre-sr,
.sfre-card .screen-reader-text,
.sfre-f .screen-reader-text,
.sfre-lp .screen-reader-text,
.sfre-saved-link .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Chips — over photos (.sfre-card__chips) and as standalone badge fields
 * (.sfre-f.sfre-chip). Scoped so CORE's generic .sfre-chip atom (filters,
 * search chips) is untouched. */
:is(.sfre-card__chips > .sfre-chip, .sfre-chip.sfre-f) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	font-family: var(--sfre-font-ui);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: var(--sfre-card-on);
	background: var(--sfre-card-ink);
}
:is(.sfre-card__chips > .sfre-chip--deal, .sfre-chip--deal.sfre-f) {
	color: var(--sfre-card-ink);
	background: var(--sfre-card-glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.sfre-chip.sfre-f.sfre-chip--deal {
	border: 1px solid var(--sfre-card-line);
}
:is(.sfre-card__chips, .sfre-f) .sfre-chip__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sfre-card-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfre-card-accent) 22%, transparent);
}
:is(.sfre-card__chips, .sfre-f) .sfre-chip--for-rent .sfre-chip__dot,
.sfre-chip--for-rent.sfre-f .sfre-chip__dot {
	background: var(--sfre-card-accent-2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfre-card-accent-2) 22%, transparent);
}
:is(.sfre-card__chips > .sfre-chip--new, .sfre-chip--new.sfre-f) { background: var(--sfre-card-accent-2); }
:is(.sfre-card__chips > .sfre-chip--hot, .sfre-chip--hot.sfre-f),
.sfre-card__chips > .sfre-chip--drop { background: var(--sfre-card-accent-strong); }
:is(.sfre-card__chips > .sfre-chip--open-house, .sfre-chip--open-house.sfre-f) { background: var(--sfre-card-navy); }
:is(.sfre-card__chips > .sfre-chip--exclusive, .sfre-chip--exclusive.sfre-f) { background: var(--sfre-card-ink); }
:is(.sfre-card__chips > .sfre-chip--new-construction, .sfre-chip--new-construction.sfre-f),
:is(.sfre-card__chips > .sfre-chip--under-contract, .sfre-chip--under-contract.sfre-f) { background: var(--sfre-card-gold); }
:is(.sfre-card__chips > .sfre-chip--sold, .sfre-chip--sold.sfre-f),
:is(.sfre-card__chips > .sfre-chip--rented, .sfre-chip--rented.sfre-f) { background: var(--sfre-card-ink); }
.sfre-card__chips .sfre-chip__arrow {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-top: 1px;
}

/* Pills on photos (count / video / tour) — scoped: bare .sfre-pill is a
 * search-form atom in CORE. */
.sfre-card__pills .sfre-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 9px;
	border: 0;
	border-radius: 999px;
	font-family: var(--sfre-font-num);
	font-size: 12px;
	font-weight: 700;
	font-feature-settings: "tnum" 1, "lnum" 1;
	color: var(--sfre-photo-ink);
	background: rgba(11, 14, 19, 0.58);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.sfre-card__pills .sfre-pill--icon {
	width: 26px;
	padding: 0;
	justify-content: center;
}

/* Avatars (card footer / property-agent field) */
:is(.sfre-card__agent, .sfre-f-property-agent) .sfre-avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--sfre-card-bg-2);
	box-shadow: 0 0 0 2px var(--sfre-card-bg);
}
:is(.sfre-card__agent, .sfre-f-property-agent) .sfre-avatar--initials {
	font-family: var(--sfre-font-ui);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
}
:is(.sfre-card__agent, .sfre-f-property-agent, .sfre-agent-card__media, .sfre-f-agent-photo) .sfre-avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--sfre-card-on);
	background: var(--sfre-card-navy);
}

/* Heart toggle */
.sfre-fav {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: var(--sfre-card-ink);
	background: none;
	-webkit-tap-highlight-color: transparent;
}
.sfre-fav--icon,
.sfre-fav--icon-sm {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sfre-card-glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s var(--sfre-card-ease), background-color 0.2s ease;
}
.sfre-fav--icon-sm {
	width: 32px;
	height: 32px;
}
.sfre-fav--icon-sm .sfre-fav__heart {
	width: 16px;
	height: 16px;
}
.sfre-fav--button {
	height: 40px;
	padding: 0 16px 0 12px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 12px;
	font-family: var(--sfre-font-ui);
	font-size: 14px;
	font-weight: 700;
	background: var(--sfre-card-bg);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.sfre-fav__icon {
	position: relative;
	display: inline-flex;
	line-height: 0;
}
.sfre-fav__heart {
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linejoin: round;
	transition: fill 0.2s ease, stroke 0.2s ease, transform 0.25s var(--sfre-card-ease);
}
.sfre-fav__burst {
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid var(--sfre-card-accent);
	opacity: 0;
	transform: scale(0.4);
	pointer-events: none;
}
.sfre-fav.is-active .sfre-fav__heart,
.sfre-fav[aria-pressed="true"] .sfre-fav__heart {
	fill: var(--sfre-card-accent);
	stroke: var(--sfre-card-accent);
}
.sfre-fav--button.is-active {
	border-color: color-mix(in srgb, var(--sfre-card-accent) 45%, transparent);
	background: color-mix(in srgb, var(--sfre-card-accent) 8%, var(--sfre-card-bg));
}
.sfre-fav.is-popping .sfre-fav__heart {
	animation: sfre-heart-pop 0.55s var(--sfre-card-ease);
}
.sfre-fav.is-popping .sfre-fav__burst {
	animation: sfre-heart-burst 0.6s ease-out;
}
.sfre-fav:focus-visible,
.sfre-cmp:focus-visible {
	outline: 2px solid var(--sfre-card-accent);
	outline-offset: 2px;
}
@keyframes sfre-heart-pop {
	0% { transform: scale(1); }
	30% { transform: scale(0.78); }
	60% { transform: scale(1.28); }
	100% { transform: scale(1); }
}
@keyframes sfre-heart-burst {
	0% { opacity: 0.9; transform: scale(0.4); }
	100% { opacity: 0; transform: scale(1.3); }
}

/* Compare toggle */
.sfre-cmp {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: var(--sfre-card-ink);
	background: none;
}
.sfre-cmp--icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sfre-card-glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.sfre-cmp--button {
	height: 40px;
	padding: 0 16px 0 12px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 12px;
	font-family: var(--sfre-font-ui);
	font-size: 14px;
	font-weight: 700;
	background: var(--sfre-card-bg);
}
.sfre-cmp__icon {
	display: inline-flex;
	line-height: 0;
}
.sfre-cmp__tick {
	opacity: 0;
	transition: opacity 0.2s ease;
}
.sfre-cmp.is-active,
.sfre-cmp[aria-pressed="true"] {
	color: var(--sfre-card-on);
	background: var(--sfre-card-accent-2);
	border-color: var(--sfre-card-accent-2);
}
.sfre-cmp.is-active .sfre-cmp__tick,
.sfre-cmp[aria-pressed="true"] .sfre-cmp__tick {
	opacity: 1;
}

/* Small icon buttons (agent contact) */
:where(.sfre-agent-card[data-sfre-agent], .sfre-f-agent-socials) a.sfre-icon-btn,
:where(.sfre-agent-card[data-sfre-agent], .sfre-f-agent-socials) .sfre-icon-btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 999px;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg);
	text-decoration: none;
	font-family: var(--sfre-font-ui);
	font-size: 13.5px;
	font-weight: 700;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
:where(.sfre-agent-card[data-sfre-agent], .sfre-f-agent-socials) a.sfre-icon-btn:hover,
:where(.sfre-agent-card[data-sfre-agent], .sfre-f-agent-socials) .sfre-icon-btn:hover {
	color: var(--sfre-card-on);
	border-color: var(--sfre-card-ink);
	background: var(--sfre-card-ink);
}

/* ======================================================================
 * 2. The property card
 * ==================================================================== */
.sfre-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--sfre-card-edge);
	border-radius: var(--sfre-card-radius);
	background: var(--sfre-card-bg);
	box-shadow: var(--sfre-card-shadow);
	color: var(--sfre-card-ink);
	font-family: var(--sfre-font-ui);
	text-align: start;
	transition: transform 0.35s var(--sfre-card-ease), box-shadow 0.35s var(--sfre-card-ease), border-color 0.35s ease;
}
.sfre-card__media {
	position: relative;
	flex: none;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sfre-card-bg-2);
}
.sfre-card__img,
.sfre-card__media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 50% 60%;
	transition: transform 0.7s var(--sfre-card-ease), filter 0.4s ease;
}
.sfre-card__ph,
.sfre-loc-tile__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: color-mix(in srgb, var(--sfre-card-muted) 55%, transparent);
	background:
		radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--sfre-card-accent-2) 10%, transparent), transparent 60%),
		var(--sfre-card-bg-2);
}
.sfre-card__chips {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 60px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}
.sfre-card__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	gap: 8px;
}
.sfre-card__pills {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	gap: 6px;
	pointer-events: none;
}
.sfre-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 16px 18px 18px;
}
.sfre-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	line-height: 1.1;
}
.sfre-card__amount,
.sfre-price__amount {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--sfre-card-ink);
}
.sfre-card__amount--request,
.sfre-price__amount--request {
	font-size: 17px;
	letter-spacing: 0;
}
.sfre-card__period,
.sfre-price__period {
	margin-left: -6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sfre-card-muted);
}
.sfre-card__prev,
.sfre-price__prev {
	font-size: 13px;
	font-weight: 600;
	color: var(--sfre-card-muted);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: color-mix(in srgb, var(--sfre-card-accent) 70%, transparent);
}
.sfre-card__ppa {
	font-size: 13px;
	font-weight: 600;
	color: var(--sfre-card-muted);
}
.sfre-card__title {
	/* Two lines, clamped: demo titles run ~47 characters, one line cut the
	   key words ("…with a privat…"). min-height keeps a row of cards aligned. */
	display: -webkit-box;
	min-height: 2.7em;
	margin: 2px 0 0;
	overflow: hidden;
	font-family: var(--sfre-font-ui);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
	white-space: normal;
	overflow-wrap: anywhere;
	color: var(--sfre-card-ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
/* Single-column result lists (map search) don't need the reserved line. */
:where(.sfre-msr__list, .sfre-card--row) .sfre-card__title {
	min-height: 0;
}
/* (0,1,1)+ so a theme's post-content link colour/underline
 * (:root :where(.wp-block-post-content a) = 0,1,0, printed later) never wins. */
a.sfre-card__link,
a.sfre-card__link:hover,
a.sfre-card__link:focus,
a.sfre-card__link:visited {
	color: inherit;
	text-decoration: none;
	outline: none;
}
.sfre-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.sfre-card__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfre-card-accent);
	border-radius: var(--sfre-card-radius);
}
.sfre-card__loc {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--sfre-card-muted);
}
.sfre-card__loc span:last-child {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfre-card__loc .sfre-ico {
	color: var(--sfre-card-accent);
}

/* Facts row (card + .sfre-facts field) */
.sfre-card__facts,
.sfre-facts {
	/* Separators live in the column gap (::before at -gap/2) and the list
	   clips its left edge, so when "4,050 sq ft" wraps to a second line its
	   separator is cut away instead of starting the line as an orphan. */
	--sfre-fact-gap: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px var(--sfre-fact-gap);
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 14px;
	-webkit-clip-path: inset(-8px -8px -8px 0);
	clip-path: inset(-8px -8px -8px 0);
}
.sfre-fact {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	color: var(--sfre-card-ink);
}
.sfre-card__facts .sfre-fact + .sfre-fact::before,
.sfre-facts--line .sfre-fact + .sfre-fact::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: calc(var(--sfre-fact-gap) / -2);
	width: 1px;
	background: var(--sfre-card-line);
}
.sfre-facts--dot {
	--sfre-fact-gap: 17px;
}
.sfre-facts--dot .sfre-fact + .sfre-fact::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(var(--sfre-fact-gap) / -2 - 1.5px);
	width: 3px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 50%;
	background: var(--sfre-card-muted);
	opacity: 0.6;
}
.sfre-fact .sfre-ico {
	color: var(--sfre-card-muted);
}
.sfre-fact__v {
	font-weight: 700;
}
.sfre-fact__l {
	margin-left: -2px;
	font-weight: 500;
	color: var(--sfre-card-muted);
}

.sfre-card__excerpt {
	display: -webkit-box;
	margin: 4px 0 0;
	overflow: hidden;
	font-family: var(--sfre-font-body);
	font-size: 14px;
	line-height: 1.55;
	color: var(--sfre-card-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sfre-card__feats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.sfre-card__feats li {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg-2);
}
.sfre-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--sfre-card-line);
}
.sfre-card__body:has(.sfre-card__foot) .sfre-card__facts,
.sfre-card__body:has(.sfre-card__foot) .sfre-card__feats {
	margin-bottom: 10px;
}
.sfre-card__agent {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	gap: 8px;
	min-width: min(9.5em, 58%);
	font-size: 13px;
	font-weight: 600;
	color: var(--sfre-card-ink);
}
.sfre-card__agent-name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* The meta (days on market / open house) gives way first: it shrinks
 * 1000x faster than the agent and ellipsizes its own text. */
.sfre-card__meta {
	display: inline-flex;
	flex: 0 1000 auto;
	align-items: center;
	gap: 5px;
	min-width: 0;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--sfre-card-muted);
	white-space: nowrap;
}
.sfre-card__meta-t {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sfre-card__meta--open {
	font-weight: 700;
	color: var(--sfre-card-accent-2);
}

/* States */
.sfre-card.is-sold .sfre-card__img,
.sfre-card.is-rented .sfre-card__img,
.sfre-f-property-image.is-sold img,
.sfre-f-property-image.is-rented img {
	filter: grayscale(0.55) brightness(0.92);
}

/* Hover (pointer devices only — no sticky hover after a tap) */
@media (hover: hover) {
	.sfre-card:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfre-card-shadow-hover);
		border-color: var(--sfre-card-line);
	}
	.sfre-card:hover .sfre-card__img,
	.sfre-card:hover .sfre-card__media > img,
	.sfre-f-property-image:hover img {
		transform: scale(1.04);
	}
	.sfre-card:hover .sfre-card__title {
		color: var(--sfre-card-accent-strong);
	}
	.sfre-card--composed:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfre-card-shadow-hover);
	}
	.sfre-fav--icon:hover,
	.sfre-fav--icon-sm:hover,
	.sfre-cmp--icon:hover {
		transform: scale(1.08);
	}
	.sfre-fav--button:hover,
	.sfre-cmp--button:hover {
		border-color: var(--sfre-card-ink);
	}
}
.sfre-card.is-active,
.sfre-card.is-hovered {
	border-color: var(--sfre-card-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--sfre-card-accent) 28%, transparent), var(--sfre-card-shadow-hover);
}

/* ---- Row variant (list views, map results) ----
 * Wraps to a stacked card by itself when the CARD (not the viewport) is
 * narrower than 560px — e.g. inside the 440px map results panel. */
.sfre-card--row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
}
.sfre-card--row > .sfre-card__media {
	flex-grow: 2;
	flex-shrink: 1;
	min-width: 0;
	flex-basis: calc((560px - 100%) * 999);
	aspect-ratio: auto;
	min-height: 220px;
}
.sfre-card--row > .sfre-card__body {
	flex-grow: 3;
	flex-shrink: 1;
	min-width: 0;
	flex-basis: calc((560px - 100%) * 999);
	padding: 18px 22px 20px;
}
.sfre-card--row .sfre-card__title {
	font-size: 17px;
}

/* Compact cards (narrow grid cells, carousels on phones) */
.sfre-card--card,
.sfre-card--row,
.sfre-card--composed {
	/* Composed (field-block) cards join the container so their facts get
	   the same compact spacing as the canonical card in 4-up grids — at
	   12px item padding "bd · ba · sq ft" wrapped to two lines there. */
	container: sfre-card / inline-size;
}
@container sfre-card (max-width: 300px) {
	.sfre-card__body {
		padding: 14px 14px 16px;
	}
	.sfre-card__amount {
		font-size: 19px;
	}
	.sfre-card__facts,
	.sfre-card--composed .sfre-facts {
		--sfre-fact-gap: 16px;
		font-size: 13px;
	}
	.sfre-card__foot {
		flex-wrap: wrap;
		gap: 6px;
	}
	.sfre-card__chips .sfre-chip--label + .sfre-chip--drop {
		display: none;
	}
}

/* ---- Overlay variant (photo-led showcase) ---- */
.sfre-card--overlay {
	height: auto;
	aspect-ratio: 4 / 5;
	min-height: 360px;
	border: 0;
	color: var(--sfre-photo-ink);
	background: var(--sfre-card-navy);
}
.sfre-card--overlay .sfre-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}
.sfre-card__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--sfre-photo-scrim);
	pointer-events: none;
}
.sfre-card--overlay .sfre-card__body {
	position: relative;
	z-index: 2;
	justify-content: flex-end;
	padding: 22px;
	pointer-events: none;
}
.sfre-card--overlay .sfre-card__body a {
	pointer-events: auto;
}
.sfre-card--overlay .sfre-card__amount,
.sfre-card--overlay .sfre-card__title,
.sfre-card--overlay .sfre-fact,
.sfre-card--overlay .sfre-fact__v {
	color: var(--sfre-photo-ink);
}
.sfre-card--overlay .sfre-card__amount {
	font-size: 26px;
}
.sfre-card--overlay .sfre-card__period,
.sfre-card--overlay .sfre-card__prev,
.sfre-card--overlay .sfre-card__loc,
.sfre-card--overlay .sfre-fact__l,
.sfre-card--overlay .sfre-fact .sfre-ico,
.sfre-card--overlay .sfre-card__loc .sfre-ico {
	color: rgba(255, 255, 255, 0.82);
}
.sfre-card--overlay .sfre-card__title {
	font-family: var(--sfre-font-display);
	font-size: 22px;
	font-weight: 500;
	white-space: normal;
}
.sfre-card--overlay .sfre-card__facts .sfre-fact + .sfre-fact::before {
	background: rgba(255, 255, 255, 0.28);
}
.sfre-card--overlay .sfre-card__title {
	min-height: 0;
}
.sfre-card--overlay .sfre-card__pills {
	top: 12px;
	bottom: auto;
	left: auto;
	right: 60px;
}
@media (hover: hover) {
	.sfre-card--overlay:hover .sfre-card__title {
		color: var(--sfre-photo-ink);
	}
}

/* ---- Mini variant (map popup, compact lists) ---- */
.sfre-card--mini {
	flex-direction: row;
	align-items: stretch;
	height: auto;
	border-radius: 14px;
}
.sfre-card--mini .sfre-card__media {
	flex: 0 0 112px;
	aspect-ratio: auto;
	min-height: 96px;
}
.sfre-card--mini .sfre-card__actions {
	top: 6px;
	right: 6px;
}
.sfre-card--mini .sfre-card__body {
	gap: 3px;
	padding: 10px 12px;
	justify-content: center;
}
.sfre-card--mini .sfre-card__amount {
	font-size: 17px;
}
.sfre-card--mini .sfre-card__title {
	display: block;
	min-height: 0;
	margin: 0;
	font-size: 13.5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfre-card--mini .sfre-card__loc {
	font-size: 12px;
}
.sfre-card--mini .sfre-card__facts {
	--sfre-fact-gap: 16px;
	margin: 2px 0 0;
	font-size: 12.5px;
}
@media (hover: hover) {
	.sfre-card--mini:hover {
		transform: none;
	}
}

/* ---- Skeleton ---- */
.sfre-card.is-skeleton {
	pointer-events: none;
	box-shadow: none;
}
.sfre-card.is-skeleton .sfre-skel {
	display: block;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--sfre-card-bg-2) 25%, color-mix(in srgb, var(--sfre-card-bg-2) 40%, var(--sfre-card-bg)) 37%, var(--sfre-card-bg-2) 63%);
	background-size: 400% 100%;
	animation: sfre-card-shimmer 1.4s ease-in-out infinite;
}
.sfre-card.is-skeleton .sfre-skel--media {
	width: 100%;
	height: 100%;
	border-radius: 0;
}
.sfre-card.is-skeleton .sfre-skel--price { width: 42%; height: 22px; }
.sfre-card.is-skeleton .sfre-skel--title { width: 82%; height: 16px; margin-top: 4px; }
.sfre-card.is-skeleton .sfre-skel--line { width: 58%; height: 12px; }
.sfre-card.is-skeleton .sfre-skel--facts { width: 70%; height: 14px; margin-top: 8px; }
@keyframes sfre-card-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* ======================================================================
 * 3. Agent cards
 * ==================================================================== */
.sfre-agent-card[data-sfre-agent] {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--sfre-card-edge);
	border-radius: var(--sfre-card-radius);
	background: var(--sfre-card-bg);
	box-shadow: var(--sfre-card-shadow);
	color: var(--sfre-card-ink);
	font-family: var(--sfre-font-ui);
	transition: transform 0.35s var(--sfre-card-ease), box-shadow 0.35s var(--sfre-card-ease);
}
.sfre-agent-card__media {
	position: relative;
	flex: none;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--sfre-card-bg-2);
}
.sfre-agent-card__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
	transition: transform 0.7s var(--sfre-card-ease);
}
.sfre-agent-card__img.sfre-avatar--initials {
	border-radius: 0;
	font-family: var(--sfre-font-display);
	font-size: 56px;
	font-weight: 500;
	box-shadow: none;
}
.sfre-agent-card__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	font-family: var(--sfre-font-num);
	font-size: 13px;
	font-weight: 800;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.sfre-agent-card__badge .sfre-ico,
.sfre-stat--rating .sfre-ico {
	color: var(--sfre-card-gold);
}
.sfre-agent-card__badge .sfre-ico svg,
.sfre-stat--rating .sfre-ico svg {
	fill: currentColor;
}
.sfre-agent-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px 20px;
}
.sfre-agent-card__name {
	margin: 0;
	font-family: var(--sfre-font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
a.sfre-agent-card__link,
a.sfre-agent-card__link:hover,
a.sfre-agent-card__link:visited {
	color: inherit;
	text-decoration: none;
	outline: none;
}
.sfre-agent-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.sfre-agent-card__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfre-card-accent);
	border-radius: var(--sfre-card-radius);
}
.sfre-agent-card__role {
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--sfre-card-muted);
}
.sfre-agent-card__langs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--sfre-card-muted);
}
.sfre-agent-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid var(--sfre-card-line);
}
.sfre-agent-card__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sfre-agent-card__stats strong {
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
}
.sfre-agent-card__stats span {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sfre-card-muted);
}
.sfre-agent-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
}
a.sfre-agent-card__cta,
a.sfre-agent-card__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--sfre-card-accent-2);
	text-decoration: none;
}
@media (hover: hover) {
	.sfre-agent-card[data-sfre-agent]:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfre-card-shadow-hover);
	}
	.sfre-agent-card[data-sfre-agent]:hover .sfre-agent-card__img {
		transform: scale(1.04);
	}
	.sfre-agent-card[data-sfre-agent]:hover .sfre-agent-card__cta .sfre-ico {
		transform: translate(2px, -2px);
	}
}
.sfre-agent-card__cta .sfre-ico {
	transition: transform 0.25s var(--sfre-card-ease);
}

.sfre-agent-card--horizontal[data-sfre-agent] {
	flex-direction: row;
}
.sfre-agent-card--horizontal[data-sfre-agent] .sfre-agent-card__media {
	flex: 0 0 clamp(150px, 34%, 220px);
	aspect-ratio: auto;
	min-height: 220px;
}
@media (max-width: 600px) {
	.sfre-agent-card--horizontal[data-sfre-agent] {
		flex-direction: column;
	}
	.sfre-agent-card--horizontal[data-sfre-agent] .sfre-agent-card__media {
		flex-basis: auto;
		aspect-ratio: 4 / 3;
	}
}
.sfre-agent-card--compact[data-sfre-agent],
.sfre-agent-card--mini[data-sfre-agent] {
	flex-direction: row;
	align-items: center;
	align-self: start;
	gap: 14px;
	height: auto;
	padding: 14px;
}
.sfre-agent-card--compact[data-sfre-agent] .sfre-agent-card__media,
.sfre-agent-card--mini[data-sfre-agent] .sfre-agent-card__media {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}
.sfre-agent-card--compact[data-sfre-agent] .sfre-agent-card__img.sfre-avatar--initials,
.sfre-agent-card--mini[data-sfre-agent] .sfre-agent-card__img.sfre-avatar--initials {
	font-size: 22px;
}
.sfre-agent-card--compact[data-sfre-agent] .sfre-agent-card__body,
.sfre-agent-card--mini[data-sfre-agent] .sfre-agent-card__body {
	padding: 0;
	gap: 2px;
}
.sfre-agent-card--compact[data-sfre-agent] .sfre-agent-card__name {
	font-size: 18px;
}
.sfre-agent-card--compact[data-sfre-agent] .sfre-agent-card__actions {
	padding-top: 8px;
}
.sfre-agent-card--mini[data-sfre-agent] {
	padding: 10px 12px;
	border-radius: 14px;
	box-shadow: none;
}
.sfre-agent-card--mini[data-sfre-agent] .sfre-agent-card__media {
	flex-basis: 44px;
	width: 44px;
	height: 44px;
}
.sfre-agent-card--mini[data-sfre-agent] .sfre-agent-card__name {
	font-family: var(--sfre-font-ui);
	font-size: 15px;
	font-weight: 700;
}
.sfre-agent-card--mini[data-sfre-agent] .sfre-agent-card__role {
	font-size: 12.5px;
}
@media (hover: hover) {
	.sfre-agent-card--compact[data-sfre-agent]:hover,
	.sfre-agent-card--mini[data-sfre-agent]:hover {
		transform: none;
	}
}

/* ======================================================================
 * 4. Location tiles
 * ==================================================================== */
.sfre-loc-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 0;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border-radius: var(--sfre-card-radius);
	color: var(--sfre-photo-ink);
	background: var(--sfre-card-navy);
	font-family: var(--sfre-font-ui);
	box-shadow: var(--sfre-card-shadow);
}
.sfre-loc-tile__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.sfre-loc-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--sfre-card-ease);
}
.sfre-loc-tile__scrim {
	position: absolute;
	inset: 0;
	/* Darker from the middle down than the generic photo scrim: the eyebrow
	   sits at ~60% of the tile height, on sand / sky / white towers. */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.8) 100%);
}
.sfre-loc-tile__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 22px 22px;
}
.sfre-loc-tile__parent {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfre-photo-ink);
}
.sfre-loc-tile:not(.sfre-loc-tile--card):not(.sfre-loc-tile--chip) :is(.sfre-loc-tile__parent, .sfre-loc-tile__name, .sfre-loc-tile__tagline, .sfre-loc-tile__meta) {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.3);
}
.sfre-loc-tile__name {
	margin: 0;
	font-family: var(--sfre-font-display);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--sfre-photo-ink);
}
a.sfre-loc-tile__link,
a.sfre-loc-tile__link:hover,
a.sfre-loc-tile__link:visited {
	color: inherit;
	text-decoration: none;
	outline: none;
}
.sfre-loc-tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}
.sfre-loc-tile__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfre-card-accent);
	border-radius: var(--sfre-card-radius);
}
.sfre-loc-tile__tagline {
	max-width: 46ch;
	margin: 2px 0 0;
	font-family: var(--sfre-font-body);
	font-size: 14.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.86);
}
.sfre-loc-tile__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 6px 0 0;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sfre-photo-ink);
}
.sfre-loc-tile__meta span + span::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 9px 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}
.sfre-loc-tile__go {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	transform: translate(-6px, 6px) scale(0.9);
	transition: opacity 0.3s ease, transform 0.35s var(--sfre-card-ease);
}
@media (hover: hover) {
	.sfre-loc-tile:hover .sfre-loc-tile__img {
		transform: scale(1.06);
	}
	.sfre-loc-tile:hover .sfre-loc-tile__go {
		opacity: 1;
		transform: none;
	}
}
.sfre-loc-tile:focus-within .sfre-loc-tile__go {
	opacity: 1;
	transform: none;
}
@media (hover: none) {
	.sfre-loc-tile__go {
		opacity: 1;
		transform: none;
	}
}

.sfre-loc-tile--wide {
	aspect-ratio: 16 / 9;
}
.sfre-loc-tile--wide .sfre-loc-tile__name {
	font-size: clamp(26px, 3vw, 38px);
}
@media (max-width: 600px) {
	.sfre-loc-tile--wide {
		aspect-ratio: 4 / 5;
	}
}

.sfre-loc-tile--card {
	aspect-ratio: auto;
	justify-content: flex-start;
	overflow: visible;
	color: var(--sfre-card-ink);
	background: transparent;
	box-shadow: none;
}
.sfre-loc-tile--card .sfre-loc-tile__media {
	position: relative;
	inset: auto;
	aspect-ratio: 3 / 2;
	border-radius: var(--sfre-card-radius);
	background: var(--sfre-card-bg-2);
}
.sfre-loc-tile--card .sfre-loc-tile__body {
	padding: 14px 2px 0;
}
.sfre-loc-tile--card .sfre-loc-tile__parent {
	color: var(--sfre-card-muted);
	text-shadow: none;
}
.sfre-loc-tile--card .sfre-loc-tile__name {
	font-size: 22px;
	color: var(--sfre-card-ink);
}
.sfre-loc-tile--card .sfre-loc-tile__tagline,
.sfre-loc-tile--card .sfre-loc-tile__meta {
	color: var(--sfre-card-muted);
}
.sfre-loc-tile--card .sfre-loc-tile__go {
	display: none;
}

a.sfre-loc-tile--chip,
a.sfre-loc-tile--chip:hover,
a.sfre-loc-tile--chip:visited {
	color: var(--sfre-card-ink);
	text-decoration: none;
}
.sfre-loc-tile--chip {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	height: auto;
	aspect-ratio: auto;
	padding: 5px 8px 5px 5px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 999px;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg);
	box-shadow: none;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.sfre-loc-tile--chip .sfre-loc-tile__media {
	position: relative;
	inset: auto;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}
.sfre-loc-tile--chip .sfre-loc-tile__name {
	font-family: var(--sfre-font-ui);
	font-size: 14px;
	font-weight: 700;
	color: var(--sfre-card-ink);
	white-space: nowrap;
}
.sfre-loc-tile__count {
	padding: 3px 8px;
	border-radius: 999px;
	font-family: var(--sfre-font-num);
	font-size: 12px;
	font-weight: 700;
	color: var(--sfre-card-muted);
	background: var(--sfre-card-bg-2);
}
@media (hover: hover) {
	.sfre-loc-tile--chip:hover {
		border-color: var(--sfre-card-accent-2);
		transform: translateY(-1px);
	}
}

/* ======================================================================
 * 5. Field blocks (.sfre-f-*) — defaults the block theme refines via Looks
 * ==================================================================== */
.sfre-f {
	box-sizing: border-box;
	min-width: 0;
	font-family: var(--sfre-font-ui);
}
.sfre-f.is-empty {
	display: none !important;
}

/* Cards built from fields: the card is the positioning box of the stretched link */
:where(.sfre-loop) > *,
:where(.wp-block-post-template) > li,
:where(.wp-block-group):has(> .sfre-f-property-link, > .sfre-f-location-link) {
	position: relative;
}
:where(.sfre-loop) > :where(.wp-block-group) {
	transition: transform 0.35s var(--sfre-card-ease), box-shadow 0.35s var(--sfre-card-ease);
}
.sfre-f-property-favorite,
.sfre-f-property-compare,
.sfre-f-property-agent,
.sfre-f-agent-phone,
.sfre-f-agent-email,
.sfre-f-agent-socials,
.sfre-f-agent-contact-buttons {
	position: relative;
	z-index: 2;
}
/* The heart over a field-composed photo keeps the canonical top-right
 * placement (absolute, from .sfre-card__actions) and sits above the
 * stretched .sfre-f-property-link (z-index 1). Never `position: relative`
 * here: the figure clips with overflow:hidden, so an in-flow actions bar
 * drops under the 4:3 photo and disappears. */
.sfre-f-property-image > .sfre-card__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	bottom: auto;
	z-index: 3;
}

.sfre-f-property-title,
.sfre-f-agent-name,
.sfre-f-location-name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
	color: var(--sfre-card-ink);
}
.sfre-f-property-title a,
.sfre-f-agent-name a,
.sfre-f-location-name a,
.sfre-f-property-image a.sfre-f-property-image__link,
.sfre-f-agent-photo a {
	color: inherit;
	text-decoration: none;
}
.sfre-f-property-title a:hover,
.sfre-f-agent-name a:hover {
	color: var(--sfre-card-accent-strong);
}
.sfre-f-agent-name,
.sfre-f-location-name {
	font-family: var(--sfre-font-display);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.sfre-f-property-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	line-height: 1.1;
	color: var(--sfre-card-ink);
}
.sfre-f-property-price-per-area,
.sfre-f-property-mls,
.sfre-f-property-date {
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--sfre-card-muted);
}
.sfre-f-property-mls .sfre-f__l {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 11px;
}

/* property-image */
.sfre-f-property-image {
	position: relative;
	display: block;
	margin: 0;
	aspect-ratio: var(--sfre-aspect, 4 / 3);
	overflow: hidden;
	border-radius: var(--sfre-card-radius);
	background: var(--sfre-card-bg-2);
}
.sfre-f-property-image.is-natural {
	aspect-ratio: auto;
}
.sfre-f-property-image__link {
	display: block;
	width: 100%;
	height: 100%;
}
.sfre-f-property-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--sfre-card-ease), filter 0.4s ease;
}

/* stretched links */
.sfre-f-property-link,
.sfre-f-location-link {
	position: static;
	display: block;
	width: 0;
	height: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible;
	outline: none;
}
.sfre-f-property-link::after,
.sfre-f-location-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.sfre-f-property-link:focus-visible::after,
.sfre-f-location-link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfre-card-accent);
	border-radius: var(--sfre-card-radius);
}
.sfre-f-location-link::after {
	z-index: 3;
}

.sfre-f-property-type {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sfre-card-accent-2);
}
.sfre-f-property-location,
.sfre-f-property-address {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sfre-card-muted);
}
.sfre-f-property-location .sfre-ico,
.sfre-f-property-address .sfre-ico {
	color: var(--sfre-card-accent);
}
.sfre-f-property-beds,
.sfre-f-property-baths,
.sfre-f-property-area,
.sfre-f-property-lot,
.sfre-f-property-year,
.sfre-f-property-garage {
	padding: 0;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 14px;
}
.sfre-f-property-facts {
	margin: 0;
}
.sfre-f-property-excerpt {
	margin: 0;
	font-family: var(--sfre-font-body);
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sfre-card-muted);
}
.sfre-f-property-agent,
a.sfre-f-property-agent,
a.sfre-f-property-agent:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--sfre-card-ink);
	text-decoration: none;
}
.sfre-f-property-agent.is-photo .sfre-avatar.sfre-avatar {
	width: 48px;
	height: 48px;
}
.sfre-f-property-agent:hover .sfre-f-property-agent__name {
	color: var(--sfre-card-accent-strong);
}
.sfre-f-property-open-house {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--sfre-card-accent-2);
	background: var(--sfre-card-mint);
}
.sfre-f-property-favorite,
.sfre-f-property-compare {
	display: inline-flex;
}
.sfre-f-property-deal-badge,
.sfre-f-property-status-badge,
.sfre-f-property-label-badge {
	width: max-content;
}

/* agent fields */
.sfre-f-agent-photo {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 50%;
	background: var(--sfre-card-bg-2);
}
.sfre-f-agent-photo.is-rounded {
	border-radius: var(--sfre-card-radius);
}
/* A circle portrait dropped into a wide column stays avatar-sized (agents.css,
 * which caps it inside the agents grid, is not loaded with this field). Looks
 * width / max-width on the block win; the rounded shape is the hero portrait. */
.sfre-f-agent-photo.is-circle {
	max-width: 240px;
}
.sfre-f-agent-photo a {
	display: block;
	width: 100%;
	height: 100%;
}
.sfre-f-agent-photo__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
}
.sfre-f-agent-photo .sfre-avatar--initials {
	border-radius: 0;
	box-shadow: none;
	font-family: var(--sfre-font-display);
	font-size: 32px;
	font-weight: 500;
}
.sfre-f-agent-role {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--sfre-card-muted);
}
.sfre-f-agent-phone,
.sfre-f-agent-email {
	margin: 0;
	font-family: var(--sfre-font-num);
	font-size: 15px;
	font-weight: 600;
}
.sfre-f-agent-phone a,
.sfre-f-agent-email a,
.sfre-f-agent-phone > span,
.sfre-f-agent-email > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sfre-card-ink);
	text-decoration: none;
}
.sfre-f-agent-phone .sfre-ico,
.sfre-f-agent-email .sfre-ico {
	color: var(--sfre-card-accent-2);
}
.sfre-f-agent-phone a:hover,
.sfre-f-agent-email a:hover {
	color: var(--sfre-card-accent-strong);
}
.sfre-f-agent-bio {
	font-family: var(--sfre-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--sfre-card-muted);
}
.sfre-f-agent-bio p {
	margin: 0 0 0.8em;
}
.sfre-f-agent-bio p:last-child {
	margin-bottom: 0;
}
.sfre-f-agent-stats {
	/* Four stats lay out as one row of 4 or an even 2×2 — never 3+1 with
	   the rating orphaned: below --sfre-stats-4up the min track jumps to
	   half the width (clamp() is 0 above it, so a quarter wins). */
	--sfre-stats-gap: 14px;
	--sfre-stats-4up: 400px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(max(calc((100% - 3 * var(--sfre-stats-gap)) / 4), clamp(0px, (var(--sfre-stats-4up) - 100%) * 999, calc((100% - var(--sfre-stats-gap)) / 2))), 1fr));
	gap: var(--sfre-stats-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfre-stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.sfre-stat__v {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--sfre-card-ink);
}
.sfre-stat__l {
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfre-card-muted);
}
.sfre-f-agent-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfre-f-agent-socials .sfre-icon-btn {
	padding: 0;
}
.sfre-f-agent-contact-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.sfre-f-agent-contact-buttons .sfre-btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 12px;
	font-family: var(--sfre-font-ui);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sfre-f-agent-contact-buttons .sfre-btn--primary {
	border-color: var(--sfre-card-accent-strong);
	color: var(--sfre-card-on);
	background: var(--sfre-card-accent-strong);
}
@media (hover: hover) {
	.sfre-f-agent-contact-buttons .sfre-btn:hover {
		border-color: var(--sfre-card-ink);
		transform: translateY(-1px);
	}
	.sfre-f-agent-contact-buttons .sfre-btn--primary:hover {
		/* Darker on hover (light) / lighter (dark): the label keeps its contrast. */
		border-color: color-mix(in srgb, var(--sfre-card-accent-strong) 88%, var(--sfre-card-ink));
		background: color-mix(in srgb, var(--sfre-card-accent-strong) 88%, var(--sfre-card-ink));
	}
}

/* location fields */
.sfre-f-location-image {
	position: relative;
	margin: 0;
	aspect-ratio: var(--sfre-aspect, 4 / 5);
	overflow: hidden;
	border-radius: var(--sfre-card-radius);
	background: var(--sfre-card-navy);
}
.sfre-f-location-image.is-fill {
	position: absolute;
	inset: 0;
	z-index: 0;
	aspect-ratio: auto;
	border-radius: inherit;
}
/* The hero <picture> (phone / desktop sources) must not become a box of its own. */
.sfre-f-location-image__pic {
	display: contents;
}
.sfre-f-location-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--sfre-card-ease);
}
.sfre-f-location-image__scrim {
	position: absolute;
	inset: 0;
	background: var(--sfre-photo-scrim);
	pointer-events: none;
}
@media (hover: hover) {
	:where(.sfre-loop) > *:hover .sfre-f-location-image img {
		transform: scale(1.06);
	}
}
.sfre-f-location-count,
.sfre-f-location-median {
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13.5px;
	font-weight: 600;
}
.sfre-f-location-median .sfre-f__l {
	font-weight: 500;
	opacity: 0.8;
}
.sfre-f-location-tagline {
	margin: 0;
	font-family: var(--sfre-font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--sfre-card-muted);
}

/* Field-composed cards — the editor's default loop templates use these
 * classes (core/group .sfre-card.sfre-card--composed > property-image +
 * group.sfre-card__body; group.sfre-agent-tile; group.sfre-location-tile),
 * so a freshly inserted loop already matches the canonical card. */
.sfre-card > .sfre-f-property-image,
.sfre-card > .wp-block-real-estate-property-image {
	flex: none;
	border-radius: 0;
}
.sfre-card--composed {
	transition: transform 0.35s var(--sfre-card-ease), box-shadow 0.35s var(--sfre-card-ease);
}
.sfre-card--composed > .sfre-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sfre-card--composed .sfre-f-property-title {
	/* Same 2-line clamp as the canonical .sfre-card__title. */
	display: -webkit-box;
	min-height: 2.7em;
	min-height: 2lh;
	overflow: hidden;
	white-space: normal;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sfre-card--composed .sfre-f-property-facts {
	margin-top: 6px;
}
/* Footer: the agent name never wraps (it broke footer alignment in 4-up rows). */
.sfre-f-property-agent__name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfre-card--composed .sfre-f-property-date,
.sfre-card--composed .sfre-f-property-open-house {
	/* !important: themes pin this meta with flex-shrink:0 (by #id); with
	   nowrap + ellipsis here it can give way, so the agent name never cuts. */
	flex-shrink: 1000 !important;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
@media (hover: hover) {
	.sfre-card:hover .sfre-f-property-image img,
	.sfre-card--composed:hover .sfre-f-property-image img {
		transform: scale(1.04);
	}
	/* On the link itself: Looks colours the h3 by #id, which an inherited
	   colour can't beat — the <a> rule applies directly. */
	.sfre-card--composed:hover .sfre-f-property-title,
	.sfre-card--composed:hover .sfre-f-property-title a {
		color: var(--sfre-card-accent-strong);
	}
}

.sfre-agent-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 28px 22px 24px;
	border: 1px solid var(--sfre-card-edge);
	border-radius: var(--sfre-card-radius);
	background: var(--sfre-card-bg);
	box-shadow: var(--sfre-card-shadow);
	text-align: center;
	transition: transform 0.35s var(--sfre-card-ease), box-shadow 0.35s var(--sfre-card-ease);
}
.sfre-agent-tile .sfre-f-agent-photo {
	width: 112px;
	margin-bottom: 8px;
	box-shadow: 0 0 0 4px var(--sfre-card-bg), 0 0 0 5px var(--sfre-card-line);
}
.sfre-agent-tile .sfre-f-agent-name {
	font-size: 20px;
}
.sfre-agent-tile .sfre-f-agent-stats {
	width: 100%;
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--sfre-card-line);
}
/* Centred card heads (agent tiles) get centred stats. */
.sfre-agent-tile .sfre-stat,
.sfre-card--agent .sfre-stat,
.sfre-f-agent-stats.has-text-align-center .sfre-stat {
	align-items: center;
	text-align: center;
}
/* Narrow agent tiles: Call keeps its label, Email / WhatsApp become icon
 * buttons on the same row (one row instead of two; the label stays for
 * screen readers). */
.sfre-agent-tile,
.sfre-card--agent {
	container: sfre-agent / inline-size;
}
@container sfre-agent (max-width: 360px) {
	.sfre-f-agent-contact-buttons {
		flex-wrap: nowrap;
	}
	.sfre-f-agent-contact-buttons .sfre-btn--ghost {
		flex: 0 0 46px;
		padding: 0;
	}
	.sfre-f-agent-contact-buttons .sfre-btn--ghost > span:not(.sfre-ico) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
@media (hover: hover) {
	.sfre-agent-tile:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfre-card-shadow-hover);
	}
}

.sfre-location-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	min-width: 0;
	min-height: 320px;
	aspect-ratio: 4 / 5;
	padding: 20px 22px 22px;
	overflow: hidden;
	border-radius: var(--sfre-card-radius);
	color: var(--sfre-photo-ink);
	background: var(--sfre-card-navy);
	box-shadow: var(--sfre-card-shadow);
}
.sfre-location-tile > .sfre-f-location-image {
	position: absolute;
	inset: 0;
	z-index: -1;
	aspect-ratio: auto;
	border-radius: 0;
}
.sfre-location-tile .sfre-f-location-name {
	font-size: clamp(22px, 2.2vw, 28px);
	color: var(--sfre-photo-ink);
}
.sfre-location-tile .sfre-f-location-count,
.sfre-location-tile .sfre-f-location-median,
.sfre-location-tile .sfre-f-location-tagline {
	color: var(--sfre-photo-ink);
}
.sfre-location-tile :is(.sfre-f-location-name, .sfre-f-location-count, .sfre-f-location-median, .sfre-f-location-tagline) {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.3);
}
.sfre-location-tile .sfre-f-location-image__scrim {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.8) 100%);
}
.sfre-location-tile .sfre-f-location-link::after {
	z-index: 3;
}
@media (hover: hover) {
	.sfre-location-tile:hover .sfre-f-location-image img {
		transform: scale(1.06);
	}
}

/* ======================================================================
 * 6. Loops, empty state, pagination, context wrappers
 * ==================================================================== */
.sfre-loop {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--sfre-loop-min, 300px)), 1fr));
	gap: var(--sfre-loop-gap, 24px);
	min-width: 0;
}
.sfre-loop--agents {
	--sfre-loop-min: 240px;
}
.sfre-loop--locations {
	--sfre-loop-min: 240px;
}
.sfre-loop > style {
	display: none;
}
/* Phone layout "Swipe rail" (mobileLayout=rail on property / agent /
 * location loops): one row that scrolls sideways with snap points, the next
 * item peeking in, instead of a 6-card stack. !important beats the Looks
 * #block_x grid columns of the loop root. */
@media (max-width: 599px) {
	.sfre-loop.is-mobile-rail {
		grid-template-columns: none !important;
		grid-auto-flow: column !important;
		grid-auto-columns: min(82%, 320px);
		gap: 14px !important;
		margin-top: -6px;
		padding: 6px 0 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.sfre-loop.is-mobile-rail::-webkit-scrollbar {
		display: none;
	}
	.sfre-loop.is-mobile-rail > * {
		scroll-snap-align: start;
	}
	.sfre-loop--agents.is-mobile-rail,
	.sfre-loop--locations.is-mobile-rail {
		grid-auto-columns: min(72%, 280px);
	}
}
.sfre-loop__empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 24px;
	border: 1px dashed var(--sfre-card-line);
	border-radius: var(--sfre-card-radius);
	text-align: center;
	font-family: var(--sfre-font-ui);
	color: var(--sfre-card-muted);
	background: color-mix(in srgb, var(--sfre-card-bg) 60%, transparent);
}
.sfre-loop__empty .sfre-ico {
	display: inline-flex;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: var(--sfre-card-accent-2);
	background: var(--sfre-card-mint);
}
.sfre-loop__empty p {
	max-width: 48ch;
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--sfre-card-ink);
}
a.sfre-loop__reset {
	display: inline-block;
	margin-left: 6px;
	color: var(--sfre-card-accent-strong);
	font-weight: 700;
}

.sfre-lp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	font-family: var(--sfre-font-ui);
}
.sfre-lp.is-empty {
	display: none;
}
.sfre-lp__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfre-lp .sfre-lp__num,
.sfre-lp .sfre-lp__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 12px;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.sfre-lp .sfre-lp__link {
	padding: 0 16px;
	font-family: var(--sfre-font-ui);
}
.sfre-lp a.sfre-lp__num:hover,
.sfre-lp a.sfre-lp__link:hover {
	border-color: var(--sfre-card-ink);
	color: var(--sfre-card-ink);
	text-decoration: none;
}
a.sfre-lp__num:focus-visible,
a.sfre-lp__link:focus-visible {
	outline: 2px solid var(--sfre-card-accent);
	outline-offset: 2px;
}
.sfre-lp .sfre-lp__num.is-current {
	border-color: var(--sfre-card-ink);
	color: var(--sfre-card-on);
	background: var(--sfre-card-ink);
}
.sfre-lp__link.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}
.sfre-lp__gap {
	min-width: 20px;
	text-align: center;
	color: var(--sfre-card-muted);
}
.sfre-lp__status {
	flex-basis: 100%;
	margin: 4px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--sfre-card-muted);
}
@media (max-width: 600px) {
	.sfre-lp__link span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
	.sfre-lp .sfre-lp__link {
		padding: 0;
		min-width: 44px;
	}
	.sfre-lp .sfre-lp__num {
		min-width: 40px;
		height: 40px;
	}
}

.sfre-ctx {
	min-width: 0;
}
.sfre-ctx.is-empty {
	display: none;
}
.sfre-ctx__hint {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--sfre-card-line);
	border-radius: 12px;
	font-family: var(--sfre-font-ui);
	font-size: 13.5px;
	color: var(--sfre-card-muted);
}

/* ======================================================================
 * 7. Header "Saved" link + count badge
 * ==================================================================== */
.sfre-saved-link {
	display: inline-flex;
}
.sfre-saved-link .sfre-saved-link__a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px 0 10px;
	border-radius: 999px;
	font-family: var(--sfre-font-ui);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sfre-card-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sfre-saved-link.is-icon .sfre-saved-link__a {
	width: 40px;
	padding: 0;
	justify-content: center;
}
.sfre-saved-link .sfre-saved-link__a:hover {
	color: var(--sfre-card-ink);
	text-decoration: none;
	background: color-mix(in srgb, var(--sfre-card-ink) 6%, transparent);
}
.sfre-saved-link__a:focus-visible {
	outline: 2px solid var(--sfre-card-accent);
	outline-offset: 2px;
}
.sfre-saved-link__icon {
	position: relative;
	display: inline-flex;
	line-height: 0;
}
.sfre-saved-link .sfre-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: -2px;
	padding: 0 5px;
	border-radius: 999px;
	font-family: var(--sfre-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	color: var(--sfre-card-on);
	background: var(--sfre-card-ink);
}
.sfre-saved-link .sfre-badge[hidden] {
	display: none;
}
/* Icon-only: a 16px badge pinned to the button corner, ringed in the
 * header colour, clear of the heart. */
.sfre-saved-link.is-icon .sfre-saved-link__count {
	position: absolute;
	top: -2px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	margin: 0;
	padding: 0 4px;
	font-size: 10px;
	color: var(--sfre-card-on);
	background: var(--sfre-card-accent-strong);
	box-shadow: 0 0 0 2px var(--wp--preset--color--glass, var(--sfre-card-bg));
}
/* Saved state: the heart stays an outline with a light coral wash. */
.sfre-saved-link:has(.sfre-badge:not([hidden])) .sfre-saved-link__icon svg {
	fill: color-mix(in srgb, var(--sfre-card-accent) 15%, transparent);
	stroke: var(--sfre-card-accent);
}
.sfre-saved-link .sfre-badge.is-bump {
	animation: sfre-badge-bump 0.45s var(--sfre-card-ease);
}
@keyframes sfre-badge-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

/* ======================================================================
 * 7b. Saved searches (built by favorites.js inside the Saved page list)
 * ==================================================================== */
.sfre-ss {
	margin: 0 0 32px;
	padding: 20px 22px;
	border: 1px solid var(--sfre-card-edge);
	border-radius: var(--sfre-card-radius);
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg);
	box-shadow: var(--sfre-card-shadow);
	font-family: var(--sfre-font-ui);
	text-align: start;
}
.sfre-ss:focus {
	outline: none;
}
.sfre-ss.is-empty {
	margin: 40px 0 0;
	padding: 16px 20px;
	border-style: dashed;
	border-color: var(--sfre-card-line);
	background: transparent;
	box-shadow: none;
}
.sfre-ss__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}
.sfre-ss.is-empty .sfre-ss__head {
	margin-bottom: 4px;
}
.sfre-ss__title {
	margin: 0;
	font-family: var(--sfre-font-ui);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--sfre-card-ink);
}
.sfre-ss__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	font-family: var(--sfre-font-num);
	font-size: 12px;
	font-weight: 800;
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg-2);
}
.sfre-ss__empty {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--sfre-card-muted);
}
.sfre-ss a.sfre-ss__cta {
	font-weight: 700;
	color: var(--sfre-card-accent-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sfre-ss__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfre-ss__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 10px 8px 10px 12px;
	border: 1px solid var(--sfre-card-line);
	border-radius: 12px;
	background: var(--sfre-card-bg);
	transition: border-color 0.2s ease;
}
.sfre-ss__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--sfre-card-accent-2);
	background: var(--sfre-card-mint);
}
.sfre-ss__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sfre-ss a.sfre-ss__link {
	overflow: hidden;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfre-card-ink);
	text-decoration: none;
	outline: none;
}
.sfre-ss a.sfre-ss__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.sfre-ss a.sfre-ss__link:focus-visible::after {
	box-shadow: inset 0 0 0 2px var(--sfre-card-accent);
}
.sfre-ss__meta {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--sfre-card-muted);
}
.sfre-ss a.sfre-ss__open {
	flex: none;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--sfre-card-accent-2);
	text-decoration: none;
}
.sfre-ss__remove {
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--sfre-card-muted);
	background: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sfre-ss__remove:hover {
	color: var(--sfre-card-ink);
	background: var(--sfre-card-bg-2);
}
.sfre-ss__remove:focus-visible {
	outline: 2px solid var(--sfre-card-accent);
	outline-offset: 1px;
}
@media (hover: hover) {
	.sfre-ss__item:hover {
		border-color: var(--sfre-card-ink);
	}
}
@media (max-width: 600px) {
	.sfre-ss {
		padding: 16px;
	}
	.sfre-ss a.sfre-ss__open {
		display: none;
	}
}

/* ======================================================================
 * 8. Compare tray + fallback toast (built by favorites.js)
 * ==================================================================== */
.sfre-cmp-tray {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 24px);
	padding: 10px 10px 10px 12px;
	border: 1px solid var(--sfre-card-edge);
	border-radius: 18px;
	color: var(--sfre-card-ink);
	background: var(--wp--preset--color--glass-2, var(--sfre-card-glass));
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: var(--wp--preset--shadow--depth-4, 0 20px 50px rgba(20, 24, 31, 0.22));
	font-family: var(--sfre-font-ui);
	transform: translate(-50%, 140%);
	transition: transform 0.4s var(--sfre-card-ease);
}
.sfre-cmp-tray.is-visible {
	transform: translate(-50%, 0);
}
.sfre-cmp-tray[hidden] {
	display: none;
}
.sfre-cmp-tray__thumbs {
	display: flex;
}
.sfre-cmp-tray__thumb {
	width: 44px;
	height: 34px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--sfre-card-bg-2);
	box-shadow: 0 0 0 2px var(--sfre-card-bg);
}
.sfre-cmp-tray__thumb + .sfre-cmp-tray__thumb {
	margin-left: -8px;
}
.sfre-cmp-tray__thumb.is-empty {
	border: 1px dashed var(--sfre-card-line);
	background: transparent;
	box-shadow: none;
}
.sfre-cmp-tray__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sfre-cmp-tray__text {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
.sfre-cmp-tray__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}
.sfre-cmp-tray__clear,
.sfre-cmp-tray__go {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}
.sfre-cmp-tray__clear {
	color: var(--sfre-card-muted);
	background: transparent;
}
.sfre-cmp-tray__clear:hover {
	color: var(--sfre-card-ink);
}
.sfre-cmp-tray__go {
	color: var(--sfre-card-on);
	background: var(--sfre-card-accent-strong);
}
.sfre-cmp-tray__go.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}
@media (max-width: 600px) {
	.sfre-cmp-tray {
		left: 12px;
		right: 12px;
		bottom: 12px;
		transform: translateY(140%);
	}
	.sfre-cmp-tray.is-visible {
		transform: none;
	}
	.sfre-cmp-tray__text {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 13px;
	}
	.sfre-cmp-tray__clear {
		display: none;
	}
}

.sfre-fav-toast {
	position: fixed;
	left: 50%;
	bottom: 88px;
	z-index: 9995;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 12px 14px 12px 16px;
	border-radius: 14px;
	font-family: var(--sfre-font-ui);
	font-size: 14px;
	font-weight: 600;
	color: var(--sfre-card-on);
	background: var(--sfre-card-ink);
	box-shadow: var(--wp--preset--shadow--depth-4, 0 20px 50px rgba(20, 24, 31, 0.25));
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.25s ease, transform 0.3s var(--sfre-card-ease), visibility 0s linear 0.3s;
	pointer-events: none;
}
.sfre-fav-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 0.25s ease, transform 0.3s var(--sfre-card-ease), visibility 0s;
	pointer-events: auto;
}
.sfre-fav-toast__action {
	flex: none;
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ======================================================================
 * 9. Motion safety
 * ==================================================================== */
@media (prefers-reduced-motion: reduce) {
	.sfre-card,
	.sfre-card__img,
	.sfre-card__media > img,
	.sfre-agent-card[data-sfre-agent],
	.sfre-agent-card__img,
	.sfre-loc-tile__img,
	.sfre-loc-tile__go,
	.sfre-f-property-image img,
	.sfre-f-location-image img,
	.sfre-fav,
	.sfre-fav__heart,
	.sfre-cmp-tray,
	.sfre-fav-toast {
		transition: none !important;
	}
	.sfre-card:hover,
	.sfre-card--composed:hover,
	.sfre-agent-card[data-sfre-agent]:hover {
		transform: none !important;
	}
	.sfre-card--composed:hover .sfre-f-property-image img,
	.sfre-card:hover .sfre-card__img,
	.sfre-agent-card[data-sfre-agent]:hover .sfre-agent-card__img,
	.sfre-loc-tile:hover .sfre-loc-tile__img,
	.sfre-f-property-image:hover img {
		transform: none !important;
	}
	.sfre-fav.is-popping .sfre-fav__heart,
	.sfre-fav.is-popping .sfre-fav__burst,
	.sfre-badge.is-bump,
	.sfre-card.is-skeleton .sfre-skel {
		animation: none !important;
	}
}

/* Print: cards as plain blocks */
@media print {
	.sfre-card,
	.sfre-agent-card[data-sfre-agent] {
		box-shadow: none;
		break-inside: avoid;
	}
	.sfre-card__actions,
	.sfre-cmp-tray,
	.sfre-fav-toast {
		display: none !important;
	}
}
