/**
 * Stepfox Real Estate — property page components (handle `stepfox-re-property`, dep `stepfox-re`).
 *
 * Blocks: property-gallery, property-header (+ sticky bar), property-key-facts,
 * property-details, property-features, property-description, property-floor-plans,
 * property-video, mortgage-calculator, contact-agent, and the shared lightbox.
 *
 * Rules: every colour is a palette preset (`--wp--preset--color--<slug>`) with a
 * light fallback, so the theme's dark scheme flips everything; aliases are
 * declared on the component roots (not :root) so they resolve where the theme
 * sets the palette. White is reserved for text over photos; text on coral/teal
 * fills uses the `base` preset (SPEC addendum 12). Motion respects
 * prefers-reduced-motion. Print stylesheet at the end.
 */

/* ------------------------------------------------------------------ */
/* 0. Local tokens                                                      */
/* ------------------------------------------------------------------ */

.sfre-property-gallery,
.sfre-property-header,
.sfre-sticky-bar,
.sfre-property-key-facts,
.sfre-property-details,
.sfre-property-features,
.sfre-property-description,
.sfre-property-floor-plans,
.sfre-property-video,
.sfre-mortgage-calculator,
.sfre-contact-agent {
	--sfre-p-base: var(--wp--preset--color--base, #f7f5f0);
	--sfre-p-panel: var(--wp--preset--color--panel, #ffffff);
	--sfre-p-panel-2: var(--wp--preset--color--panel-2, #efeae1);
	--sfre-p-line: var(--wp--preset--color--line, rgba(20, 24, 31, 0.10));
	--sfre-p-edge: var(--wp--preset--color--edge, rgba(20, 24, 31, 0.08));
	--sfre-p-ink: var(--wp--preset--color--ink, #14181f);
	--sfre-p-muted: var(--wp--preset--color--muted, #5d6672);
	--sfre-p-accent: var(--wp--preset--color--accent, #e0553d);
	--sfre-p-accent-2: var(--wp--preset--color--accent-2, #0f766e);
	--sfre-p-neon: var(--wp--preset--color--neon, #14b8a6);
	--sfre-p-navy: var(--wp--preset--color--violet, #1d3557);
	--sfre-p-turf: var(--wp--preset--color--turf, #dcefe9);
	--sfre-p-gold: var(--wp--preset--color--gold, #8a6400);
	--sfre-p-glass: var(--wp--preset--color--glass, rgba(255, 255, 255, 0.86));
	--sfre-p-f-display: var(--wp--preset--font-family--display, "Fraunces", Georgia, "Times New Roman", serif);
	--sfre-p-f-ui: var(--wp--preset--font-family--ui, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfre-p-f-body: var(--wp--preset--font-family--body, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfre-p-f-num: var(--wp--preset--font-family--num, var(--wp--preset--font-family--ui, "Manrope", system-ui, sans-serif));
	--sfre-p-shadow-1: var(--wp--preset--shadow--depth-1, 0 1px 2px rgba(20, 24, 31, 0.06), 0 2px 6px rgba(20, 24, 31, 0.04));
	--sfre-p-shadow-2: var(--wp--preset--shadow--depth-2, 0 2px 4px rgba(20, 24, 31, 0.05), 0 10px 28px rgba(20, 24, 31, 0.08));
	--sfre-p-shadow-3: var(--wp--preset--shadow--depth-3, 0 6px 14px rgba(20, 24, 31, 0.08), 0 22px 48px rgba(20, 24, 31, 0.12));
	--sfre-p-ring: 0 0 0 3px color-mix(in srgb, var(--sfre-p-accent-2) 28%, transparent);
	--sfre-p-r-card: var(--sfre-radius-card, 16px);
	--sfre-p-r-btn: var(--sfre-radius-btn, 12px);
	--sfre-p-r-input: var(--sfre-radius-input, 12px);
	--sfre-p-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	box-sizing: border-box;
	color: var(--sfre-p-ink);
}

.sfre-property-gallery *,
.sfre-property-header *,
.sfre-sticky-bar *,
.sfre-property-key-facts *,
.sfre-property-details *,
.sfre-property-features *,
.sfre-property-description *,
.sfre-property-floor-plans *,
.sfre-property-video *,
.sfre-mortgage-calculator *,
.sfre-contact-agent *,
.sfre-lb * {
	box-sizing: border-box;
}

/* Jump targets sit inside the block, under the section heading the templates
   print above it: clear the header, the sticky price bar (~68px) and that
   heading. gallery.js scrolls chip links to the heading itself. */
.sfre-anchor {
	display: block;
	position: relative;
	top: calc(-1 * (var(--sfre-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px) + 72px));
	visibility: hidden;
	height: 0;
	width: 0;
}

/* Desktop: the price bar sits under the header (phones get it at the bottom). */
@media (min-width: 782px) {
	.sfre-anchor {
		top: calc(-1 * (var(--sfre-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px) + 156px));
	}
}

.sfre-sr,
.sfre-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.sfre-p-ico {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.sfre-p-ico svg {
	display: block;
}

.sfre-section-title {
	margin: 0 0 20px;
	font-family: var(--sfre-p-f-display);
	font-weight: 500;
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--sfre-p-ink);
	font-optical-sizing: auto;
}

.sfre-p-note {
	margin: 0;
	padding: 16px 18px;
	border: 1px dashed var(--sfre-p-line);
	border-radius: var(--sfre-p-r-card);
	color: var(--sfre-p-muted);
	font: 500 14px/1.5 var(--sfre-p-f-ui);
}

/* Shared buttons ---------------------------------------------------- */

.sfre-p-btn {
	--_bg: var(--sfre-p-panel);
	--_fg: var(--sfre-p-ink);
	--_bd: var(--sfre-p-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--_bd);
	border-radius: var(--sfre-p-r-btn);
	background: var(--_bg);
	color: var(--_fg);
	font: 700 15px/1 var(--sfre-p-f-ui);
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--sfre-p-ease), box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.sfre-p-btn:hover {
	--_bd: color-mix(in srgb, var(--sfre-p-ink) 28%, transparent);
	--_bg: var(--sfre-p-panel-2);
	color: var(--_fg);
	text-decoration: none;
}

.sfre-p-btn:active {
	transform: translateY(1px);
}

.sfre-p-btn:focus-visible,
.sfre-ph__action:focus-visible,
.sfre-gallery button:focus-visible,
.sfre-gallery a:focus-visible,
.sfre-tabs__tab:focus-visible,
.sfre-embed__poster:focus-visible,
.sfre-desc__toggle:focus-visible,
.sfre-lb button:focus-visible {
	outline: 2px solid var(--sfre-p-accent-2, #0f766e);
	outline-offset: 2px;
	box-shadow: var(--sfre-p-ring);
}

/* Coral fills that carry a label use the deep coral (--sfre-accent-strong:
   #c2412a in light, the night accent in dark) with the `base` label, so the
   pair passes 4.5:1 in both schemes; the plain accent is 3.5:1 with paper. */
.sfre-p-btn--primary {
	--_bg: var(--sfre-accent-strong, var(--sfre-p-accent));
	--_fg: var(--sfre-p-base);
	--_bd: var(--sfre-accent-strong, var(--sfre-p-accent));
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--sfre-p-accent) 70%, transparent);
}

.sfre-p-btn--primary:hover {
	--_bg: color-mix(in srgb, var(--sfre-accent-strong, var(--sfre-p-accent)) 88%, var(--sfre-p-ink));
	--_bd: var(--_bg);
	--_fg: var(--sfre-p-base);
	box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--sfre-p-accent) 80%, transparent);
}

/* Links drawn as controls keep their own colour and decoration against theme
   and page-builder link rules (`.elementor a`, `.elementor-kit-N a` are 0,1,1
   and may load later): every selector here is at least (0,2,1). */
:is(.sfre-property-header, .sfre-sticky-bar, .sfre-contact-agent, .sfre-mortgage-calculator, .sfre-property-floor-plans, .sfre-property-video) a.sfre-p-btn {
	color: var(--_fg);
	text-decoration: none;
}

.sfre-property-gallery a.sfre-gallery__chip,
.sfre-property-gallery a.sfre-gallery__all {
	color: var(--sfre-p-ink);
	text-decoration: none;
}

.sfre-contact-agent a.sfre-ca__reset {
	color: var(--sfre-p-ink);
	text-decoration: underline;
}

.sfre-p-btn--dark {
	--_bg: var(--sfre-p-ink);
	--_fg: var(--sfre-p-base);
	--_bd: var(--sfre-p-ink);
}

.sfre-p-btn--dark:hover {
	--_bg: color-mix(in srgb, var(--sfre-p-ink) 86%, var(--sfre-p-accent-2));
	--_bd: var(--_bg);
	--_fg: var(--sfre-p-base);
}

.sfre-p-btn--block {
	display: flex;
	width: 100%;
}

.sfre-p-btn--lg {
	min-height: 52px;
	font-size: 16px;
}

/* ------------------------------------------------------------------ */
/* 1. Gallery                                                           */
/* ------------------------------------------------------------------ */

.sfre-property-gallery {
	position: relative;
}

.sfre-gallery {
	position: relative;
	isolation: isolate;
}

.sfre-gallery__tile {
	position: relative;
	display: block;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	background: var(--sfre-p-panel-2);
	color: inherit;
	cursor: zoom-in;
}

.sfre-gallery__tile img,
.sfre-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--sfre-p-ease), filter 0.4s ease;
}

.sfre-gallery__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(11, 14, 19, 0);
	transition: background-color 0.3s ease;
	pointer-events: none;
}

.sfre-gallery__tile:hover img {
	transform: scale(1.035);
}

.sfre-gallery__tile:hover::after {
	background: rgba(11, 14, 19, 0.08);
}

.sfre-gallery__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
	color: var(--sfre-p-muted);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--sfre-p-accent-2) 10%, transparent), transparent 60%),
		var(--sfre-p-panel-2);
}

/* Mosaic: 1 large + 4 ------------------------------------------------ */

.sfre-gallery__mosaic {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 8px;
	aspect-ratio: 2.15 / 1;
	max-height: 640px;
	width: 100%;
	border-radius: var(--sfre-p-r-card);
	overflow: hidden;
}

.sfre-gallery__mosaic > .sfre-gallery__tile:first-child {
	grid-row: 1 / span 2;
	grid-column: 1;
}

.sfre-gallery__mosaic--n1 {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	aspect-ratio: 16 / 7;
}

.sfre-gallery__mosaic--n1 > .sfre-gallery__tile:first-child {
	grid-row: 1;
}

.sfre-gallery__mosaic--n2 {
	grid-template-columns: 1.4fr 1fr;
}

.sfre-gallery__mosaic--n2 > .sfre-gallery__tile:nth-child(2) {
	grid-row: 1 / span 2;
}

.sfre-gallery__mosaic--n3 {
	grid-template-columns: 2fr 1fr;
}

.sfre-gallery__mosaic--n4 > .sfre-gallery__tile:nth-child(2) {
	grid-column: 2 / span 2;
}

.sfre-gallery__count,
.sfre-gallery__all,
.sfre-gallery__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--sfre-p-edge);
	border-radius: 999px;
	background: var(--sfre-p-glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	color: var(--sfre-p-ink);
	font: 700 14px/1 var(--sfre-p-f-ui);
	text-decoration: none;
	box-shadow: var(--sfre-p-shadow-2);
	cursor: pointer;
	transition: transform 0.2s var(--sfre-p-ease), box-shadow 0.2s ease;
}

.sfre-gallery__all:hover,
.sfre-gallery__chip:hover {
	transform: translateY(-1px);
	box-shadow: var(--sfre-p-shadow-3);
	color: var(--sfre-p-ink);
	text-decoration: none;
}

.sfre-gallery__chip[hidden],
.sfre-gallery__nav[hidden] {
	display: none;
}

.sfre-gallery__all {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 2;
}

.sfre-gallery__chips {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sfre-gallery__count {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	gap: 0;
	height: 30px;
	padding: 0 12px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	display: none;
}

.sfre-gallery__more {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	background: rgba(11, 14, 19, 0.52);
	color: #ffffff;
	font: 800 clamp(20px, 2.4vw, 30px)/1 var(--sfre-p-f-num);
	letter-spacing: -0.01em;
}

/* Slider ------------------------------------------------------------ */

.sfre-gallery--slider {
	border-radius: var(--sfre-p-r-card);
	overflow: hidden;
	background: var(--sfre-p-panel-2);
}

.sfre-gallery__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sfre-gallery__track::-webkit-scrollbar {
	display: none;
}

.sfre-gallery__track:focus-visible {
	outline: 2px solid var(--sfre-p-accent-2);
	outline-offset: -4px;
}

.sfre-gallery__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	aspect-ratio: 16 / 9;
	max-height: 720px;
	margin: 0;
}

.sfre-gallery__slide .sfre-gallery__tile {
	height: 100%;
}

.sfre-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border: 1px solid var(--sfre-p-edge);
	border-radius: 50%;
	background: var(--sfre-p-glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--sfre-p-ink);
	box-shadow: var(--sfre-p-shadow-2);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s var(--sfre-p-ease);
}

.sfre-gallery__nav:hover {
	transform: scale(1.06);
}

.sfre-gallery__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.sfre-gallery__nav--prev {
	left: 16px;
}

.sfre-gallery__nav--next {
	right: 16px;
}

.sfre-gallery--slider .sfre-gallery__count {
	display: inline-flex;
	left: 16px;
	bottom: 16px;
	height: 34px;
}

/* Grid -------------------------------------------------------------- */

.sfre-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.sfre-gallery__grid .sfre-gallery__tile {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
}

/* Lead tile fills the first row so the grid never ends with a hole:
   n % 3 == 1 → full-width lead, n % 3 == 2 → two-column lead. */
.sfre-gallery__grid--m1 > .sfre-gallery__tile:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 12 / 5;
}

