/*
 * KINETIC Listing Engine - public styles.
 *
 * Everything is scoped to .kle. The brand colour arrives as two custom
 * properties set from the plugin settings: --kle-brand and --kle-on-brand.
 *
 * Column counts follow the width of the space the listings are placed in
 * (container queries), not the width of the window, so the grid behaves the
 * same in a narrow page column as on a phone.
 *
 * Declarations that themes commonly restyle (headings, links, form controls,
 * tables) are marked !important so the listings look the same in any theme.
 */

.kle {
	--kle-brand: #1F4D43;
	--kle-on-brand: #FFFFFF;
	--kle-ink: #16191D;
	--kle-muted: #5B626B;
	--kle-line: #E4E7EA;
	--kle-line-strong: #C9CED4;
	--kle-fill: #F3F4F5;
	--kle-error: #A4262C;
	--kle-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* The listings measure their own width; width: 100% keeps that from collapsing inside flex layouts. */
	container-type: inline-size;
	container-name: kle;
	width: 100%;
	min-width: 0;

	font-family: var(--kle-font) !important;
	font-size: 15px;
	line-height: 1.5;
	color: var(--kle-ink);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.kle-page {
	max-width: 1384px;
	margin: 0 auto;
	padding: 56px 32px 120px;
}

/* ---------------------------------------------------------------------
 * Type helpers
 * ------------------------------------------------------------------- */

.kle .kle-caps {
	font-family: var(--kle-font) !important;
	font-size: 11px !important;
	font-weight: 500;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	line-height: 1.5 !important;
}

.kle .kle-muted {
	color: var(--kle-muted) !important;
}

.kle .kle-small {
	font-size: 13px;
}

.kle .kle-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kle p,
.kle dl,
.kle dt,
.kle dd,
.kle ul,
.kle li,
.kle figure {
	font-family: var(--kle-font) !important;
}

.kle a {
	color: var(--kle-ink) !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: opacity 0.4s ease-out;
}

.kle a:hover {
	opacity: 0.6;
}

.kle .kle-link {
	text-decoration: underline !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px !important;
}

.kle a:focus-visible,
.kle button:focus-visible,
.kle select:focus-visible,
.kle input:focus-visible,
.kle textarea:focus-visible {
	outline: 2px solid var(--kle-ink) !important;
	outline-offset: 2px !important;
}

.kle img {
	max-width: 100%;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.kle .kle-icon {
	flex: 0 0 auto;
	display: block;
}

/* ---------------------------------------------------------------------
 * Buttons and form controls
 * ------------------------------------------------------------------- */

.kle .kle-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px !important;
	height: 46px !important;
	width: auto;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 1px solid var(--kle-line-strong) !important;
	border-radius: 0 !important;
	background: #FFFFFF !important;
	box-shadow: none !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.4s ease-out, opacity 0.4s ease-out;
}

.kle .kle-btn:hover {
	border-color: var(--kle-ink) !important;
	opacity: 1;
}

.kle .kle-btn--primary {
	height: 52px !important;
	padding: 0 32px !important;
	border-color: var(--kle-brand) !important;
	background: var(--kle-brand) !important;
	color: var(--kle-on-brand) !important;
	font-weight: 600 !important;
}

.kle .kle-btn--primary:hover {
	border-color: var(--kle-brand) !important;
	opacity: 0.86;
}

.kle .kle-btn--block {
	width: 100% !important;
}

.kle .kle-btn[disabled] {
	opacity: 0.55;
	cursor: default;
}

.kle .kle-btn[hidden] {
	display: none !important;
}

.kle select.kle-select {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	max-width: 100%;
	min-height: 0 !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 38px 0 16px !important;
	border: 1px solid var(--kle-line-strong) !important;
	border-radius: 0 !important;
	background-color: #FFFFFF !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%2316191D' stroke-width='1.4'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 10px 6px !important;
	box-shadow: none !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: border-color 0.4s ease-out;
}

.kle select.kle-select:hover,
.kle select.kle-select:focus {
	border-color: var(--kle-ink) !important;
}

.kle select.kle-select--bare {
	flex: 0 1 auto;
	height: 44px !important;
	padding-left: 6px !important;
	border-color: transparent !important;
	font-weight: 600 !important;
}

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

.kle .kle-search {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

.kle .kle-search__text {
	flex: 1 1 100%;
	display: flex !important;
	align-items: center;
	gap: 12px;
	height: 56px;
	margin: 0 !important;
	padding: 0 20px !important;
	border: 1px solid var(--kle-line-strong);
	color: var(--kle-muted);
	cursor: text;
	transition: border-color 0.4s ease-out;
}

.kle .kle-search__text:focus-within {
	border-color: var(--kle-ink);
}

.kle .kle-search__text input {
	flex: 1;
	min-width: 0;
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 16px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.kle .kle-search__text input::placeholder {
	color: var(--kle-muted);
	opacity: 1;
}

.kle .kle-search .kle-btn--primary {
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
 * Toolbar
 * ------------------------------------------------------------------- */

.kle .kle-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 0 56px;
	padding: 16px 0 0;
	border-top: 1px solid var(--kle-line);
}

.kle .kle-toolbar__count {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14px !important;
	color: var(--kle-muted) !important;
}

.kle .kle-toolbar__count .kle-link {
	margin-left: 12px;
}

.kle .kle-toolbar__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 32px;
}

.kle .kle-toolbar__saved {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.kle .kle-toolbar__saved[hidden] {
	display: none !important;
}

.kle .kle-sort label {
	display: flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
}

.kle .kle-views {
	display: flex;
	gap: 24px;
}

.kle .kle-views a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid transparent;
	color: var(--kle-muted) !important;
}

.kle .kle-views a.is-current {
	border-bottom-color: var(--kle-brand);
	color: var(--kle-ink) !important;
	font-weight: 600;
}

/* ---------------------------------------------------------------------
 * Card grid
 *
 * Three across by default. Four across with the widest gaps on very large
 * screens (a 4K or wide QHD window), or wherever the listings are given
 * 1900px or more. Then two, then one.
 * ------------------------------------------------------------------- */

.kle .kle-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 88px 80px;
	margin: 0;
	padding: 0;
}

@container kle (min-width: 1900px) {
	.kle .kle-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 90px 100px;
	}
}

