/**
 * Location Map - CSS Styles
 */

/* Map Container */
.location-map-container {
    position: relative;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Map Element */
.location-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Info Window Content */
.location-info-window {
    padding: 5px;
    min-width: 150px;
}

.location-info-window h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Info Window Override Google Styles */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-tc::after {
    background: linear-gradient(45deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0) 100%);
}

/* Close button styling */
.gm-style .gm-ui-hover-effect {
    opacity: 0.6 !important;
    top: 2px !important;
    right: 2px !important;
}

.gm-style .gm-ui-hover-effect:hover {
    opacity: 1 !important;
}

/* Error and Notice Messages */
.location-map-error,
.location-map-notice {
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.location-map-error {
    background: #ffebee;
    border-color: #c62828;
    color: #c62828;
}

.location-map-notice {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.location-map-error a,
.location-map-notice a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.location-map-error a:hover,
.location-map-notice a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .location-map-container {
        margin: 15px 0;
    }
    
    .location-map {
        min-height: 350px;
    }
    
    .location-info-window h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .location-map {
        min-height: 300px;
    }
}

/* Loading State */
.location-map.loading {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-map.loading::before {
    content: 'Loading map...';
    color: #666;
    font-size: 14px;
}

/* Marker Cluster Customization */
.cluster {
    background: #4285f4;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 40px;
}
