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

.elm-listings,
.elm-archive,
.elm-team-member {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.elm-single-listing {
	width: min(1480px, calc(100% - 24px));
	margin: 0 auto;
	color: #141a24;
}

.elm-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	align-items: end;
	margin: 0 0 24px;
}

.elm-filters label {
	display: grid;
	gap: 6px;
	font-size: 14px;
}

.elm-filters select,
.elm-filters input {
	min-height: 42px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
}

.elm-filters button,
.elm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: #0f1a32;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.elm-listing-grid,
.elm-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
}

.elm-listing-card,
.elm-team-card {
	overflow: hidden;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.elm-listing-card__image,
.elm-team-card__image {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #edf1f5;
	color: #334155;
	text-decoration: none;
}

.elm-listing-card__image img,
.elm-team-card__image img,
.elm-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.elm-listing-card__placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	padding: 16px;
	text-align: center;
}

.elm-listing-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.elm-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 7px 11px;
	border-radius: 999px;
	background: #fff;
	color: #101827;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
}

.elm-badge--sold {
	background: #d8455f;
	color: #fff;
}

.elm-badge--soft {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.elm-listing-card__body,
.elm-team-card__body {
	display: grid;
	gap: 10px;
	padding: 18px;
}

.elm-listing-card__price,
.elm-price {
	font-size: 30px;
	font-weight: 900;
	color: #101827;
}

.elm-listing-card__title,
.elm-team-card h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.elm-listing-card__title a,
.elm-team-card a {
	color: inherit;
	text-decoration: none;
}

.elm-listing-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: #526173;
	font-size: 14px;
}

.elm-property-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.62fr);
	gap: 20px;
	align-items: stretch;
	margin: 22px 0 32px;
}

.elm-property-hero__media,
.elm-property-hero__panel {
	min-width: 0;
}

.elm-property-hero__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 16px;
	min-height: 620px;
	overflow: hidden;
	padding: clamp(26px, 4vw, 52px);
	border-radius: 18px;
	background: #0f1726;
	color: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.elm-property-hero__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.09), transparent 36%),
		radial-gradient(circle at 18% 16%, rgba(200, 63, 112, 0.22), transparent 30%);
	pointer-events: none;
}

.elm-property-hero__panel > * {
	position: relative;
	z-index: 1;
}

.elm-property-hero__panel h1 {
	margin: 0;
	color: #fff !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(44px, 5vw, 74px);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: 0;
}

.elm-property-hero__panel .elm-address,
.elm-property-hero__panel .elm-kicker {
	margin: 0;
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 18px;
	line-height: 1.55;
}

.elm-property-hero__panel .elm-price {
	color: #fff !important;
	font-size: clamp(34px, 4vw, 54px);
}

.elm-property-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elm-quick-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 4px;
}

.elm-quick-facts div {
	padding: 13px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
}

.elm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 34px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(200, 63, 112, 0.14);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.elm-quick-facts strong,
.elm-quick-facts span {
	display: block;
	color: #fff;
	line-height: 1.2;
}

.elm-quick-facts strong {
	font-size: 22px;
}

.elm-quick-facts span {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.elm-gallery {
	position: relative;
	display: grid;
	gap: 10px;
	width: 100%;
	height: 100%;
	margin: 0;
}

.elm-gallery__stage {
	position: relative;
	height: 100%;
	min-height: 620px;
	overflow: hidden;
	border-radius: 18px;
	background: #edf1f5;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.elm-gallery__track {
	display: flex;
	height: 100%;
	transition: transform 360ms ease;
	will-change: transform;
}

.elm-gallery__slide {
	flex: 0 0 100%;
	width: 100%;
	min-height: 620px;
	padding: 0;
	border: 0;
	background: #edf1f5;
	cursor: zoom-in;
}

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

.elm-gallery__arrow,
.elm-lightbox__arrow,
.elm-lightbox__close,
.elm-gallery__count {
	position: absolute;
	z-index: 4;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(15, 23, 38, 0.72);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(14px);
}

.elm-gallery__arrow,
.elm-lightbox__arrow {
	top: 50%;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 999px;
	font-size: 34px;
	line-height: 1;
	transform: translateY(-50%);
}

.elm-gallery__arrow--prev,
.elm-lightbox__arrow--prev {
	left: 16px;
}

.elm-gallery__arrow--next,
.elm-lightbox__arrow--next {
	right: 16px;
}

.elm-gallery__count {
	right: 16px;
	bottom: 16px;
	padding: 11px 15px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
}

.elm-gallery__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 2px;
	scrollbar-width: none;
}

.elm-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.elm-gallery__thumb {
	flex: 0 0 92px;
	width: 92px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 10px;
	aspect-ratio: 4 / 3;
	background: #edf1f5;
	cursor: pointer;
}

.elm-gallery__thumb.is-active {
	border-color: #fff;
}

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

.elm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	background: rgba(3, 8, 18, 0.95);
}

.elm-lightbox[hidden] {
	display: none;
}

.elm-lightbox-open {
	overflow: hidden;
}

.elm-lightbox__viewport {
	width: min(1180px, calc(100vw - 24px));
	height: min(780px, calc(100vh - 96px));
}

.elm-lightbox__slide {
	display: none;
	width: 100%;
	height: 100%;
}

.elm-lightbox__slide.is-active {
	display: grid;
	place-items: center;
}

.elm-lightbox__slide img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.elm-lightbox__close {
	top: 16px;
	right: 16px;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 999px;
	font-size: 32px;
	line-height: 1;
}

.elm-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin: 24px 0 34px;
}

.elm-facts div {
	padding: 18px;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.elm-facts .elm-icon {
	margin-bottom: 12px;
	background: #edf2f7;
	color: #0f1726;
}

.elm-facts span {
	display: block;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.elm-facts strong {
	display: block;
	margin-top: 6px;
	color: #101827;
	font-size: 22px;
	line-height: 1.15;
}

.elm-detail-sections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 18px;
	margin: 0 0 38px;
}

.elm-detail-card {
	padding: 24px;
	border: 1px solid #dbe3ee;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.elm-detail-card h2 {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.1;
}

.elm-detail-card dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.elm-detail-card dl div {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #e8eef5;
}

.elm-detail-card dt {
	color: #64748b;
	font-weight: 800;
}

.elm-detail-card dd {
	margin: 0;
	color: #101827;
	font-weight: 700;
}

.elm-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 38px;
	align-items: start;
	margin: 24px 0 48px;
}

.elm-content__main {
	max-width: 850px;
	font-size: 19px;
	line-height: 1.78;
}

.elm-content__main h2,
.elm-related h2 {
	margin: 0 0 14px;
	color: #101827;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1;
}

.elm-content__main > *:first-child {
	margin-top: 0;
}

.elm-highlights {
	display: grid;
	gap: 10px;
	padding-left: 20px;
}