.sfre-gallery__grid--m2 > .sfre-gallery__tile:first-child {
	grid-column: span 2;
	aspect-ratio: auto;
}

.sfre-gallery--grid .sfre-gallery__all {
	position: static;
	margin-top: 12px;
	box-shadow: none;
	background: var(--sfre-p-panel);
	border-color: var(--sfre-p-line);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

@media (max-width: 781px) {
	/* Phone: the mosaic becomes a swipeable, edge-to-edge strip with a counter. */
	.sfre-gallery__mosaic {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		aspect-ratio: auto;
		max-height: none;
		gap: 0;
	}

	.sfre-gallery__mosaic::-webkit-scrollbar {
		display: none;
	}

	.sfre-gallery__mosaic > .sfre-gallery__tile {
		flex: 0 0 100%;
		aspect-ratio: 4 / 3;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.sfre-gallery--mosaic .sfre-gallery__count {
		display: inline-flex;
	}

	.sfre-gallery__all {
		right: 12px;
		bottom: 12px;
		height: 34px;
		padding: 0 12px;
		font-size: 13px;
	}

	.sfre-gallery__all-label {
		display: none;
	}

	.sfre-gallery__chips {
		display: none;
	}

	.sfre-gallery__nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.sfre-gallery__slide {
		aspect-ratio: 4 / 3;
	}

	.sfre-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sfre-gallery__grid > .sfre-gallery__tile:first-child {
		grid-column: auto;
		aspect-ratio: 4 / 3;
	}

	.sfre-gallery__grid--odd > .sfre-gallery__tile:first-child {
		grid-column: 1 / -1;
		aspect-ratio: 16 / 9;
	}
}

@media (min-width: 782px) {
	.sfre-gallery__all-short {
		display: none;
	}

	/* Extra photos only exist for the phone strip. */
	.sfre-gallery__mosaic > .sfre-gallery__tile--extra {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* 2. Lightbox (always dark — it's a photo viewer)                      */
/* ------------------------------------------------------------------ */

html.sfre-lb-open,
html.sfre-lb-open body {
	overflow: hidden;
}

.sfre-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: #0a0c10;
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.22s ease;
	font-family: var(--wp--preset--font-family--ui, "Manrope", system-ui, sans-serif);
	outline: none;
}

.sfre-lb[hidden] {
	display: none;
}

.sfre-lb.is-open {
	opacity: 1;
}

.sfre-lb__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	padding-top: max(12px, env(safe-area-inset-top));
}

.sfre-lb__counter {
	margin: 0;
	min-width: 64px;
	font: 700 14px/1 var(--wp--preset--font-family--num, var(--wp--preset--font-family--ui, system-ui));
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.sfre-lb__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.sfre-lb__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sfre-lb__btn:hover {
	background: rgba(255, 255, 255, 0.18);
}

.sfre-lb__btn:focus-visible {
	outline: 2px solid #5eead4;
	outline-offset: 2px;
}

.sfre-lb__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 84px;
	touch-action: pan-y pinch-zoom;
	-webkit-user-select: none;
	user-select: none;
}

.sfre-lb__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	pointer-events: none;
}

.sfre-lb__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 200px);
	max-height: calc(100dvh - 200px);
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	transition: opacity 0.25s ease, transform 0.3s var(--sfre-p-ease, ease);
	pointer-events: auto;
	-webkit-user-drag: none;
}

.sfre-lb.is-loading .sfre-lb__img {
	opacity: 0.35;
}

.sfre-lb__caption {
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	text-align: center;
}

.sfre-lb__spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: #ffffff;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: sfre-spin 0.8s linear infinite;
	transition: opacity 0.2s ease;
}

.sfre-lb.is-loading .sfre-lb__spinner {
	opacity: 1;
}

.sfre-lb__nav {
	position: absolute;
	top: 50%;
	width: 54px;
	height: 54px;
	margin-top: -27px;
}

.sfre-lb__nav[hidden] {
	display: none;
}

.sfre-lb__nav--prev {
	left: 16px;
}

.sfre-lb__nav--next {
	right: 16px;
}

.sfre-lb__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 12px 16px 16px;
	padding-bottom: max(16px, env(safe-area-inset-bottom));
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.sfre-lb__thumbs[hidden] {
	display: none;
}

.sfre-lb__thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.sfre-lb__thumb:first-child {
	margin-left: auto;
}

.sfre-lb__thumb:last-child {
	margin-right: auto;
}

.sfre-lb__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sfre-lb__thumb:hover {
	opacity: 0.85;
}

.sfre-lb__thumb[aria-current="true"] {
	opacity: 1;
	box-shadow: 0 0 0 2px #ffffff;
}

.sfre-lb__thumb:focus-visible {
	outline: 2px solid #5eead4;
	outline-offset: 2px;
}

@media (max-width: 781px) {
	.sfre-lb__stage {
		padding: 0;
	}

	.sfre-lb__img {
		border-radius: 0;
		max-height: calc(100dvh - 170px);
	}

	.sfre-lb__nav {
		display: none;
	}

	.sfre-lb__thumb {
		width: 60px;
		height: 44px;
	}
}

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

