/**
 * Leaflet Routekaart Widget Styles
 */

.leaflet-routekaart-widget {
	width: 100%;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background-color: #f5f5f5;
}

/* Ensure Leaflet map is properly displayed */
.leaflet-routekaart-widget .leaflet-container {
	background-color: #e9ecef;
	font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* Leaflet control styles */
.leaflet-routekaart-widget .leaflet-control {
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.leaflet-routekaart-widget .leaflet-control-zoom {
	border-radius: 4px;
}

/* Marker popup styles */
.leaflet-routekaart-widget .leaflet-popup-content-wrapper {
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leaflet-routekaart-widget .leaflet-popup-content {
	margin: 0;
	padding: 8px 12px;
	font-size: 14px;
	color: #333;
}

.leaflet-routekaart-widget .leaflet-popup-content strong {
	font-weight: 600;
	display: block;
}

.leaflet-routekaart-widget .leaflet-popup-tip {
	background-color: #ffffff;
}

/* Polyline animation (optional) */
.leaflet-routekaart-widget .leaflet-polyline {
	transition: opacity 0.3s ease;
}

.leaflet-routekaart-widget .leaflet-polyline:hover {
	opacity: 1 !important;
}

/* Responsive design */
@media (max-width: 768px) {
	.leaflet-routekaart-widget {
		min-height: 300px;
	}

	.leaflet-routekaart-widget .leaflet-popup-content {
		font-size: 12px;
		padding: 6px 10px;
	}
}

/* Elementor Editor Preview */
.elementor-editor .leaflet-routekaart-widget {
	border: 1px dashed #999;
}

/* Autocomplete styles for Elementor repeater fields */
.leaflet-location-autocomplete {
	display: block !important;
	position: absolute !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: both !important;
	top: 100% !important;
	left: 0 !important;
}

.leaflet-autocomplete-dropdown {
	position: static !important;
	background: white !important;
	border: 1px solid #ddd !important;
	border-top: none !important;
	border-radius: 0 0 4px 4px !important;
	max-height: 250px !important;
	min-height: 40px !important;
	overflow-y: auto !important;
	z-index: 9999 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
}

.leaflet-autocomplete-item {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.leaflet-autocomplete-item:last-child {
	border-bottom: none;
}

.leaflet-autocomplete-item:hover {
	background-color: #f5f5f5;
	color: #1976d2;
}

.leaflet-autocomplete-item.selected {
	background-color: #e3f2fd;
	color: #1976d2;
	font-weight: 500;
}

.leaflet-autocomplete-loading {
	padding: 12px;
	color: #999;
	font-size: 12px;
	text-align: center;
}