@container kle (max-width: 1299px) {
	.kle .kle-grid {
		gap: 76px 56px;
	}
}

@container kle (max-width: 899px) {
	.kle .kle-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 64px 40px;
	}
}

@container kle (max-width: 559px) {
	.kle .kle-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px 0;
	}
}

/* Very large window: four across even when the theme keeps the page column near 1300px. */
@media (min-width: 2200px) {
	@container kle (min-width: 1200px) {
		.kle .kle-grid {
			grid-template-columns: repeat(4, minmax(0, 1fr));
			gap: 90px 100px;
		}
	}
}

/* ---------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------- */

.kle .kle-card {
	position: relative;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

/*
 * Photo frame. Every frame is 4:3 and every photo fills it from its top-left
 * corner, where the REALTOR® watermark sits, so the watermark is never cut.
 * The templates repeat these rules on the elements themselves (see
 * frame_style() and photo_style()) so they hold in any theme.
 */
.kle .kle-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--kle-fill);
}

.kle .kle-card__media img,
.kle .kle-gallery__item img {
	position: absolute !important;
	top: 0;
	left: 0;
	display: block !important;
	width: 100%;
	height: 100%;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	object-position: left top;
}

.kle .kle-card__media img {
	transition: opacity 0.6s ease-out;
}

.kle .kle-card:hover .kle-card__media img {
	opacity: 0.9;
}

/* Image optimisers sometimes wrap photos in <picture>; let the photo size against the frame. */
.kle .kle-card__media picture,
.kle .kle-gallery__item picture {
	display: contents !important;
}

.kle .kle-card__nophoto {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--kle-muted);
}

@supports not (aspect-ratio: 1) {
	.kle .kle-card__media {
		height: 0;
		padding-top: 75%;
	}
}

.kle .kle-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: 22px;
}

