/* Fix Chrome tile borderlines and spacing issues */
.leaflet-tile {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-perspective: 1000;
	perspective: 1000px;
	display: block !important;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

.leaflet-tile-container {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	outline: none !important;
}

.leaflet-tile-pane {
	width: 100% !important;
	height: 100% !important;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.leaflet-layer,
.leaflet-tile,
.leaflet-tile-container img {
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	outline: none !important;
	box-sizing: border-box !important;
}

.leaflet-container {
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.leaflet-tile-pane > div {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Map Container */
#map {
	height: 600px;
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

/* MarkerCluster Styles */
.marker-cluster-small {
	background-color: rgba(181, 226, 140, 0.6);
	border-radius: 20px;
}

.marker-cluster-small div {
	background-color: rgba(110, 204, 57, 0.6);
	border-radius: 15px;
}

.marker-cluster-medium {
	background-color: rgba(241, 211, 87, 0.6);
	border-radius: 25px;
}

.marker-cluster-medium div {
	background-color: rgba(240, 194, 12, 0.6);
	border-radius: 20px;
}

.marker-cluster-large {
	background-color: rgba(253, 156, 115, 0.6);
	border-radius: 30px;
}

.marker-cluster-large div {
	background-color: rgba(241, 128, 23, 0.6);
	border-radius: 30px;
}

.marker-cluster div span {
	color: #333;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.map-controls {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.campsite-info-window {
	max-width: 300px;
}

.campsite-info-window h6 {
	margin: 0 0 10px 0;
	color: #2c5aa0;
	font-weight: 600;
}

.campsite-info-window .location {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 8px;
}

.campsite-info-window .distance {
	color: #28a745;
	font-weight: bold;
	font-size: 0.9em;
	margin-bottom: 10px;
}

.campsite-info-window .campsite-link {
	color: #2c5aa0;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.campsite-info-window .campsite-link:hover {
	border-bottom-color: #2c5aa0;
}

.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
	#map {
		height: 450px;
		border-radius: 8px;
	}
	
	.campsite-info-window {
		max-width: 250px;
	}
	
	.map-controls {
		padding: 15px;
	}
}

@media (max-width: 480px) {
	#map {
		height: 350px;
		border-radius: 6px;
	}
	
	.campsite-info-window {
		max-width: 200px;
	}
	
	.campsite-info-window h6 {
		font-size: 0.9em;
	}
	
	.map-controls {
		padding: 12px;
		margin-bottom: 15px;
	}
}
