.mfs-rlm-feed-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 48px 0;
	font-family: var(--mfs-rlm-font-body, Montserrat), sans-serif;
	color: var(--mfs-rlm-color-text-alt, #2d3436);
	background: transparent;
	overflow: hidden;
}

.mfs-rlm-feed-section[id] {
	scroll-margin-top: 120px;
}

.mfs-rlm-feed-section__heading {
	font-family: var(--mfs-rlm-font-display, "Playfair Display"), serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	margin: 0 0 32px;
	color: var(--mfs-rlm-color-primary, #152228);
}

.mfs-rlm-feed-section__sheet-link {
	margin: 24px 0 0;
	text-align: center;
}

.mfs-rlm-feed-section__sheet-link a {
	color: var(--mfs-rlm-color-primary, #152228);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.mfs-rlm-feed-section__sheet-link a:hover {
	text-decoration: underline;
}

.mfs-rlm-feed {
	display: grid;
	gap: 24px;
	width: 100%;
	max-width: 100%;
}

.mfs-rlm-feed__filter-bar {
	background: var(--mfs-rlm-color-surface, #fff);
	border: 1px solid var(--mfs-rlm-color-border, #e5e3dc);
	border-radius: 8px;
	padding: 20px 24px;
}

.mfs-rlm-feed__filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px 20px;
}

.mfs-rlm-feed__filter-divider {
	width: 1px;
	align-self: stretch;
	min-height: 32px;
	background: var(--mfs-rlm-color-border, #e5e3dc);
	flex-shrink: 0;
}

.mfs-rlm-feed__group {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.mfs-rlm-feed__group--site-type {
	flex: 1 1 280px;
	min-width: 0;
}

.mfs-rlm-feed__group--status {
	flex: 1 1 220px;
	min-width: 0;
}

.mfs-rlm-feed__group--site-type .mfs-rlm-feed__label,
.mfs-rlm-feed__group--status .mfs-rlm-feed__label,
.mfs-rlm-feed__group--site-type .mfs-rlm-feed__chip,
.mfs-rlm-feed__group--status .mfs-rlm-feed__chip {
	letter-spacing: 0;
}

.mfs-rlm-feed__group--hidden {
	display: none !important;
}

.mfs-rlm-feed__label {
	flex-shrink: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mfs-rlm-color-muted, #9aa6ae);
	white-space: nowrap;
}

.mfs-rlm-feed__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.mfs-rlm-feed__chip {
	border: 1px solid var(--mfs-rlm-color-border-chip, #d8d6cf);
	background: var(--mfs-rlm-color-surface, #fff);
	color: var(--mfs-rlm-color-text-alt, #2d3436);
	cursor: pointer;
	font-family: var(--mfs-rlm-font-body, Montserrat), sans-serif;
	border-radius: var(--mfs-rlm-border-radius-chip, 999px);
	padding: 8px 14px;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mfs-rlm-feed__chip.is-active,
.mfs-rlm-feed__chip[aria-pressed="true"] {
	background: var(--mfs-rlm-color-primary, #152228);
	border-color: var(--mfs-rlm-color-primary, #152228);
	color: var(--mfs-rlm-color-on-dark, #fff);
}

.mfs-rlm-feed__chip:hover:not([aria-pressed="true"]):not(.is-active) {
	background: var(--mfs-rlm-color-surface, #fff);
	border-color: var(--mfs-rlm-color-primary, #152228);
	color: var(--mfs-rlm-color-text-alt, #2d3436);
}

.mfs-rlm-feed__chip.is-active:hover,
.mfs-rlm-feed__chip[aria-pressed="true"]:hover {
	background: var(--mfs-rlm-color-primary, #152228);
	border-color: var(--mfs-rlm-color-primary, #152228);
	color: var(--mfs-rlm-color-on-dark, #fff);
}

.mfs-rlm-feed__results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.mfs-rlm-feed__meta {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mfs-rlm-color-muted, #9aa6ae);
}

.mfs-rlm-feed__sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mfs-rlm-feed__sort-label {
	font-size: 0.8125rem;
	color: var(--mfs-rlm-color-text-alt, #2d3436);
	white-space: nowrap;
}

.mfs-rlm-feed__sort {
	border: 1px solid var(--mfs-rlm-color-border-chip, #d8d6cf);
	background: var(--mfs-rlm-color-surface, #fff);
	color: var(--mfs-rlm-color-text-alt, #2d3436);
	cursor: pointer;
	font-family: var(--mfs-rlm-font-body, Montserrat), sans-serif;
	border-radius: 4px;
	padding: 8px 32px 8px 12px;
	min-width: 180px;
	font-size: 0.8125rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232d3436' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.mfs-rlm-feed__price-range {
	display: grid;
	gap: 8px;
}

.mfs-rlm-feed__price-values {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.8125rem;
	color: var(--mfs-rlm-color-secondary, #496170);
}

.mfs-rlm-feed__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mfs-rlm-feed--columns-1 .mfs-rlm-feed__grid {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1025px) and (max-width: 1920px) {
	.mfs-rlm-feed:not(.mfs-rlm-feed--columns-1) .mfs-rlm-feed__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1921px) {
	.mfs-rlm-feed:not(.mfs-rlm-feed--columns-1) .mfs-rlm-feed__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 641px) and (max-width: 1024px) {
	.mfs-rlm-feed:not(.mfs-rlm-feed--columns-1) .mfs-rlm-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mfs-rlm-feed__grid {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}
}

.mfs-rlm-feed__card {
	background: var(--mfs-rlm-color-surface, #fff);
	border: 1px solid var(--mfs-rlm-color-border, #e5e3dc);
	overflow: hidden;
	border-radius: var(--mfs-rlm-border-radius-card, 6px);
	transition: box-shadow 0.2s ease;
}

.mfs-rlm-feed__card:hover {
	box-shadow: var(--mfs-rlm-shadow-card, 0 8px 24px rgba(45, 52, 54, 0.08));
}

.mfs-rlm-feed__card--dimmed {
	opacity: 0.72;
}

.mfs-rlm-feed__card-link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.mfs-rlm-feed__card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mfs-rlm-color-surface-alt, #f7f6f2);
	isolation: isolate;
}

/* Beat theme/Elementor img rules that set height:auto and cause letterboxing. */
.mfs-rlm-feed__card-media > .mfs-rlm-feed__card-image,
.mfs-rlm-feed a .mfs-rlm-feed__card-image,
.mfs-rlm-feed__card-image {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	transform: none !important;
}

.mfs-rlm-feed__card-badges {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	left: 12px;
	position: absolute;
	top: 12px;
	z-index: 1;
}

.mfs-rlm-feed__badge {
	background: var(--mfs-rlm-badge-sold, #444441);
	color: var(--mfs-rlm-color-on-dark, #fff);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 6px 10px;
	text-transform: uppercase;
	border-radius: 2px;
	line-height: 1.2;
}

.mfs-rlm-feed__badge--new,
.mfs-rlm-feed__badge--available {
	background: var(--mfs-rlm-color-text-alt, #2d3436);
}

.mfs-rlm-feed__badge--new-price {
	background: var(--mfs-rlm-badge-new-price, #993c1d);
}

.mfs-rlm-feed__badge--contract,
.mfs-rlm-feed__badge--sold {
	background: var(--mfs-rlm-badge-sold, #444441);
}

.mfs-rlm-feed__badge--open-house {
	background: var(--mfs-rlm-badge-open-house, #d48806);
	white-space: nowrap;
}

.mfs-rlm-feed__card-body {
	display: grid;
	gap: 8px;
	padding: 16px 20px 20px;
}

.mfs-rlm-feed__card-eyebrow {
	color: var(--mfs-rlm-color-muted, #9aa6ae);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mfs-rlm-feed__card-title {
	font-family: var(--mfs-rlm-font-display, "Playfair Display"), serif;
	font-size: 1.375rem;
	font-weight: 400;
	margin: 0;
	line-height: 1.25;
	color: var(--mfs-rlm-color-primary, #152228);
}

.mfs-rlm-feed__card-price {
	font-family: var(--mfs-rlm-font-display, "Playfair Display"), serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--mfs-rlm-color-primary, #152228);
	min-height: 1.4em;
}

.mfs-rlm-feed__card-price--contact {
	font-family: var(--mfs-rlm-font-body, Montserrat), sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--mfs-rlm-color-muted, #9aa6ae);
}

.mfs-rlm-feed__card-price--contract {
	font-family: var(--mfs-rlm-font-display, "Playfair Display"), serif;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mfs-rlm-color-primary, #152228);
}

.mfs-rlm-feed__card-divider {
	border: 0;
	border-top: 1px solid var(--mfs-rlm-color-border, #e5e3dc);
	margin: 8px 0 4px;
}

.mfs-rlm-feed__card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.mfs-rlm-feed__card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--mfs-rlm-color-muted, #9aa6ae);
	line-height: 1.4;
}

.mfs-rlm-feed__card-meta-item::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.75;
}

.mfs-rlm-feed__card-meta-item--address::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 1 0-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.mfs-rlm-feed__card-meta-item--lot::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='1'/%3E%3C/svg%3E");
}

.mfs-rlm-feed__card-meta-item--structure::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}

.mfs-rlm-feed__load-more {
	justify-self: center;
	background: var(--mfs-rlm-color-surface, #fff);
	color: var(--mfs-rlm-color-muted, #9aa6ae);
	border: 1px solid var(--mfs-rlm-color-border-chip, #d8d6cf);
	border-radius: 4px;
	padding: 14px 32px;
	width: min(100%, 420px);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.6875rem;
	font-weight: 600;
	font-family: var(--mfs-rlm-font-body, Montserrat), sans-serif;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mfs-rlm-feed__load-more[hidden],
.mfs-rlm-feed__load-more--hidden {
	display: none !important;
}

.mfs-rlm-feed__load-more:hover {
	background: var(--mfs-rlm-color-surface-alt, #f7f6f2);
	color: var(--mfs-rlm-color-text-alt, #2d3436);
}

.mfs-rlm-feed__data {
	display: none;
}

@media (max-width: 1024px) {
	.mfs-rlm-feed__filter-row {
		flex-direction: column;
		align-items: stretch;
		min-width: 0;
	}

	.mfs-rlm-feed__group {
		flex-wrap: wrap;
		width: 100%;
	}

	.mfs-rlm-feed__group--site-type,
	.mfs-rlm-feed__group--status {
		flex-basis: 100%;
	}

	.mfs-rlm-feed__filter-divider {
		width: 100%;
		height: 1px;
		min-height: 0;
	}
}

@media (min-width: 1025px) {
	.mfs-rlm-feed__results-bar {
		flex-wrap: nowrap;
	}
}

@media (max-width: 640px) {
	.mfs-rlm-feed-section {
		padding: 32px 0;
	}

	.mfs-rlm-feed__results-bar {
		align-items: flex-start;
		flex-direction: column;
	}

	.mfs-rlm-feed__sort {
		width: 100%;
	}
}