.elm-content__side {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 14px;
}

.elm-related {
	margin: 44px 0;
}

.elm-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
}

.elm-pagination a,
.elm-pagination span {
	padding: 8px 12px;
	border: 1px solid #dbe3ee;
	border-radius: 6px;
	text-decoration: none;
}

.elm-team-card__body a {
	overflow-wrap: anywhere;
}

.elm-team-member {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	margin-top: 32px;
}

.elm-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 920px) {
	.elm-single-listing {
		width: min(100% - 16px, 720px);
	}

	.elm-property-hero,
	.elm-content,
	.elm-team-member {
		grid-template-columns: 1fr;
	}

	.elm-property-hero {
		gap: 12px;
		margin-top: 8px;
	}

	.elm-property-hero__panel {
		order: 2;
		min-height: 0;
		padding: 24px;
		border-radius: 16px;
	}

	.elm-property-hero__media {
		order: 1;
	}

	.elm-property-hero__panel h1 {
		font-size: clamp(36px, 12vw, 54px);
	}

	.elm-gallery__stage,
	.elm-gallery__slide {
		min-height: 0;
		aspect-ratio: 1 / 1;
	}

	.elm-gallery__arrow {
		display: none;
	}

	.elm-gallery__thumb {
		flex-basis: 74px;
		width: 74px;
	}

	.elm-content__side {
		position: static;
	}
}

@media (max-width: 520px) {
	.elm-quick-facts {
		grid-template-columns: repeat(3, 1fr);
	}

	.elm-quick-facts div {
		padding: 10px;
	}

	.elm-quick-facts strong {
		font-size: 18px;
	}

	.elm-content__main {
		font-size: 17px;
		line-height: 1.72;
	}
}

/* Premium single listing layout. */
.elm-premium-listing {
	width: 100%;
	max-width: none;
	margin: 0;
	background: #f7f8fb;
	color: #101827;
}

.elm-premium-listing > section,
.elm-premium-listing > .elm-mobile-cta {
	width: min(1440px, calc(100% - 32px));
	margin-right: auto;
	margin-left: auto;
}

.elm-premium-hero {
	position: relative;
	display: grid;
	min-height: min(760px, 92vh);
	width: 100% !important;
	place-items: end start;
	overflow: hidden;
	margin: 0 0 0 !important;
	padding: clamp(132px, 18vw, 230px) max(24px, calc((100vw - 1440px) / 2 + 24px)) clamp(34px, 5vw, 76px);
	background: #0b1425;
	color: #fff;
}

.elm-premium-hero__image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.elm-premium-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.elm-premium-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(4, 12, 28, 0.9) 0%, rgba(4, 12, 28, 0.64) 42%, rgba(4, 12, 28, 0.15) 100%),
		linear-gradient(0deg, rgba(4, 12, 28, 0.4), rgba(4, 12, 28, 0.12));
	pointer-events: none;
}

.elm-premium-hero__content {
	position: relative;
	z-index: 2;
	display: grid;
	max-width: 760px;
	gap: 15px;
}

.elm-premium-hero h1 {
	margin: 0;
	color: #fff !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(48px, 7vw, 96px);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: 0;
	text-wrap: balance;
}

.elm-status-pill {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: #c78d3d;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.elm-premium-listing .elm-address,
.elm-premium-summary {
	max-width: 650px;
	margin: 0;
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: clamp(17px, 2vw, 22px);
	line-height: 1.5;
}

.elm-premium-price {
	color: #fff;
	font-size: clamp(34px, 4.8vw, 62px);
	font-weight: 900;
	line-height: 1;
}

.elm-premium-price span {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.elm-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin: 10px 0 0;
}

.elm-hero-fact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 88px;
	color: #fff;
}

.elm-svg-icon {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	color: currentColor;
}

.elm-hero-fact strong,
.elm-hero-fact span {
	display: block;
	color: #fff;
	line-height: 1.1;
}

.elm-hero-fact strong {
	font-size: 19px;
	font-weight: 900;
}

.elm-hero-fact span {
	font-size: 12px;
	font-weight: 800;
	opacity: 0.82;
	text-transform: uppercase;
}

.elm-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.elm-button--light {
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.92);
	color: #0d1b34;
}

.elm-photo-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr)) 150px;
	gap: 0;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	background: #0b1425;
}

.elm-photo-strip button {
	position: relative;
	min-height: 160px;
	aspect-ratio: 1.65 / 1;
	padding: 0;
	border: 0;
	border-right: 2px solid #fff;
	background: #111827;
	cursor: pointer;
}

.elm-photo-strip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease, opacity 220ms ease;
}

.elm-photo-strip button:hover img {
	opacity: 0.86;
	transform: scale(1.025);
}

.elm-photo-strip__count {
	display: grid;
	place-items: center;
	color: #fff;
	background: #0e2d5d !important;
	font-weight: 800;
}

.elm-photo-strip__count strong {
	display: block;
	font-size: 42px;
	line-height: 1;
}

.elm-feature-cards {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
	margin-bottom: 22px;
}

.elm-feature-cards article,
.elm-panel {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.elm-feature-cards article {
	display: grid;
	gap: 9px;
	justify-items: center;
	min-height: 148px;
	padding: 22px 16px;
	text-align: center;
}

.elm-feature-cards .elm-svg-icon {
	color: #b67a2d;
}

.elm-feature-cards strong {
	color: #101827;
	font-size: 15px;
	line-height: 1.2;
}

.elm-feature-cards span {
	color: #475569;
	font-size: 13px;
	line-height: 1.45;
}

.elm-premium-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
	gap: 18px;
	margin-top: 0;
	margin-bottom: 18px;
}

.elm-panel {
	padding: clamp(22px, 3vw, 34px);
}

.elm-description-card h2,
.elm-area-copy h2,
.elm-related h2 {
	margin: 0 0 14px;
	color: #101827;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.05;
	letter-spacing: 0;
}

.elm-description-card {
	font-size: 18px;
	line-height: 1.72;
}

.elm-description-card > *:last-child {
	margin-bottom: 0;
}

.elm-micro-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.elm-micro-facts div {
	display: grid;
	gap: 6px;
	min-height: 78px;
	padding: 14px;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	color: #64748b;
	font-size: 13px;
}

.elm-micro-facts strong {
	color: #101827;
	font-size: 16px;
}

.elm-agent-panel {
	position: sticky;
	top: 24px;
	align-self: start;
	display: grid;
	gap: 14px;
}

.elm-agent-panel .elm-team-card {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.elm-agent-panel .elm-team-card__body {
	padding: 0;
}

.elm-mortgage {
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 1fr)) auto;
	gap: 16px;
	align-items: center;
	margin-bottom: 18px;
}

.elm-mortgage > div {
	display: grid;
	gap: 5px;
	color: #64748b;
	font-size: 13px;
}

