/*
 * Uncomn Dynamic Floor — public styles.
 *
 * Every colour, radius, and font is a custom property on :root, so a theme can
 * restyle the plugin by overriding --udf-* without touching these rules.
 */

:root {
	--udf-accent: #2563eb;
	--udf-accent-ink: #ffffff;
	--udf-accent-soft: color-mix(in srgb, var(--udf-accent) 9%, var(--udf-surface));
	--udf-ink: #0f172a;
	--udf-muted: #64748b;
	--udf-line: #e2e8f0;
	/* Form control edges need 3:1 against the page (WCAG 1.4.11). */
	--udf-control-line: #64748b;
	--udf-surface: #ffffff;
	--udf-subtle: #f8fafc;
	--udf-ok: #166534;
	--udf-ok-soft: color-mix(in srgb, var(--udf-ok) 14%, var(--udf-surface));
	--udf-warn: #b45309;
	--udf-warn-soft: #fef3c7;
	--udf-danger: #b91c1c;
	--udf-danger-soft: #fee2e2;
	--udf-radius: 14px;
	--udf-radius-sm: 8px;
	--udf-button-radius: 999px;
	--udf-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 16px rgb(15 23 42 / 0.06);
	--udf-shadow-lg: 0 2px 4px rgb(15 23 42 / 0.04), 0 12px 32px rgb(15 23 42 / 0.12);
	--udf-font: inherit;
	--udf-heading-font: inherit;
	--udf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

/* Radios and checkboxes drawn as pills and chips. The real input stays in the page for
   keyboards and screen readers, clipped to nothing. Not opacity: themes such as
   "input { opacity: 1 !important }" would bring it back on top of the pill. */
.udf-field--check input,
.udf-amenities input,
.udf-pillset input,
.udf-schedule__choice input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	appearance: none !important;
	pointer-events: none !important;
}

.udf,
.udf-section,
.udf-empty,
.udf-notice {
	color: var(--udf-ink);
	font-family: var(--udf-font);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.udf *,
.udf *::before,
.udf *::after,
.udf-section *,
.udf-section *::before,
.udf-section *::after {
	box-sizing: border-box;
}

.udf h1,
.udf h2,
.udf h3,
.udf-section h2,
.udf-section h3 {
	margin: 0;
	color: var(--udf-ink);
	font-family: var(--udf-heading-font);
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.udf p,
.udf-section p {
	margin: 0;
}

.udf a,
.udf-section a {
	color: var(--udf-accent);
	text-underline-offset: 0.18em;
}

.udf img {
	display: block;
	max-width: 100%;
	height: auto;
}

.udf :focus-visible,
.udf-section :focus-visible {
	outline: 2px solid var(--udf-accent);
	outline-offset: 2px;
}

.udf-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(1rem, 3vw, 2.5rem) 16px 4rem;
}

.udf-shell > .udf-hero {
	margin-bottom: 1.5rem;
}

.udf-shell > .udf-hero h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.udf-quiet,
.udf-kicker,
.udf-meta,
.udf-count {
	color: var(--udf-muted);
	font-size: 0.875rem;
}

.udf-kicker {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.udf-kicker a {
	color: inherit;
	text-decoration: none;
}

.udf-kicker a:hover {
	color: var(--udf-accent);
}

.udf-hp {
	position: absolute;
	left: -9999px;
}

.udf-sr {
	position: absolute;
	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;
}

/* ---------- Buttons ---------- */

/* Themes style <button> and submit inputs heavily (uppercase, square corners,
   letter-spacing), sometimes behind an ID such as "#main-container button[type=submit]"
   that no class selector can outrank. Inside plugin markup the plugin's button look
   wins, so these few properties are marked important. */
.udf .udf-button,
.udf-section .udf-button {
	min-height: 2.75rem !important;
	margin: 0 !important;
	padding: 0.6rem 1.15rem !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: var(--udf-button-radius) !important;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-shadow: none !important;
}

.udf .udf-button:not(.udf-button--ghost),
.udf-section .udf-button:not(.udf-button--ghost) {
	border-color: var(--udf-accent) !important;
	background: var(--udf-accent) !important;
	color: var(--udf-accent-ink) !important;
}

.udf .udf-button--ghost,
.udf-section .udf-button--ghost {
	border-color: var(--udf-control-line) !important;
	background: var(--udf-surface) !important;
	color: var(--udf-ink) !important;
}

.udf .udf-button--ghost:hover,
.udf-section .udf-button--ghost:hover {
	border-color: var(--udf-ink) !important;
}

.udf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--udf-accent);
	border-radius: var(--udf-button-radius);
	background: var(--udf-accent);
	color: var(--udf-accent-ink) !important;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s var(--udf-ease), box-shadow 0.15s var(--udf-ease), background-color 0.15s;
}

.udf-button:hover {
	box-shadow: 0 6px 18px color-mix(in srgb, var(--udf-accent) 30%, transparent);
	transform: translateY(-1px);
}

.udf-button:active {
	transform: translateY(0);
}

.udf-button[disabled],
.udf-button[aria-busy="true"] {
	opacity: 0.65;
	cursor: progress;
	transform: none;
	box-shadow: none;
}

.udf-button--ghost {
	background: var(--udf-surface);
	color: var(--udf-ink) !important;
	border-color: var(--udf-control-line);
}

.udf-button--ghost:hover {
	border-color: var(--udf-ink);
	box-shadow: none;
}

.udf-button--block {
	width: 100%;
}

/* ---------- Pills and badges ---------- */

.udf-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--udf-subtle);
	border: 1px solid var(--udf-line);
	color: var(--udf-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.udf-pill::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

.udf-pill--ok {
	background: var(--udf-ok-soft);
	border-color: transparent;
	color: var(--udf-ok);
}

.udf-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.udf-pills li {
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--udf-subtle);
	color: var(--udf-muted);
	font-size: 0.8125rem;
}