/* ------------------------------------------------------------------ */
/* 3. Header                                                            */
/* ------------------------------------------------------------------ */

.sfre-property-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

/* Font-swap stable header. On a slow phone the page paints with the metric
   fallback fonts and Manrope/Fraunces arrive a few seconds later. Anything
   that WRAPS (a crumb, the actions row, the MLS number) could then land on
   another line, jumping a whole row sideways — the largest layout shift of
   the page (CLS 0.18–0.29 on long listings). So the header keeps every row's
   line count independent of the font: the breadcrumb is one scrollable line,
   the action pills sit beside it (desktop) or on their own row (below
   1024px) but never wrap under it, and the MLS number has a fixed slot. */
.sfre-ph__nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	min-width: 0;
}

.sfre-breadcrumb {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.sfre-breadcrumb ol {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px 8px;
	/* The 4px padding keeps focus rings inside the scroll clip. */
	margin: -4px;
	padding: 4px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	list-style: none;
	font: 600 13px/1.4 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-breadcrumb ol::-webkit-scrollbar {
	display: none;
}

.sfre-breadcrumb li {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	white-space: nowrap;
}

/* A trail longer than the row fades out at the edge it continues past
   (scroll-driven; no fade when it fits or where unsupported). */
@property --sfre-bc-start {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

@property --sfre-bc-end {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

@keyframes sfre-bc-fade {
	0% {
		--sfre-bc-start: 0px;
		--sfre-bc-end: 28px;
	}

	12%,
	88% {
		--sfre-bc-start: 28px;
		--sfre-bc-end: 28px;
	}

	100% {
		--sfre-bc-start: 28px;
		--sfre-bc-end: 0px;
	}
}

@supports (animation-timeline: scroll()) {
	.sfre-breadcrumb ol {
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--sfre-bc-start), #000 calc(100% - var(--sfre-bc-end)), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 var(--sfre-bc-start), #000 calc(100% - var(--sfre-bc-end)), transparent 100%);
		animation: sfre-bc-fade linear both;
		animation-timeline: scroll(self inline);
	}

	.sfre-breadcrumb ol:dir(rtl) {
		-webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--sfre-bc-start), #000 calc(100% - var(--sfre-bc-end)), transparent 100%);
		mask-image: linear-gradient(to left, transparent 0, #000 var(--sfre-bc-start), #000 calc(100% - var(--sfre-bc-end)), transparent 100%);
	}
}

.sfre-breadcrumb a {
	color: var(--sfre-p-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sfre-breadcrumb a:hover {
	color: var(--sfre-p-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfre-breadcrumb [aria-current="page"] {
	color: var(--sfre-p-ink);
}

.sfre-breadcrumb__sep {
	color: color-mix(in srgb, var(--sfre-p-muted) 60%, transparent);
	font-weight: 400;
}

.sfre-ph__actions {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sfre-ph__action,
.sfre-share > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--sfre-p-line);
	border-radius: 999px;
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	font: 700 14px/1 var(--sfre-p-f-ui);
	text-decoration: none;
	cursor: pointer;
	list-style: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--sfre-p-ease);
	-webkit-tap-highlight-color: transparent;
}

.sfre-share > summary::-webkit-details-marker {
	display: none;
}

.sfre-ph__action:hover,
.sfre-share > summary:hover {
	border-color: color-mix(in srgb, var(--sfre-p-ink) 30%, transparent);
	background: var(--sfre-p-panel-2);
	color: var(--sfre-p-ink);
	text-decoration: none;
}

.sfre-share > summary:focus-visible {
	outline: 2px solid var(--sfre-p-accent-2);
	outline-offset: 2px;
}

[data-sfre-fav] .sfre-ico-on {
	display: none;
}

[data-sfre-fav][aria-pressed="true"] .sfre-ico-on,
[data-sfre-fav].is-active .sfre-ico-on,
[data-sfre-fav].is-saved .sfre-ico-on {
	display: inline-flex;
	color: var(--sfre-p-accent);
}

[data-sfre-fav][aria-pressed="true"] .sfre-ico-off,
[data-sfre-fav].is-active .sfre-ico-off,
[data-sfre-fav].is-saved .sfre-ico-off {
	display: none;
}

.sfre-ph__action--fav[aria-pressed="true"],
.sfre-ph__action--fav.is-active {
	border-color: color-mix(in srgb, var(--sfre-p-accent) 45%, transparent);
	background: color-mix(in srgb, var(--sfre-p-accent) 8%, var(--sfre-p-panel));
}

.sfre-ph__action--cmp[aria-pressed="true"],
.sfre-ph__action--cmp.is-active {
	border-color: color-mix(in srgb, var(--sfre-p-accent-2) 45%, transparent);
	background: color-mix(in srgb, var(--sfre-p-accent-2) 8%, var(--sfre-p-panel));
	color: var(--sfre-p-accent-2);
}

.sfre-share {
	position: relative;
}

.sfre-share__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 30;
	display: grid;
	gap: 2px;
	min-width: 220px;
	padding: 6px;
	border: 1px solid var(--sfre-p-line);
	border-radius: 14px;
	background: var(--sfre-p-panel);
	box-shadow: var(--sfre-p-shadow-3);
	animation: sfre-pop 0.18s var(--sfre-p-ease);
}

.sfre-share__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--sfre-p-ink);
	font: 600 14px/1.2 var(--sfre-p-f-ui);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.sfre-share__item:hover,
.sfre-share__item:focus-visible {
	background: var(--sfre-p-panel-2);
	color: var(--sfre-p-ink);
	text-decoration: none;
	outline: none;
}

.sfre-share__item.is-done {
	color: var(--sfre-p-accent-2);
}

.sfre-share__item[hidden] {
	display: none;
}

@keyframes sfre-pop {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
}

.sfre-ph__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 20px 48px;
}

.sfre-ph__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.sfre-ph__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 28px;
	padding: 0 12px;
	border: 1px solid var(--sfre-p-line);
	border-radius: 999px;
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	font: 700 12px/1 var(--sfre-p-f-ui);
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.sfre-ph__chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sfre-p-accent);
}

.sfre-ph__chip--for-rent .sfre-ph__chip-dot {
	background: var(--sfre-p-accent-2);
}

.sfre-ph__chip--new,
.sfre-ph__chip--new-construction {
	border-color: transparent;
	background: var(--sfre-p-turf);
	color: var(--sfre-p-accent-2);
}

.sfre-ph__chip--hot,
.sfre-ph__chip--drop {
	border-color: transparent;
	background: color-mix(in srgb, var(--sfre-p-accent) 13%, var(--sfre-p-panel));
	color: color-mix(in srgb, var(--sfre-p-accent) 82%, var(--sfre-p-ink));
}

.sfre-ph__chip--open-house {
	border-color: transparent;
	background: color-mix(in srgb, var(--sfre-p-navy) 12%, var(--sfre-p-panel));
	color: var(--sfre-p-navy);
}

.sfre-ph__chip--exclusive,
.sfre-ph__chip--sold,
.sfre-ph__chip--rented {
	border-color: var(--sfre-p-ink);
	background: var(--sfre-p-ink);
	color: var(--sfre-p-base);
}

.sfre-ph__chip--under-contract {
	border-color: transparent;
	background: color-mix(in srgb, var(--sfre-p-gold) 16%, var(--sfre-p-panel));
	color: var(--sfre-p-gold);
}

.sfre-ph__title {
	margin: 0;
	font-family: var(--sfre-p-f-display);
	font-weight: 500;
	font-size: clamp(30px, 3.6vw, 52px);
	line-height: 1.06;
	letter-spacing: -0.022em;
	color: var(--sfre-p-ink);
	font-optical-sizing: auto;
	text-wrap: balance;
}

/* Address + MLS never wrap into each other (font-swap stable, see 3.):
   the MLS number keeps its slot on the address's first line and a long
   address wraps inside its own column; phones stack the two (below). */
.sfre-ph__address {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 12px 0 0;
	font: 500 15px/1.5 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-ph__address-main {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	color: var(--sfre-p-ink);
}

.sfre-ph__address-text {
	min-width: 0;
	overflow-wrap: break-word;
}

/* The pin sits on the first line however many lines the address takes. */
.sfre-ph__address-main .sfre-p-ico {
	align-self: flex-start;
	align-items: center;
	height: 1.5em;
	line-height: inherit;
	height: 1lh;
	color: var(--sfre-p-accent);
}

.sfre-ph__address a {
	color: inherit;
	text-decoration: none;
}

.sfre-ph__address a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfre-ph__mls {
	flex: none;
	font-size: 13px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.sfre-ph__aside {
	display: grid;
	justify-items: end;
	gap: 8px;
	text-align: right;
}

.sfre-ph__price {
	margin: 0;
	font-family: var(--sfre-p-f-num);
	font-weight: 800;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	color: var(--sfre-p-ink);
	white-space: nowrap;
}

.sfre-ph__period {
	margin-left: 2px;
	font-size: 0.46em;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--sfre-p-muted);
}

.sfre-ph__price-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 6px 12px;
	font: 600 14px/1.3 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
	font-variant-numeric: tabular-nums;
}

.sfre-ph__was {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.sfre-ph__drop {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: color-mix(in srgb, var(--sfre-p-accent) 85%, var(--sfre-p-ink));
	font-weight: 800;
}

.sfre-ph__est {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sfre-p-accent-2);
	font: 700 14px/1.2 var(--sfre-p-f-ui);
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
	padding-bottom: 2px;
}

