.house3d-hero {
	--house3d-ink: #14201f;
	--house3d-panel-right: clamp(18px, 3vw, 48px);
	--house3d-panel-width: 230px;
	position: relative;
	width: 100%;
	height: max(720px, 100svh);
	min-height: 640px;
	overflow: hidden;
	background: #dce4e5;
	color: var(--house3d-ink);
	isolation: isolate;
}

.house3d-stage,
.house3d-stage canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.house3d-stage {
	z-index: 0;
	cursor: grab;
}

.house3d-stage:active {
	cursor: grabbing;
}

.house3d-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(238, 244, 244, .96) 0%, rgba(238, 244, 244, .58) 28%, transparent 54%),
		linear-gradient(0deg, rgba(16, 28, 27, .16), transparent 30%);
}

.house3d-intro {
	position: absolute;
	z-index: 3;
	top: clamp(170px, 24vh, 260px);
	left: clamp(24px, 5vw, 88px);
	width: min(570px, 42vw);
	pointer-events: none;
}

.house3d-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font: 600 12px/1.2 Arial, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.house3d-kicker::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
}

.house3d-intro h1 {
	margin: 0;
	max-width: 650px;
	font-size: clamp(44px, 5.2vw, 84px);
	line-height: .95;
	letter-spacing: -.055em;
	color: inherit;
}

.house3d-intro p {
	margin: 25px 0 0;
	max-width: 410px;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(20, 32, 31, .7);
}

.house3d-toolbar {
	position: absolute;
	z-index: 5;
	top: 50%;
	right: var(--house3d-panel-right);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: var(--house3d-panel-width);
	max-height: calc(100% - 190px);
	padding: 8px;
	overflow-y: auto;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 16px;
	background: rgba(244, 248, 248, .82);
	box-shadow: 0 20px 55px rgba(25, 43, 41, .16);
	backdrop-filter: blur(18px);
	transition: transform .28s ease, opacity .2s ease;
}