.kle .kle-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.kle .kle-card__price {
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.kle h3.kle-card__street {
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.4 !important;
}

/* The street name is the card's link, stretched over the whole card. */
.kle .kle-card__link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.kle .kle-card__link:hover {
	opacity: 1;
}

.kle .kle-card:hover .kle-card__link {
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 5px;
}

.kle .kle-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
}

.kle .kle-card__place {
	font-size: 14px;
	color: var(--kle-muted);
}

.kle .kle-card__tag {
	flex: 0 0 auto;
	color: var(--kle-ink);
}

.kle p.kle-card__facts {
	margin: 16px 0 0 !important;
	padding: 0 !important;
	color: var(--kle-ink) !important;
	letter-spacing: 0.13em !important;
}

.kle p.kle-card__office {
	margin: 12px 0 0 !important;
	padding: 0 !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	color: var(--kle-muted) !important;
}

/* Save (heart) button */

.kle .kle-card .kle-save {
	position: relative;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px !important;
	min-width: 0 !important;
	height: 44px !important;
	min-height: 0 !important;
	margin: -8px -12px -8px 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--kle-ink) !important;
	cursor: pointer;
	transition: opacity 0.4s ease-out;
}

.kle .kle-card .kle-save:hover {
	opacity: 0.6;
}

.kle .kle-save.is-saved .kle-icon {
	fill: var(--kle-brand);
	stroke: var(--kle-brand);
}

/* List view: one listing per row, photo beside the details. */

.kle .kle-grid--list {
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0 !important;
	border-bottom: 1px solid var(--kle-line);
}

.kle .kle-grid--list .kle-card {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 36px 0 !important;
	border-top: 1px solid var(--kle-line) !important;
}

.kle .kle-grid--list .kle-card__media {
	flex: 0 0 min(400px, 40%);
}

.kle .kle-grid--list .kle-card__body {
	flex: 1;
	padding-top: 0;
}

/* ---------------------------------------------------------------------
 * Maps
 * ------------------------------------------------------------------- */

.kle .kle-map {
	position: relative;
	z-index: 0;
	width: 100%;
	background: var(--kle-fill);
}

.kle .kle-map--single {
	height: 420px;
	margin: 0 0 12px;
}

/* A quiet, near-monochrome map so the brand-coloured pins lead. */
.kle .kle-map .leaflet-tile-pane {
	filter: grayscale(1) contrast(0.92) brightness(1.05);
}

.kle .kle-map .leaflet-container,
.kle .kle-map.leaflet-container {
	font-family: var(--kle-font) !important;
}

.kle .kle-map .leaflet-popup-content-wrapper {
	border-radius: 0;
	box-shadow: 0 8px 32px rgba(22, 25, 29, 0.16);
	padding: 0;
}

.kle .kle-map .leaflet-popup-content {
	margin: 0;
	width: 240px !important;
}

.kle .kle-map .leaflet-bar,
.kle .kle-map .leaflet-bar a {
	border-radius: 0 !important;
}

.kle .kle-pop {
	display: block;
	color: var(--kle-ink) !important;
}

.kle .kle-pop:hover {
	opacity: 1;
}

.kle .kle-pop__body {
	display: block;
	padding: 14px 16px 16px;
}

.kle .kle-pop__price {
	display: block;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.kle .kle-pop__title {
	display: block;
	font-size: 13px;
	font-weight: 500;
}

.kle .kle-pop__sub {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--kle-muted);
}

/* Map view: map on the left, the listings inside it on the right. */

.kle .kle-split {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.kle .kle-split__map {
	position: sticky;
	top: 32px;
}

.kle .kle-map--split {
	height: calc(100vh - 64px);
	min-height: 480px;
	max-height: 940px;
}

.kle .kle-split__list {
	container-type: inline-size;
	container-name: klelist;
	min-width: 0;
	transition: opacity 0.4s ease-out;
}

.kle .kle-split__list.is-loading .kle-grid {
	opacity: 0.4;
}

.kle p.kle-split__count {
	margin: 0 0 28px !important;
	padding: 0 !important;
	color: var(--kle-muted) !important;
}

.kle .kle-split__list .kle-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 32px;
	transition: opacity 0.4s ease-out;
}

