.jvectormap-tip {
	z-index: 99;
	border: none !important;
	/* Tip shell carries the pill styles so plain-text tips
	   (e.g. Zoning Justice) and HTML-wrapped tips (e.g. ALPR) both work. */
	background: #5c6a79 !important;
	color: #fff;
	padding: 15px !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	/* Tips follow the cursor; ignoring pointer events keeps the
	   underlying marker hovered so tips don't flicker/steal hits. */
	pointer-events: none;
}

/* Keep the original 1px marker outline (hit-area expansion uses tip
   pointer-events below rather than a transparent stroke that hides this). */
circle.jvectormap-marker {
	stroke: #505050 !important;
	stroke-width: 1px !important;
}

/* Nested wrappers from rich tip HTML should not add a second pill. */
.jvectormap-tip > div {
	color: #fff;
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.jvectormap-tip h4,
.jvectormap-tip h5,
.jvectormap-tip h6,
.jvectormap-tip p {
	color: #fff !important;
	margin: 0;
}

.jvectormap-tip h4 {
	margin-bottom: 0.35em;
	font-size: 1.1em;
	font-weight: 700;
}

.jvectormap-legend {
	background: #5c6a79;
	color: white;
	border-radius: 3px;
}

.jvectormap-legend-cnt-v .jvectormap-legend-tick-text {
	font-family: 'Mulish', sans-serif;
}

.ij-jvectormap-wrap {
	position: relative;
}

.ij-jvectormap-wrap--zoomable .jvectormap-block {
	border: 1px solid transparent;
	transition: border-color 160ms ease;
	touch-action: none;
}

.ij-jvectormap-wrap--zoomable.is-zoomed .jvectormap-block {
	overflow: hidden;
	border-color: #d8d9d8;
}

.ij-jvectormap-wrap--zoomable.is-zoomed .jvectormap-container {
	cursor: grab;
}

.ij-jvectormap-controls {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 20;
	display: flex;
	gap: 0.35rem;
	font-family: Mulish, sans-serif;
}

/* Top-left legend occupies the same corner; keep zoom controls clear of it. */
.ij-jvectormap-wrap--zoomable.ij-jvectormap-wrap--legend-top-left .ij-jvectormap-controls {
	left: auto;
	right: 0.75rem;
}

.ij-jvectormap-controls button {
	min-width: 2rem;
	min-height: 2rem;
	padding: 0.25rem 0.55rem;
	border: 1px solid rgba(22, 93, 103, 0.22);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.92);
	color: #165d67;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	cursor: pointer;
}

.ij-jvectormap-controls button:hover,
.ij-jvectormap-controls button:focus {
	border-color: #165d67;
	background: #fff;
}

.ij-jvectormap-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	justify-content: center;
}

.ij-jvectormap-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.2;
	color: #1d2124;
}

.ij-jvectormap-legend__swatch {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	flex-shrink: 0;
	background: #808080;
}

.ij-jvectormap-wrap--legend-bottom-left .ij-jvectormap-legend {
	justify-content: flex-start;
}

.ij-jvectormap-wrap--legend-bottom-right .ij-jvectormap-legend {
	justify-content: flex-end;
}

.ij-jvectormap-wrap--legend-top-center .ij-jvectormap-legend,
.ij-jvectormap-wrap--legend-top-left .ij-jvectormap-legend,
.ij-jvectormap-wrap--legend-top-right .ij-jvectormap-legend {
	position: absolute;
	top: 0.75rem;
	z-index: 5;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
}

.ij-jvectormap-wrap--legend-top-center .ij-jvectormap-legend {
	left: 50%;
	transform: translateX(-50%);
	justify-content: center;
}

.ij-jvectormap-wrap--legend-top-left .ij-jvectormap-legend {
	left: 0.75rem;
	justify-content: flex-start;
}

.ij-jvectormap-wrap--legend-top-right .ij-jvectormap-legend {
	right: 0.75rem;
	justify-content: flex-end;
}