.elm-mortgage strong {
	color: #101827;
	font-size: 18px;
}

.elm-mortgage__payment {
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
}

.elm-mortgage__payment .elm-svg-icon {
	grid-row: span 2;
	color: #0e2d5d;
}

.elm-mortgage__payment strong {
	color: #0e2d5d;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1;
}

.elm-area-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
	gap: 18px;
	margin-bottom: 20px;
}

.elm-area-map {
	min-height: 260px;
	overflow: hidden;
	padding: 0;
}

.elm-area-map img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
}

.elm-area-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

.elm-area-map span {
	display: grid;
	height: 100%;
	min-height: 260px;
	place-items: center;
	background: #e8edf5;
	color: #334155;
	font-weight: 800;
}

.elm-area-copy {
	display: grid;
	align-content: center;
	gap: 12px;
}

.elm-area-copy p {
	margin: 0;
	color: #334155;
	font-size: 17px;
	line-height: 1.65;
}

.elm-area-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.elm-area-chips span {
	padding: 11px 13px;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	background: #f8fafc;
	color: #0e2d5d;
	font-size: 13px;
	font-weight: 900;
}

.elm-premium-listing .elm-related {
	margin-top: 24px;
	margin-bottom: 88px;
}

.elm-mobile-cta {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: none;
	grid-template-columns: 1fr auto;
	gap: 10px;
	width: 100% !important;
	max-width: none !important;
	padding: 12px;
	border-top: 1px solid rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.15);
}

@media (max-width: 1120px) {
	.elm-feature-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.elm-mortgage .elm-button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.elm-premium-listing > section {
		width: min(100% - 20px, 720px);
	}

	.elm-premium-hero {
		width: 100% !important;
		min-height: 680px;
		padding: 120px 18px 28px;
	}

	.elm-premium-hero::before {
		background:
			linear-gradient(0deg, rgba(4, 12, 28, 0.9) 0%, rgba(4, 12, 28, 0.72) 54%, rgba(4, 12, 28, 0.28) 100%);
	}

	.elm-premium-summary {
		font-size: 16px;
	}

	.elm-photo-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100% !important;
	}

	.elm-photo-strip button {
		min-height: 124px;
	}

	.elm-photo-strip button:nth-of-type(n+5) {
		display: none;
	}

	.elm-photo-strip__count {
		display: grid !important;
	}

	.elm-feature-cards,
	.elm-premium-grid,
	.elm-area-grid {
		grid-template-columns: 1fr;
	}

	.elm-feature-cards {
		gap: 10px;
	}

	.elm-feature-cards article {
		min-height: 0;
		justify-items: start;
		text-align: left;
		grid-template-columns: 34px minmax(0, 1fr);
	}

	.elm-feature-cards article span {
		grid-column: 2;
	}

	.elm-agent-panel {
		position: static;
	}

	.elm-mobile-cta {
		display: grid;
	}
}

@media (max-width: 560px) {
	.elm-premium-listing > section {
		width: min(100% - 16px, 520px);
	}

	.elm-premium-hero {
		min-height: 640px;
		padding: 96px 16px 24px;
	}

	.elm-premium-hero h1 {
		font-size: clamp(42px, 13vw, 62px);
	}

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

	.elm-hero-fact {
		min-width: 0;
	}

	.elm-hero-actions {
		display: none;
	}

	.elm-photo-strip button {
		min-height: 112px;
	}

	.elm-photo-strip__count strong {
		font-size: 32px;
	}

	.elm-panel {
		padding: 20px;
	}

	.elm-description-card {
		font-size: 16px;
		line-height: 1.68;
	}

	.elm-mortgage {
		grid-template-columns: 1fr;
	}
}

/* v1.5.2 compact professional detail layout. */
.elm-premium-hero {
	min-height: min(640px, 82vh);
	padding-top: clamp(96px, 13vw, 170px);
	padding-bottom: clamp(28px, 5vw, 58px);
}

.elm-premium-hero__content {
	max-width: 880px;
	gap: 12px;
}

.elm-premium-hero h1 {
	max-width: 980px;
	font-size: clamp(42px, 6vw, 82px);
	line-height: 0.98;
}

.elm-premium-listing .elm-address {
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 700;
}

.elm-premium-price {
	margin-top: 4px;
	font-size: clamp(36px, 5vw, 66px);
}

.elm-premium-summary {
	display: none;
}

.elm-hero-facts {
	max-width: 900px;
	margin-top: 14px;
}

.elm-details-panel {
	margin-top: 18px;
	margin-bottom: 18px;
}

.elm-detail-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.elm-detail-group {
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fbfdff;
}

.elm-detail-group h3 {
	margin: 0 0 12px;
	color: #101827;
	font-size: 18px;
	line-height: 1.2;
}

.elm-detail-group dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.elm-detail-group dl div {
	display: grid;
	grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.15fr);
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid #e8eef5;
}

.elm-detail-group dl div:first-child {
	border-top: 0;
}

.elm-detail-group dt,
.elm-detail-group dd {
	margin: 0;
	line-height: 1.35;
}