.house3d-camera-buttons {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.house3d-zoom-controls {
	display: flex;
	gap: 4px;
	padding: 8px 0;
	border-top: 1px solid rgba(33, 51, 49, .12);
	border-bottom: 1px solid rgba(33, 51, 49, .12);
}

.house3d-control.house3d-zoom {
	flex: 1 1 50%;
	justify-content: center;
	min-width: 0;
	padding: 0;
	font-size: 23px;
	font-weight: 500;
}

.house3d-control {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #213331;
	font: 600 12px/1 Arial, sans-serif;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.house3d-toolbar > .house3d-control,
.house3d-camera-buttons .house3d-control {
	width: 100%;
	justify-content: flex-start;
}

.house3d-panel-toggle {
	position: absolute;
	z-index: 6;
	top: 50%;
	right: calc(var(--house3d-panel-right) + var(--house3d-panel-width) + 10px);
	display: grid;
	place-items: center;
	width: 42px;
	height: 52px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 12px;
	background: rgba(244, 248, 248, .9);
	color: #173b37;
	box-shadow: 0 12px 35px rgba(25, 43, 41, .16);
	cursor: pointer;
	backdrop-filter: blur(14px);
	transition: right .28s ease, background .2s ease, color .2s ease;
}

.house3d-panel-toggle::before {
	content: "›";
	font: 400 29px/1 Arial, sans-serif;
}

.house3d-panel-toggle:hover,
.house3d-panel-toggle:focus-visible {
	outline: none;
	background: #152a42;
	color: #fff;
}

.house3d-hero.is-controls-collapsed .house3d-toolbar {
	opacity: 0;
	transform: translate(calc(100% + var(--house3d-panel-right) + 20px), -50%);
	pointer-events: none;
}

.house3d-hero.is-controls-collapsed .house3d-panel-toggle {
	right: var(--house3d-panel-right);
}

.house3d-hero.is-controls-collapsed .house3d-panel-toggle::before {
	content: "‹";
}

.house3d-control:hover,
.house3d-control:focus-visible,
.house3d-control.is-active {
	outline: none;
	background: #152a42;
	color: #fff;
}

.house3d-control:active {
	transform: translateY(1px);
}

.house3d-control-index {
	font-size: 10px;
	opacity: .58;
}

.house3d-control-icon {
	font-size: 18px;
	font-weight: 400;
}

.house3d-progress {
	position: absolute;
	z-index: 8;
	left: 50%;
	top: 50%;
	width: min(360px, calc(100% - 48px));
	padding: 22px;
	transform: translate(-50%, -50%);
	border-radius: 16px;
	background: rgba(249, 251, 251, .94);
	box-shadow: 0 24px 70px rgba(15, 31, 29, .18);
	transition: opacity .5s ease, transform .5s ease;
}

.house3d-progress.is-done {
	opacity: 0;
	transform: translate(-50%, -46%);
}

.house3d-progress-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 13px;
	font: 600 12px/1.2 Arial, sans-serif;
	letter-spacing: .04em;
}

.house3d-progress-track {
	display: block;
	height: 3px;
	overflow: hidden;
	border-radius: 4px;
	background: #dce4e3;
}

.house3d-progress-track i {
	display: block;
	width: 0;
	height: 100%;
	background: #173b37;
	transition: width .2s linear;
}

.house3d-hint {
	position: absolute;
	z-index: 4;
	left: clamp(24px, 5vw, 88px);
	bottom: 35px;
	font: 500 11px/1.3 Arial, sans-serif;
	letter-spacing: .04em;
	color: rgba(20, 32, 31, .6);
}

.house3d-marker {
	position: absolute;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	padding: 0;
	transform: translate(-50%, -50%);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	background: #153d38;
	color: #fff;
	box-shadow: 0 8px 22px rgba(20, 42, 39, .28), 0 0 0 7px rgba(255, 255, 255, .24);
	cursor: pointer;
}

.house3d-marker span {
	font: 700 11px/1 Arial, sans-serif;
}

.house3d-marker em {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	padding: 8px 10px;
	transform: translateX(-50%) translateY(4px);
	border-radius: 7px;
	background: #122b28;
	color: #fff;
	font: normal 600 11px/1.2 Arial, sans-serif;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.house3d-marker:hover em,
.house3d-marker:focus-visible em {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.house3d-marker.is-light {
	background: #d68a21;
}

.house3d-marker.is-camera {
	background: #31578f;
}

.house3d-error {
	position: absolute;
	z-index: 9;
	left: 50%;
	top: 50%;
	padding: 18px 24px;
	transform: translate(-50%, -50%);
	border-radius: 12px;
	background: #fff;
	color: #8a1f1f;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .14);
}

@media (max-width: 1100px) {
	.house3d-intro {
		width: min(520px, 55vw);
	}
}

@media (max-width: 767px) {
	.house3d-hero {
		--house3d-panel-right: 14px;
		--house3d-panel-width: min(250px, calc(100vw - 82px));
		height: 100svh;
		min-height: 620px;
	}

	.house3d-shade {
		background: linear-gradient(180deg, rgba(238, 244, 244, .9) 0%, transparent 45%, rgba(18, 35, 33, .22) 100%);
	}

	.house3d-intro {
		top: 140px;
		left: 20px;
		width: calc(100% - 40px);
	}

	.house3d-intro h1 {
		font-size: clamp(42px, 12vw, 64px);
	}

	.house3d-intro p {
		display: none;
	}

	.house3d-toolbar {
		top: 50%;
		right: var(--house3d-panel-right);
		left: auto;
		bottom: auto;
		max-height: calc(100% - 150px);
		overflow-x: hidden;
	}

	.house3d-control {
		flex: 0 0 auto;
	}

	.house3d-camera-buttons {
		display: flex;
		flex-direction: column;
	}

	.house3d-zoom-controls {
		flex: 0 0 auto;
	}

	.house3d-hero:not(.is-controls-ready) .house3d-toolbar {
		opacity: 0;
		transform: translate(calc(100% + var(--house3d-panel-right) + 20px), -50%);
		pointer-events: none;
	}

	.house3d-hero:not(.is-controls-ready) .house3d-panel-toggle {
		right: var(--house3d-panel-right);
	}

	.house3d-hero:not(.is-controls-ready) .house3d-panel-toggle::before {
		content: "‹";
	}

	.house3d-hint {
		display: none;
	}
}