@container klelist (max-width: 519px) {
	.kle .kle-split__list .kle-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.kle p.kle-split__more {
	margin: 48px 0 0 !important;
	padding: 0 !important;
	text-align: center;
}

.kle .kle-card.is-active .kle-card__link {
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 5px;
}

@container kle (max-width: 899px) {
	.kle .kle-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.kle .kle-split__map {
		position: static;
	}

	.kle .kle-map--split {
		height: 62vh;
		min-height: 340px;
	}
}

/* ---------------------------------------------------------------------
 * Pagination, empty state, notice
 * ------------------------------------------------------------------- */

.kle .kle-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 96px 0 0;
	padding: 36px 0 0;
	border-top: 1px solid var(--kle-line);
	font-size: 14px;
}

.kle .kle-pages__num,
.kle .kle-pages__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid transparent;
	font-variant-numeric: tabular-nums;
}

.kle .kle-pages__num.is-current {
	border-color: var(--kle-brand);
	font-weight: 600;
}

.kle .kle-pages__step {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kle .kle-pages__gap {
	min-width: 28px;
	text-align: center;
	color: var(--kle-muted);
}

.kle .kle-empty {
	padding: 96px 0;
	text-align: center;
	color: var(--kle-muted);
}

.kle .kle-empty p {
	margin: 0 0 20px !important;
}

.kle .kle-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px 40px;
	margin: 96px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--kle-line);
	color: var(--kle-muted);
	font-size: 12px;
	line-height: 1.65;
}

.kle .kle-notice__badge {
	flex: 0 0 auto;
}

.kle .kle-notice__badge img {
	display: block;
	width: 125px;
	height: auto;
}

.kle .kle-notice__text {
	flex: 1 1 320px;
	max-width: 900px;
}

.kle .kle-notice__text p {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-size: 12px !important;
	line-height: 1.65 !important;
	color: var(--kle-muted) !important;
}

/* ---------------------------------------------------------------------
 * Single listing
 * ------------------------------------------------------------------- */

.kle .kle-back {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0 0 28px;
	color: var(--kle-muted) !important;
}

.kle .kle-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 56px;
	margin: 0 0 44px;
}

.kle .kle-head p {
	margin: 0 !important;
	padding: 0 !important;
}

.kle .kle-head .kle-eyebrow {
	margin: 0 0 16px !important;
	color: var(--kle-muted) !important;
}

.kle h1.kle-title,
.kle .kle-price {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 40px !important;
	font-size: clamp(30px, 4.2cqi, 48px) !important;
	font-weight: 500 !important;
	letter-spacing: -0.028em !important;
	line-height: 1.08 !important;
	text-transform: none !important;
}

.kle .kle-price {
	font-variant-numeric: tabular-nums;
}

.kle .kle-head .kle-head__place {
	margin-top: 14px !important;
	font-size: 17px !important;
	color: var(--kle-muted) !important;
}

.kle .kle-head .kle-head__mls {
	margin-top: 12px !important;
	font-size: 13px !important;
	color: var(--kle-muted) !important;
}

/*
 * Gallery. Four equal columns; the first photo spans two columns and two
 * rows. The row gap is three quarters of the column gap, which makes the
 * large tile exactly 4:3 like the small ones, so no photo is cropped unless
 * its own shape differs.
 */

.kle .kle-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 8px;
	row-gap: 6px;
}

.kle .kle-gallery__item {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--kle-fill) !important;
	box-shadow: none !important;
	cursor: zoom-in;
}

.kle .kle-gallery__item:first-child {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	aspect-ratio: auto;
	align-self: stretch;
}

.kle .kle-gallery--3,
.kle .kle-gallery--4 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kle .kle-gallery--4 .kle-gallery__item:nth-child(4) {
	display: none !important;
}

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

.kle .kle-gallery--1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 920px;
}

.kle .kle-gallery--2 .kle-gallery__item:first-child,
.kle .kle-gallery--1 .kle-gallery__item:first-child {
	grid-column: auto;
	grid-row: auto;
	aspect-ratio: 4 / 3;
	height: auto !important;
}

