/* Interactive historical maps – public map */
.ihm-map-wrap {
	position: relative;
	width: 100%;
	margin: 0 auto;
}
.ihm-map {
	position: relative;
	width: 100%;
	height: 0;                 /* height comes from padding-bottom (image aspect ratio) */
	background: #fff;
	border: 1px solid #d9d2c5;
	border-radius: 4px;
	overflow: hidden;
	touch-action: none;
}
.ihm-map .leaflet-container {
	font-family: inherit;
	background: #fff;
}
.ihm-map .ihm-image {
	image-rendering: auto;
}

/* markers */
.ihm-marker-wrap { background: none; border: 0; }
.ihm-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 50%;
	background: #fffdf7;
	border: 2px solid var(--ihm-color, #333);
	color: var(--ihm-color, #333);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: transform .12s ease;
}
.ihm-marker svg { width: 70%; height: 70%; display: block; }
.leaflet-marker-icon:hover .ihm-marker,
.leaflet-marker-icon:focus .ihm-marker { transform: scale(1.18); }
.leaflet-marker-icon:focus { outline: 2px solid #1f6fd1; outline-offset: 2px; border-radius: 50%; }

/* lines */
.ihm-line-hit { cursor: pointer; }
.ihm-map path.leaflet-interactive:focus { outline: none; }
.ihm-line { pointer-events: none; }

/* tooltip */
.leaflet-tooltip.ihm-tooltip {
	direction: rtl;
	font-size: 14px;
	line-height: 1.4;
	padding: 5px 10px;
	background: #2b2118;
	color: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	white-space: nowrap;
}
.leaflet-tooltip.ihm-tooltip::before { border-top-color: #2b2118; }
.leaflet-tooltip-top.ihm-tooltip::before { border-top-color: #2b2118; }

/* zoom control on the right for RTL pages */
.ihm-map .leaflet-top.leaflet-left { left: auto; right: 0; }
.ihm-map .leaflet-control-zoom { margin: 10px; }

@media (max-width: 600px) {
	.leaflet-tooltip.ihm-tooltip { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.ihm-marker { transition: none; }
}
.ihm-map.ihm-geo-map{padding-bottom:0!important;min-height:520px;background:#eee8de}
.ihm-geo-info{font-family:inherit;line-height:1.7;min-width:120px;color:#2f241b}
.ihm-geo-info strong{font-size:16px}
.ihm-map.ihm-geo-map .leaflet-popup-content{margin:12px 16px}
@media (max-width:640px){.ihm-map.ihm-geo-map{height:560px!important;min-height:480px}}