.sfre-ph__est:hover {
	color: var(--sfre-p-ink);
	text-decoration: none;
}

.sfre-ph__oh {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: 700 13px/1.3 var(--sfre-p-f-ui);
	color: var(--sfre-p-navy);
}

@media (max-width: 781px) {
	.sfre-ph__top {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.sfre-ph__aside {
		justify-items: start;
		text-align: left;
	}

	.sfre-ph__price-meta {
		justify-content: flex-start;
	}
}

/* Below desktop the trail and the action pills always take a row each: side
   by side they only fit with some fonts, and the pills used to drop to a new
   line when the web font arrived. */
@media (max-width: 1023px) {
	.sfre-ph__nav {
		flex-direction: column;
		align-items: flex-start;
	}

	.sfre-ph__actions {
		margin-left: 0;
	}

	/* The pills start at the left edge here, so the menu opens rightwards. */
	.sfre-share__menu {
		right: auto;
		left: 0;
	}
}

@media (max-width: 600px) {
	.sfre-ph__action,
	.sfre-share > summary {
		width: 40px;
		padding: 0;
		justify-content: center;
	}

	.sfre-ph__action-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	/* Phones: the MLS number always gets its own line under the address
	   text (it used to share the line only when the font left room). */
	.sfre-ph__address {
		flex-direction: column;
		align-items: flex-start;
	}

	.sfre-ph__address-main + .sfre-ph__mls {
		padding-inline-start: 24px;
	}
}

/* Sticky bar -------------------------------------------------------- */

.sfre-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	top: calc(var(--sfre-header-h, 0px) + var(--wp-admin--admin-bar--height, 0px));
	z-index: 990;
	border-bottom: 1px solid var(--sfre-p-edge);
	background: var(--sfre-p-glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.5);
	backdrop-filter: blur(14px) saturate(1.5);
	box-shadow: var(--sfre-p-shadow-2);
	transform: translateY(-120%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.38s var(--sfre-p-ease), opacity 0.25s ease, visibility 0s linear 0.38s;
}

.sfre-sticky-bar.is-visible,
.sfre-sticky-bar.is-stuck,
.sfre-sticky-bar.is-active {
	transform: none;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.sfre-sticky-bar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: var(--wp--style--global--wide-size, 1440px);
	min-height: 68px;
	margin: 0 auto;
	padding: 10px clamp(16px, 3vw, 32px);
}

.sfre-sticky-bar__thumb {
	flex: 0 0 auto;
	width: 52px;
	height: 40px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--sfre-p-panel-2);
}

.sfre-sticky-bar__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sfre-sticky-bar__text {
	flex: 1 1 auto;
	min-width: 0;
}

.sfre-sticky-bar__title {
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font: 700 15px/1.3 var(--sfre-p-f-ui);
	color: var(--sfre-p-ink);
}

.sfre-sticky-bar__sub {
	margin: 2px 0 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font: 500 13px/1.3 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-sticky-bar__price {
	flex: 0 0 auto;
	margin: 0;
	font: 800 22px/1 var(--sfre-p-f-num);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
	white-space: nowrap;
}

.sfre-sticky-bar__price small {
	font-size: 13px;
	font-weight: 700;
	color: var(--sfre-p-muted);
}

.sfre-sticky-bar__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.sfre-sticky-bar__call {
	width: 44px;
	padding: 0;
}

@media (min-width: 782px) {
	.sfre-sticky-bar__call {
		display: none;
	}
}

@media (max-width: 781px) {
	.sfre-sticky-bar {
		top: auto;
		bottom: 0;
		border-top: 1px solid var(--sfre-p-edge);
		border-bottom: 0;
		transform: translateY(120%);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.sfre-sticky-bar__thumb,
	.sfre-sticky-bar__sub {
		display: none;
	}

	.sfre-sticky-bar__inner {
		min-height: 64px;
		gap: 10px;
	}

	.sfre-sticky-bar__title {
		font-size: 12px;
		color: var(--sfre-p-muted);
	}

	.sfre-sticky-bar__text {
		display: flex;
		flex-direction: column-reverse;
	}

	.sfre-sticky-bar__price {
		font-size: 19px;
	}

	.sfre-sticky-bar__fav {
		display: none;
	}

	html.sfre-has-sticky-bar body {
		padding-bottom: 72px;
	}
}

/* Phones: price + actions leave the title ~2 characters ("Ba…"); drop it
   and let the price lead the bar. */
@media (max-width: 480px) {
	.sfre-sticky-bar__text {
		display: none;
	}

	.sfre-sticky-bar__price {
		flex: 1 1 auto;
	}
}

.sfre-sticky-bar__cta-short {
	display: none;
}

/* Small phones: a $10M+ price, the call button and "Request a tour" need
   348px; the row has 343px at 375 and 288px at 320 (the CTA was cut off). */
@media (max-width: 400px) {
	.sfre-sticky-bar__inner {
		gap: 8px;
	}

	.sfre-sticky-bar__actions {
		gap: 6px;
	}

	.sfre-sticky-bar__price {
		font-size: 17px;
	}

	.sfre-sticky-bar .sfre-p-btn--primary {
		padding: 0 14px;
	}

	.sfre-sticky-bar .sfre-p-btn--primary .sfre-p-ico {
		display: none;
	}
}

@media (max-width: 359px) {
	.sfre-sticky-bar__cta-long {
		display: none;
	}

	.sfre-sticky-bar__cta-short {
		display: inline;
	}
}

/* ------------------------------------------------------------------ */
/* 4. Key facts                                                         */
/* ------------------------------------------------------------------ */

.sfre-property-key-facts {
	container-type: inline-size;
	container-name: sfre-kf;
}

/* Balanced rows: --sfre-kf-cols follows the block's width and the number of
   facts (server class --nN, so 5 → 3+2, 6 → 3+3, 9 → 3+3+3), and whatever is
   left over in the last row stretches across it (7 → 4+3, phones 2+2+2+1), so
   no empty bordered slot is ever left. Dividers are 1px shadows that the
   rounded frame clips at the outer edges. */
.sfre-key-facts {
	--sfre-kf-cols: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--sfre-p-line);
	border-radius: var(--sfre-p-r-card);
	overflow: hidden;
	background: var(--sfre-p-panel);
}

.sfre-kf {
	flex: 1 1 calc(100% / var(--sfre-kf-cols) - 1px);
	min-width: 0;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 2px;
	margin: 0;
	padding: 16px;
	background: var(--sfre-p-panel);
	box-shadow: 1px 0 0 var(--sfre-p-line), 0 1px 0 var(--sfre-p-line);
}

.sfre-kf__icon {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--sfre-p-turf);
	color: var(--sfre-p-accent-2);
}

.sfre-kf__value {
	font: 800 19px/1.15 var(--sfre-p-f-num);
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
	min-width: 0;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.sfre-kf__label {
	font: 700 11px/1.2 var(--sfre-p-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sfre-p-muted);
}

@media (max-width: 600px) {
	.sfre-key-facts {
		--sfre-kf-cols: 2;
	}

	.sfre-kf {
		padding: 14px;
		grid-template-columns: 34px minmax(0, 1fr);
		column-gap: 10px;
	}

	.sfre-kf__icon {
		width: 34px;
		height: 34px;
		border-radius: 10px;
	}

	.sfre-kf__value {
		font-size: 17px;
	}
}

/* Column count follows the block's own width (main column, sidebar, editor)
   and, through --nN, the number of facts, so rows come out even. */
@container sfre-kf (max-width: 419px) {
	.sfre-key-facts {
		--sfre-kf-cols: 2;
	}
}

@container sfre-kf (min-width: 420px) {
	.sfre-key-facts {
		--sfre-kf-cols: 3;
	}

	.sfre-key-facts.sfre-key-facts--n4 {
		--sfre-kf-cols: 2;
	}
}

@container sfre-kf (min-width: 600px) {
	.sfre-key-facts,
	.sfre-key-facts.sfre-key-facts--n4 {
		--sfre-kf-cols: 4;
	}

	.sfre-key-facts.sfre-key-facts--n5,
	.sfre-key-facts.sfre-key-facts--n6,
	.sfre-key-facts.sfre-key-facts--n9 {
		--sfre-kf-cols: 3;
	}
}

@container sfre-kf (min-width: 1180px) {
	.sfre-key-facts.sfre-key-facts--n5,
	.sfre-key-facts.sfre-key-facts--n9,
	.sfre-key-facts.sfre-key-facts--n10 {
		--sfre-kf-cols: 5;
	}

	.sfre-key-facts.sfre-key-facts--n6,
	.sfre-key-facts.sfre-key-facts--n11,
	.sfre-key-facts.sfre-key-facts--n12 {
		--sfre-kf-cols: 6;
	}
}

@container sfre-kf (min-width: 1000px) {
	.sfre-kf {
		padding: 18px 20px;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 12px;
	}

	.sfre-kf__icon {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}
}

/* 4 narrow cells (600–739px): icon above the number so values keep their width. */
@container sfre-kf (min-width: 600px) and (max-width: 739px) {
	.sfre-kf {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		row-gap: 4px;
		align-items: start;
		padding: 16px 16px 14px;
	}

	.sfre-kf__icon {
		grid-row: auto;
		width: 32px;
		height: 32px;
		margin-bottom: 6px;
		border-radius: 10px;
	}
}

@container sfre-kf (min-width: 420px) and (max-width: 599px) {
	.sfre-kf {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		row-gap: 4px;
		align-items: start;
		padding: 14px;
	}

	.sfre-kf__icon {
		grid-row: auto;
		width: 32px;
		height: 32px;
		margin-bottom: 6px;
		border-radius: 10px;
	}
}

/* 1–3 facts (land, sparse listings) simply share one row (flex-grow); a single
   fact takes the whole strip. */
.sfre-key-facts.sfre-key-facts--n1 {
	--sfre-kf-cols: 1;
}

/* ------------------------------------------------------------------ */
/* 5. Details table                                                     */
/* ------------------------------------------------------------------ */

/* Two balanced columns, groups flowing masonry-style (no aligned-row voids). */
.sfre-details {
	columns: 2;
	column-gap: 48px;
}

.sfre-details__group {
	display: block;
	min-width: 0;
	margin: 0 0 28px;
	break-inside: avoid;
	page-break-inside: avoid;
}

.sfre-details__group:last-child {
	margin-bottom: 0;
}

.sfre-details__toggle {
	margin-top: 4px;
}

.sfre-details__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--sfre-p-ink);
	font: 800 12px/1.2 var(--sfre-p-f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfre-p-ink);
}

