/* ============================================
   Before/After comparison slider
   Used by: template-parts/home/home-about.php,
            template-parts/why-beach-shake-house/why-beach-house-shake-comparison.php
   ============================================ */

.bhs-ba {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #111;
	user-select: none;
	touch-action: none;
	--pct: 50%;
}

.bhs-ba__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	pointer-events: none;
}

.bhs-ba__img--after {
	clip-path: inset(0 calc(100% - var(--pct)) 0 0);
	will-change: clip-path;
}

.bhs-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	z-index: 3;
}

.bhs-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pct);
	transform: translateX(-50%);
	width: 2px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	z-index: 4;
}

.bhs-ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #c9a227;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.bhs-ba__handle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	z-index: 2;
	background:
		linear-gradient(135deg, transparent 45%, #c9a227 45%, #c9a227 55%, transparent 55%) left center / 8px 12px no-repeat,
		linear-gradient(315deg, transparent 45%, #c9a227 45%, #c9a227 55%, transparent 55%) right center / 8px 12px no-repeat;
}

@media (max-width: 992px) {
	#bhs-home-about .bhs-ba {
		height: 400px;
	}
}

/* ============================================
   Multi-comparison carousel wrapper (home-about)
   Lifts the nav controls above the .bhs-ba__range
   input (z-index 3) so they stay clickable, and
   keeps each slide's scrubber the full panel height.
   ============================================ */

.bhs-ba-carousel .carousel-item {
	overflow: hidden;
}

.bhs-ba-carousel .carousel-control-prev,
.bhs-ba-carousel .carousel-control-next {
	z-index: 5;
	width: 12%;
}

.bhs-ba-carousel .carousel-control-prev .bi,
.bhs-ba-carousel .carousel-control-next .bi {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.25rem;
	line-height: 1;
	color: #212529;
	background-color: rgba(255, 255, 255, 0.85);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bhs-ba-carousel .carousel-indicators {
	z-index: 5;
	margin-bottom: 0.75rem;
}
