.cherry-osm-map-wrap {
	position: relative;
	max-width: 100%;
	--cherry-osm-brand: #c1121f;
	--cherry-osm-brand-hover: #d7263d;
}

.cherry-osm-map {
	max-width: 100%;
}

.cherry-osm-map__empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.88);
	z-index: 500;
	text-align: center;
	pointer-events: none;
}

.cherry-osm-map__empty.is-hidden {
	display: none;
}

.cherry-osm-map__empty-message {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #1d2327;
}

.cherry-osm-map__skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 1000;
}

.cherry-osm-map__skip-link:focus {
	position: absolute;
	left: 12px;
	top: 12px;
	width: auto;
	height: auto;
	padding: 8px 12px;
	background: #fff;
	border: 2px solid var(--cherry-osm-brand);
	border-radius: 4px;
	color: #1d2327;
	text-decoration: none;
	font-weight: 600;
}

.cherry-osm-map__end {
	display: block;
	height: 0;
	overflow: hidden;
}

.cherry-osm-map-wrap .leaflet-popup-content-wrapper {
	background: var(--cherry-osm-popup-bg, #ffffff);
	color: var(--cherry-osm-popup-text-color, #1d2327);
	border-radius: var(--cherry-osm-popup-radius, 12px);
	box-shadow: var(--cherry-osm-popup-shadow, 0 4px 16px rgba(0, 0, 0, 0.15));
	padding: 0;
}

.cherry-osm-map-wrap .leaflet-popup-tip {
	background: var(--cherry-osm-popup-bg, #ffffff);
	color: var(--cherry-osm-popup-text-color, #1d2327);
	border-radius: 0;
	box-shadow: none;
}

.cherry-osm-map-wrap .leaflet-popup-content {
	margin: 0;
	padding: var(--cherry-osm-popup-padding, 12px);
	width: var(--cherry-osm-popup-width, 280px) !important;
	max-width: calc(100vw - 48px);
	box-sizing: border-box;
	line-height: 1.5;
	font-size: var(--cherry-osm-popup-address-size, 14px);
	min-height: 0;
}

.cherry-osm-map-wrap .leaflet-popup-content p {
	margin: 0;
}

.cherry-osm-map-wrap .leaflet-container a.leaflet-popup-close-button {
	color: var(--cherry-osm-popup-text-color, #1d2327);
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup {
	margin: 0;
	font-size: var(--cherry-osm-popup-address-size, 14px);
	line-height: 1.5;
	min-width: 0;
	color: var(--cherry-osm-popup-text-color, #1d2327);
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup__title {
	display: block;
	margin: 0 0 6px;
	font-size: var(--cherry-osm-popup-title-size, 15px);
	font-weight: 600;
	line-height: 1.35;
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup__description {
	display: block;
	margin: 0 0 8px;
	font-size: var(--cherry-osm-popup-address-size, 13px);
	line-height: 1.45;
	opacity: 0.9;
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup__address {
	display: block;
	font-size: var(--cherry-osm-popup-address-size, 13px);
	font-weight: 400;
	line-height: 1.45;
	opacity: 0.8;
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup__address-line + .cherry-osm-popup__address-line {
	margin-top: 2px;
}

.cherry-osm-map-wrap .leaflet-popup-content p.cherry-osm-popup__actions {
	margin: 10px 0 0;
}

.cherry-osm-map-wrap .leaflet-popup-content p.cherry-osm-popup__actions + p.cherry-osm-popup__actions {
	margin-top: 8px;
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action {
	display: inline-block;
	text-decoration: none;
	transition: all var(--cherry-osm-popup-action-transition, 0.3s ease);
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--link {
	color: var(--cherry-osm-popup-link-color, var(--cherry-osm-brand));
	font-weight: var(--cherry-osm-popup-link-font-weight, 500);
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--link:hover,
.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--link:focus {
	color: var(--cherry-osm-popup-link-hover-color, var(--cherry-osm-brand-hover));
	text-decoration: underline;
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: var(--cherry-osm-popup-button-padding, 8px 14px);
	border: 0;
	border-radius: var(--cherry-osm-popup-button-radius, 8px);
	background: var(--cherry-osm-popup-button-bg, var(--cherry-osm-brand));
	color: var(--cherry-osm-popup-button-text, #ffffff);
	text-align: center;
	line-height: 1.35;
	font-weight: var(--cherry-osm-popup-button-font-weight, 500);
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--button:hover,
.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--button:focus {
	background: var(--cherry-osm-popup-button-hover-bg, var(--cherry-osm-brand-hover));
	color: var(--cherry-osm-popup-button-text, #ffffff);
	text-decoration: none;
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--button-outline {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: var(--cherry-osm-popup-button-padding, 8px 14px);
	border: 2px solid var(--cherry-osm-popup-link-color, var(--cherry-osm-brand));
	border-radius: var(--cherry-osm-popup-button-radius, 8px);
	background: transparent;
	color: var(--cherry-osm-popup-link-color, var(--cherry-osm-brand));
	text-align: center;
	line-height: 1.35;
	font-weight: var(--cherry-osm-popup-button-font-weight, 500);
}

.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--button-outline:hover,
.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__action--button-outline:focus {
	background: var(--cherry-osm-popup-button-outline-hover-bg, #fdf2f3);
	color: var(--cherry-osm-popup-link-hover-color, var(--cherry-osm-brand-hover));
	border-color: var(--cherry-osm-popup-link-hover-color, var(--cherry-osm-brand-hover));
	text-decoration: none;
}

/* Legacy class aliases */
.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__link,
.cherry-osm-map-wrap .leaflet-container a.cherry-osm-popup__directions {
	color: var(--cherry-osm-popup-link-color, var(--cherry-osm-brand));
	font-weight: var(--cherry-osm-popup-link-font-weight, 500);
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup--card p.cherry-osm-popup__actions + p.cherry-osm-popup__actions {
	margin-top: 8px;
}

.cherry-osm-map-wrap .leaflet-popup-content .cherry-osm-popup--compact .cherry-osm-popup__address--compact {
	opacity: 0.85;
}

/* Marker clusters — cherry brand (replaces default green MarkerCluster.Default.css) */
.cherry-osm-map-wrap .leaflet-marker-icon.cherry-osm-cluster,
.cherry-osm-map .leaflet-marker-icon.cherry-osm-cluster {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
	max-width: none !important;
	max-height: none !important;
	background: transparent !important;
	border: 0 !important;
}

.leaflet-marker-icon.marker-cluster:not(.cherry-osm-cluster) div {
	width: auto;
	height: auto;
	margin: 0;
	background: transparent;
	background-color: transparent;
}

.cherry-osm-map-wrap .cherry-osm-cluster.marker-cluster span,
.cherry-osm-map .cherry-osm-cluster.marker-cluster span {
	line-height: 1;
}

.cherry-osm-map-wrap .cherry-osm-cluster__shell,
.cherry-osm-map .cherry-osm-cluster__shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--cherry-osm-cluster-outer, rgba(193, 18, 31, 0.28));
	overflow: visible;
}

.cherry-osm-map-wrap .cherry-osm-cluster__inner,
.cherry-osm-map .cherry-osm-cluster__inner {
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(193, 18, 31, 0.35);
}

.cherry-osm-map-wrap .cherry-osm-cluster__inner--image,
.cherry-osm-map .cherry-osm-cluster__inner--image {
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
}

.cherry-osm-map-wrap .cherry-osm-cluster__inner span,
.cherry-osm-map .cherry-osm-cluster__inner span {
	position: relative;
	z-index: 1;
	line-height: 1;
}

.cherry-osm-map-wrap .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::before,
.cherry-osm-map .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::before,
.cherry-osm-map-wrap .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::after,
.cherry-osm-map .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--cherry-osm-cluster-pulse, rgba(193, 18, 31, 0.45));
	pointer-events: none;
}

.cherry-osm-map-wrap .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::before,
.cherry-osm-map .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::before {
	animation: cherry-osm-cluster-pulse 2.2s ease-out infinite;
}

.cherry-osm-map-wrap .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::after,
.cherry-osm-map .cherry-osm-cluster--pulse .cherry-osm-cluster__shell::after {
	animation: cherry-osm-cluster-pulse 2.2s ease-out 1.1s infinite;
}

@keyframes cherry-osm-cluster-pulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}

	70% {
		transform: scale(1.5);
		opacity: 0;
	}

	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

.cherry-osm-map-wrap .cherry-osm-cluster--medium .cherry-osm-cluster__inner,
.cherry-osm-map .cherry-osm-cluster--medium .cherry-osm-cluster__inner {
	font-size: 14px;
}

.cherry-osm-map-wrap .cherry-osm-cluster--large .cherry-osm-cluster__inner,
.cherry-osm-map .cherry-osm-cluster--large .cherry-osm-cluster__inner {
	font-size: 15px;
}

.leaflet-gesture-handling-scroll-warning {
	background: rgba(255, 255, 255, 0.94) !important;
	color: #1d2327 !important;
	border: 1px solid #e5e7eb !important;
	border-top: 3px solid var(--cherry-osm-brand) !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	padding: 12px 16px !important;
}