.sfre-details__title .sfre-p-ico {
	color: var(--sfre-p-accent);
}

.sfre-dl {
	margin: 0;
}

.sfre-dl__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sfre-p-line);
}

.sfre-dl__row dt {
	margin: 0;
	font: 500 15px/1.4 var(--sfre-p-f-body);
	color: var(--sfre-p-muted);
}

.sfre-dl__row dd {
	margin: 0;
	font: 700 15px/1.4 var(--sfre-p-f-ui);
	color: var(--sfre-p-ink);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.sfre-dl__row dd a {
	color: inherit;
}

.sfre-dl__row dd s {
	font-weight: 500;
	color: var(--sfre-p-muted);
}

.sfre-energy {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 24px;
	padding: 0 8px;
	border-radius: 6px;
	color: #ffffff;
	font: 800 13px/1 var(--sfre-p-f-ui);
	background: #4cb848;
}

.sfre-energy--a-plus,
.sfre-energy--a { background: #00a651; }
.sfre-energy--b { background: #4cb848; }
.sfre-energy--c { background: #bfd730; color: #14181f; }
.sfre-energy--d { background: #fff200; color: #14181f; }
.sfre-energy--e { background: #fdb913; color: #14181f; }
.sfre-energy--f { background: #f37021; }
.sfre-energy--g { background: #ed1c24; }

@media (max-width: 781px) {
	/* Not a multicol container at all (columns:1 would push clamped content
	   sideways into a hidden 2nd column instead of overflowing downwards). */
	.sfre-details {
		columns: auto;
	}

	.sfre-details__group {
		margin-bottom: 24px;
	}

	.sfre-details__group:last-child {
		margin-bottom: 0;
	}
}

/* Phones: the Overview group, then "Show all facts (N)" (screen only: print shows all). */
@media screen and (max-width: 781px) {
	html.sfre-js .sfre-details-wrap.is-collapsed .sfre-details {
		max-height: 30rem;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
		mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
	}
}

@media (min-width: 782px) {
	.sfre-details__toggle {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* 6. Features                                                          */
/* ------------------------------------------------------------------ */

.sfre-features {
	display: grid;
	grid-template-columns: repeat(var(--sfre-cols, 3), minmax(0, 1fr));
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfre-feature {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 4px 0;
	font: 600 15px/1.3 var(--sfre-p-f-ui);
	color: var(--sfre-p-ink);
}

.sfre-feature__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--sfre-p-line);
	border-radius: 12px;
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sfre-feature:hover .sfre-feature__icon {
	border-color: transparent;
	background: var(--sfre-p-turf);
	color: var(--sfre-p-accent-2);
}

.sfre-feature--flag .sfre-feature__icon {
	border-color: transparent;
	background: var(--sfre-p-turf);
	color: var(--sfre-p-accent-2);
}

.sfre-feature__name {
	min-width: 0;
}

.sfre-feature a {
	color: inherit;
	text-decoration: none;
}

.sfre-feature a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 900px) {
	.sfre-features {
		grid-template-columns: repeat(min(var(--sfre-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.sfre-features {
		gap: 8px 14px;
	}

	.sfre-feature {
		gap: 10px;
		font-size: 14px;
	}

	.sfre-feature__icon {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}
}

@media (max-width: 340px) {
	.sfre-features {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* 7. Description                                                       */
/* ------------------------------------------------------------------ */

.sfre-desc__body {
	max-width: 72ch;
	font: 400 17px/1.75 var(--sfre-p-f-body);
	color: var(--sfre-p-ink);
}

.sfre-desc__body > :first-child {
	margin-top: 0;
}

.sfre-desc__body > :last-child {
	margin-bottom: 0;
}

.sfre-desc__body p {
	margin: 0 0 1.1em;
}

.sfre-desc__body > p:first-child {
	font-size: 1.12em;
	line-height: 1.65;
	color: var(--sfre-p-ink);
}

.sfre-desc__body h2,
.sfre-desc__body h3 {
	margin: 1.6em 0 0.6em;
	font-family: var(--sfre-p-f-display);
	font-weight: 500;
	line-height: 1.2;
}

.sfre-desc__body a {
	color: var(--sfre-p-accent-2);
}

.sfre-desc.is-collapsed .sfre-desc__body {
	max-height: 16.5em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.sfre-desc__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sfre-p-ink);
	font: 800 15px/1.2 var(--sfre-p-f-ui);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: var(--sfre-p-accent);
	cursor: pointer;
}

.sfre-desc__toggle[hidden] {
	display: none;
}

.sfre-desc__toggle .sfre-p-ico {
	transition: transform 0.25s var(--sfre-p-ease);
}

.sfre-desc__toggle[aria-expanded="true"] .sfre-p-ico {
	transform: rotate(180deg);
}

/* ------------------------------------------------------------------ */
/* 8. Tabs (floor plans, video)                                         */
/* ------------------------------------------------------------------ */

.sfre-tabs__list {
	display: inline-flex;
	gap: 4px;
	max-width: 100%;
	margin: 0 0 18px;
	padding: 4px;
	border-radius: 999px;
	background: var(--sfre-p-panel-2);
	overflow-x: auto;
	scrollbar-width: none;
}

.sfre-tabs__list::-webkit-scrollbar {
	display: none;
}

.sfre-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	height: 38px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--sfre-p-muted);
	font: 700 14px/1 var(--sfre-p-f-ui);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sfre-tabs__tab:hover {
	color: var(--sfre-p-ink);
}

.sfre-tabs__tab[aria-selected="true"] {
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	box-shadow: var(--sfre-p-shadow-1);
}

.sfre-tabs__panel[hidden] {
	display: none;
}

.sfre-tabs__panel-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Floor plans ------------------------------------------------------- */

.sfre-fp__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 20px;
	align-items: start;
}

.sfre-fp__figure {
	position: relative;
	display: block;
	margin: 0;
	padding: clamp(10px, 2vw, 18px);
	border: 1px solid var(--sfre-p-line);
	border-radius: var(--sfre-p-r-card);
	background: var(--sfre-p-panel);
	cursor: zoom-in;
}

/* The drawing sits on its own paper: one rounded inset, no white slab around it. */
.sfre-fp__figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: contain;
	border-radius: calc(var(--sfre-p-r-card) - 6px);
	background: var(--sfre-p-panel-2);
}

html.sfre-dark .sfre-fp__figure img,
html[data-sfre-scheme="dark"] .sfre-fp__figure img {
	filter: brightness(0.86) contrast(1.04);
}

.sfre-fp__zoom {
	position: absolute;
	right: 12px;
	top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(20, 24, 31, 0.78);
	color: #ffffff;
	font: 700 12px/1 var(--sfre-p-f-ui);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sfre-fp__figure:hover .sfre-fp__zoom,
.sfre-fp__figure:focus-visible .sfre-fp__zoom {
	opacity: 1;
	transform: none;
}

.sfre-fp__ph {
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 260px;
	border: 1px dashed var(--sfre-p-line);
	border-radius: var(--sfre-p-r-card);
	color: var(--sfre-p-muted);
	font: 600 14px/1.3 var(--sfre-p-f-ui);
	background: var(--sfre-p-panel-2);
}

.sfre-fp__meta {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 6px 18px;
	border: 1px solid var(--sfre-p-line);
	border-radius: var(--sfre-p-r-card);
	background: var(--sfre-p-panel);
	list-style: none;
}

.sfre-fp__meta li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sfre-p-line);
	font: 500 14px/1.3 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-fp__meta li:last-child {
	border-bottom: 0;
}

.sfre-fp__meta strong {
	display: block;
	font: 800 18px/1.1 var(--sfre-p-f-num);
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
}

.sfre-fp__meta .sfre-p-ico {
	color: var(--sfre-p-accent-2);
}

@media (max-width: 781px) {
	.sfre-fp__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.sfre-fp__meta {
		display: flex;
		flex-wrap: wrap;
		gap: 0 20px;
		padding: 4px 16px;
	}

	.sfre-fp__meta li {
		border-bottom: 0;
	}

	.sfre-fp__zoom {
		opacity: 1;
		transform: none;
	}
}

/* Video / 3D tour --------------------------------------------------- */

.sfre-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--sfre-p-r-card);
	overflow: hidden;
	background: #0b0e13;
	color: #ffffff;
}

.sfre-embed__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #0b0e13;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
}

.sfre-embed__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.72) saturate(1.05);
	transition: transform 0.8s var(--sfre-p-ease), filter 0.4s ease;
}

.sfre-embed__poster:hover img {
	transform: scale(1.03);
	filter: brightness(0.62) saturate(1.05);
}

.sfre-embed__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
	pointer-events: none;
}

.sfre-embed__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #14181f;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(255, 255, 255, 0.16);
	transition: transform 0.3s var(--sfre-p-ease), box-shadow 0.3s ease;
}

.sfre-embed__play svg {
	margin-left: 4px;
}

.sfre-embed--tour .sfre-embed__play svg {
	margin-left: 0;
}

.sfre-embed__poster:hover .sfre-embed__play {
	transform: scale(1.07);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4), 0 0 0 14px rgba(255, 255, 255, 0.14);
}

.sfre-embed__label {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 18px;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	text-align: left;
}

.sfre-embed__title {
	font: 800 17px/1.2 var(--sfre-p-f-ui);
	color: #ffffff;
}

.sfre-embed__privacy {
	font: 500 12px/1.3 var(--sfre-p-f-ui);
	color: rgba(255, 255, 255, 0.78);
}

.sfre-embed__frame,
.sfre-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000000;
}

/* ------------------------------------------------------------------ */
/* 9. Mortgage calculator                                               */
/* ------------------------------------------------------------------ */

.sfre-mortgage-calculator {
	container-type: inline-size;
	container-name: sfre-mortgage;
}

.sfre-mortgage {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(20px, 3vw, 40px);
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--sfre-p-line);
	border-radius: 20px;
	background: var(--sfre-p-panel);
	box-shadow: var(--sfre-p-shadow-1);
}

.sfre-mortgage__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	align-content: start;
}