.udf-stamp {
	color: var(--udf-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.udf-stamp span[aria-hidden] {
	color: var(--udf-muted);
}

/* ---------- Price ---------- */

.udf-price {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.udf-price__main,
.udf-total strong {
	font-family: var(--udf-heading-font);
}

.udf-price__main {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.udf-price__allin {
	color: var(--udf-muted);
	font-size: 0.8125rem;
}

/* ---------- Grid and cards ---------- */

.udf-grid {
	--udf-gap: 1.25rem;
	--udf-card-min: 15.5rem;
	display: grid;
	/* --udf-cols is the most cards per row; narrow containers drop to fewer. */
	grid-template-columns: repeat(
		auto-fill,
		minmax(max(min(100%, var(--udf-card-min)), calc((100% - (var(--udf-cols, 3) - 1) * var(--udf-gap)) / var(--udf-cols, 3))), 1fr)
	);
	gap: var(--udf-gap);
}

.udf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--udf-surface);
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
	overflow: hidden;
	box-shadow: var(--udf-shadow);
	transition: transform 0.25s var(--udf-ease), box-shadow 0.25s var(--udf-ease), border-color 0.25s;
}

.udf-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--udf-shadow-lg);
	border-color: color-mix(in srgb, var(--udf-accent) 25%, var(--udf-line));
}

.udf-card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--udf-accent) 18%, transparent), transparent 60%),
		linear-gradient(135deg, var(--udf-accent-soft), var(--udf-subtle));
	text-decoration: none;
}

.udf .udf-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s var(--udf-ease);
}

.udf-card:hover .udf-card__media img {
	transform: scale(1.04);
}

.udf-card__media--plan {
	aspect-ratio: 4 / 3;
	background: #fff;
	border-bottom: 1px solid var(--udf-line);
}

.udf .udf-card__media--plan img {
	object-fit: contain;
	padding: 1.25rem;
}

.udf-card:hover .udf-card__media--plan img {
	transform: scale(1.02);
}

.udf-card__badge {
	display: block;
	line-height: 1;
}

.udf-placeholder {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 1.25rem;
	background: var(--udf-surface);
	box-shadow: var(--udf-shadow);
	color: var(--udf-accent);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.udf-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.1rem 1.25rem 1.25rem;
}

.udf-card__title {
	font-size: 1.15rem;
}

.udf-card__title a {
	color: var(--udf-ink);
	text-decoration: none;
}

/* The title link covers the whole card; inner links sit above it. */
.udf-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.udf-card .udf-kicker a {
	position: relative;
	z-index: 1;
}

.udf-excerpt {
	color: var(--udf-muted);
	font-size: 0.9rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.udf-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid var(--udf-line);
}

.udf-card__go {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--udf-subtle);
	color: var(--udf-ink);
	transition: background-color 0.2s, color 0.2s, transform 0.2s var(--udf-ease);
}

.udf-card:hover .udf-card__go {
	background: var(--udf-accent);
	color: var(--udf-accent-ink);
	transform: translateX(2px);
}

.udf-card__go svg {
	width: 1rem;
	height: 1rem;
}

/* ---------- Search ---------- */

.udf-search {
	container-type: inline-size;
	display: grid;
	gap: 1.25rem;
}

.udf-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.85rem 1rem;
	padding: 1.25rem;
	background: var(--udf-surface);
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
	box-shadow: var(--udf-shadow);
}

.udf-field--wide {
	grid-column: span 2;
}

.udf-field label,
.udf-amenities legend {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--udf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.udf-field input:not([type="checkbox"]),
.udf-field select,
.udf-field textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--udf-input-line, var(--udf-control-line));
	border-radius: var(--udf-input-radius, var(--udf-radius-sm));
	background: var(--udf-input-bg, var(--udf-surface));
	color: var(--udf-input-ink, var(--udf-ink));
	font: inherit;
	font-size: 0.9375rem;
	transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.udf-field select {
	appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7rem center;
	background-size: 1rem;
}

.udf-field input:not([type="checkbox"]):focus,
.udf-field select:focus,
.udf-field textarea:focus {
	outline: 2px solid var(--udf-accent);
	outline-offset: 1px;
	border-color: var(--udf-accent);
	background-color: var(--udf-input-bg, var(--udf-surface));
}

.udf-field input::placeholder,
.udf-field textarea::placeholder {
	color: var(--udf-input-ink, var(--udf-muted));
	opacity: 0.7;
}

.udf-field [aria-invalid="true"] {
	border-color: var(--udf-danger);
}

.udf-field textarea {
	min-height: 6rem;
	resize: vertical;
}

/* "Available now" as a switch. */
.udf-field--check {
	display: flex;
	align-items: flex-end;
}

.udf-field--check label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.5rem;
	margin: 0;
	padding: 0.35rem 0.95rem;
	border: 1px solid var(--udf-input-line, var(--udf-control-line));
	border-radius: var(--udf-button-radius);
	background: var(--udf-input-bg, var(--udf-surface));
	color: var(--udf-input-ink, var(--udf-ink));
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

/* "Available now" is a toggle chip like the bedroom and bathroom pills. The checkbox
   is visually hidden (see below) but still there for keyboards and screen readers. */
.udf-field--check label:has(input:focus-visible) {
	outline: 2px solid var(--udf-accent);
	outline-offset: 2px;
}

.udf-field--check label::before {
	content: "";
	flex: none;
	width: 0.95rem;
	height: 0.95rem;
	border: 1.5px solid var(--udf-control-line);
	border-radius: 0.25rem;
	background: var(--udf-surface);
}

.udf-field--check label:hover {
	border-color: var(--udf-ink);
}

.udf-field--check label:has(input:checked) {
	border-color: var(--udf-accent);
	background: var(--udf-accent);
	color: var(--udf-accent-ink);
}

.udf-field--check label:has(input:checked)::before {
	border-color: transparent;
	border-radius: 0;
	background: var(--udf-accent-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.udf-field--check label:has(input:focus-visible) {
	outline: 2px solid var(--udf-accent);
	outline-offset: 2px;
}

/* Amenities as toggle chips. */
.udf-amenities {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0.85rem 0 0;
	border: 0;
	border-top: 1px solid var(--udf-line);
}

.udf-amenities legend {
	float: left;
	width: 100%;
	padding: 0.85rem 0 0;
}

.udf-amenities label {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--udf-input-line, var(--udf-control-line));
	border-radius: 999px;
	background: var(--udf-input-bg, var(--udf-surface));
	color: var(--udf-input-ink, var(--udf-ink));
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
	user-select: none;
}

.udf-amenities label:hover {
	border-color: var(--udf-ink);
}



.udf-amenities label:has(input:checked) {
	border-color: var(--udf-accent);
	background: var(--udf-accent-soft);
	color: var(--udf-accent);
	font-weight: 600;
}

.udf-amenities label:has(input:focus-visible) {
	outline: 2px solid var(--udf-accent);
	outline-offset: 2px;
}

.udf-filters__actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: flex-end;
}