.kle .kle-gallery--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 1;
	background: var(--kle-fill);
	color: var(--kle-muted);
}

.kle .kle-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 18px 0 0;
}

.kle .kle-actions__status {
	color: var(--kle-muted);
}

/* Headline facts */

.kle .kle-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 28px 40px;
	margin: 56px 0 !important;
	padding: 36px 0 !important;
	border-top: 1px solid var(--kle-line);
	border-bottom: 1px solid var(--kle-line);
}

.kle .kle-facts dt {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--kle-muted) !important;
}

.kle .kle-facts dd {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	font-size: 26px !important;
	font-weight: 500 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.2 !important;
	color: var(--kle-ink) !important;
}

/* Two columns */

.kle .kle-columns {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px 88px;
}

.kle .kle-main {
	flex: 999 1 540px;
	min-width: 0;
}

.kle .kle-side {
	flex: 1 1 340px;
	min-width: 0;
	margin-bottom: 72px;
}

.kle .kle-section {
	margin: 0 0 72px;
}

.kle .kle-section--wide {
	margin-top: 24px;
}

.kle h2.kle-section__title {
	margin: 0 0 26px !important;
	padding: 22px 0 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--kle-ink) !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	line-height: 1.4 !important;
}

.kle .kle-remarks p {
	max-width: 66ch;
	margin: 0 0 1em !important;
	padding: 0 !important;
	font-size: 17px !important;
	line-height: 1.7 !important;
	color: var(--kle-ink) !important;
}

.kle .kle-remarks.is-clamped {
	max-height: 13.2em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}

.kle .kle-more {
	display: inline-flex !important;
	align-items: center;
	min-height: 44px !important;
	margin: 4px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--kle-ink) !important;
	cursor: pointer;
}

.kle .kle-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0 56px;
	margin: 0 !important;
	padding: 0 !important;
}

.kle .kle-details__row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 0;
	border-bottom: 1px solid var(--kle-line);
}

.kle .kle-details dt {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400 !important;
	color: var(--kle-muted) !important;
}

.kle .kle-details dd {
	margin: 0 !important;
	padding: 0 !important;
	text-align: right;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.kle .kle-table-wrap {
	overflow-x: auto;
}

.kle table.kle-table {
	width: 100% !important;
	min-width: 380px;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: none !important;
	font-size: 15px !important;
}

.kle table.kle-table th,
.kle table.kle-table td {
	padding: 15px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--kle-line) !important;
	background: none !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	text-align: left !important;
	vertical-align: baseline;
}

.kle table.kle-table thead th {
	padding: 0 0 12px !important;
	border-bottom-color: var(--kle-ink) !important;
	color: var(--kle-muted) !important;
}

.kle table.kle-table tbody th {
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.kle table.kle-table .kle-table__num {
	text-align: right !important;
}

.kle .kle-events {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.kle .kle-events li {
	margin: 0 !important;
	padding: 15px 0 !important;
	border-bottom: 1px solid var(--kle-line);
	list-style: none !important;
}

.kle .kle-events strong {
	font-weight: 500;
}

/* Enquiry form */

.kle .kle-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0 !important;
	padding: 36px !important;
	border: 1px solid var(--kle-line) !important;
	background: #FFFFFF !important;
}

.kle h2.kle-form__title {
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--kle-ink) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
}

.kle .kle-field {
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	margin: 0 !important;
	color: var(--kle-muted);
}

.kle .kle-field input,
.kle .kle-field textarea {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 50px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid var(--kle-line-strong) !important;
	border-radius: 0 !important;
	background: #FFFFFF !important;
	box-shadow: none !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 15px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.4 !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.4s ease-out;
}

.kle .kle-field textarea {
	height: auto !important;
	min-height: 120px;
	padding: 14px !important;
	resize: vertical;
}

.kle .kle-field input:focus,
.kle .kle-field textarea:focus {
	border-color: var(--kle-ink) !important;
}

.kle .kle-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kle .kle-form__status {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 500;
	color: var(--kle-ink) !important;
}