.sfre-mortgage__field {
	display: grid;
	gap: 7px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sfre-mortgage__field--full {
	grid-column: 1 / -1;
}

.sfre-mortgage__label,
.sfre-mortgage__field > legend {
	padding: 0;
	font: 700 13px/1.2 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-mortgage__field > legend {
	margin-bottom: 7px;
}

.sfre-mc-input {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--sfre-p-line);
	border-radius: var(--sfre-p-r-input);
	background: var(--sfre-p-base);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sfre-mc-input:hover {
	border-color: color-mix(in srgb, var(--sfre-p-ink) 24%, transparent);
}

.sfre-mc-input:focus-within {
	border-color: var(--sfre-p-accent-2);
	background: var(--sfre-p-panel);
	box-shadow: var(--sfre-p-ring);
}

.sfre-mc-input__affix {
	flex: 0 0 auto;
	font: 700 15px/1 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-mc-input input,
.sfre-mc-input select {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sfre-p-ink);
	font: 700 16px/1 var(--sfre-p-f-num);
	font-variant-numeric: tabular-nums;
	box-shadow: none;
	outline: none;
	-moz-appearance: textfield;
}

.sfre-mc-input input::-webkit-outer-spin-button,
.sfre-mc-input input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sfre-mc-input--pair {
	padding: 0;
	overflow: hidden;
}

.sfre-mc-input--pair > span {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 14px;
}

.sfre-mc-input--pair > span:first-child {
	flex: 1 1 62%;
	border-right: 1px solid var(--sfre-p-line);
}

.sfre-mc-input--pair > span:last-child {
	flex: 1 1 38%;
}

.sfre-range {
	width: 100%;
	margin: 4px 0 0;
	accent-color: var(--sfre-p-accent-2);
	cursor: pointer;
}

.sfre-pseg {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: var(--sfre-p-r-input);
	background: var(--sfre-p-panel-2);
}

.sfre-pseg label {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.sfre-pseg input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.sfre-pseg span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	overflow: hidden;
	height: 40px;
	padding: 0 10px;
	border-radius: 9px;
	color: var(--sfre-p-muted);
	font: 700 14px/1 var(--sfre-p-f-ui);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sfre-pseg span:hover {
	color: var(--sfre-p-ink);
}

.sfre-pseg input:checked + span {
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	box-shadow: var(--sfre-p-shadow-1);
}

.sfre-pseg input:focus-visible + span {
	outline: 2px solid var(--sfre-p-accent-2);
	outline-offset: 1px;
}

.sfre-mortgage__result {
	container-type: inline-size;
	container-name: sfre-mresult;
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 18px;
	padding: clamp(18px, 2.4vw, 26px);
	border-radius: var(--sfre-p-r-card);
	background: var(--sfre-p-panel-2);
}

.sfre-mortgage__kicker {
	margin: 0;
	font: 800 12px/1.2 var(--sfre-p-f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfre-p-muted);
}

.sfre-mortgage__monthly {
	margin: 6px 0 0;
	font: 800 clamp(34px, 4vw, 46px)/1 var(--sfre-p-f-num);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
}

.sfre-mortgage__monthly small {
	font-size: 0.4em;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--sfre-p-muted);
}

.sfre-mortgage__chart {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	align-items: center;
	gap: 20px;
}

.sfre-donut {
	position: relative;
	width: 150px;
	height: 150px;
}

.sfre-donut svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(0deg);
}

.sfre-donut__track {
	stroke: var(--sfre-p-line);
}

.sfre-donut__seg {
	transition: stroke-dasharray 0.45s var(--sfre-p-ease), stroke-dashoffset 0.45s var(--sfre-p-ease), opacity 0.2s ease;
}

.sfre-donut__seg--pi,
.sfre-legend__dot--pi {
	stroke: var(--sfre-p-accent);
	background: var(--sfre-p-accent);
}

.sfre-donut__seg--tax,
.sfre-legend__dot--tax {
	stroke: var(--sfre-p-accent-2);
	background: var(--sfre-p-accent-2);
}

.sfre-donut__seg--hoa,
.sfre-legend__dot--hoa {
	stroke: var(--sfre-p-navy);
	background: var(--sfre-p-navy);
}

.sfre-donut__seg--ins,
.sfre-legend__dot--ins {
	stroke: var(--sfre-p-gold);
	background: var(--sfre-p-gold);
}

/* The hole is a real disc in the panel colour: the label then has a defined
   background (contrast checkers otherwise read the ring's stroke colours). */
.sfre-donut__center {
	position: absolute;
	inset: 19%;
	display: grid;
	place-content: center;
	text-align: center;
	border-radius: 50%;
	background: var(--sfre-donut-hole, var(--sfre-p-panel-2));
}

.sfre-donut__center strong {
	font: 800 17px/1.1 var(--sfre-p-f-num);
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
}

.sfre-donut__center span {
	font: 700 11px/1.2 var(--sfre-p-f-ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sfre-p-muted);
}

.sfre-legend {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfre-legend li {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	font: 600 14px/1.25 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-legend li[hidden] {
	display: none;
}

.sfre-legend__dot {
	width: 10px;
	height: 10px;
	border-radius: 3px;
}

.sfre-legend strong {
	font: 800 14px/1 var(--sfre-p-f-num);
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
}

.sfre-legend em {
	margin-left: 4px;
	font-style: normal;
	font-weight: 600;
	font-size: 12px;
	color: var(--sfre-p-muted);
}

.sfre-mortgage__totals {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--sfre-p-line);
}

.sfre-mortgage__totals div {
	min-width: 0;
}

.sfre-mortgage__totals dt {
	margin: 0 0 4px;
	font: 700 11px/1.2 var(--sfre-p-f-ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sfre-p-muted);
}

.sfre-mortgage__totals dd {
	margin: 0;
	font: 800 15px/1.2 var(--sfre-p-f-num);
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
	overflow-wrap: anywhere;
}

.sfre-mortgage__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sfre-mortgage__cta .sfre-p-btn {
	flex: 1 1 auto;
}

.sfre-mortgage__disclaimer {
	grid-column: 1 / -1;
	margin: 0;
	font: 500 12px/1.5 var(--sfre-p-f-body);
	color: var(--sfre-p-muted);
}

/* Stack only when the block is genuinely narrow: the inputs | result split
   still works with a ~690px inner width (block theme main column 753px). */
@container sfre-mortgage (max-width: 640px) {
	.sfre-mortgage {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Narrow result panel (two-column calculator in a ~800px column, sidebars):
   donut on top, legend full width underneath. */
@container sfre-mresult (max-width: 440px) {
	.sfre-mortgage__chart {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.sfre-legend {
		width: 100%;
	}
}

@container sfre-mortgage (max-width: 420px) {
	.sfre-mortgage {
		padding: 18px;
	}

	.sfre-mortgage__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.sfre-mortgage__chart {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.sfre-legend {
		width: 100%;
	}

	.sfre-mortgage__totals {
		grid-template-columns: minmax(0, 1fr);
	}

	.sfre-mortgage__totals div {
		display: flex;
		justify-content: space-between;
		gap: 12px;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 781px) {
		.sfre-mortgage {
			grid-template-columns: minmax(0, 1fr);
		}
	}
}

/* ------------------------------------------------------------------ */
/* 10. Contact agent                                                    */
/* ------------------------------------------------------------------ */

.sfre-contact-agent {
	container-type: inline-size;
	container-name: sfre-contact;
	position: relative;
}

@media (min-width: 1024px) {
	.sfre-contact-agent.is-sticky {
		position: sticky;
		top: calc(var(--sfre-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px) + 24px);
		align-self: start;
	}

	/* No-JS / pre-JS: clear the sticky price bar as well (enquiry.js then sets an
	   exact inline `top`, sticking a card taller than the viewport by its bottom). */
	html.sfre-has-sticky-bar .sfre-contact-agent.is-sticky {
		top: calc(var(--sfre-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px) + 84px);
	}
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.sfre-contact-agent.is-sticky {
		transition: top 0.38s var(--sfre-p-ease);
	}
}

.sfre-ca {
	display: grid;
	gap: 18px;
	padding: clamp(18px, 2.4vw, 26px);
	border: 1px solid var(--sfre-p-line);
	border-radius: 20px;
	background: var(--sfre-p-panel);
	box-shadow: var(--sfre-p-shadow-2);
}

.sfre-ca__title {
	margin: 0;
	font-family: var(--sfre-p-f-display);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--sfre-p-ink);
}

.sfre-ca__agent {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}

.sfre-ca__photo {
	position: relative;
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--sfre-p-panel-2);
	box-shadow: 0 0 0 3px var(--sfre-p-panel), 0 0 0 4px var(--sfre-p-line);
}

.sfre-ca__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sfre-ca__initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--sfre-p-navy);
	color: var(--sfre-p-base);
	font: 800 20px/1 var(--sfre-p-f-ui);
}

.sfre-ca__online {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--sfre-p-panel);
	border-radius: 50%;
	background: var(--sfre-p-neon);
}

.sfre-ca__who {
	min-width: 0;
}

.sfre-ca__name {
	margin: 0;
	font: 800 17px/1.25 var(--sfre-p-f-ui);
	color: var(--sfre-p-ink);
}

.sfre-ca__name a {
	color: inherit;
	text-decoration: none;
}

.sfre-ca__name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfre-ca__role {
	margin: 2px 0 0;
	font: 500 13px/1.35 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-ca__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	font: 700 13px/1 var(--sfre-p-f-ui);
	color: var(--sfre-p-ink);
}

.sfre-stars {
	position: relative;
	display: inline-flex;
	color: color-mix(in srgb, var(--sfre-p-muted) 35%, transparent);
	line-height: 0;
}

.sfre-stars__fill {
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	overflow: hidden;
	width: var(--sfre-stars, 100%);
	color: var(--sfre-p-gold);
	white-space: nowrap;
}

.sfre-stars svg {
	flex: 0 0 auto;
	fill: currentColor;
	stroke: none;
}

.sfre-ca__reviews {
	font-weight: 500;
	color: var(--sfre-p-muted);
}

.sfre-ca__contacts {
	display: grid;
	grid-template-columns: repeat(var(--sfre-ca-btns, 3), minmax(0, 1fr));
	gap: 8px;
}

.sfre-ca__contacts .sfre-p-btn {
	min-height: 42px;
	padding: 0 10px;
	font-size: 14px;
}

.sfre-ca__contacts .sfre-ca__wa .sfre-p-ico {
	color: #1faa53;
}

.sfre-ca__divider {
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--sfre-p-line);
}

