/* Zozo Image Hotspots - Frontend Styles */

.zih-map,
.zih-map *,
.zih-map *::before,
.zih-map *::after {
	box-sizing: border-box !important;
}

/* Force shrink inside Elementor, Flexbox, Grid, and Block containers */
.zih-map {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	overflow: visible !important;
}

.zih-map-inner {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	line-height: 0 !important;
}

.zih-map-image,
.zih-map img.zih-map-image,
.elementor-widget-container .zih-map img.zih-map-image {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	object-fit: contain !important;
	user-select: none;
	-webkit-user-drag: none;
}

.zih-hotspots {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	pointer-events: none;
}

/* Individual hotspot */
.zih-hotspot {
	position: absolute !important;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	z-index: 5;
	cursor: pointer;
	outline: none;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.zih-hotspot:hover,
.zih-hotspot:focus,
.zih-hotspot.is-active {
	z-index: 20;
}

.zih-pointer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--zih-size, 24px);
	height: var(--zih-size, 24px);
	border-radius: 50%;	
	background: #ffffff;
	color: var(--zih-color, #fff);
	font-size: calc(var(--zih-size, 24px) * 0.55);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.zih-type-text .zih-pointer {
	width: auto;
	border-radius: 999px;
}

.zih-hotspot:hover .zih-pointer,
.zih-hotspot:focus .zih-pointer,
.zih-hotspot.is-active .zih-pointer {
	transform: scale(1.15);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Icon hover swap */
.zih-icon-hover,
.zih-img-hover {
	display: none;
	position: absolute;
}
.zih-hotspot:hover .zih-icon-hover,
.zih-hotspot:hover .zih-img-hover,
.zih-hotspot.is-active .zih-icon-hover,
.zih-hotspot.is-active .zih-img-hover {
	display: inline-block;
}

.zih-pointer img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	border-radius: 50%;
}

.zih-text-label {
	font-size: 11px;
	font-weight: 600;
	padding: 0 8px;
	white-space: nowrap;
	line-height: 1;
}

/* Pulse animation */
.zih-pulse .zih-pointer::after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 1px 3px white;
    animation: zih-pulse 2s infinite;
    display: block;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 0%;
    left: 0%;
    pointer-events: none;
}

@keyframes zih-pulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

/* Tooltip */
.zih-tooltip {
	position: absolute;
	z-index: 100;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	width: max-content;
	min-width: 180px;
	max-width: min(280px, calc(100vw - 24px));
	line-height: 1.45;
}