.elm-detail-group dt {
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.elm-detail-group dd {
	color: #101827;
	font-size: 15px;
	font-weight: 800;
	overflow-wrap: anywhere;
}

@media (max-width: 860px) {
	.elm-premium-hero {
		min-height: 590px;
		padding-top: 88px;
	}

	.elm-detail-groups {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.elm-premium-hero {
		min-height: 560px;
	}

	.elm-premium-hero h1 {
		font-size: clamp(38px, 11vw, 56px);
	}

	.elm-detail-group {
		padding: 14px;
	}

	.elm-detail-group dl div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* v1.5.1 visual polish and interactive sections. */
.elm-premium-listing {
	--elm-navy: #071326;
	--elm-blue: #9ed8ff;
	--elm-blue-strong: #6fc7ff;
	--elm-green: #39d98a;
	--elm-red: #d8455f;
}

.elm-premium-listing .elm-address {
	color: var(--elm-blue) !important;
}

.elm-premium-price span,
.elm-hero-fact .elm-svg-icon {
	color: var(--elm-blue);
}

.elm-premium-hero .elm-button--primary,
.elm-mobile-cta .elm-button:first-child {
	background: var(--elm-blue);
	color: var(--elm-navy);
	font-weight: 900;
}

.elm-premium-hero.is-active .elm-status-pill {
	background: var(--elm-blue);
	color: var(--elm-navy);
}

.elm-premium-hero.is-sold .elm-status-pill {
	background: var(--elm-red);
	color: #fff;
	font-size: 14px;
}

.elm-premium-hero.is-sold .elm-status-pill::after {
	content: " SOLD";
	font-weight: 900;
}

.elm-gallery__thumb.is-active {
	border-color: #fff;
}

.elm-photo-strip {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	width: 100% !important;
	max-width: none !important;
	margin: 0 auto !important;
	background: transparent;
}

.elm-photo-strip button {
	min-height: clamp(150px, 15vw, 245px);
	border-right: 0;
	background: #dbe3ee;
}

.elm-photo-strip button:first-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.elm-photo-strip button:nth-of-type(5) {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.elm-photo-strip__count {
	display: none;
}

.elm-photo-strip__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(7, 19, 38, 0.68);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
}

.elm-photo-strip__overlay strong {
	display: block;
	font-size: 42px;
	line-height: 1;
}

.elm-lightbox {
	padding: 18px;
	background: rgba(2, 6, 14, 0.96);
}

.elm-lightbox__viewport {
	position: relative;
	display: grid;
	width: min(1240px, calc(100vw - 36px));
	height: min(820px, calc(100vh - 36px));
	place-items: center;
}

.elm-lightbox__slide {
	position: absolute;
	inset: 0;
}

.elm-lightbox__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.elm-lightbox__arrow,
.elm-lightbox__close {
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(7, 19, 38, 0.72);
	color: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.elm-lightbox__arrow {
	z-index: 6;
	width: 56px;
	height: 56px;
	font-size: 42px;
}

.elm-lightbox__close {
	top: 18px;
	right: 18px;
	z-index: 7;
	width: 54px;
	height: 54px;
	font-size: 38px;
}

.elm-lightbox__counter {
	position: absolute;
	bottom: 18px;
	left: 50%;
	z-index: 7;
	padding: 9px 13px;
	border-radius: 999px;
	background: rgba(7, 19, 38, 0.72);
	color: #fff;
	font-weight: 900;
	transform: translateX(-50%);
}

.elm-feature-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
	margin-bottom: 18px;
}

.elm-feature-cards article {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 4px 12px;
	justify-items: start;
	min-height: 0;
	padding: 16px;
	overflow: hidden;
	text-align: left;
}

.elm-feature-cards .elm-svg-icon {
	grid-row: span 2;
	align-self: center;
	width: 32px;
	height: 32px;
}

.elm-feature-cards strong {
	grid-column: 2;
	max-width: 100%;
	color: #101827;
	font-size: 18px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.elm-feature-cards span {
	grid-column: 2;
	color: #64748b;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.elm-section-heading {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.elm-section-heading h2,
.elm-rooms h2 {
	margin: 0;
	color: #101827;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.05;
}

.elm-room-toggle {
	display: inline-flex;
	padding: 4px;
	border: 1px solid #dbe3ee;
	border-radius: 999px;
	background: #f8fafc;
}

.elm-room-toggle button {
	min-height: 36px;
	padding: 7px 13px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #334155;
	font-weight: 900;
	cursor: pointer;
}

.elm-room-toggle button.is-active {
	background: #0e2d5d;
	color: #fff;
}

.elm-room-table {
	display: grid;
	gap: 8px;
}

.elm-room-row {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) 110px minmax(140px, 0.8fr) minmax(160px, 1.2fr);
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e2e8f0;
	color: #334155;
}

.elm-room-row strong {
	color: #101827;
}

.elm-room-row em {
	color: #64748b;
	font-style: normal;
}

.elm-mortgage {
	grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(110px, 1fr));
}

.elm-mortgage label {
	display: grid;
	gap: 6px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.elm-mortgage input {
	min-height: 42px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #101827;
	font: inherit;
}

.elm-map-fallback {
	display: grid;
	min-height: 260px;
	place-items: center;
	padding: 20px;
	background: #e8edf5;
	color: #0e2d5d;
	font-weight: 900;
	text-decoration: none;
}

@media (max-width: 980px) {
	.elm-feature-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.elm-mortgage__payment {
		grid-column: 1 / -1;
	}

	.elm-room-row {
		grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
	}

	.elm-room-row em {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.elm-photo-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: min(100% - 20px, 720px) !important;
	}

	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)) {
		display: none;
	}

	.elm-photo-strip button:nth-of-type(5) {
		display: block;
	}

	.elm-photo-strip button:nth-of-type(5) {
		border-top-right-radius: 10px;
		border-bottom-right-radius: 10px;
	}
}

@media (max-width: 560px) {
	.elm-feature-cards {
		grid-template-columns: 1fr;
	}

	.elm-photo-strip {
		grid-template-columns: 1fr 1fr;
	}

	.elm-lightbox {
		padding: 8px;
	}

.elm-lightbox__viewport {
	width: calc(100vw - 16px);
	height: calc(100vh - 16px);
}

	.elm-lightbox__arrow {
		width: 46px;
		height: 46px;
		font-size: 34px;
	}

	.elm-lightbox__arrow--prev {
		left: 8px;
	}

	.elm-lightbox__arrow--next {
		right: 8px;
	}

	.elm-lightbox__close {
		top: 8px;
		right: 8px;
		width: 48px;
		height: 48px;
		font-size: 34px;
	}

	.elm-mortgage {
		grid-template-columns: 1fr;
	}
}

/* v1.5.3 gallery, map, and mobile polish. */
.elm-premium-listing > .elm-photo-strip {
	width: 100% !important;
	max-width: none !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	width: min(1440px, calc(100% - 32px));
}

.elm-area-map {
	position: relative;
}

.elm-map-pin {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(7, 19, 38, 0.28);
	object-fit: cover;
	pointer-events: none;
	transform: translate(-50%, -100%);
}

.elm-room-matrix-frame {
	display: block;
	width: 100%;
	min-height: 420px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	background: #fff;
}

.elm-media-panel {
	margin-top: 18px;
	margin-bottom: 18px;
}

.elm-media-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.elm-media-embed {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.elm-media-embed--wide {
	grid-column: 1 / -1;
}

.elm-media-embed h3 {
	margin: 0;
	color: #101827;
	font-size: 18px;
	line-height: 1.2;
}

.elm-media-embed iframe {
	display: block;
	width: 100%;
	min-height: 520px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	background: #f8fafc;
}

.elm-media-embed:not(.elm-media-embed--wide) iframe {
	min-height: 360px;
	aspect-ratio: 16 / 9;
}

.elm-media-embed a {
	justify-self: start;
	color: #0e2d5d;
	font-weight: 900;
	text-decoration: none;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-feature-cards,
	.elm-premium-listing > .elm-details-panel,
	.elm-premium-listing > .elm-premium-grid,
	.elm-premium-listing > .elm-rooms,
	.elm-premium-listing > .elm-mortgage,
	.elm-premium-listing > .elm-media-panel,
	.elm-premium-listing > .elm-area-grid,
	.elm-premium-listing > .elm-related {
		width: 100%;
	}

	.elm-photo-strip {
		display: flex;
		gap: 0;
		width: 100% !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.elm-photo-strip::-webkit-scrollbar {
		display: none;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block;
		flex: 0 0 72vw;
		min-height: 220px;
		border-radius: 0;
		scroll-snap-align: start;
	}

	.elm-feature-cards {
		grid-template-columns: 1fr;
		width: calc(100% - 20px) !important;
		margin-top: 14px;
	}

	.elm-details-panel,
	.elm-premium-grid,
	.elm-rooms,
	.elm-mortgage,
	.elm-media-panel,
	.elm-area-grid {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.elm-premium-grid,
	.elm-area-grid {
		gap: 0;
	}

	.elm-premium-grid .elm-panel,
	.elm-area-grid .elm-panel {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.elm-media-grid {
		grid-template-columns: 1fr;
	}

	.elm-media-embed iframe,
	.elm-media-embed:not(.elm-media-embed--wide) iframe {
		min-height: 430px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}
}

@media (max-width: 560px) {
	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		flex-basis: 86vw;
		min-height: 205px;
	}

	.elm-lightbox {
		padding: 0;
	}

	.elm-lightbox__viewport {
		width: 100vw;
		height: 100vh;
	}

	.elm-lightbox__slide img {
		object-fit: contain;
	}

	.elm-lightbox__arrow {
		display: none;
	}

	.elm-lightbox__close {
		top: 14px;
		right: 14px;
	}

	.elm-media-embed iframe,
	.elm-media-embed:not(.elm-media-embed--wide) iframe {
		min-height: 360px;
	}
}

/* v1.5.12 agent polish, full-width profile hero, and tighter mobile flow. */
.elm-agent-panel {
	gap: 10px;
}

.elm-agent-panel .elm-team-card {
	overflow: visible;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.elm-agent-panel .elm-team-card__image {
	margin: 16px 16px 0;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #eef4fb;
}

.elm-agent-panel .elm-team-card__image img {
	object-position: center top;
}

.elm-agent-panel .elm-team-card__body {
	gap: 9px;
	padding: 16px;
}

.elm-agent-panel .elm-team-card h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 0.98;
}

.elm-agent-panel .elm-team-card h3 a,
.elm-team-profile h1 {
	color: #0e4ea3;
}

.elm-agent-panel .elm-team-card h3 span,
.elm-team-profile h1 span {
	display: block;
}

.elm-agent-panel .elm-team-card p {
	margin: 2px 0 8px;
	color: #101827;
	font-size: 16px;
	font-weight: 800;
}

.elm-agent-panel .elm-team-card__body > a {
	color: #0e4ea3;
	font-size: 15px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.elm-agent-panel > .elm-button {
	justify-self: stretch;
	min-height: 40px;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 900;
}

.elm-premium-listing > .elm-photo-strip {
	margin-bottom: 6px !important;
}

.elm-photo-strip button {
	height: clamp(240px, 20vw, 340px);
}

.elm-premium-listing {
	--elm-section-gap: 8px;
}

.elm-team-profile {
	width: 100%;
	max-width: none;
	padding: 0 0 72px;
}

.elm-team-profile__hero {
	width: 100%;
	min-height: min(760px, 86vh);
	padding: clamp(110px, 12vw, 170px) max(24px, calc((100vw - 1180px) / 2)) clamp(42px, 6vw, 84px);
	border-radius: 0;
	background:
		linear-gradient(90deg, rgba(7, 19, 38, 0.98), rgba(14, 45, 93, 0.94));
	box-shadow: none;
}

.elm-team-profile__portrait {
	aspect-ratio: 4 / 5;
	min-height: 0;
	max-height: 620px;
}

.elm-team-profile__portrait img {
	object-position: center top;
}

.elm-team-profile h1 {
	color: #9ed8ff;
}

.elm-team-profile__body {
	width: min(1180px, calc(100% - 32px));
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-feature-cards,
	.elm-premium-listing > .elm-details-panel,
	.elm-premium-listing > .elm-premium-grid,
	.elm-premium-listing > .elm-showing-form,
	.elm-premium-listing > .elm-rooms,
	.elm-premium-listing > .elm-mortgage,
	.elm-premium-listing > .elm-media-panel,
	.elm-premium-listing > .elm-area-grid,
	.elm-premium-listing > .elm-related {
		width: 100% !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.elm-premium-listing > .elm-photo-strip {
		width: 100% !important;
		margin-bottom: 4px !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 2px;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		width: 100% !important;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.elm-agent-panel .elm-team-card__image {
		aspect-ratio: 4 / 3;
	}

	.elm-team-profile__hero {
		min-height: 0;
		padding: 92px 18px 34px;
	}

	.elm-team-profile__body {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 1 / 1;
	}

	.elm-agent-panel .elm-team-card__image {
		aspect-ratio: 1 / 1;
	}

	.elm-agent-panel .elm-team-card h3 {
		font-size: 34px;
	}
}

/* v1.5.13 actual final audit overrides. */
.elm-premium-listing > .elm-photo-strip {
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	margin-top: 8px !important;
	margin-bottom: 8px !important;
}

.elm-photo-strip button {
	height: clamp(220px, 19vw, 320px) !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}

.elm-feature-cards strong,
.elm-hero-fact strong,
.elm-hero-fact span {
	white-space: normal !important;
	overflow-wrap: anywhere;
}

.elm-hero-facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
	gap: 14px 20px;
}

.elm-hero-fact {
	min-width: 0 !important;
	max-width: 220px;
}

.elm-agent-panel {
	position: sticky;
	top: 80px;
}

.elm-agent-panel .elm-team-card__body > a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.elm-area-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.elm-area-map iframe {
	min-height: 380px;
}

.elm-mobile-cta {
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.elm-mobile-cta .elm-button {
	min-height: 52px;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-photo-strip {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: 50% !important;
		transform: translateX(-50%) !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100vw !important;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10 !important;
		border-radius: 0 !important;
	}

	.elm-hero-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.elm-hero-fact {
		max-width: none;
	}

	.elm-premium-grid {
		display: flex;
		flex-direction: column;
	}

	.elm-agent-panel {
		position: static;
		order: 2;
	}

	.elm-description-card {
		order: 1;
	}

	.elm-area-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.elm-premium-hero h1 {
		font-size: clamp(34px, 9vw, 46px) !important;
		line-height: 1;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3 !important;
	}

	.elm-mobile-cta {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}

/* v1.5.14 dedicated photo gallery page. */
.elm-photo-strip a {
	position: relative;
	display: block;
	width: 100%;
	height: clamp(220px, 19vw, 320px) !important;
	min-height: 0 !important;
	overflow: hidden;
	background: #dbe3ee;
	color: inherit;
	text-decoration: none;
}

.elm-photo-strip a img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.elm-photo-strip a:hover img {
	transform: scale(1.03);
}

.elm-gallery-page {
	background: #f6f8fb;
	color: #101827;
}

.elm-gallery-page__bar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 14px max(16px, calc((100vw - 1180px) / 2));
	border-bottom: 1px solid #dbe3ee;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
}

.elm-gallery-page__bar strong,
.elm-gallery-page__bar span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elm-gallery-page__bar span {
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.elm-gallery-page__back {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 9px 13px;
	border-radius: 999px;
	background: #0e2d5d;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

.elm-gallery-page__photos {
	display: grid;
	gap: 18px;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 22px 0 72px;
}

.elm-gallery-page__photos figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #0b1220;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.elm-gallery-page__photos img {
	display: block;
	width: 100%;
	max-height: 86vh;
	object-fit: contain;
	background: #0b1220;
}

.elm-gallery-page__photos figcaption {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(7, 19, 38, 0.78);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
}

@media (max-width: 860px) {
	.elm-photo-strip a,
	.elm-photo-strip a:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip a:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10 !important;
		border-radius: 0 !important;
	}

	.elm-gallery-page__bar {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.elm-gallery-page__photos {
		gap: 8px;
		width: 100%;
		padding-top: 8px;
	}

	.elm-gallery-page__photos figure {
		border-radius: 0;
		box-shadow: none;
	}
}

@media (max-width: 560px) {
	.elm-photo-strip a,
	.elm-photo-strip a:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip a:nth-of-type(5) {
		aspect-ratio: 4 / 3 !important;
	}
}

/* v1.5.13 true final audit overrides. */
.elm-premium-listing {
	--elm-section-gap: 8px !important;
}

.elm-premium-listing > .elm-photo-strip {
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	margin-top: var(--elm-section-gap) !important;
	margin-bottom: var(--elm-section-gap) !important;
}

.elm-photo-strip button {
	height: clamp(220px, 19vw, 320px) !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}

.elm-feature-cards {
	margin-top: 8px !important;
}

.elm-feature-cards strong,
.elm-hero-fact strong,
.elm-hero-fact span {
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
}

.elm-hero-facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
	gap: 14px 20px;
}

.elm-hero-fact {
	min-width: 0 !important;
	max-width: 220px;
}

.elm-agent-panel {
	position: sticky;
	top: 80px;
}

.elm-agent-panel .elm-team-card__body > a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.elm-area-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.elm-area-map iframe {
	min-height: 380px;
}

.elm-section-heading h2,
.elm-rooms h2,
.elm-media-panel .elm-section-heading h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.elm-mobile-cta {
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.elm-mobile-cta .elm-button {
	min-height: 52px;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-photo-strip {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: 50% !important;
		transform: translateX(-50%) !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100vw !important;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10 !important;
		border-radius: 0 !important;
	}

	.elm-hero-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.elm-hero-fact {
		max-width: none;
	}

	.elm-premium-grid {
		display: flex;
		flex-direction: column;
	}

	.elm-agent-panel {
		position: static;
		order: 2;
	}

	.elm-description-card {
		order: 1;
	}

	.elm-area-grid {
		grid-template-columns: 1fr;
	}

	.elm-area-map iframe {
		min-height: 320px;
	}
}

@media (max-width: 560px) {
	.elm-premium-hero h1 {
		font-size: clamp(34px, 9vw, 46px) !important;
		line-height: 1;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3 !important;
	}

	.elm-mobile-cta {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}

/* v1.5.13 last-word audit overrides. */
.elm-premium-listing {
	--elm-section-gap: 8px !important;
}

.elm-premium-listing > .elm-photo-strip {
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	margin-top: var(--elm-section-gap) !important;
	margin-bottom: var(--elm-section-gap) !important;
}

.elm-photo-strip button {
	height: clamp(220px, 19vw, 320px) !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}

.elm-feature-cards {
	margin-top: 8px !important;
}

.elm-feature-cards article {
	align-content: center;
	min-height: 120px;
}

.elm-feature-cards strong,
.elm-hero-fact strong,
.elm-hero-fact span {
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
}

.elm-hero-facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
	gap: 14px 20px;
}

.elm-hero-fact {
	min-width: 0 !important;
	max-width: 220px;
}

.elm-agent-panel {
	position: sticky;
	top: 80px;
}

.elm-agent-panel .elm-team-card__body > a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.elm-area-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.elm-area-map iframe {
	min-height: 380px;
}

.elm-section-heading h2,
.elm-rooms h2,
.elm-media-panel .elm-section-heading h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.elm-mobile-cta {
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.elm-mobile-cta .elm-button {
	min-height: 52px;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-photo-strip {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: 50% !important;
		transform: translateX(-50%) !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100vw !important;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10 !important;
		border-radius: 0 !important;
	}

	.elm-hero-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.elm-hero-fact {
		max-width: none;
	}

	.elm-premium-grid {
		display: flex;
		flex-direction: column;
	}

	.elm-agent-panel {
		position: static;
		order: 2;
	}

	.elm-description-card {
		order: 1;
	}

	.elm-area-grid {
		grid-template-columns: 1fr;
	}

	.elm-area-map iframe {
		min-height: 320px;
	}
}

@media (max-width: 560px) {
	.elm-premium-hero h1 {
		font-size: clamp(34px, 9vw, 46px) !important;
		line-height: 1;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3 !important;
	}

	.elm-mobile-cta {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}

/* v1.5.13 final audit overrides. */
.elm-premium-listing {
	--elm-section-gap: 8px !important;
}

.elm-premium-listing > .elm-photo-strip {
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	margin-top: var(--elm-section-gap) !important;
	margin-bottom: var(--elm-section-gap) !important;
}

.elm-photo-strip button {
	height: clamp(220px, 19vw, 320px) !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}

.elm-feature-cards {
	margin-top: 8px !important;
}

.elm-feature-cards article {
	align-content: center;
	min-height: 120px;
}

.elm-feature-cards strong,
.elm-hero-fact strong,
.elm-hero-fact span {
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
}

.elm-hero-facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
	gap: 14px 20px;
}

.elm-hero-fact {
	min-width: 0 !important;
	max-width: 220px;
}

.elm-agent-panel {
	position: sticky;
	top: 80px;
}

.elm-agent-panel .elm-team-card__body > a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.elm-area-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.elm-area-map iframe {
	min-height: 380px;
}

.elm-section-heading h2,
.elm-rooms h2,
.elm-media-panel .elm-section-heading h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.elm-mobile-cta {
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.elm-mobile-cta .elm-button {
	min-height: 52px;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-photo-strip {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: 50% !important;
		transform: translateX(-50%) !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100vw !important;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10 !important;
		border-radius: 0 !important;
	}

	.elm-hero-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.elm-hero-fact {
		max-width: none;
	}

	.elm-premium-grid {
		display: flex;
		flex-direction: column;
	}

	.elm-agent-panel {
		position: static;
		order: 2;
	}

	.elm-description-card {
		order: 1;
	}

	.elm-area-grid {
		grid-template-columns: 1fr;
	}

	.elm-area-map iframe {
		min-height: 320px;
	}
}

@media (max-width: 560px) {
	.elm-premium-hero h1 {
		font-size: clamp(34px, 9vw, 46px) !important;
		line-height: 1;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3 !important;
	}

	.elm-mobile-cta {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}

/* v1.5.13 audit cleanup overrides. */
.elm-premium-listing {
	--elm-section-gap: 8px;
}

.elm-premium-listing > .elm-photo-strip {
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	margin-top: var(--elm-section-gap) !important;
	margin-bottom: var(--elm-section-gap) !important;
}

.elm-photo-strip {
	align-items: stretch;
	background: transparent !important;
}

.elm-photo-strip button {
	height: clamp(220px, 19vw, 320px);
	min-height: 0 !important;
}

.elm-feature-cards {
	margin-top: 8px !important;
}

.elm-feature-cards article {
	align-content: center;
	min-height: 120px;
}

.elm-feature-cards strong {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

.elm-hero-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
	gap: 14px 20px;
}

.elm-hero-fact {
	min-width: 0;
	max-width: 220px;
}

.elm-hero-fact strong,
.elm-hero-fact span {
	white-space: normal;
	overflow-wrap: anywhere;
}

.elm-agent-panel {
	position: sticky;
	top: 80px;
}

.elm-agent-panel .elm-team-card__body > a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.elm-mortgage.is-updated {
	box-shadow: 0 20px 55px rgba(14, 78, 163, 0.18);
	transition: box-shadow 160ms ease;
}

.elm-area-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.elm-area-map iframe {
	min-height: 380px;
}

.elm-section-heading h2,
.elm-rooms h2,
.elm-media-panel .elm-section-heading h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.elm-mobile-cta {
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.elm-mobile-cta .elm-button {
	min-height: 52px;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-photo-strip {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: 50% !important;
		transform: translateX(-50%) !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100vw !important;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10;
		border-radius: 0 !important;
	}

	.elm-hero-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.elm-hero-fact {
		max-width: none;
	}

	.elm-premium-grid {
		display: flex;
		flex-direction: column;
	}

	.elm-agent-panel {
		position: static;
		order: 2;
	}

	.elm-description-card {
		order: 1;
	}

	.elm-area-grid {
		grid-template-columns: 1fr;
	}

	.elm-area-map iframe {
		min-height: 320px;
	}
}

@media (max-width: 560px) {
	.elm-premium-hero h1 {
		font-size: clamp(34px, 9vw, 46px) !important;
		line-height: 1;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3;
	}

	.elm-feature-cards article {
		min-height: auto;
	}

	.elm-mobile-cta {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}

/* v1.5.9 booking, photo strip, and mobile CTA fixes. */
.elm-premium-listing > .elm-photo-strip {
	position: relative;
	left: 50%;
	width: 100vw !important;
	max-width: 100vw !important;
	margin: 0 0 18px !important;
	transform: translateX(-50%);
}

.elm-photo-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.elm-photo-strip button {
	width: 100%;
	min-width: 0;
	aspect-ratio: 4 / 3;
	min-height: 0;
}

.elm-mobile-cta {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.elm-mobile-cta .elm-button {
	width: 100%;
	min-width: 0;
	justify-content: center;
	text-align: center;
}

.elm-map-pin {
	width: 30px !important;
	height: 30px !important;
	border-radius: 9px;
	box-shadow: 0 8px 18px rgba(7, 19, 38, 0.24);
}

.elm-showing-form {
	margin-top: 18px;
	margin-bottom: 18px;
}

.elm-lead-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.elm-lead-form label {
	display: grid;
	gap: 7px;
	color: #334155;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
}

.elm-lead-form input,
.elm-lead-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #101827;
	font: inherit;
}

.elm-lead-form textarea {
	min-height: 118px;
	resize: vertical;
}

.elm-lead-form__wide {
	grid-column: 1 / -1;
}

.elm-lead-form .elm-button {
	justify-self: start;
}

.elm-form-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 800;
}

.elm-form-notice.is-success {
	background: #e8fff3;
	color: #11633c;
}

.elm-form-notice.is-error {
	background: #fff0f2;
	color: #9f2539;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-photo-strip {
		left: auto;
		width: 100% !important;
		max-width: 100% !important;
		transform: none;
	}

	.elm-photo-strip {
		display: grid;
		grid-template-columns: 1fr;
		overflow: visible;
		scroll-snap-type: none;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block;
		flex: none;
		width: 100%;
		min-height: 0;
		aspect-ratio: 16 / 10;
		border-radius: 0;
	}

	.elm-photo-strip button:nth-of-type(n+5):not(.has-photo-count) {
		display: none;
	}

	.elm-lead-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		flex-basis: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.elm-mobile-cta {
		gap: 8px;
		padding: 10px;
	}

	.elm-mobile-cta .elm-button {
		min-height: 48px;
		padding-right: 10px;
		padding-left: 10px;
		font-size: 14px;
	}

	.elm-lead-form {
		grid-template-columns: 1fr;
	}

	.elm-lead-form .elm-button {
		width: 100%;
	}
}

/* v1.5.11 tighter listing flow and premium team profiles. */
.elm-premium-listing {
	--elm-section-gap: 12px;
}

.elm-premium-listing > .elm-photo-strip,
.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid {
	margin-top: var(--elm-section-gap) !important;
	margin-bottom: var(--elm-section-gap) !important;
}

.elm-premium-listing > .elm-photo-strip {
	margin-top: 0 !important;
}

.elm-photo-strip button {
	height: clamp(190px, 17vw, 280px);
	aspect-ratio: auto;
}

.elm-map-pin {
	display: none !important;
}

.elm-lightbox {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	display: grid;
	place-items: center;
}

.elm-lightbox[hidden] {
	display: none !important;
}

.elm-lightbox__viewport {
	width: min(1280px, calc(100vw - 32px));
	height: min(820px, calc(100vh - 32px));
}

.elm-team-profile {
	--elm-navy: #071326;
	--elm-blue: #9ed8ff;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: clamp(24px, 4vw, 56px) 0 80px;
}

.elm-team-profile__hero {
	display: grid;
	grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
	gap: clamp(22px, 4vw, 52px);
	align-items: stretch;
	padding: clamp(18px, 3vw, 28px);
	border-radius: 18px;
	background: var(--elm-navy);
	color: #fff;
	box-shadow: 0 24px 70px rgba(7, 19, 38, 0.18);
}

.elm-team-profile__portrait {
	min-height: 420px;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
}

.elm-team-profile__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.elm-team-profile__intro {
	display: grid;
	align-content: center;
	gap: 12px;
}

.elm-team-profile__intro > span {
	color: var(--elm-blue);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.elm-team-profile h1 {
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(44px, 7vw, 86px);
	line-height: 0.95;
	letter-spacing: 0;
}

.elm-team-profile__role {
	margin: 0;
	color: #fff;
	font-size: clamp(20px, 2.4vw, 30px);
	font-weight: 800;
}

.elm-team-profile__designation {
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 17px;
}

.elm-team-profile__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}

.elm-team-profile__body {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: 18px;
	margin-top: 18px;
}

.elm-team-profile__bio {
	font-size: 18px;
	line-height: 1.72;
}

.elm-team-profile__bio h2,
.elm-team-profile__contact h2 {
	margin: 0 0 14px;
	color: #101827;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.05;
}

.elm-team-profile__contact {
	align-self: start;
	display: grid;
	gap: 12px;
	position: sticky;
	top: 24px;
}

.elm-team-profile__contact > a,
.elm-team-profile .elm-social-links a {
	color: #0e2d5d;
	font-weight: 900;
	text-decoration: none;
}

.elm-team-profile .elm-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.elm-team-profile .elm-social-links a {
	padding: 9px 12px;
	border: 1px solid #dbe3ee;
	border-radius: 999px;
	background: #f8fafc;
}

@media (max-width: 860px) {
	.elm-premium-listing {
		--elm-section-gap: 8px;
	}

	.elm-photo-strip {
		gap: 2px;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.elm-team-profile {
		width: 100%;
		padding-top: 0;
	}

	.elm-team-profile__hero,
	.elm-team-profile__body {
		grid-template-columns: 1fr;
	}

	.elm-team-profile__hero {
		border-radius: 0;
	}

	.elm-team-profile__body {
		gap: 0;
		margin-top: 0;
	}

	.elm-team-profile__body .elm-panel {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.elm-team-profile__contact {
		position: static;
	}
}

@media (max-width: 560px) {
	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3;
	}

	.elm-team-profile__portrait {
		min-height: 360px;
	}

	.elm-team-profile__actions .elm-button {
		width: 100%;
	}
}

/* v1.5.13 final audit overrides. */
.elm-agent-panel {
	gap: 10px;
	position: sticky;
	top: 80px;
}

.elm-agent-panel .elm-team-card {
	overflow: visible;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.elm-agent-panel .elm-team-card__image {
	margin: 16px 16px 0;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #eef4fb;
}

.elm-agent-panel .elm-team-card__image img,
.elm-team-profile__portrait img {
	object-position: center top;
}

.elm-agent-panel .elm-team-card__body {
	gap: 9px;
	padding: 16px;
}

.elm-agent-panel .elm-team-card__body > a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.elm-agent-panel .elm-team-card h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 0.98;
}

.elm-agent-panel .elm-team-card h3 a {
	color: #0e4ea3;
}

.elm-agent-panel .elm-team-card h3 span,
.elm-team-profile h1 span {
	display: block;
}

.elm-agent-panel > .elm-button {
	justify-self: stretch;
	min-height: 40px;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 900;
}

.elm-photo-strip button {
	height: clamp(220px, 19vw, 320px) !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}

.elm-premium-listing {
	--elm-section-gap: 8px !important;
}

.elm-premium-listing > .elm-photo-strip {
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.elm-premium-listing > .elm-feature-cards,
.elm-premium-listing > .elm-details-panel,
.elm-premium-listing > .elm-premium-grid,
.elm-premium-listing > .elm-showing-form,
.elm-premium-listing > .elm-rooms,
.elm-premium-listing > .elm-mortgage,
.elm-premium-listing > .elm-media-panel,
.elm-premium-listing > .elm-area-grid,
.elm-premium-listing > .elm-related {
	margin-top: var(--elm-section-gap) !important;
	margin-bottom: var(--elm-section-gap) !important;
}

.elm-feature-cards {
	margin-top: 8px !important;
}

.elm-feature-cards strong,
.elm-hero-fact strong,
.elm-hero-fact span {
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
}

.elm-hero-facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
	gap: 14px 20px;
}

.elm-hero-fact {
	min-width: 0 !important;
	max-width: 220px;
}

.elm-area-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.elm-area-map iframe {
	min-height: 380px;
}

.elm-section-heading h2,
.elm-rooms h2,
.elm-media-panel .elm-section-heading h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.elm-mobile-cta {
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.elm-mobile-cta .elm-button {
	min-height: 52px;
}

.elm-team-profile {
	width: 100%;
	max-width: none;
	padding: 0 0 72px;
}

.elm-team-profile__hero {
	width: 100%;
	min-height: min(760px, 86vh);
	padding: clamp(110px, 12vw, 170px) max(24px, calc((100vw - 1180px) / 2)) clamp(42px, 6vw, 84px);
	border-radius: 0;
	background:
		linear-gradient(90deg, rgba(7, 19, 38, 0.98), rgba(14, 45, 93, 0.94));
	box-shadow: none;
}

.elm-team-profile h1 {
	color: #9ed8ff;
}

.elm-team-profile__portrait {
	aspect-ratio: 4 / 5;
	min-height: 0;
	max-height: 620px;
}

.elm-team-profile__body {
	width: min(1180px, calc(100% - 32px));
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 860px) {
	.elm-premium-listing > .elm-feature-cards,
	.elm-premium-listing > .elm-details-panel,
	.elm-premium-listing > .elm-premium-grid,
	.elm-premium-listing > .elm-showing-form,
	.elm-premium-listing > .elm-rooms,
	.elm-premium-listing > .elm-mortgage,
	.elm-premium-listing > .elm-media-panel,
	.elm-premium-listing > .elm-area-grid,
	.elm-premium-listing > .elm-related {
		width: 100% !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.elm-premium-listing > .elm-photo-strip {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: 50% !important;
		margin-bottom: 0 !important;
		transform: translateX(-50%) !important;
	}

	.elm-photo-strip {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100vw !important;
		overflow: visible !important;
	}

	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		aspect-ratio: 16 / 10 !important;
		border-radius: 0 !important;
	}

	.elm-hero-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.elm-hero-fact {
		max-width: none;
	}

	.elm-premium-grid {
		display: flex;
		flex-direction: column;
	}

	.elm-agent-panel {
		position: static;
		order: 2;
	}

	.elm-description-card {
		order: 1;
	}

	.elm-area-grid {
		grid-template-columns: 1fr;
	}

	.elm-team-profile__hero {
		min-height: 0;
		padding: 92px 18px 34px;
	}

	.elm-team-profile__body {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.elm-photo-strip button,
	.elm-photo-strip button:nth-of-type(n+2):not(:nth-of-type(5)),
	.elm-photo-strip button:nth-of-type(5) {
		aspect-ratio: 4 / 3 !important;
	}

	.elm-agent-panel .elm-team-card__image {
		aspect-ratio: 1 / 1;
	}

	.elm-agent-panel .elm-team-card h3 {
		font-size: 34px;
	}

	.elm-premium-hero h1 {
		font-size: clamp(34px, 9vw, 46px) !important;
		line-height: 1;
	}

	.elm-mobile-cta {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}
