.sb-property-plans {
	--sb-plans-navy: #12315b;
	--sb-plans-navy-deep: #0b1c33;
	--sb-plans-gold: #c2a46a;
	--sb-plans-paper: #f5f4f0;
	--sb-plans-line: #e2ded4;
	--sb-plans-muted: #736f67;
	--sb-plans-container: 1240px;
	position: relative;
	width: 100%;
	padding: clamp(72px, 8vw, 128px) 0;
	background: var(--sb-plans-navy);
	font-family: inherit;
}

.sb-property-plans *,
.sb-property-plans *::before,
.sb-property-plans *::after {
	box-sizing: border-box;
}

.sb-property-plans button,
.sb-property-plans a {
	    font-family: 'Syne', sans-serif;
}

.sb-property-plans__container {
	width: min(calc(100% - 40px), var(--sb-plans-container));
	margin-inline: auto;
}

.sb-property-plans__header {
	max-width: 760px;
	margin-bottom: clamp(30px, 4vw, 50px);
}

.sb-property-plans__eyebrow {
	margin: 0 0 14px;
	color: var(--sb-plans-gold);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: 'Syne', sans-serif;
}

.sb-property-plans__title {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.025em;
	font-family: 'Syne', sans-serif;
}

.sb-property-plans__tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
	font-family: 'Syne', sans-serif;
}

.sb-property-plans__tab {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 24px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.84);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sb-property-plans__tab:hover,
.sb-property-plans__tab:focus-visible,
.sb-property-plans__tab.is-active {
	border-color: var(--sb-plans-paper);
	background: var(--sb-plans-paper);
	color: var(--sb-plans-navy);
}

.sb-property-plans__tab:focus-visible,
.sb-property-plans__preview:focus-visible,
.sb-property-plans__expand:focus-visible,
.sb-property-plans__thumb:focus-visible,
.sb-property-plans__modal button:focus-visible,
.sb-property-plans__modal a:focus-visible {
	outline: 2px solid var(--sb-plans-gold);
	outline-offset: 3px;
}

.sb-property-plans__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
	gap: clamp(24px, 3vw, 42px);
	padding: clamp(18px, 3vw, 42px);
	border-radius: 8px;
	background: var(--sb-plans-paper);
}

.sb-property-plans__main {
	min-width: 0;
}

.sb-property-plans__preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: clamp(420px, 46vw, 620px);
	border: 1px solid var(--sb-plans-line);
	border-radius: 4px;
	background: #fff;
	cursor: zoom-in;
	overflow: hidden;
}

.sb-property-plans__preview::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid transparent;
	pointer-events: none;
	transition: border-color 180ms ease;
}

.sb-property-plans__preview:hover::after {
	border-color: rgba(194, 164, 106, 0.72);
}

.sb-property-plans__main-image,
.sb-property-plans__main-canvas {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}


.sb-property-plans__loader {
	position: absolute;
	inset: auto 18px 18px auto;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(18, 49, 91, 0.92);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.sb-property-plans__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-top: 22px;
}

.sb-property-plans__active-title {
	margin: 0;
	color: var(--sb-plans-navy);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	line-height: 1.4;
}

.sb-property-plans__expand {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 1px solid #cbc5b9;
	border-radius: 999px;
	background: transparent;
	color: var(--sb-plans-navy);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.14em;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sb-property-plans__expand:hover {
	border-color: var(--sb-plans-navy);
	background: var(--sb-plans-navy);
	color: #fff;
}

.sb-property-plans__help,
.sb-property-plans__disclaimer {
	margin: 0;
}

.sb-property-plans__help {
	margin-top: 10px;
	color: var(--sb-plans-muted);
	font-size: 12px;
	line-height: 1.5;
}

.sb-property-plans__disclaimer {
	max-width: 720px;
	margin-top: 6px;
	color: #9d988f;
	font-size: 10px;
	line-height: 1.55;
}

.sb-property-plans__aside {
	min-width: 0;
}

.sb-property-plans__plans-label {
	margin: 0 0 13px;
	color: #9b968d;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sb-property-plans__thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 620px;
	padding: 2px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #cfc9bd transparent;
}

.sb-property-plans__thumb {
	width: 100%;
	padding: 0;
	border: 1px solid var(--sb-plans-line);
	border-radius: 4px;
	background: #fff;
	color: var(--sb-plans-navy);
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sb-property-plans__thumb:hover {
	transform: translateY(-1px);
	border-color: #c9c2b5;
}

.sb-property-plans__thumb.is-active {
	border-color: var(--sb-plans-navy);
	box-shadow: 0 0 0 2px rgba(18, 49, 91, 0.12);
}

.sb-property-plans__thumb-media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 92px;
	padding: 7px;
	border-bottom: 1px solid #ebe7df;
	background: #fff;
}

.sb-property-plans__thumb-media img,
.sb-property-plans__thumb-media canvas {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}


.sb-property-plans__thumb-label {
	display: block;
	padding: 11px 12px;
	font-size: 11px;
	line-height: 1.3;
}

.sb-property-plans__modal[hidden] {
	display: none;
}

.sb-property-plans__modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	background: rgba(11, 28, 51, 0.98);
	color: #fff;
}

body.sb-property-plans-open {
	overflow: hidden;
}

.sb-property-plans__modal-bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 16px clamp(18px, 4vw, 56px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--sb-plans-navy-deep);
}

.sb-property-plans__modal-copy {
	min-width: 0;
}