.sfre-ca__form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.sfre-ca__form[hidden] {
	display: none;
}

.sfre-ca__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	padding: 4px;
	border-radius: var(--sfre-p-r-input);
	background: var(--sfre-p-panel-2);
}

.sfre-ca__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 40px;
	margin: 0;
	padding: 0 8px;
	border-radius: 9px;
	color: var(--sfre-p-muted);
	font: 700 14px/1 var(--sfre-p-f-ui);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sfre-ca__tab:hover {
	color: var(--sfre-p-ink);
}

.sfre-ca__kind--tour:checked ~ .sfre-ca__tabs .sfre-ca__tab--tour,
.sfre-ca__kind--contact:checked ~ .sfre-ca__tabs .sfre-ca__tab--contact {
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	box-shadow: var(--sfre-p-shadow-1);
}

.sfre-ca__kind--tour:focus-visible ~ .sfre-ca__tabs .sfre-ca__tab--tour,
.sfre-ca__kind--contact:focus-visible ~ .sfre-ca__tabs .sfre-ca__tab--contact {
	outline: 2px solid var(--sfre-p-accent-2);
	outline-offset: 1px;
}

.sfre-ca__kind--contact:checked ~ .sfre-ca__tour {
	display: none;
}

.sfre-ca__tour {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.sfre-ca__days-wrap,
.sfre-ca__type {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sfre-ca__type > legend {
	padding: 0;
	margin-bottom: 6px;
}

.sfre-ca__group-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	font: 700 13px/1.2 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-ca__body {
	container-type: inline-size;
	container-name: sfre-cabody;
	min-width: 0;
}

.sfre-ca__days-wrap {
	position: relative;
}

/* Whole chips only (5 / 6 / 7 per view by the form's width), snapping; with
   JS, prev/next buttons beside "Choose a day" replace the scrollbar. */
.sfre-ca__days {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 4 * 8px) / 5);
	gap: 8px;
	margin: 0;
	padding: 2px 2px 6px;
	border: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	scrollbar-width: thin;
	scrollbar-color: var(--sfre-p-line) transparent;
}

@container sfre-cabody (min-width: 360px) {
	.sfre-ca__days {
		grid-auto-columns: calc((100% - 5 * 8px) / 6);
	}
}

@container sfre-cabody (min-width: 430px) {
	.sfre-ca__days {
		grid-auto-columns: calc((100% - 6 * 8px) / 7);
	}
}

.sfre-ca__days-wrap.is-scrollable .sfre-ca__days {
	scrollbar-width: none;
}

.sfre-ca__days-wrap.is-scrollable .sfre-ca__days::-webkit-scrollbar {
	display: none;
}

/* Sits on the "Choose a day" legend line (just above the fieldset's content box). */
.sfre-ca__days-nav {
	position: absolute;
	right: 0;
	bottom: 100%;
	display: flex;
	gap: 6px;
	margin-bottom: 2px;
}

.sfre-ca__days-nav[hidden] {
	display: none;
}

.sfre-contact-agent .sfre-ca__days-nav button {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--sfre-p-line);
	border-radius: 50%;
	background: var(--sfre-p-panel);
	color: var(--sfre-p-ink);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.sfre-contact-agent .sfre-ca__days-nav button:hover:not(:disabled) {
	border-color: color-mix(in srgb, var(--sfre-p-ink) 35%, transparent);
	background: var(--sfre-p-panel-2);
}

.sfre-contact-agent .sfre-ca__days-nav button:focus-visible {
	outline: 2px solid var(--sfre-p-accent-2);
	outline-offset: 2px;
}

.sfre-contact-agent .sfre-ca__days-nav button:disabled {
	opacity: 0.35;
	cursor: default;
}

.sfre-ca__days-nav svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sfre-ca__day {
	position: relative;
	margin: 0;
	scroll-snap-align: start;
}

.sfre-ca__day input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.sfre-ca__day span {
	display: grid;
	justify-items: center;
	gap: 3px;
	padding: 10px 2px;
	border: 1px solid var(--sfre-p-line);
	border-radius: 14px;
	background: var(--sfre-p-panel);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--sfre-p-ease);
}

.sfre-ca__day span:hover {
	border-color: color-mix(in srgb, var(--sfre-p-ink) 35%, transparent);
	transform: translateY(-1px);
}

.sfre-ca__day small {
	font: 800 11px/1 var(--sfre-p-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sfre-p-muted);
}

.sfre-ca__day strong {
	font: 800 22px/1 var(--sfre-p-f-num);
	font-variant-numeric: tabular-nums;
	color: var(--sfre-p-ink);
}

.sfre-ca__day input:checked + span {
	border-color: var(--sfre-p-ink);
	background: var(--sfre-p-ink);
}

.sfre-ca__day input:checked + span small,
.sfre-ca__day input:checked + span strong {
	color: var(--sfre-p-base);
}

.sfre-ca__day input:focus-visible + span {
	outline: 2px solid var(--sfre-p-accent-2);
	outline-offset: 2px;
}

.sfre-ca__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sfre-ca-field {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.sfre-ca-field > label,
.sfre-ca-field__label {
	font: 700 13px/1.2 var(--sfre-p-f-ui);
	color: var(--sfre-p-muted);
}

.sfre-ca-field__opt {
	font-weight: 500;
}

.sfre-ca-field input[type="text"],
.sfre-ca-field input[type="email"],
.sfre-ca-field input[type="tel"],
.sfre-ca-field select,
.sfre-ca-field textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--sfre-p-line);
	border-radius: var(--sfre-p-r-input);
	background: var(--sfre-p-base);
	color: var(--sfre-p-ink);
	font: 500 15px/1.4 var(--sfre-p-f-body);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sfre-ca-field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.sfre-ca-field textarea {
	min-height: 104px;
	resize: vertical;
}

.sfre-ca-field input::placeholder,
.sfre-ca-field textarea::placeholder {
	color: color-mix(in srgb, var(--sfre-p-muted) 75%, transparent);
}

.sfre-ca-field input:hover,
.sfre-ca-field select:hover,
.sfre-ca-field textarea:hover {
	border-color: color-mix(in srgb, var(--sfre-p-ink) 24%, transparent);
}

.sfre-ca-field input:focus,
.sfre-ca-field select:focus,
.sfre-ca-field textarea:focus {
	border-color: var(--sfre-p-accent-2);
	background: var(--sfre-p-panel);
	box-shadow: var(--sfre-p-ring);
	outline: none;
}

.sfre-ca-field [aria-invalid="true"] {
	border-color: var(--sfre-p-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfre-p-accent) 20%, transparent);
}

.sfre-contact-agent .sfre-field__error {
	font: 600 12px/1.3 var(--sfre-p-f-ui);
	color: color-mix(in srgb, var(--sfre-p-accent) 85%, var(--sfre-p-ink));
}