.udf-results {
	transition: opacity 0.2s;
}

.udf-results[aria-busy="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.udf-results__inner {
	display: grid;
	gap: 1rem;
}

.udf-count {
	font-weight: 600;
}

.udf-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding-top: 0.5rem;
	color: var(--udf-muted);
	font-size: 0.875rem;
}

.udf-pager a {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.4rem 1rem;
	border: 1px solid var(--udf-line);
	border-radius: 999px;
	background: var(--udf-surface);
	color: var(--udf-ink);
	font-weight: 600;
	text-decoration: none;
}

.udf-pager a:hover {
	border-color: var(--udf-ink);
}

/* ---------- Results toolbar, sort menu, layout switch, chips ---------- */

.udf-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.udf-toolbar .udf-count {
	margin: 0;
	color: var(--udf-ink);
	font-size: 0.9375rem;
}

.udf-toolbar__controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.udf-menu {
	position: relative;
}

.udf-menu__button,
.udf-segment {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-button-radius);
	background: var(--udf-surface);
	color: var(--udf-ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.udf-menu__button {
	padding: 0.35rem 0.9rem;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.udf-menu__button::-webkit-details-marker {
	display: none;
}

.udf-menu__button:hover,
.udf-menu[open] .udf-menu__button {
	border-color: var(--udf-ink);
}

.udf-menu svg,
.udf-segment svg {
	width: 1rem;
	height: 1rem;
	flex: none;
}

.udf-menu__list {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	z-index: 20;
	min-width: 13rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: var(--udf-surface);
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius-sm);
	box-shadow: var(--udf-shadow-lg);
}

.udf-menu__list a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: calc(var(--udf-radius-sm) - 2px);
	color: var(--udf-ink);
	font-size: 0.9rem;
	text-decoration: none;
}

.udf-menu__list a:hover {
	background: var(--udf-subtle);
}

.udf-menu__list a[aria-current] {
	color: var(--udf-accent);
	font-weight: 600;
}

.udf-segment {
	padding: 0.2rem;
	gap: 0.15rem;
}

.udf-segment__option {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 2rem;
	padding: 0.2rem 0.7rem;
	border-radius: var(--udf-button-radius);
	color: var(--udf-muted);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.udf-segment__option:hover {
	color: var(--udf-ink);
}

.udf-segment__option[aria-current] {
	background: var(--udf-ink);
	color: var(--udf-surface);
}

.udf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.udf-chips li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* Active filter chips are links; themes and page builders often enlarge and recolor
   links, so size, color, and font are set here. */
.udf .udf-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 2rem;
	padding: 0.25rem 0.35rem 0.25rem 0.75rem;
	border: 1px solid var(--udf-control-line);
	border-radius: 999px;
	background: var(--udf-surface);
	color: var(--udf-ink);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: border-color 0.15s;
}

.udf .udf-chip:hover {
	border-color: var(--udf-ink);
	color: var(--udf-ink);
}

.udf .udf-chip__x {
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--udf-subtle);
	font-size: 0.875rem;
	line-height: 1;
}

.udf .udf-chip--clear {
	padding-right: 0.75rem;
	border-color: transparent;
	background: transparent;
	color: var(--udf-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.udf-empty-actions {
	text-align: center;
}

/* Bedroom and bathroom choices as a row of pills. */
.udf-choice-group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.udf-choice-group legend {
	display: block;
	margin-bottom: 0.35rem;
	padding: 0;
	color: var(--udf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.udf-pillset {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.udf-field .udf-pillset label {
	position: relative;
	display: block;
	margin: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}


.udf-pillset span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem;
	min-height: 2.5rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--udf-input-line, var(--udf-control-line));
	border-radius: var(--udf-button-radius);
	background: var(--udf-input-bg, var(--udf-surface));
	color: var(--udf-input-ink, var(--udf-ink));
	font-size: 0.9rem;
	font-weight: 500;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.udf-pillset label:hover span {
	border-color: var(--udf-ink);
}

.udf-pillset input:checked + span {
	border-color: var(--udf-accent);
	background: var(--udf-accent);
	color: var(--udf-accent-ink);
}

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

.udf-filter-toggle {
	display: none;
	justify-self: start;
}

.udf-filter-toggle svg {
	width: 1.1rem;
	height: 1.1rem;
}

.udf-filter-toggle__count {
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--udf-accent);
	color: var(--udf-accent-ink);
	font-size: 0.75rem;
}

.udf-filter-toggle__count[hidden] {
	display: none;
}

/* Skeleton shimmer while results refresh. */
.udf-results[aria-busy="true"] .udf-card,
.udf-results[aria-busy="true"] .udf-row {
	position: relative;
	overflow: hidden;
}

.udf-results[aria-busy="true"] .udf-card::after,
.udf-results[aria-busy="true"] .udf-row::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--udf-surface) 75%, transparent) 50%, transparent 80%) var(--udf-subtle);
	background-size: 200% 100%;
	animation: udf-shimmer 1.1s linear infinite;
}

@keyframes udf-shimmer {
	from {
		background-position: 150% 0;
	}

	to {
		background-position: -50% 0;
	}
}

/* ---------- List layout rows ---------- */

.udf-rows {
	display: grid;
	gap: 1rem;
}

/* List items around each card keep cards full height in the grid. */
.udf-grid__item {
	display: flex;
	min-width: 0;
}

.udf-grid__item > * {
	flex: 1 1 auto;
	min-width: 0;
}

.udf-row {
	display: grid;
	grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(16rem, 1.15fr);
	background: var(--udf-surface);
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
	overflow: hidden;
	box-shadow: var(--udf-shadow);
	transition: box-shadow 0.25s var(--udf-ease), border-color 0.25s;
}

