/* Dealer Locator Frontend Styles */

.dealer-locator-map-container {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.gm-style .gm-style-iw {
	padding: 0 !important;
}

.gm-style .gm-style-iw > div {
	max-width: 300px !important;
}

/* Info Window Styles */
.dealer-info-window {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	padding: 12px;
	min-width: 250px;
}

.dealer-info-window h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
	color: #23282d;
	font-weight: 600;
}

.dealer-info-window p {
	margin: 8px 0;
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

.dealer-info-window .dealer-name {
	color: #0073aa;
	font-weight: 600;
}

.dealer-info-window .dealer-address {
	color: #666;
	font-size: 12px;
}

.dealer-info-window .dealer-coords {
	color: #999;
	font-size: 11px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

/* Map marker customization (if needed) */
.dealer-marker {
	width: 30px;
	height: 40px;
	background-color: #0073aa;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.dealer-marker::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	background-color: white;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
	.gm-style .gm-style-iw {
		padding: 8px !important;
	}
	
	.dealer-info-window {
		min-width: 200px;
		padding: 10px;
	}
	
	.dealer-info-window h3 {
		font-size: 14px;
	}
	
	.dealer-info-window p {
		font-size: 12px;
	}
}

/* Loading indicator */
.map-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background-color: #f5f5f5;
	font-size: 14px;
	color: #666;
}

.map-loading::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0073aa;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error state */
.map-error {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background-color: #fff3cd;
	color: #856404;
	text-align: center;
	padding: 20px;
}
