.m4m-map-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.m4m-map {
	width: 100%;
	min-height: 360px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 18px 50px -18px rgba(11, 41, 91, 0.55);
	background: #0f2a5c;
}

.m4m-map .leaflet-control-zoom a {
	border-radius: 10px !important;
	color: #0f2a5c !important;
}

/* ---------- Marker ---------- */
.m4m-pin {
	position: relative;
	width: 54px;
	height: 54px;
	cursor: pointer;
	transform: translate(0, 0);
}

.m4m-pin__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--m4m-accent, #1c6fd1);
	opacity: 0.35;
	animation: m4m-pulse 2.2s ease-out infinite;
}

.m4m-pin__body {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--m4m-accent, #1c6fd1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	transition: transform 0.2s ease;
}

.m4m-pin:hover .m4m-pin__body {
	transform: scale(1.08);
}

.m4m-pin__badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--m4m-accent, #1c6fd1);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

@keyframes m4m-pulse {
	0% {
		transform: scale(0.7);
		opacity: 0.5;
	}
	70% {
		transform: scale(1.9);
		opacity: 0;
	}
	100% {
		transform: scale(1.9);
		opacity: 0;
	}
}

.m4m-fade-marker-enter {
	animation: m4m-drop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes m4m-drop {
	0% {
		transform: translateY(-28px) scale(0.4);
		opacity: 0;
	}
	100% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

/* ---------- Hint banner ---------- */
.m4m-hint {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 500;
	background: rgba(15, 42, 92, 0.92);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
	max-width: 90%;
	text-align: center;
}

.m4m-hint.is-hidden {
	opacity: 0;
	transform: translate(-50%, -8px);
}

/* ---------- Modal / Card ---------- */
.m4m-overlay {
	position: fixed;
	inset: 0;
	background: rgba(9, 22, 48, 0.68);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	padding: 20px;
}

.m4m-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.m4m-card {
	background: #fff;
	width: 100%;
	max-width: 640px;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 22px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
	transform: translateY(24px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.m4m-overlay.is-open .m4m-card {
	transform: translateY(0) scale(1);
}

.m4m-card__media {
	position: relative;
	width: 100%;
	max-height: 62vh;
	background: #0f2a5c;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.m4m-card__media img {
	width: 100%;
	height: auto;
	max-height: 62vh;
	object-fit: contain;
	display: block;
}

.m4m-card__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(15, 42, 92, 0.85);
	color: #fff;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.m4m-card__close:hover {
	background: #0b3d91;
	transform: scale(1.06);
}

.m4m-card__badge {
	position: absolute;
	bottom: 14px;
	left: 16px;
	background: var(--m4m-accent, #1c6fd1);
	color: #fff;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.m4m-card__body {
	padding: 22px 26px 26px;
}

.m4m-card__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	color: #0f2a5c;
}

.m4m-card__subtitle {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--m4m-accent, #1c6fd1);
	text-transform: uppercase;
}

.m4m-card__content {
	font-size: 14.5px;
	line-height: 1.6;
	color: #35405a;
}

.m4m-card__content ul {
	margin: 0 0 14px;
	padding-left: 20px;
}

.m4m-card__content li {
	margin-bottom: 8px;
}

.m4m-card__content p {
	margin: 0 0 12px;
}

.m4m-card__content a {
	color: var(--m4m-accent, #1c6fd1);
	font-weight: 600;
}

.m4m-card__cta {
	margin-top: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #0f2a5c, #1c6fd1);
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 12px 24px -8px rgba(28, 111, 209, 0.6);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m4m-card__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -8px rgba(28, 111, 209, 0.7);
}

.m4m-card__cta svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 600px) {
	.m4m-card {
		max-height: 92vh;
		border-radius: 18px;
	}
	.m4m-card__body {
		padding: 18px 18px 22px;
	}
	.m4m-hint {
		font-size: 12px;
		padding: 8px 14px;
	}
}
