/**
 * Nelb Dark Map - stili contenitore, marker e popup (Leaflet).
 */

.nelb-dark-map-wrap {
	position: relative;
	width: 100%;
	line-height: 0;
}

.nelb-dark-map {
	width: 100%;
	height: 450px;
	min-height: 150px;
	background-color: #1a1a1a;
	z-index: 0;
}

/* Sfondo dark mentre i tile caricano. */
.nelb-dark-map .leaflet-container {
	background-color: #1a1a1a;
}

/* Avviso in editor. */
.nelb-dark-map-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	box-sizing: border-box;
	background-color: #1a1a1a;
	color: #c9c9c9;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	border: 1px dashed #444;
}

/* Pin SVG: nessuno sfondo dal divIcon. */
.nelb-pin {
	background: transparent;
	border: 0;
}

/* Animazione di caduta del marker. */
.nelb-pin-drop {
	animation: nelb-drop 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes nelb-drop {
	0% {
		transform: translateY(-220px);
		opacity: 0;
	}
	60% {
		opacity: 1;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Popup coerente col tema. */
.nelb-dark-map-info {
	color: #1a1a1a;
	font-size: 14px;
	line-height: 1.5;
	padding: 2px 2px;
	max-width: 240px;
}

.nelb-dark-map .leaflet-popup-content-wrapper {
	border-radius: 6px;
}

/* Attribuzione discreta sul tema scuro. */
.nelb-dark-map .leaflet-control-attribution {
	background: rgba(0, 0, 0, 0.55);
	color: #b9b9b9;
	font-size: 10px;
	padding: 1px 6px;
}

.nelb-dark-map .leaflet-control-attribution a {
	color: #cfcfcf;
}

/* Controlli zoom in stile dark. */
.nelb-dark-map .leaflet-bar a {
	background-color: #2a2a2a;
	color: #eaeaea;
	border-bottom-color: #3a3a3a;
}

.nelb-dark-map .leaflet-bar a:hover {
	background-color: #383838;
}

@media (max-width: 767px) {
	.nelb-dark-map {
		touch-action: pan-y;
	}
}