.zih-hotspot.is-active .zih-tooltip,
.zih-hotspot:hover .zih-tooltip {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

/* Positions */
.zih-tooltip {
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(calc(-50% + var(--zih-tip-shift, 0px))) translateY(6px);
}

.zih-hotspot.is-active .zih-tooltip,
.zih-hotspot:hover .zih-tooltip {
	transform: translateX(calc(-50% + var(--zih-tip-shift, 0px))) translateY(0);
}

.zih-hotspot[data-pos="bottom"] .zih-tooltip {
	bottom: auto;
	top: calc(100% + 12px);
	left: 50%;
	right: auto;
	transform: translateX(calc(-50% + var(--zih-tip-shift, 0px))) translateY(-6px);
}

.zih-hotspot[data-pos="bottom"].is-active .zih-tooltip,
.zih-hotspot[data-pos="bottom"]:hover .zih-tooltip {
	transform: translateX(calc(-50% + var(--zih-tip-shift, 0px))) translateY(0);
}

.zih-hotspot[data-pos="left"] .zih-tooltip {
	bottom: auto;
	top: 50%;
	left: auto;
	right: calc(100% + 12px);
	transform: translateY(-50%) translateX(6px);
}

.zih-hotspot[data-pos="left"].is-active .zih-tooltip,
.zih-hotspot[data-pos="left"]:hover .zih-tooltip {
	transform: translateY(-50%) translateX(0);
}

.zih-hotspot[data-pos="right"] .zih-tooltip {
	bottom: auto;
	top: 50%;
	left: calc(100% + 12px);
	right: auto;
	transform: translateY(-50%) translateX(-6px);
}

.zih-hotspot[data-pos="right"].is-active .zih-tooltip,
.zih-hotspot[data-pos="right"]:hover .zih-tooltip {
	transform: translateY(-50%) translateX(0);
}

/* Animation variants */
.zih-hotspot[data-animation="scale"] .zih-tooltip {
	transform: translateX(calc(-50% + var(--zih-tip-shift, 0px))) scale(0.9);
}

.zih-hotspot[data-animation="scale"].is-active .zih-tooltip,
.zih-hotspot[data-animation="scale"]:hover .zih-tooltip {
	transform: translateX(calc(-50% + var(--zih-tip-shift, 0px))) scale(1);
}

.zih-tooltip-inner {
	color: #fff;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	text-align: left;
	word-wrap: break-word;
	overflow-wrap: break-word;
	background: #2b3c2b8a !important;
    backdrop-filter: blur(2px);
}
.zih-tooltip-title {
    font-weight: 400;
    font-size: 17px;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
}
.zih-tooltip-desc {
	opacity: 0.9;
	margin-bottom: 8px;
}

.zih-tooltip-desc p:last-child {
	margin-bottom: 0;
}

.zih-tooltip-btn {
	display: inline-block;
	margin-top: 6px;
	padding: 6px 12px;
	background: #2271b1;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: background 0.15s ease;
}

.zih-tooltip-btn:hover {
	background: #135e96;
	color: #fff !important;
}

/* Arrow */
.zih-tooltip-arrow {
	position: absolute;
	width: 10px;
	height: 10px;
	transform: rotate(45deg);
	bottom: -5px;
	left: calc(50% - var(--zih-tip-shift, 0px));
	margin-left: -5px;
}

.zih-hotspot[data-pos="bottom"] .zih-tooltip-arrow {
	bottom: auto;
	top: -5px;
}

.zih-hotspot[data-pos="left"] .zih-tooltip-arrow {
	bottom: auto;
	top: 50%;
	left: auto;
	right: -5px;
	margin-left: 0;
	margin-top: -5px;
}

.zih-hotspot[data-pos="right"] .zih-tooltip-arrow {
	bottom: auto;
	top: 50%;
	left: -5px;
	margin-left: 0;
	margin-top: -5px;
}

/* Direct link overlay */
.zih-direct-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

/* Embed */
.zih-tooltip-inner iframe {
	max-width: 100%;
	border-radius: 4px;
}

/* Click trigger – hide tooltip until active */
.zih-map[data-trigger="click"] .zih-hotspot:not(.is-active) .zih-tooltip {
	visibility: hidden;
	opacity: 0;
}

/* Tablet & Mobile adjustments */
@media (max-width: 768px) {
	.zih-pointer {
		width: calc(var(--zih-size, 24px) * 0.78);
		height: calc(var(--zih-size, 24px) * 0.78);
		font-size: calc(var(--zih-size, 24px) * 0.44);
		min-width: 24px;
		min-height: 24px;
	}

	.zih-tooltip {
		min-width: 130px;
		max-width: min(240px, calc(100vw - 24px));
	}
	.zih-tooltip-title {
		font-size: 15px;
		    letter-spacing: 0px;
	}
}

@media (max-width: 480px) {
	.zih-pointer {
		width: calc(var(--zih-size, 24px) * 0.65);
		height: calc(var(--zih-size, 24px) * 0.65);
		font-size: calc(var(--zih-size, 24px) * 0.36);
		min-width: 20px;
		min-height: 20px;
	}
	.zih-pulse .zih-pointer::after {
    	width: calc(var(--zih-size, 24px) * 0.65);
    	height: calc(var(--zih-size, 24px) * 0.65);
	}
}

/* Image Slider Popup */
.zih-slider-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.zih-slider-dialog {
	position: relative;
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: min(92vw, 600px);
	max-height: 90vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
}
.zih-slider-close {
    opacity: 1;
    background: #000 !important;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 5px;
    top: 5px;
    position: absolute;
    z-index: 10;
    color: #fff;
    border: none;
}

.zih-slider-close:hover {
	opacity: 1;
}

.zih-slider-title {
	padding: 14px 48px 10px 16px;
	font-weight: 600;
	font-size: 15px;
	border-bottom: 1px solid #eee;
}

.zih-slider-body {
	position: relative;
	flex: 1;
	min-height: 200px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zih-slide {
	display: none;
	width: 100%;
	text-align: center;
}

.zih-slide.is-active {
	display: block;
}

.zih-slide img {
	max-width: 100%;
	max-height: 70vh;
	height: auto;
	display: block;
	margin: 0 auto;
}

.zih-slider-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px;
	background: #f6f7f7;
	border-top: 1px solid #eee;
}

.zih-slider-prev,
.zih-slider-next {
	background: #000;
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zih-slider-prev:hover,
.zih-slider-next:hover {
	background: #444;
}

.zih-slider-counter {
	font-size: 13px;
	color: #646970;
	min-width: 60px;
	text-align: center;
}
/* Lazy-load plugin compatibility (LiteSpeed, WP Rocket, Smush, Jetpack, Elementor) */
.zih-map img,
.zih-map img[data-src],
.zih-map img[data-lazyloaded],
.zih-map img.lazyload,
.zih-map img.lazyloaded,
.zih-map img.litespeed-loaded,
.zih-map picture,
.zih-map picture img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
}

/* Ancestor flex/grid shrink guard: only allows shrinking, never forces width/max-width
   so boxed / custom-width containers keep the size set in the page builder. */
.elementor-widget:has(.zih-map),
.elementor-widget-container:has(.zih-map),
.e-con:has(.zih-map),
.e-con-inner:has(.zih-map),
.elementor-column:has(.zih-map),
.elementor-widget-wrap:has(.zih-map) {
	min-width: 0;
}