.kle .kle-form__status[hidden] {
	display: none !important;
}

.kle .kle-form__status.is-error {
	color: var(--kle-error) !important;
}

.kle .kle-form__call {
	margin: 0 !important;
	text-align: center;
	font-size: 14px !important;
}

.kle .kle-form__call a {
	font-weight: 500;
}

.kle .kle-credit {
	margin: 32px 0 0;
	font-size: 14px;
}

.kle .kle-credit p {
	margin: 0 0 18px !important;
	padding: 0 !important;
	font-size: 14px !important;
	line-height: 1.55 !important;
}

/* Smaller spaces: single column pieces of the listing page. */

@container kle (max-width: 719px) {
	.kle .kle-gallery,
	.kle .kle-gallery--2,
	.kle .kle-gallery--3,
	.kle .kle-gallery--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.kle .kle-gallery__item:not(:first-child) {
		display: none !important;
	}

	.kle .kle-gallery__item:first-child {
		grid-column: auto;
		grid-row: auto;
		aspect-ratio: 4 / 3;
		height: auto !important;
	}

	.kle .kle-search select.kle-select {
		flex: 1 1 calc(50% - 6px);
	}

	.kle .kle-search .kle-btn--primary {
		flex: 1 1 100%;
	}

	.kle .kle-grid--list .kle-card {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.kle .kle-grid--list .kle-card__media {
		flex: 0 0 auto;
	}

	.kle .kle-grid--list .kle-card__body {
		padding-top: 22px;
	}

	.kle .kle-form {
		padding: 24px !important;
	}

	.kle .kle-facts {
		margin: 40px 0 !important;
		padding: 28px 0 !important;
	}

	.kle .kle-toolbar {
		margin-bottom: 40px;
	}
}

/* ---------------------------------------------------------------------
 * Search panel for the home page: [kinetic_search]
 *
 * Two looks. "light" is a white panel for white and light backgrounds.
 * "dark" is a translucent dark panel with white text and outline controls,
 * for use over photographs and dark bands.
 * ------------------------------------------------------------------- */

.kle.kle-finder {
	padding: 28px 44px 44px;
	background: #FFFFFF;
}

.kle .kle-finder__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 36px;
}

.kle label.kle-finder__tab {
	display: inline-flex !important;
	align-items: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid transparent;
	color: var(--kle-muted) !important;
	cursor: pointer;
	transition: color 0.4s ease-out, border-color 0.4s ease-out;
}

.kle label.kle-finder__tab:hover {
	color: var(--kle-ink) !important;
}

.kle .kle-finder__radio--residential:checked ~ .kle-finder__tabs .kle-finder__tab--residential,
.kle .kle-finder__radio--commercial:checked ~ .kle-finder__tabs .kle-finder__tab--commercial,
.kle .kle-finder__radio--advanced:checked ~ .kle-finder__tabs .kle-finder__tab--advanced {
	border-bottom-color: var(--kle-brand);
	color: var(--kle-ink) !important;
	font-weight: 600;
}

.kle .kle-finder__radio--residential:focus-visible ~ .kle-finder__tabs .kle-finder__tab--residential,
.kle .kle-finder__radio--commercial:focus-visible ~ .kle-finder__tabs .kle-finder__tab--commercial,
.kle .kle-finder__radio--advanced:focus-visible ~ .kle-finder__tabs .kle-finder__tab--advanced {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.kle h2.kle-finder__title {
	margin: 22px 0 26px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--kle-ink) !important;
	font-family: var(--kle-font) !important;
	font-size: 32px !important;
	font-size: clamp(26px, 3.6cqi, 40px) !important;
	font-weight: 500 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.12 !important;
	text-transform: none !important;
}