.sfre-consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	margin: 0;
	font: 500 13px/1.45 var(--sfre-p-f-body);
	color: var(--sfre-p-muted);
	cursor: pointer;
}

.sfre-consent input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--sfre-p-accent-2);
	cursor: pointer;
}

.sfre-consent a {
	color: var(--sfre-p-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.sfre-consent a:hover,
.sfre-consent a:focus-visible {
	color: var(--sfre-p-accent-2);
	text-decoration-thickness: 2px;
}

.sfre-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.sfre-ca__error {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--sfre-p-accent) 12%, var(--sfre-p-panel));
	color: color-mix(in srgb, var(--sfre-p-accent) 80%, var(--sfre-p-ink));
	font: 600 14px/1.4 var(--sfre-p-f-ui);
}

.sfre-ca__error.is-success {
	background: var(--sfre-p-turf);
	color: var(--sfre-p-accent-2);
}

.sfre-ca__error[hidden] {
	display: none;
}

.sfre-ca__submit {
	position: relative;
}

.sfre-ca__form.is-busy .sfre-ca__submit {
	color: transparent;
	pointer-events: none;
}

.sfre-ca__form.is-busy .sfre-ca__submit::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid color-mix(in srgb, var(--sfre-p-base) 40%, transparent);
	border-top-color: var(--sfre-p-base);
	border-radius: 50%;
	animation: sfre-spin 0.7s linear infinite;
}

.sfre-ca__fine {
	margin: 0;
	font: 500 12px/1.5 var(--sfre-p-f-body);
	color: var(--sfre-p-muted);
	text-align: center;
}

.sfre-ca__success {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 18px 6px 6px;
	text-align: center;
}

.sfre-ca__success[hidden] {
	display: none;
}

.sfre-ca__success-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--sfre-p-turf);
	color: var(--sfre-p-accent-2);
	animation: sfre-pop 0.35s var(--sfre-p-ease);
}

.sfre-ca__success h3 {
	margin: 4px 0 0;
	font-family: var(--sfre-p-f-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	color: var(--sfre-p-ink);
	outline: none;
}

.sfre-ca__success p {
	margin: 0;
	font: 500 14px/1.55 var(--sfre-p-f-body);
	color: var(--sfre-p-muted);
}

.sfre-ca__reset {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sfre-p-ink);
	font: 800 14px/1.2 var(--sfre-p-f-ui);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

@container sfre-contact (max-width: 440px) {
	.sfre-ca__row--tour {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Narrow rail (desktop sidebar ~370px): icon over label so "WhatsApp" keeps
   its breathing room inside a third of the card. */
@container sfre-contact (max-width: 400px) {
	.sfre-ca__contacts .sfre-p-btn {
		flex-direction: column;
		gap: 4px;
		min-height: 54px;
		padding: 7px 4px;
		font-size: 12.5px;
	}
}

@container sfre-contact (max-width: 340px) {
	.sfre-ca__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.sfre-ca__contacts .sfre-p-btn-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

/* Wide card WITH an agent: agent column + form column. An agent-less card
   (general contact page) stays one column — nothing would fill the left side. */
@container sfre-contact (min-width: 640px) {
	.sfre-contact-agent:not(.is-agentless) .sfre-ca {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		column-gap: 32px;
		align-items: start;
	}

	.sfre-contact-agent:not(.is-agentless) .sfre-ca > .sfre-ca__title,
	.sfre-contact-agent:not(.is-agentless) .sfre-ca > .sfre-ca__agent,
	.sfre-contact-agent:not(.is-agentless) .sfre-ca > .sfre-ca__contacts,
	.sfre-contact-agent:not(.is-agentless) .sfre-ca > .sfre-ca__divider {
		grid-column: 1;
	}

	.sfre-contact-agent:not(.is-agentless) .sfre-ca > .sfre-ca__divider {
		display: none;
	}

	.sfre-contact-agent:not(.is-agentless) .sfre-ca > .sfre-ca__body {
		grid-column: 2;
		grid-row: 1 / span 4;
	}

	.sfre-contact-agent:not(.is-agentless) .sfre-ca__contacts {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The form column is ~430px here: Time and Tour type stack. */
	.sfre-contact-agent:not(.is-agentless) .sfre-ca__row--tour {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Agent-less wide card: a centred, readable form instead of a stretched one. */
@container sfre-contact (min-width: 760px) {
	.sfre-contact-agent.is-agentless .sfre-ca {
		padding-inline: clamp(26px, 5cqi, 56px);
	}
}

/* ------------------------------------------------------------------ */
/* 11. No-JS + editor + motion                                          */
/* ------------------------------------------------------------------ */

.sfre-no-js-show {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.sfre-property-gallery *,
	.sfre-property-header *,
	.sfre-sticky-bar,
	.sfre-sticky-bar *,
	.sfre-property-key-facts *,
	.sfre-property-features *,
	.sfre-property-description *,
	.sfre-property-floor-plans *,
	.sfre-property-video *,
	.sfre-mortgage-calculator *,
	.sfre-contact-agent *,
	.sfre-lb,
	.sfre-lb * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/* Block editor canvas: no fixed sticky bar floating over the editor. */
.editor-styles-wrapper .sfre-sticky-bar,
.block-editor-block-list__layout .sfre-sticky-bar,
.elementor-editor-active .sfre-sticky-bar {
	display: none;
}

/* ------------------------------------------------------------------ */
/* 12. Print — a clean one-sheet listing flyer                          */
/* ------------------------------------------------------------------ */

.sfre-print-only {
	display: none;
}

@media print {
	@page {
		margin: 14mm 12mm;
	}

	body:has(.sfre-property-header) header.wp-block-template-part,
	body:has(.sfre-property-header) footer.wp-block-template-part,
	body:has(.sfre-property-header) .elementor-location-header,
	body:has(.sfre-property-header) .elementor-location-footer,
	body:has(.sfre-property-header) .stepfox-demo-bar,
	body:has(.sfre-property-header) #wpadminbar,
	.sfre-sticky-bar,
	.sfre-lb,
	.sfre-ph__actions,
	.sfre-ph__est,
	.sfre-gallery__all,
	.sfre-gallery__chips,
	.sfre-gallery__count,
	.sfre-gallery__nav,
	.sfre-gallery__more,
	.sfre-desc__toggle,
	.sfre-tabs__list,
	.sfre-fp__zoom,
	.sfre-property-video,
	.sfre-mortgage__form,
	.sfre-mortgage__cta,
	.sfre-ca__contacts,
	.sfre-ca__body,
	.sfre-ca__online {
		display: none !important;
	}

	.sfre-print-only {
		display: block !important;
	}

	.sfre-property-gallery,
	.sfre-property-header,
	.sfre-property-key-facts,
	.sfre-property-details,
	.sfre-property-features,
	.sfre-property-description,
	.sfre-property-floor-plans,
	.sfre-mortgage-calculator,
	.sfre-contact-agent {
		--sfre-p-ink: #000000;
		--sfre-p-muted: #444444;
		--sfre-p-panel: #ffffff;
		--sfre-p-panel-2: #f3f3f3;
		--sfre-p-base: #ffffff;
		--sfre-p-line: #cccccc;
		--sfre-p-turf: #eeeeee;
		color: #000000;
		background: #ffffff !important;
		box-shadow: none !important;
	}

	.sfre-gallery__mosaic,
	.sfre-gallery__track,
	.sfre-gallery__grid {
		display: block !important;
		aspect-ratio: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.sfre-gallery__mosaic > .sfre-gallery__tile:not(:first-child),
	.sfre-gallery__track > .sfre-gallery__slide:not(:first-child),
	.sfre-gallery__grid > .sfre-gallery__tile:not(:first-child) {
		display: none !important;
	}

	.sfre-gallery__tile,
	.sfre-gallery__slide {
		aspect-ratio: 16 / 9 !important;
		max-height: 95mm;
		border-radius: 6px;
	}

	.sfre-ph__top {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	/* Paper cannot scroll: the whole trail, wrapped, no edge fade. */
	.sfre-property-header .sfre-breadcrumb ol {
		flex-wrap: wrap;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
		animation: none;
	}

	.sfre-ph__title {
		font-size: 24pt;
	}

	.sfre-ph__price {
		font-size: 22pt;
	}

	.sfre-key-facts {
		break-inside: avoid;
	}

	.sfre-kf {
		flex-basis: 22%;
	}

	.sfre-kf {
		padding: 8px 10px;
	}

	.sfre-desc.is-collapsed .sfre-desc__body {
		max-height: none !important;
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}

	.sfre-desc__body {
		max-width: none;
		font-size: 10.5pt;
		line-height: 1.55;
	}

	.sfre-tabs__panel[hidden] {
		display: block !important;
	}

	.sfre-tabs__panel-title {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
		margin: 0 0 6px;
		font: 700 11pt/1.2 var(--sfre-p-f-ui);
	}

	.sfre-fp__panel,
	.sfre-details__group,
	.sfre-feature,
	.sfre-dl__row,
	.sfre-mortgage__result {
		break-inside: avoid;
	}

	.sfre-mortgage {
		display: block;
		border: 1px solid #cccccc;
	}

	.sfre-ca {
		display: block;
		border: 1px solid #cccccc;
	}

	.sfre-contact-agent.is-sticky {
		position: static !important;
	}

	.sfre-features {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	a[href]::after {
		content: none !important;
	}
}