.udf-row:hover {
	box-shadow: var(--udf-shadow-lg);
	border-color: color-mix(in srgb, var(--udf-accent) 25%, var(--udf-line));
}

.udf-row__media {
	display: grid;
	place-items: center;
	min-height: 11rem;
	background: var(--udf-subtle);
	text-decoration: none;
}

.udf .udf-row__media img {
	width: 100%;
	height: 100%;
	max-height: 14rem;
	object-fit: contain;
	padding: 0.75rem;
}

.udf .udf-row--property .udf-row__media img {
	max-height: none;
	object-fit: cover;
	padding: 0;
}

.udf-row__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.4rem;
	padding: 1.25rem 1.5rem;
}

.udf-row__title {
	font-size: 1.2rem;
}

.udf-row__title a {
	color: var(--udf-ink);
	text-decoration: none;
}

.udf-row__title a:hover {
	color: var(--udf-accent);
}

.udf-row__links a {
	color: var(--udf-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.udf-row__units {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 1px solid var(--udf-line);
}

.udf-row__units--cta {
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
}

.udf-row__unitlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.udf-row__unitlist li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid var(--udf-line);
}

.udf-row__unitlist li:last-child {
	border-bottom: 0;
}

.udf-row__unit {
	min-width: 3rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.udf-row__unitinfo {
	display: grid;
	gap: 0.1rem;
}

.udf-row__unitprice {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.udf-row__unitinfo .udf-quiet {
	font-size: 0.8125rem;
}

.udf-row__view,
.udf-row__all {
	color: var(--udf-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.udf-row__view:hover,
.udf-row__all:hover,
.udf-row__links a:hover {
	color: var(--udf-accent);
}

.udf-row__all {
	padding: 0.8rem 1.25rem;
	border-top: 1px solid var(--udf-line);
}

.udf-row__none {
	display: grid;
	justify-items: start;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	color: var(--udf-muted);
	font-size: 0.9375rem;
}

/* ---------- Empty and notices ---------- */

.udf-empty {
	padding: 2.5rem 1.5rem;
	border: 1px dashed var(--udf-line);
	border-radius: var(--udf-radius);
	background: var(--udf-subtle);
	color: var(--udf-muted);
	text-align: center;
}

.udf-notice {
	padding: 0.85rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--udf-radius-sm);
	background: var(--udf-warn-soft);
	color: var(--udf-warn);
	font-size: 0.9375rem;
	font-weight: 500;
}

.udf-notice--ok {
	background: var(--udf-ok-soft);
	color: var(--udf-ok);
}

.udf-notice--error {
	background: var(--udf-danger-soft);
	color: var(--udf-danger);
}

/* ---------- Single pages ---------- */

.udf-single {
	container-type: inline-size;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.udf-single > .udf-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 0.6rem 2rem;
}

.udf-single > .udf-hero > * {
	grid-column: 1;
}

.udf-single > .udf-hero h1 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.udf-single > .udf-hero .udf-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.udf-single > .udf-hero .udf-price,
.udf-single > .udf-hero .udf-hero__cta {
	grid-column: 2;
	grid-row: 1 / span 4;
	align-self: end;
	text-align: right;
}

/* With an Apply button (unit pages), the price takes the top rows and the button the last
   one, so they stack instead of sharing a grid cell. */
.udf-single > .udf-hero:has(.udf-hero__cta) .udf-price {
	grid-row: 1 / span 3;
}

.udf-single > .udf-hero .udf-hero__cta {
	grid-row: 4;
	align-self: center;
	justify-self: end;
	margin: 0;
}

.udf-single > .udf-hero .udf-price__main {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Mosaic gallery: one large image, the rest in a grid beside it. */
.udf-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: clamp(8rem, 16vw, 13rem);
	gap: 0.5rem;
	margin: 0;
	border-radius: var(--udf-radius);
	overflow: hidden;
}

.udf-gallery figure {
	margin: 0;
	overflow: hidden;
	background: var(--udf-subtle);
}

.udf-gallery figure:first-child {
	grid-row: span 2;
}

.udf-gallery:has(figure:only-child) {
	grid-template-columns: 1fr;
	grid-auto-rows: clamp(14rem, 40vw, 28rem);
}

.udf-gallery:has(figure:only-child) figure:first-child {
	grid-row: auto;
}

.udf .udf-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--udf-ease);
}

.udf-gallery figure:hover img {
	transform: scale(1.03);
}

figure.udf-gallery {
	display: block;
	aspect-ratio: 16 / 7;
}

.udf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
	align-items: start;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.udf-main,
.udf-aside {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
}

.udf-aside {
	position: sticky;
	top: 1.5rem;
}

.udf-prose {
	color: color-mix(in srgb, var(--udf-ink) 85%, var(--udf-muted));
	font-size: 1.0625rem;
	line-height: 1.7;
}

.udf-prose > * + * {
	margin-top: 1em;
}

.udf-section {
	display: grid;
	gap: 1rem;
	font-size: 0.9375rem;
	padding: clamp(1.1rem, 2.5vw, 1.5rem);
	background: var(--udf-surface);
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
}

.udf-section > h2 {
	font-size: 1.125rem;
}

.udf-address {
	display: grid;
	gap: 0.1rem;
	font-style: normal;
}

.udf-location img {
	max-height: 3.5rem;
	width: auto;
}

/* Contact and lead form sit as the action panel in the sidebar. */
.udf-contact__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
	gap: 0.5rem;
}

.udf-contact p a {
	color: var(--udf-ink);
	font-weight: 500;
	text-decoration: none;
}

.udf-contact p a:hover {
	color: var(--udf-accent);
}

.udf-lead form {
	display: grid;
	gap: 0.85rem;
}

.udf-lead .udf-button {
	width: 100%;
}

.udf-form-status:empty {
	display: none;
}

.udf-form-status {
	padding: 0.7rem 0.9rem;
	border-radius: var(--udf-radius-sm);
	background: var(--udf-subtle);
	color: var(--udf-muted);
	font-size: 0.875rem;
}

.udf-form-status.is-ok {
	background: var(--udf-ok-soft);
	color: var(--udf-ok);
}

.udf-form-status.is-error {
	background: var(--udf-danger-soft);
	color: var(--udf-danger);
}

/* Office hours and custom fields as quiet key/value rows. */
.udf-hours dl,
.udf-fields dl {
	display: grid;
	margin: 0;
}

.udf-hours dl > div,
.udf-fields dl > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--udf-line);
	font-size: 0.9375rem;
}