/* One form per tab; only the chosen tab's form shows. */
.kle .kle-finder__form {
	display: none;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

.kle .kle-finder__radio--residential:checked ~ .kle-finder__panel .kle-finder__form--residential,
.kle .kle-finder__radio--commercial:checked ~ .kle-finder__panel .kle-finder__form--commercial,
.kle .kle-finder__radio--advanced:checked ~ .kle-finder__panel .kle-finder__form--advanced {
	display: block;
}

.kle .kle-finder__row {
	display: flex;
	gap: 12px;
}

.kle .kle-finder__row .kle-search__text {
	flex: 1 1 0;
	min-width: 0;
}

.kle.kle-finder .kle-btn--primary {
	flex: 0 0 auto;
	height: 56px !important;
}

/* The Advanced tab: an even grid, four across, with Search closing the last row. */
.kle .kle-finder__filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.kle .kle-finder__filters select.kle-select {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 56px !important;
	margin: 0 !important;
}

.kle.kle-finder .kle-finder__filters .kle-btn--primary {
	grid-column: -2 / -1;
	width: 100% !important;
}

.kle p.kle-finder__hint {
	margin: 22px 0 0 !important;
	padding: 0 !important;
}

.kle a.kle-finder__all {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	border-bottom: 1px solid transparent;
	color: var(--kle-muted) !important;
	text-decoration: none !important;
	transition: color 0.4s ease-out, border-color 0.4s ease-out;
}

.kle a.kle-finder__all:hover,
.kle a.kle-finder__all:focus-visible {
	border-bottom-color: currentColor;
	color: var(--kle-ink) !important;
}

.kle a.kle-finder__all span {
	transition: transform 0.4s ease-out;
}

.kle a.kle-finder__all:hover span {
	transform: translateX(4px);
}

/* The "dark" look */

.kle.kle-finder--dark {
	background: rgba(16, 18, 21, 0.78);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #FFFFFF;
}

.kle.kle-finder--dark label.kle-finder__tab {
	color: rgba(255, 255, 255, 0.74) !important;
}

.kle.kle-finder--dark label.kle-finder__tab:hover {
	color: #FFFFFF !important;
}

.kle.kle-finder--dark .kle-finder__radio--residential:checked ~ .kle-finder__tabs .kle-finder__tab--residential,
.kle.kle-finder--dark .kle-finder__radio--commercial:checked ~ .kle-finder__tabs .kle-finder__tab--commercial,
.kle.kle-finder--dark .kle-finder__radio--advanced:checked ~ .kle-finder__tabs .kle-finder__tab--advanced {
	border-bottom-color: #FFFFFF;
	color: #FFFFFF !important;
}

.kle.kle-finder--dark h2.kle-finder__title {
	color: #FFFFFF !important;
}

.kle.kle-finder--dark .kle-search__text {
	border-color: rgba(255, 255, 255, 0.5);
	color: rgba(255, 255, 255, 0.8);
}

.kle.kle-finder--dark .kle-search__text:focus-within {
	border-color: #FFFFFF;
}

.kle.kle-finder--dark .kle-search__text input {
	color: #FFFFFF !important;
}

.kle.kle-finder--dark .kle-search__text input::placeholder {
	color: rgba(255, 255, 255, 0.76);
}

.kle.kle-finder--dark select.kle-select {
	border-color: rgba(255, 255, 255, 0.5) !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23FFFFFF' stroke-width='1.4'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") !important;
	color: #FFFFFF !important;
}

.kle.kle-finder--dark select.kle-select:hover,
.kle.kle-finder--dark select.kle-select:focus {
	border-color: #FFFFFF !important;
}

/* The opened list of a dropdown is drawn by the browser on white. */
.kle.kle-finder--dark select.kle-select option {
	background: #FFFFFF;
	color: #16191D;
}

/* Outline button over photos and dark bands. */
.kle.kle-finder--dark .kle-btn--primary {
	border-color: #FFFFFF !important;
	background: transparent !important;
	color: #FFFFFF !important;
	transition: background-color 0.4s ease-out, color 0.4s ease-out;
}

.kle.kle-finder--dark .kle-btn--primary:hover {
	background: #FFFFFF !important;
	color: #16191D !important;
	opacity: 1;
}

.kle.kle-finder--dark a.kle-finder__all {
	color: rgba(255, 255, 255, 0.78) !important;
}

.kle.kle-finder--dark a.kle-finder__all:hover,
.kle.kle-finder--dark a.kle-finder__all:focus-visible {
	color: #FFFFFF !important;
}

.kle.kle-finder--dark a:focus-visible,
.kle.kle-finder--dark button:focus-visible,
.kle.kle-finder--dark select:focus-visible,
.kle.kle-finder--dark input:focus-visible {
	outline-color: #FFFFFF !important;
}

@container kle (max-width: 619px) {
	.kle .kle-finder__row {
		flex-wrap: wrap;
	}

	.kle .kle-finder__row .kle-search__text {
		flex: 1 1 100%;
	}

	.kle.kle-finder .kle-btn--primary {
		flex: 1 1 100%;
	}

	.kle .kle-finder__tabs {
		gap: 0 24px;
	}
}

@container kle (max-width: 819px) {
	.kle .kle-finder__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container kle (max-width: 479px) {
	/* Three tabs on one line on a phone. */
	.kle .kle-finder__tabs {
		gap: 0 20px;
	}

	.kle label.kle-finder__tab {
		font-size: 10px !important;
		letter-spacing: 0.11em !important;
		white-space: nowrap;
	}

	.kle .kle-finder__filters select[name="l_tx"],
	.kle .kle-finder__filters select[name="l_type"],
	.kle .kle-finder__filters select[name="l_city"],
	.kle.kle-finder .kle-finder__filters .kle-btn--primary {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.kle.kle-finder {
		padding: 20px 22px 28px;
	}
}

/* ---------------------------------------------------------------------
 * Photo viewer. White, so a photo's own white margins disappear into it.
 * ------------------------------------------------------------------- */

.kle-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	color: #16191D;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.kle-lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 12px 12px 32px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kle-lightbox__stage {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 88px 40px;
}

.kle-lightbox__stage img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.kle-lightbox button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #16191D;
	cursor: pointer;
	transition: opacity 0.4s ease-out;
}

.kle-lightbox button:hover {
	opacity: 0.55;
}

.kle-lightbox button:focus-visible {
	outline: 2px solid #16191D;
	outline-offset: -4px;
}

.kle-lightbox__prev,
.kle-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.kle-lightbox__prev {
	left: 16px;
}

.kle-lightbox__next {
	right: 16px;
}

html.kle-lock,
html.kle-lock body {
	overflow: hidden;
}

/* ---------------------------------------------------------------------
 * Window-width rules (things outside the listings' own container)
 * ------------------------------------------------------------------- */

@media (max-width: 720px) {
	.kle-page {
		padding: 28px 18px 72px;
	}

	.kle-lightbox__stage {
		padding: 0 8px 72px;
	}

	.kle-lightbox__prev,
	.kle-lightbox__next {
		top: auto;
		bottom: 8px;
		transform: none;
	}
}

/* Browsers without container queries: fall back to the window width. */
@supports not (container-type: inline-size) {
	@media (min-width: 2200px) {
		.kle .kle-grid {
			grid-template-columns: repeat(4, minmax(0, 1fr));
			gap: 90px 100px;
		}
	}

	@media (max-width: 1000px) {
		.kle .kle-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 64px 32px;
		}

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

		.kle .kle-split__map {
			position: static;
		}

		.kle .kle-map--split {
			height: 62vh;
		}
	}

	@media (max-width: 640px) {
		.kle .kle-grid,
		.kle .kle-split__list .kle-grid {
			grid-template-columns: minmax(0, 1fr);
			gap: 56px 0;
		}

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

		.kle .kle-gallery__item:not(:first-child) {
			display: none !important;
		}

		.kle .kle-gallery__item:first-child {
			grid-column: auto;
			grid-row: auto;
			aspect-ratio: 4 / 3;
			height: auto !important;
		}
	}

	.kle h1.kle-title,
	.kle .kle-price {
		font-size: clamp(30px, 4vw, 48px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kle *,
	.kle-lightbox * {
		transition: none !important;
	}
}

@media print {
	.kle .kle-search,
	.kle .kle-toolbar__tools,
	.kle .kle-actions,
	.kle .kle-save,
	.kle .kle-form,
	.kle .kle-back,
	.kle .kle-map {
		display: none !important;
	}
}
