/* Modern Locator – built-in map engine. */
.mloc-mv {
	position: relative; overflow: hidden; touch-action: none; outline-offset: -2px;
	-webkit-tap-highlight-color: transparent; background: #e8ecef; cursor: grab;
	user-select: none; -webkit-user-select: none;
	font: 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.mloc-mv.mloc-mv--dragging { cursor: grabbing; }
.mloc-mv:focus-visible { outline: 3px solid var(--mloc-accent, #1f5f8b); }
.mloc-mv__panes, .mloc-mv__pane { position: absolute; inset: 0; pointer-events: none; }
.mloc-mv__pane > * { pointer-events: auto; }
.mloc-mv__pane--label > *, .mloc-mv__pane--tile > *, .mloc-mv__pane--tooltip > * { pointer-events: none; }
.mloc-mv-tiles { position: absolute; inset: 0; }
.mloc-mv-tile, .mloc-mv-image {
	position: absolute; left: 0; top: 0; max-width: none !important; max-height: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
	user-select: none; -webkit-user-select: none; pointer-events: none;
}
.mloc-mv-tile { width: 256px; height: 256px; transform-origin: 0 0; opacity: 0; transition: opacity .2s linear; }
.mloc-mv-tile.is-loaded { opacity: 1; }
.mloc-mv-image { transform-origin: 0 0; }
.mloc-mv-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none !important; }
.mloc-mv-vector, .mloc-mv-shape { pointer-events: none; }
.mloc-mv-vector.is-interactive, .mloc-mv-shape.is-interactive { pointer-events: visiblePainted; cursor: pointer; }

/* Markers */
.mloc-mv-marker { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform; }
.mloc-mv-marker:focus { outline: none; }
.mloc-mv-marker:focus-visible { outline: 3px solid var(--mloc-accent, #1f5f8b); outline-offset: 2px; border-radius: 4px; }
.mloc-mv-marker.is-draggable { cursor: move; }
.mloc-mv-marker > .mloc-marker img { display: block; width: 100%; height: 100%; max-width: none; }
.mloc-mv-marker > .mloc-cluster-icon { display: grid; place-items: center; }
.mloc-mv-marker:has(> .mloc-cluster-icon):focus-visible { border-radius: 50%; }
.mloc-mv-marker .is-spiderfied, .mloc-mv-marker.is-spiderfied { opacity: .35; }
.mloc-handle { display: block; box-sizing: border-box; }

/* Controls */
.mloc-mv__controls { position: absolute; inset: 0; pointer-events: none; z-index: 800; }
.mloc-mv__corner { position: absolute; display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.mloc-mv__corner--topleft { top: 0; left: 0; align-items: flex-start; }
.mloc-mv__corner--topright { top: 0; right: 0; align-items: flex-end; }
.mloc-mv__corner--bottomleft { bottom: 0; left: 0; align-items: flex-start; }
.mloc-mv__corner--bottomright { bottom: 0; right: 0; align-items: flex-end; padding: 0; gap: 6px; }
.mloc-mv__corner--bottomright > .mloc-mv-control:not(.mloc-mv-attribution) { margin: 0 10px; }
.mloc-mv-control { pointer-events: auto; cursor: auto; }
.mloc-mv-zoom { display: flex; flex-direction: column; border: 2px solid rgba(0,0,0,.2); border-radius: 4px; background-clip: padding-box; overflow: hidden; }
.mloc-mv-zoom button {
	display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; margin: 0;
	background: #fff; color: #222; font: 700 18px/1 system-ui, sans-serif; cursor: pointer;
}
.mloc-mv-zoom button + button { border-top: 1px solid #ccc; }
.mloc-mv-zoom button:hover { background: #f4f4f4; }
.mloc-mv-zoom button:disabled { color: #bbb; cursor: default; background: #f8f8f8; }
.mloc-mv-zoom button:focus-visible, .mloc-mv-control button:focus-visible { outline: 3px solid var(--mloc-accent, #1f5f8b); outline-offset: -3px; }
.mloc-mv-attribution { background: rgba(255,255,255,.8); color: #333; padding: 0 5px; font-size: 11px; line-height: 1.5; max-width: 70vw; }
.mloc-mv-attribution a { color: #0078a8; text-decoration: none; }
.mloc-mv-attribution a:hover { text-decoration: underline; }
.mloc-mv-scale { pointer-events: none; }
.mloc-mv-scale__bar {
	border: 2px solid #777; border-top: 0; padding: 0 5px; color: #333; font-size: 11px; line-height: 1.1;
	white-space: nowrap; background: rgba(255,255,255,.6); box-sizing: border-box;
}

/* Tooltip */
.mloc-mv-tooltip {
	position: absolute; left: 0; top: 0; max-width: 260px; padding: 4px 8px; background: #fff; color: #222;
	border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.35); font-size: 12px; white-space: nowrap; pointer-events: none;
}

/* Popups */
.mloc-popup { position: absolute; left: 0; top: 0; padding-bottom: 11px; cursor: auto; user-select: text; -webkit-user-select: text; }
.mloc-popup__wrap { background: #fff; color: #333; border-radius: 12px; box-shadow: 0 3px 14px rgba(0,0,0,.4); text-align: left; overflow: hidden; }
.mloc-popup__content { margin: .8rem 1.6rem .8rem 1rem; line-height: 1.4; font-size: 13px; overflow-wrap: anywhere; }
.mloc-popup__content a { color: var(--mloc-accent, #1f5f8b); }
.mloc-popup__tip {
	position: absolute; left: 50%; bottom: 0; width: 17px; height: 17px; margin-left: -8.5px; overflow: hidden; pointer-events: none;
}
.mloc-popup__tip::before {
	content: ""; position: absolute; left: 3px; top: -9px; width: 11px; height: 11px; background: #fff;
	transform: rotate(45deg); box-shadow: 0 3px 14px rgba(0,0,0,.4);
}
.mloc-popup__close {
	position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: #666; font: 20px/24px system-ui, sans-serif; cursor: pointer; z-index: 2;
}
.mloc-popup__close:hover { color: #222; background: rgba(0,0,0,.06); }
.mloc-card-popup .mloc-popup__content { margin: 0; line-height: inherit; }
.mloc-card-popup .mloc-popup__content p { margin: 0 0 .35rem; }
.mloc-card-popup .mloc-popup__close { top: 6px; right: 6px; width: 26px; height: 26px; color: #fff; background: rgba(0,0,0,.45); }
.mloc-card-popup .mloc-popup__close:hover { background: rgba(0,0,0,.65); color: #fff; }
.mloc-card-popup:not(:has(.has-image)) .mloc-popup__close { background: transparent; color: #555; }

/* Measuring: only the measurement itself is clickable. */
.mloc-measuring { cursor: crosshair !important; }
.mloc-measuring .mloc-mv__pane--overlay *, .mloc-measuring .mloc-mv__pane--marker *, .mloc-measuring .mloc-mv__pane--shape * { pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) { .mloc-mv-tile { transition: none; } }
@media print { .mloc-mv__controls .mloc-mv-zoom, .mloc-mv__controls .mloc-fullscreen, .mloc-mv__controls .mloc-measure { display: none; } }