.udf-hours dl > div:last-child,
.udf-fields dl > div:last-child {
	border-bottom: 0;
}

.udf-hours dt,
.udf-fields dt {
	color: var(--udf-muted);
}

.udf-hours dd,
.udf-fields dd {
	margin: 0;
	font-weight: 500;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.udf-hours dl > div.is-today dt,
.udf-hours dl > div.is-today dd {
	color: var(--udf-accent);
	font-weight: 700;
}

/* ---------- Specials ---------- */

.udf-specials {
	gap: 0.75rem;
}

.udf-special {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.15rem 0.85rem;
	padding: 1rem;
	border-radius: var(--udf-radius-sm);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--udf-accent) 10%, transparent), transparent 70%),
		var(--udf-accent-soft);
}

.udf-special::before {
	content: "";
	grid-row: span 4;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.65rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / 1.15rem no-repeat,
		var(--udf-accent);
}

.udf-special h3 {
	font-size: 1rem;
}

.udf-special__where {
	color: var(--udf-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.udf-special__where a {
	color: inherit;
	text-decoration: none;
}

.udf-special__where a:hover {
	color: var(--udf-accent);
}

/* A standalone specials page: cards in a responsive grid, no panel around them. */
.udf-specials--list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	padding: 0;
	border: 0;
	background: none;
}

.udf-special p {
	font-size: 0.9375rem;
}

/* ---------- Fees ---------- */

.udf-fees table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.udf-fees th,
.udf-fees td {
	padding: 0.65rem 0.25rem;
	border-bottom: 1px solid var(--udf-line);
	text-align: left;
	vertical-align: top;
}

.udf-fees thead th {
	padding-top: 0;
	color: var(--udf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.udf-fees tbody th {
	font-weight: 500;
}

.udf-fees td:nth-child(2) {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.udf-fees td:last-child {
	color: var(--udf-muted);
}

.udf-fees .udf-quiet {
	display: block;
	font-size: 0.8125rem;
	font-weight: 400;
}

.udf-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border-radius: var(--udf-radius-sm);
	background: var(--udf-ink);
	color: #fff;
}

.udf-total span {
	font-weight: 500;
}

.udf-total strong {
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.udf-due {
	padding: 0.75rem 1rem;
	border: 1px dashed var(--udf-line);
	border-radius: var(--udf-radius-sm);
	font-size: 0.9375rem;
}

/* ---------- Tours ---------- */

.udf-frame-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--udf-radius-sm);
	overflow: hidden;
	background: var(--udf-ink);
}

.udf-frame-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Unit availability ---------- */

.udf-units {
	container-type: inline-size;
	display: grid;
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
	background: var(--udf-surface);
	overflow: hidden;
}

.udf-section .udf-units {
	border-radius: var(--udf-radius-sm);
}

.udf-units__head,
.udf-units__row {
	display: grid;
	grid-template-columns: minmax(5rem, 0.9fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1.1rem;
}

.udf-units__head {
	background: var(--udf-subtle);
	border-bottom: 1px solid var(--udf-line);
	color: var(--udf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.udf-units__row {
	border-bottom: 1px solid var(--udf-line);
	transition: background-color 0.15s;
}

.udf-units__row:last-child {
	border-bottom: 0;
}

.udf-units__row:hover {
	background: var(--udf-subtle);
}

.udf-units__row h3 {
	font-size: 1rem;
}

.udf-units__row h3 a {
	color: var(--udf-ink);
	text-decoration: none;
}

.udf-units__row p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9375rem;
}

.udf-units__row .udf-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.udf-units__row .udf-price__main {
	font-size: 1.0625rem;
}

.udf-units__row > div:last-child {
	display: flex;
	justify-content: flex-end;
}

.udf .udf-units__row .udf-button {
	width: auto;
	min-height: 2.5rem !important;
	padding: 0.45rem 1.1rem !important;
	font-size: 0.875rem !important;
	white-space: nowrap;
}

/* Very narrow phones: a full-width button is the easier tap. */
@media (max-width: 24rem) {
	.udf .udf-units__row .udf-button {
		width: 100%;
	}
}

/* Column labels: read by screen readers on wide screens, shown on narrow ones. */
.udf-k {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Responsive ---------- */

/* The single layout follows its own width, so it also stacks inside a narrow theme column. */
@container (max-width: 820px) {
	.udf-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.udf-aside {
		position: static;
	}
}

@container (max-width: 900px) {
	.udf-row {
		grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
	}

	.udf-row__units {
		grid-column: 1 / -1;
		border-left: 0;
		border-top: 1px solid var(--udf-line);
	}

	.udf-row__units--cta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* Each component reads its nearest container: the search, the single page, or the unit list. */
@container (max-width: 640px) {
	.udf-field--wide {
		grid-column: 1 / -1;
	}

	/* With script on, the filter panel folds behind the Filters button. */
	.udf-js > .udf-filter-toggle {
		display: inline-flex;
	}

	.udf-js > .udf-filters:not(.is-open) {
		display: none;
	}

	.udf-segment__option span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

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

	.udf-row__media {
		min-height: 9rem;
	}

	.udf-row__info {
		padding: 1rem 1.1rem 0.5rem;
	}

	.udf-row__units {
		border-left: 0;
		border-top: 1px solid var(--udf-line);
	}

	.udf-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 1rem;
	}

	.udf-filters__actions .udf-button {
		flex: 1;
	}

	.udf-single > .udf-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.udf-single > .udf-hero .udf-price,
	.udf-single > .udf-hero:has(.udf-hero__cta) .udf-price,
	.udf-single > .udf-hero .udf-hero__cta {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		text-align: left;
	}

	.udf-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 9rem;
	}

	.udf-gallery figure:first-child {
		grid-column: 1 / -1;
		grid-row: span 2;
	}

	.udf-units__head {
		display: none;
	}

	.udf-units__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem 1rem;
		padding: 1rem;
	}

	.udf-units__row > div:last-child {
		grid-column: 1 / -1;
		display: flex;
		justify-content: flex-start;
	}

	.udf-units__row .udf-button {
		width: auto;
		min-width: 9rem;
	}

	.udf-k {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		clip-path: none;
		white-space: normal;
		display: block;
		color: var(--udf-muted);
		font-size: 0.6875rem;
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}
}

@media (prefers-reduced-motion: reduce) {
	.udf *,
	.udf *::before,
	.udf *::after,
	.udf-section *,
	.udf-section *::before,
	.udf-section *::after {
		transition: none !important;
		animation: none !important;
	}
}

.udf-price__link {
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ---------- Floor plan buttons ---------- */

.udf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
}

.udf-actions a {
	position: relative;
	z-index: 2;
}

/* ---------- Floor plan drawer ---------- */

.udf-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(46rem, 100vw);
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--udf-surface);
	color: var(--udf-ink);
	box-shadow: var(--udf-shadow-lg);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.udf-drawer[open] {
	animation: udf-drawer-in 0.25s var(--udf-ease);
}

.udf-drawer::backdrop {
	background: rgb(15 23 42 / 0.5);
}

@keyframes udf-drawer-in {
	from {
		transform: translateX(100%);
	}
}

.udf-drawer-open {
	overflow: hidden;
}

.udf-drawer__bar {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem 0.85rem 1.5rem;
	background: color-mix(in srgb, var(--udf-surface) 94%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--udf-line);
}

.udf-drawer__heading {
	min-width: 0;
}

.udf-drawer__kicker {
	margin: 0;
	color: var(--udf-muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.udf-drawer__kicker:empty {
	display: none;
}

.udf-drawer__title {
	margin: 0;
	color: var(--udf-ink);
	font-family: var(--udf-heading-font);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Reset theme button styles so the icon sits dead centre. */
.udf-drawer .udf-drawer__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--udf-line);
	border-radius: 50%;
	background: var(--udf-surface);
	box-shadow: none;
	color: var(--udf-ink);
	line-height: 0;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.udf-drawer .udf-drawer__close:hover {
	background: var(--udf-subtle);
	border-color: var(--udf-control-line);
}

.udf-drawer .udf-drawer__close svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.udf-drawer__close:focus-visible {
	outline: 2px solid var(--udf-accent);
	outline-offset: 2px;
}

.udf-drawer__body {
	padding: 0 1.5rem 2.5rem;
}

.udf-drawer__body .udf-single {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: none;
	margin: 0;
	padding-top: 1.25rem;
}

.udf-drawer__body .udf-single > .udf-gallery,
.udf-drawer__body .udf-single > .udf-plan-slider {
	order: -1;
}

.udf-drawer__body .udf-single > .udf-plan-slider {
	margin: 0;
}

/* The bar already names the plan and property. */
.udf-drawer__body .udf-hero > h1,
.udf-drawer__body .udf-hero > .udf-kicker {
	display: none;
}

.udf-drawer__body .udf-hero {
	margin: 0;
	padding: 0;
}

.udf-drawer__loading {
	padding: 2rem 0;
	color: var(--udf-muted);
}

@media (prefers-reduced-motion: reduce) {
	.udf-drawer[open] {
		animation: none;
	}
}

/* ---------- Floor plan card ---------- */

/* Image rules above are prefixed with .udf so theme and page-builder rules such as
   ".elementor img { height: auto }" cannot stretch or crop listing images. */

.udf-card--plan .udf-card__body {
	gap: 0.75rem;
	padding: 1.25rem;
}

.udf-card--plan .udf-card__title {
	margin: 0;
	color: var(--udf-ink);
	font-family: var(--udf-heading-font);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.2;
}

.udf-card--plan .udf-price {
	margin: 0;
}

.udf-card__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
	gap: 0.5rem;
	margin: auto 0 0;
	padding-top: 0.5rem;
}

.udf-card__actions .udf-button {
	width: 100%;
}

/* The details link covers the whole card; the availability link sits above it. */
.udf-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.udf-card__actions .udf-button--ghost {
	position: relative;
	z-index: 2;
}

.udf-card--plan:hover {
	transform: translateY(-2px);
}

.udf-card--plan:has(.udf-card__link:focus-visible) {
	outline: 2px solid var(--udf-accent);
	outline-offset: 2px;
}

/* ---------- Fact tags (beds, baths, size) ---------- */

.udf-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.udf-facts li {
	margin: 0;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	background: var(--udf-subtle);
	border: 1px solid var(--udf-line);
	color: var(--udf-ink);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.udf-facts--large li {
	padding: 0.4rem 0.85rem;
	font-size: 0.9375rem;
}

/* ---------- Floor plan drawing ---------- */

.udf-gallery--plan figure {
	background: #fff;
}

.udf .udf-gallery--plan figure:first-child img {
	object-fit: contain;
	padding: 1rem;
}

.udf-gallery--plan:has(figure:only-child) {
	grid-auto-rows: clamp(16rem, 55vh, 34rem);
	border: 1px solid var(--udf-line);
}

.udf-drawer__body .udf-gallery--plan:has(figure:only-child) {
	grid-auto-rows: clamp(14rem, 48vh, 28rem);
}

/* ---------- Filters drawer ---------- */

/* The Filters button shows whenever the filters live in the side panel. */
.udf-js.udf-filters-drawer > .udf-filter-toggle,
.udf-js[data-udf-filter-layout="drawer"] > .udf-filter-toggle {
	display: inline-flex;
	justify-self: start;
}

/* "Filters button on every screen": the bar never shows, even while the page loads. */
.udf-js[data-udf-filter-layout="drawer"] > .udf-filters:not(.is-open) {
	display: none;
}

.udf-drawer--filters {
	inset: 0 auto 0 0;
	width: min(26rem, 100vw);
}

.udf-drawer--filters[open] {
	animation-name: udf-drawer-in-left;
}

@keyframes udf-drawer-in-left {
	from {
		transform: translateX(-100%);
	}
}

.udf-drawer--filters .udf-drawer__body {
	padding: 0;
}

.udf-drawer--filters .udf-filters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 0.85rem;
	padding: 1.25rem 1.5rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* One filter per row, except the two rent boxes and the move-in and size boxes, which pair up. */
.udf-drawer--filters .udf-field--wide,
.udf-drawer--filters .udf-choice-group,
.udf-drawer--filters .udf-field--check,
.udf-drawer--filters .udf-amenities {
	grid-column: 1 / -1;
}

.udf-drawer--filters .udf-filters__actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 0.6rem;
	margin: 0.5rem -1.5rem 0;
	padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--udf-line);
	background: var(--udf-surface);
}

.udf-drawer--filters .udf-filters__actions .udf-button {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.udf-drawer--filters[open] {
		animation: none;
	}
}

/* Themes often indent or offset fieldset legends; keep filter group labels in line. */
.udf .udf-filters fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.udf .udf-filters legend {
	float: left;
	width: 100%;
	margin: 0 0 0.35rem;
	padding: 0;
}

.udf .udf-filters legend + * {
	clear: both;
}

/* ---------- Tour booking and availability alerts ---------- */

.udf-booking form {
	display: grid;
	gap: 0.85rem;
}

.udf-booking__slots,
.udf-booking__contact {
	display: grid;
	gap: 0.85rem;
}

.udf-booking__slots {
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.udf-booking [hidden] {
	display: none !important;
}

.udf-booking .udf-button {
	justify-self: start;
	min-width: 9rem;
}

.udf-booking--alert {
	margin-top: 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
	background: var(--udf-subtle);
}

/* Some themes size every "ul li a" for their menus, behind an ID such as
   "#main-container ul li a { font-size: 22px }" that no class selector can outrank.
   Links the plugin places inside lists keep their own size. */
.udf .udf-chip {
	font-size: 0.8125rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.udf .udf-chip:not(.udf-chip--clear) {
	color: var(--udf-ink) !important;
}

.udf .udf-menu__list a {
	font-size: 0.9rem !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.udf .udf-row__unitlist a {
	font-size: 0.875rem !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* The same themes pad every list ("#main-container ul"). Plugin lists are layout, not
   bullets, so they start flush. */
.udf ul.udf-chips,
.udf ul.udf-facts,
.udf ul.udf-pills,
.udf ul.udf-menu__list,
.udf ul.udf-row__unitlist {
	margin-left: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
}

.udf ul.udf-menu__list {
	padding: 0.35rem !important;
}

/* Three card buttons: View details on its own row, the two others side by side. */
.udf-card__actions:has(> :nth-child(3)) {
	grid-template-columns: 1fr 1fr;
}

.udf-card__actions:has(> :nth-child(3)) .udf-card__link {
	grid-column: 1 / -1;
}

/* ---------- Virtual tour pop-up ---------- */

.udf-modal {
	width: min(72rem, calc(100vw - 2rem));
	max-width: none;
	height: min(48rem, calc(100dvh - 2rem));
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--udf-radius);
	background: var(--udf-surface);
	color: var(--udf-ink);
	box-shadow: var(--udf-shadow-lg);
	overflow: hidden;
}

.udf-modal[open] {
	display: flex;
	flex-direction: column;
}

.udf-modal::backdrop {
	background: rgb(15 23 42 / 0.6);
}

.udf-modal__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem 0.65rem 1.25rem;
	border-bottom: 1px solid var(--udf-line);
}

.udf-modal__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-family: var(--udf-heading-font);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
}

.udf .udf-modal__newtab {
	color: var(--udf-ink);
	font-size: 0.875rem;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	white-space: nowrap;
}

.udf-modal .udf-drawer__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--udf-line);
	border-radius: 50%;
	background: var(--udf-surface);
	color: var(--udf-ink);
	line-height: 0;
	cursor: pointer;
}

.udf-modal__frame {
	flex: 1;
	min-height: 0;
	background: #000;
}

.udf-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 40rem) {
	.udf-modal {
		width: 100vw;
		height: 100dvh;
		border-radius: 0;
	}

	.udf .udf-modal__newtab {
		display: none;
	}
}

