.ihm-wrapper .ihm-image-container {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.ihm-wrapper .ihm-bg-image {
	display: block;
	width: 100%;
	height: auto;
}

/* Classic map-marker (teardrop) pin. The box is positioned so its sharp
   bottom point lands exactly on the pin's x/y coordinate, not the box center. */
.ihm-wrapper .ihm-pin {
	position: absolute;
	width: 30px;
	height: 30px;
	margin: -30px 0 0 -15px;
	cursor: pointer;
	z-index: 5;
	display: block;
	text-decoration: none;
	color: inherit;
}

.ihm-wrapper .ihm-pin-dot {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: var(--ihm-pin-color, #4a90d9);
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}

.ihm-wrapper .ihm-pin-dot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.ihm-wrapper .ihm-pin:hover .ihm-pin-dot,
.ihm-wrapper .ihm-pin.ihm-active .ihm-pin-dot {
	filter: brightness(1.1);
}

/* Custom uploaded icon in place of the default color teardrop.
   Anchored the same way — tip/bottom of the image sits on the pin's x/y point. */
.ihm-wrapper .ihm-pin-icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

.ihm-wrapper .ihm-pin.ihm-pin-has-icon:hover .ihm-pin-icon,
.ihm-wrapper .ihm-pin.ihm-pin-has-icon.ihm-active .ihm-pin-icon {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)) brightness(1.08);
}

.ihm-wrapper .ihm-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	background: #1e1e1e;
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 10;
}

.ihm-wrapper .ihm-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1e1e1e;
}

/* Desktop hover */
.ihm-wrapper .ihm-pin:hover .ihm-tooltip,
.ihm-wrapper .ihm-pin.ihm-active .ihm-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
