/* Buraq Group — Panorama / virtual-tour viewer */
.pano {
	position: relative;
	width: 100%;
	background: #0b1a2b;
	border-radius: 14px;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	box-shadow: 0 18px 45px rgba(0, 23, 51, .18);
}

.pano--full {
	border-radius: 0;
	height: 100vh;
}

.pano__stage {
	position: absolute;
	inset: 0;
	cursor: grab;
	background-repeat: repeat-x;
	background-position: 0 center;
	background-size: auto 100%;
	will-change: background-position;
}

.pano__stage.is-dragging {
	cursor: grabbing;
}

.pano.is-loading .pano__stage {
	opacity: 0;
}

.pano__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pano-spin 1s linear infinite;
	opacity: 0;
	transition: opacity .2s;
	pointer-events: none;
}

.pano.is-loading .pano__spinner {
	opacity: 1;
}

@keyframes pano-spin {
	to {
		transform: rotate(360deg);
	}
}

/* drag hint */
.pano__hint {
	position: absolute;
	left: 50%;
	bottom: 78px;
	transform: translateX(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 24px);
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	color: #fff;
	background: rgba(0, 23, 51, .55);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	pointer-events: none;
	transition: opacity .4s;
}

.pano.is-touched .pano__hint {
	opacity: 0;
}

.pano__hint i {
	font-size: 15px;
	flex: 0 0 auto;
}

/* edge fades */
.pano__stage::before,
.pano__stage::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 60px;
	pointer-events: none;
	z-index: 2;
}

/* controls */
.pano__fs {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0, 23, 51, .5);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font-size: 18px;
	transition: background .2s;
}

.pano__fs:hover {
	background: var(--themeht-primary-color, #0052CC);
}

/* edge navigation arrows — previous / next area */
.pano__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	background: rgba(0, 23, 51, .42);
	backdrop-filter: blur(4px);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.pano__nav:hover {
	background: var(--themeht-primary-color, #0052CC);
}

.pano__nav--prev {
	left: 14px;
	transform: translateY(-50%);
}

.pano__nav--next {
	right: 14px;
	transform: translateY(-50%);
}

.pano__nav--prev:hover {
	transform: translateY(-50%) translateX(-3px);
}

.pano__nav--next:hover {
	transform: translateY(-50%) translateX(3px);
}

@media (max-width: 575px) {
	.pano__nav {
		width: 38px;
		height: 38px;
		font-size: 17px;
	}
}

/* scene bar — segmented control */
.pano-scenes {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 18px;
	padding: 5px;
	background: var(--themeht-light-color, #F4F6F8);
	border: 1px solid var(--themeht-border-color, #EDEDF1);
	border-radius: 999px;
	vertical-align: top;
}

.pano-scenes__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--themeht-secondary-color, #001733);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.pano-scenes__btn:hover {
	color: var(--themeht-primary-color, #0052CC);
}

.pano-scenes__btn.is-active {
	background: #fff;
	color: var(--themeht-primary-color, #0052CC);
	box-shadow: 0 2px 8px rgba(0, 23, 51, .12);
}

/* hotspot to jump to another scene */
.pano__hotspot {
	position: absolute;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(0, 82, 204, .75);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
	animation: pano-pulse 2.4s ease-out infinite;
}

@keyframes pano-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
	}

	70% {
		box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.pano__caption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 3;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 23, 51, .55);
	border-radius: 8px;
}

@media (max-width: 575px) {
	.pano__hint {
		bottom: 60px;
	}
}