/* ---------- Schedule a tour page ([udf_schedule_tour]) ----------
 *
 * Colours, fonts, and corners come from Settings → Appearance. To restyle just this page,
 * override these on .udf-schedule in the theme, for example:
 * .udf-schedule { --udf-schedule-pick: #4b4f4f; --udf-schedule-max: 40rem; }
 */

.udf-schedule {
	--udf-schedule-pick: var(--udf-accent);
	--udf-schedule-pick-ink: var(--udf-accent-ink);
	--udf-schedule-max: 52rem;
	max-width: var(--udf-schedule-max);
	margin-inline: auto;
}

.udf-schedule [hidden] {
	display: none !important;
}

.udf-schedule__card {
	display: grid;
	gap: 1.5rem;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	background: var(--udf-surface);
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
	box-shadow: var(--udf-shadow);
}

.udf .udf-schedule__title {
	margin: 0;
	font-family: var(--udf-heading-font);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
}

.udf-schedule__lede {
	margin: -0.75rem 0 0;
	color: var(--udf-muted);
}

.udf-schedule__step {
	display: grid;
	gap: 0.6rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.udf-schedule__step legend {
	/* Some themes pull legends left with a negative margin. */
	margin: 0 0 0.6rem;
	padding: 0;
	color: var(--udf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.udf-schedule__zone {
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

.udf-schedule__choices {
	display: grid;
	gap: 0.5rem;
}

.udf-schedule__choices--types {
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.udf-schedule__choices--days {
	grid-auto-flow: column;
	grid-auto-columns: minmax(4.5rem, 1fr);
	overflow-x: auto;
	padding-bottom: 0.25rem;
	scroll-snap-type: x mandatory;
}

.udf-schedule__choices--times {
	grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
}

.udf-schedule__choice {
	position: relative;
	display: block;
	/* Themes such as Blocksy put a bottom margin on every label but the last, which leaves
	   the choices in a row at different heights. */
	margin: 0;
	scroll-snap-align: start;
	cursor: pointer;
}


.udf-schedule__choice span {
	display: grid;
	place-content: center;
	gap: 0.1rem;
	height: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--udf-control-line);
	border-radius: var(--udf-radius-sm);
	background: var(--udf-surface);
	color: var(--udf-ink);
	font-size: 0.9375rem;
	text-align: center;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.udf-schedule__choices--types .udf-schedule__choice span {
	place-content: start;
	padding: 0.85rem 1rem;
	text-align: left;
}

.udf-schedule__choice small {
	color: var(--udf-muted);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.udf-schedule__choices--days .udf-schedule__choice small {
	text-transform: uppercase;
}

.udf-schedule__choice strong {
	font-size: 1rem;
	font-weight: 600;
}

.udf-schedule__choices--days .udf-schedule__choice strong {
	font-size: 1.25rem;
	line-height: 1.1;
}

.udf-schedule__choice:hover span {
	border-color: var(--udf-ink);
}

.udf-schedule__choice input:focus-visible + span {
	outline: 2px solid var(--udf-schedule-pick);
	outline-offset: 2px;
}

.udf-schedule__choice input:checked + span {
	border-color: var(--udf-schedule-pick);
	background: var(--udf-schedule-pick);
	color: var(--udf-schedule-pick-ink);
}

.udf-schedule__choice input:checked + span small {
	color: inherit;
	opacity: 0.85;
}

.udf-schedule__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 0.85rem;
}

.udf-schedule__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 0.5rem;
}

/* Confirmation */

.udf-schedule__done {
	justify-items: center;
	text-align: center;
}

.udf-schedule__done:focus {
	outline: none;
}

.udf-schedule__check {
	width: 3rem;
	height: 3rem;
	color: var(--udf-ok);
}

.udf-schedule__done .udf-schedule__lede {
	margin: -0.75rem 0 0;
}

.udf-schedule__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1.25rem 0;
	border-block: 1px solid var(--udf-line);
}

.udf-schedule__summary dt {
	color: var(--udf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.udf-schedule__summary dd {
	margin: 0.25rem 0 0;
}

.udf-schedule__calendars {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.udf-schedule__expect {
	max-width: 36rem;
	color: var(--udf-muted);
}

.udf-schedule__expect > :first-child {
	margin-top: 0;
}

.udf-schedule__expect > :last-child {
	margin-bottom: 0;
}

/* No open times */

.udf-schedule__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1rem;
}

.udf-schedule__option {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius-sm);
}

.udf .udf-schedule__option h3 {
	margin: 0;
	font-family: var(--udf-heading-font);
	font-size: 1.125rem;
}

.udf-schedule__option p {
	margin: 0;
	color: var(--udf-muted);
	font-size: 0.9375rem;
}

.udf-schedule__option > .udf-button:last-child,
.udf-schedule__phone {
	margin-top: auto;
}

.udf-schedule__hours {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	font-size: 0.875rem;
}

.udf-schedule__hours div {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.udf-schedule__hours dt {
	color: var(--udf-muted);
}

.udf-schedule__hours dd {
	margin: 0;
}

.udf .udf-schedule__phone {
	color: var(--udf-ink);
	font-size: 1.25rem;
	font-weight: 600;
}

.udf-schedule__phone a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Card image slider (floor plans with several images) ---------- */

.udf-slider__track {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: pointer;
}

.udf-slider__track::-webkit-scrollbar {
	display: none;
}

.udf-slider__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.udf-card:hover .udf-slider img {
	transform: none;
}

.udf .udf-slider__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	margin: -1rem 0 0;
	padding: 0;
	border: 1px solid var(--udf-line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--udf-surface) 92%, transparent);
	color: var(--udf-ink);
	box-shadow: var(--udf-shadow);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s;
}

.udf-slider__nav svg {
	width: 1rem;
	height: 1rem;
}

.udf-slider__nav--prev {
	left: 0.5rem;
}

.udf-slider__nav--next {
	right: 0.5rem;
}

.udf-slider:hover .udf-slider__nav,
.udf-slider__nav:focus-visible {
	opacity: 1;
}

/* Touch screens swipe; the arrows stay visible there as a hint. */
@media (hover: none) {
	.udf .udf-slider__nav {
		opacity: 0.85;
	}
}

.udf-slider__nav[disabled] {
	visibility: hidden;
}

.udf-slider__count {
	position: absolute;
	right: 0.75rem;
	bottom: 0.6rem;
	z-index: 3;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--udf-ink) 70%, transparent);
	color: var(--udf-surface);
	font-size: 0.75rem;
	pointer-events: none;
}

/* Floor plan details: drawings one at a time in a fixed frame, sliding when there are several. */
.udf-plan-slider {
	position: relative;
	aspect-ratio: 4 / 3;
	max-height: 70vh;
	margin: 0 0 1.5rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--udf-line);
	border-radius: var(--udf-radius);
}