.sb-property-plans__modal-title,
.sb-property-plans__modal-disclaimer {
	margin: 0;
}

.sb-property-plans__modal-title {
	font-size: clamp(14px, 1.5vw, 18px);
	font-weight: 500;
	line-height: 1.4;
}

.sb-property-plans__modal-disclaimer {
	max-width: 650px;
	margin-top: 5px;
	color: rgba(255, 255, 255, 0.48);
	font-size: 10px;
	line-height: 1.5;
}

.sb-property-plans__modal-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.sb-property-plans__pdf-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 17px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	color: #fff;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sb-property-plans__pdf-link:hover {
	border-color: var(--sb-plans-gold);
	background: var(--sb-plans-gold);
	color: var(--sb-plans-navy-deep);
}

.sb-property-plans__pdf-link[hidden] {
	display: none;
}

.sb-property-plans__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.sb-property-plans__close:hover {
	border-color: var(--sb-plans-gold);
	background: rgba(194, 164, 106, 0.16);
}

.sb-property-plans__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.sb-property-plans__pdf-viewer {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	min-width: 0;
	min-height: 0;
	background: #202c3b;
}

.sb-property-plans__pdf-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	min-height: 52px;
	padding: 8px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: #16263a;
}

.sb-property-plans__pdf-controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sb-property-plans__pdf-control,
.sb-property-plans__zoom-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.sb-property-plans__pdf-control {
	width: 34px;
	padding: 0;
	font-size: 17px;
	line-height: 1;
}

.sb-property-plans__zoom-value {
	min-width: 68px;
	padding: 0 12px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.sb-property-plans__pdf-control:hover:not(:disabled),
.sb-property-plans__zoom-value:hover:not(:disabled) {
	border-color: var(--sb-plans-gold);
	background: rgba(194, 164, 106, 0.16);
}

.sb-property-plans__pdf-control:disabled,
.sb-property-plans__zoom-value:disabled {
	opacity: 0.32;
	cursor: default;
}

.sb-property-plans__page-info {
	min-width: 58px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.06em;
	text-align: center;
}

.sb-property-plans__modal-stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	padding: clamp(14px, 2vw, 28px);
	overflow: auto;
	overscroll-behavior: contain;
	background: #202c3b;
	cursor: grab;
	touch-action: pan-x pan-y;
	scrollbar-color: rgba(255, 255, 255, 0.36) transparent;
}

.sb-property-plans__modal-stage.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.sb-property-plans__modal-canvas-wrap {
	position: relative;
	width: max-content;
	height: max-content;
	min-width: 1px;
	min-height: 1px;
	margin: auto;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.sb-property-plans__modal-canvas {
	display: block;
	max-width: none;
	max-height: none;
	background: #fff;
}

.sb-property-plans__modal-status {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	max-width: min(90%, 460px);
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(11, 28, 51, 0.94);
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.sb-property-plans__editor-empty {
	padding: 28px;
	border: 1px dashed #b7b0a3;
	background: #f5f4f0;
	color: #12315b;
}

.sb-property-plans__editor-empty strong,
.sb-property-plans__editor-empty span {
	display: block;
}

.sb-property-plans__editor-empty span {
	margin-top: 6px;
	font-size: 13px;
}

@media (max-width: 900px) {
	.sb-property-plans__panel {
		grid-template-columns: 1fr;
	}

	.sb-property-plans__aside {
		grid-row: 1;
	}

	.sb-property-plans__thumbs {
		flex-direction: row;
		max-height: none;
		padding-bottom: 8px;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.sb-property-plans__thumb {
		flex: 0 0 132px;
	}

	.sb-property-plans__thumb-media {
		height: 86px;
	}
}

@media (max-width: 640px) {
	.sb-property-plans {
		padding: 64px 0;
	}

	.sb-property-plans__container {
		width: min(calc(100% - 32px), var(--sb-plans-container));
	}

	.sb-property-plans__header {
		margin-bottom: 28px;
	}

	.sb-property-plans__tabs {
		margin-right: -16px;
		margin-bottom: 22px;
		padding-right: 16px;
	}

	.sb-property-plans__tab {
		min-height: 42px;
		padding-inline: 19px;
	}

	.sb-property-plans__panel {
		gap: 20px;
		padding: 14px;
	}

	.sb-property-plans__preview {
		height: 330px;
		padding: 13px;
	}

	.sb-property-plans__meta {
		align-items: flex-start;
		gap: 12px;
		margin-top: 16px;
	}

	.sb-property-plans__modal-bar {
		align-items: center;
		padding: 10px 12px;
	}

	.sb-property-plans__modal-disclaimer {
		display: none;
	}

	.sb-property-plans__modal-actions {
		gap: 7px;
	}

	.sb-property-plans__pdf-link {
		min-height: 38px;
		padding-inline: 12px;
		font-size: 9px;
	}

	.sb-property-plans__close {
		width: 38px;
		height: 38px;
	}

	.sb-property-plans__pdf-toolbar {
		justify-content: space-between;
		gap: 10px;
		min-height: 48px;
		padding: 7px 10px;
	}

	.sb-property-plans__modal-stage {
		padding: 10px;
	}

	.sb-property-plans__pdf-control {
		width: 32px;
		height: 32px;
	}

	.sb-property-plans__zoom-value {
		height: 32px;
		min-width: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sb-property-plans *,
	.sb-property-plans *::before,
	.sb-property-plans *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
