/* Human Body Hotspot — base structural styles.
   Colors, typography, spacing are controlled by Elementor style controls
   and injected as inline CSS variables/selectors — this file only handles layout. */

.hbh-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
}

/* ---------- Left column ---------- */
.hbh-left {
	flex: 1 1 320px;
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.hbh-heading {
	margin: 0 0 18px;
}

.hbh-paragraph {
	margin: 0;
}

.hbh-paragraph p {
	margin: 0;
}

/* ---------- Right column ---------- */
.hbh-right {
	flex: 2 1 480px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 60px;
	padding: 40px;
	box-sizing: border-box;
}

.hbh-image-wrap {
	position: relative;
	width: 45%;
	min-width: 220px;
	flex-shrink: 0;
	line-height: 0;
}

.hbh-body-image {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- Hotspot dot ---------- */
.hbh-hotspot {
	position: absolute;
	transform: translate(-50%, -50%);
	cursor: pointer;
	outline: none;
}

.hbh-dot {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: #3ef2c6;
	transition: background-color 0.25s ease, transform 0.25s ease;
	z-index: 2;
}

.hbh-hotspot.is-active .hbh-dot {
	transform: scale(1.15);
}

/* pulse animation, toggled on via prefix_class hbh-pulse-yes */
.hbh-pulse-yes .hbh-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(62, 242, 198, 0.55);
	animation: hbh-pulse 1.8s infinite;
	z-index: 1;
}

@keyframes hbh-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(62, 242, 198, 0.55);
	}
	70% {
		box-shadow: 0 0 0 12px rgba(62, 242, 198, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(62, 242, 198, 0);
	}
}

/* ---------- Tooltip ---------- */
.hbh-tooltip {
	position: absolute;
	white-space: nowrap;
	background-color: #ffe600;
	color: #1b1b1b;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
	min-width: 110px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 5;
}

.hbh-hotspot.is-active .hbh-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* whitespace wrapping allowed for longer titles */
.hbh-tooltip {
	white-space: normal;
	max-width: 220px;
}

/* tooltip direction placement */
.hbh-tip-right .hbh-tooltip {
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(-4px);
}
.hbh-tip-right.is-active .hbh-tooltip {
	transform: translateY(-50%) translateX(0);
}

.hbh-tip-left .hbh-tooltip {
	right: calc(100% + 12px);
	left: auto;
	top: 50%;
	transform: translateY(-50%) translateX(4px);
}
.hbh-tip-left.is-active .hbh-tooltip {
	transform: translateY(-50%) translateX(0);
}

.hbh-tip-top .hbh-tooltip {
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
}
.hbh-tip-top.is-active .hbh-tooltip {
	transform: translateX(-50%) translateY(0);
}

.hbh-tip-bottom .hbh-tooltip {
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(-4px);
}
.hbh-tip-bottom.is-active .hbh-tooltip {
	transform: translateX(-50%) translateY(0);
}

/* ---------- Info panel ---------- */
.hbh-info-panel {
	flex: 1 1 260px;
	position: relative;
	min-height: 160px;
}

.hbh-info-item {
	display: none;
}

.hbh-info-item.is-active {
	display: block;
}

.hbh-fade-yes .hbh-info-item.is-active {
	animation: hbh-fade-in 0.3s ease;
}

@keyframes hbh-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hbh-info-title {
	margin: 0 0 16px;
}

.hbh-info-content ul {
	list-style: disc;
	margin: 0;
	padding-left: 20px;
}

.hbh-info-content li {
	margin-bottom: 12px;
}

.hbh-info-content p {
	margin: 0 0 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.hbh-left,
	.hbh-right {
		flex: 1 1 100%;
	}

	.hbh-right {
		flex-direction: column;
		gap: 30px;
	}

	.hbh-image-wrap {
		width: 70%;
		max-width: 320px;
		margin: 0 auto;
	}

	.hbh-info-panel {
		width: 100%;
	}
}
