/* ── simplydwell/home-overview ───────────────────────────────────────────────── */

.sd-ov {
	background: #faf8f5;
	padding: clamp(48px, 9vw, 120px) clamp(24px, 6vw, 120px);
	scroll-margin-top: 120px;
}

.sd-ov__inner {
	max-width: 1440px;
	margin: 0 auto;
	width: 100%;
}

.sd-ov__cols {
	display: grid;
	grid-template-columns: minmax( 0, 550px ) 1fr;
	gap: clamp( 2rem, 8.75vw, 126px );
	align-items: center;
}

/* ── Left: info ──────────────────────────────────────────────────────────────── */

.sd-ov__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp( 1.25rem, 2.22vw, 32px );
}

.sd-ov__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp( 4px, 0.56vw, 8px );
}

.sd-ov__heading-discover,
.sd-ov__heading-name {
	margin: 0;
	font-family: var( --sd-font-display, 'Lexend', sans-serif );
	font-style: normal;
	font-weight: 700;
	font-size: clamp( 2rem, 4.17vw, 60px );
	line-height: 1;
}

.sd-ov__heading-discover {
	color: #1f242e;
}

.sd-ov__heading-name {
	background: linear-gradient( 90deg, #d46f35 0%, #e2bb61 100% );
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.sd-ov__divider {
	width: clamp( 48px, 5.42vw, 78px );
	height: 3px;
	background: #e2bb61;
	flex-shrink: 0;
}

.sd-ov__price {
	margin: 0;
	font-family: var( --sd-font-display, 'Lexend', sans-serif );
	font-weight: 700;
	font-size: clamp( 1rem, 1.39vw, 20px );
	line-height: 1.4;
	color: #d46f35;
}

.sd-ov__desc {
	font-family: var( --sd-font-display, 'Lexend', sans-serif );
	font-weight: 500;
	font-size: clamp( 0.9375rem, 1.25vw, 18px );
	line-height: 1.556;
	color: #737a87;
}

.sd-ov__desc p {
	margin: 0 0 20px;
}

.sd-ov__desc ul{
	list-style-type: square;
	padding-left: 20px;
}

.sd-ov__desc ul li::marker{
	color: #d46f35;
}

.sd-ov__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.sd-ov__features li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var( --sd-font-display, 'Lexend', sans-serif );
	font-weight: 500;
	font-size: 14px;
	line-height: 1.43;
	color: #737a87;
}

.sd-ov__features li::before {
	content: '';
	display: block;
	width: 5px;
	height: 5px;
	min-width: 5px;
	background: #d46f35;
	flex-shrink: 0;
}

/* ── Right: floorplan panel ──────────────────────────────────────────────────── */

.sd-ov__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sd-ov__floorplan {
	width: 100%;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.sd-ov__fp-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	cursor: zoom-in;
}

/* ── Actions ─────────────────────────────────────────────────────────────────── */

.sd-ov__actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sd-ov__btn-zoom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 36px;
	min-height: 36px;
	padding: 8px 16px;
	background: #d46f35;
	border: none;
	border-radius: 20px;
	font-family: var( --sd-font-display, 'Lexend', sans-serif );
	font-size: 14px;
	font-weight: 700;
	line-height: 1.43;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sd-ov__btn-zoom:hover,
.sd-ov__btn-zoom:focus-visible {
	background: #c05e28;
	outline: none;
}

.sd-ov__btn-row {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.sd-ov__btn-outline {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 6px;
	/* height: 36px;
	min-height: 36px; */
	padding: 8px 16px;
	background: transparent;
	border: 1px solid #d46f35;
	border-radius: 20px;
	font-family: var( --sd-font-display, 'Lexend', sans-serif );
	font-size: 14px;
	font-weight: 700;
	line-height: 1.43;
	color: #d46f35;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sd-ov__btn-outline:hover,
.sd-ov__btn-outline:focus-visible {
	background: #d46f35;
	color: #fff;
	outline: none;
}

/* ── Lightbox ────────────────────────────────────────────────────────────────── */

.sd-ov__lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba( 0, 0, 0, 0.9 );
	display: flex;
	align-items: center;
	justify-content: center;
}

/* dialog[open] needed because browsers keep display:none when closed */
.sd-ov__lightbox:not( [open] ) {
	display: none;
}

.sd-ov__lightbox::backdrop {
	background: transparent;
}

/* Zoomist mount point — explicit dimensions required by the library */
.sd-ov__zoomist {
	width: calc( 100vw - 80px );
	height: calc( 100vh - 80px );
	max-width: 1400px;
	max-height: 900px;
}

/* Zoomist overrides inside the lightbox */
.sd-ov__lightbox .zoomist-container,
.sd-ov__lightbox .zoomist-wrapper,
.sd-ov__lightbox .zoomist-image {
	width: 100%;
	height: 100%;
}

.sd-ov__lightbox .zoomist-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.sd-ov__lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba( 255, 255, 255, 0.12 );
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: background-color 0.15s ease;
}

.sd-ov__lightbox-close:hover {
	background: rgba( 255, 255, 255, 0.25 );
}

/* ── Editor placeholder ──────────────────────────────────────────────────────── */

.sd-ov .sd-cgrid__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 40px 24px;
	background: #faf8f5;
	text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media ( max-width: 960px ) {
	.sd-ov__cols {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media ( max-width: 480px ) {
	.sd-ov__btn-row {
		gap: 12px;
	}

	.sd-ov__btn-outline {
		font-size: 12px;
		padding: 8px 10px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Share popup (Copy Link / Facebook / Email) for the floorplan/overview Share
   buttons. IDENTICAL to the Homes Cards share modal (blocks/homes/style.css) so the
   experience is consistent site-wide; the matching markup is built by this block's
   view.js. The `sd-share--card` modifier keeps it isolated from the global .sd-share.
   ───────────────────────────────────────────────────────────────────────────── */
html.sd-share-lock {
	overflow: hidden;
}

.sd-share--card[hidden] {
	display: none;
}

.sd-share--card {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	max-height: none;
	padding: 16px;
	background: none;
	border-radius: 0;
	box-shadow: none;
	color: #1f242e;
}

.sd-share--card .sd-share__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 31, 36, 46, 0.55 );
}

.sd-share--card .sd-share__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 28px 24px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.25 );
	font-family: 'Lexend', sans-serif;
	animation: sd-ov-share-in 0.18s ease-out;
}

@keyframes sd-ov-share-in {
	from { transform: translateY( 12px ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}

.sd-share--card .sd-share__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	color: #737a87;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sd-share--card .sd-share__close:hover,
.sd-share--card .sd-share__close:focus-visible {
	background: #f6f4ee;
	color: #1f242e;
	outline: none;
}

.sd-share--card .sd-share__title {
	margin: 0 0 18px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1f242e;
}

.sd-share--card .sd-share__copy {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
}

.sd-share--card .sd-share__url {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	font-family: 'Lexend', sans-serif;
	font-size: 0.875rem;
	color: #1f242e;
	background: #f6f4ee;
	border: 0.5px solid #c8c8c8;
	border-radius: 20px;
}

.sd-share--card .sd-share__copy-btn {
	flex: 0 0 auto;
	height: 40px;
	padding: 0 18px;
	font-family: 'Lexend', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	background: #d46f35;
	border: 0;
	border-radius: 20px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sd-share--card .sd-share__copy-btn:hover,
.sd-share--card .sd-share__copy-btn:focus-visible {
	background: #be5f29;
	outline: none;
}

.sd-share--card .sd-share__copy-btn.is-copied {
	background: #2e7d4f;
}

.sd-share--card .sd-share__opts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sd-share--card .sd-share__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 18px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	color: #1f242e;
	background: #faf8f5;
	border: 0.5px solid #a5a7ab;
	border-radius: 20px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sd-share--card .sd-share__opt:hover,
.sd-share--card .sd-share__opt:focus-visible {
	border-color: #1f242e;
	outline: none;
}

.sd-share--card .sd-share__opt svg {
	flex: 0 0 auto;
}

.sd-share--card .sd-share__opt--fb svg {
	color: #1877f2;
}

.sd-share--card .sd-share__opt--fb:hover,
.sd-share--card .sd-share__opt--fb:focus-visible {
	background: #1877f2;
	border-color: #1877f2;
	color: #fff;
}

.sd-share--card .sd-share__opt--fb:hover svg,
.sd-share--card .sd-share__opt--fb:focus-visible svg {
	color: #fff;
}

.sd-share--card .sd-share__opt--email:hover,
.sd-share--card .sd-share__opt--email:focus-visible {
	background: #d46f35;
	border-color: #d46f35;
	color: #fff;
}

@media ( prefers-reduced-motion: reduce ) {
	.sd-share--card .sd-share__dialog {
		animation: none;
	}
}