.udf-plan-slider .udf-slider__track {
	z-index: auto;
	cursor: auto;
}

.udf .udf-plan-slider img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	padding: 1.25rem;
	object-fit: contain;
}

.udf-plan-slider .udf-slider__nav {
	opacity: 1;
}

/* Tour booking in a pop-up, one step at a time. */
.udf-modal--tour {
	width: min(36rem, calc(100vw - 2rem));
	height: fit-content;
	max-height: calc(100dvh - 2rem);
}

.udf-modal--tour .udf-modal__title {
	font-size: 1.25rem;
	line-height: 1.25;
}

.udf-modal--tour[open] {
	display: flex;
	flex-direction: column;
}

.udf-modal__body {
	flex: 1;
	min-height: 8rem;
	overflow-y: auto;
	padding: 1.25rem;
}

.udf-modal--tour .udf-schedule {
	max-width: none;
}

.udf-modal--tour .udf-schedule__card {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

[data-udf-steps] .udf-schedule__num {
	display: none;
}

.udf-schedule__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

/* Next sits right whether or not Back shows. */
.udf-schedule__nav [data-udf-schedule-next] {
	margin-left: auto;
}

.udf-schedule__nav [data-udf-schedule-count] {
	margin: 0;
}

.udf-schedule__nav:has([data-udf-schedule-next][hidden]) [data-udf-schedule-count] {
	margin-left: auto;
}

.udf-schedule__picked {
	margin: 0 0 1rem;
	font-weight: 600;
}

.udf-schedule__picker {
	display: grid;
	gap: 0.6rem;
}

.udf-schedule__embed:empty {
	display: none;
}

/* The link is only a fallback for when Knock can't show its scheduler in the page. */
.udf-schedule__embed:not(:empty) + p {
	display: none;
}
