/**
 * Bam Bam Dive Map — ThemeREX / Elementor friendly.
 */

.bbd-dive-map-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.bbd-dive-map__canvas {
	width: 100%;
	height: auto;
	min-height: 280px;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f0f4f8;
	z-index: 1;
}

/* Leaflet container */
.bbd-dive-map__canvas .leaflet-container {
	font-family: inherit;
	font-size: 14px;
}

/* Custom markers — brand #306778, larger + pulse */
.bbd-dive-map-marker.leaflet-div-icon,
.bbd-dive-map-marker.leaflet-marker-icon {
	background: transparent !important;
	border: none !important;
	margin: 0 !important;
	overflow: visible !important;
}

.bbd-dive-map-marker .bbd-dive-map-marker__shape {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	box-sizing: border-box;
}

.bbd-dive-map-marker .bbd-dive-map-marker__ripple {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	margin-top: -17px;
	border-radius: 50%;
	background: rgba(48, 103, 120, 0.45);
	animation: bbd-dive-map-pulse 2.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
	pointer-events: none;
	z-index: 0;
}

.bbd-dive-map-marker .bbd-dive-map-marker__dot {
	position: relative;
	z-index: 1;
	display: block;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	background-color: #306778;
	border: 4px solid #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.leaflet-marker-icon.bbd-dive-map-marker:hover .bbd-dive-map-marker__dot,
.bbd-dive-map-marker.leaflet-marker-icon:hover .bbd-dive-map-marker__dot {
	transform: scale(1.14);
}

@keyframes bbd-dive-map-pulse {
	0% {
		transform: scale(0.75);
		opacity: 0.85;
	}
	70% {
		opacity: 0.2;
	}
	100% {
		transform: scale(2.35);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbd-dive-map-marker .bbd-dive-map-marker__ripple {
		animation: none !important;
		opacity: 0;
	}
}

.bbd-dive-map-popup {
	min-width: 200px;
	max-width: 300px;
}

.bbd-dive-map-popup__img-wrap {
	display: block;
	margin: 0 0 10px;
	overflow: hidden;
	border-radius: 3px;
}

.bbd-dive-map-popup__img-wrap img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
	object-fit: cover;
	max-height: 160px;
}

.bbd-dive-map-popup__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.bbd-dive-map-popup__title a {
	text-decoration: none;
	color: inherit;
}

.bbd-dive-map-popup__title a:hover {
	text-decoration: underline;
}

.bbd-dive-map-popup__excerpt {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.bbd-dive-map-popup__more {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
}

.bbd-dive-map-popup__more a {
	color: #50a9af;
	text-decoration: none;
}

.bbd-dive-map-popup__more a:hover {
	text-decoration: underline;
	color: #306778;
}

.leaflet-popup-content-wrapper.bbd-dive-map-leaflet-popup {
	border-radius: 6px;
}

@media (max-width: 600px) {
	.bbd-dive-map__canvas {
		min-height: 260px;
	}
}
