/* Map Styles */
.location-map {
    position: relative;
    background: #f0f0f0;
    min-height: 500px;
}

.location-map.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-map.loading::after {
    content: 'Loading map...';
    color: #666;
    font-size: 1rem;
}

/* Map Info Window Styles */
.map-info-window {
    padding: 10px;
    max-width: 250px;
}

.map-info-window h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002855;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.map-info-window p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.map-directions-link {
    display: inline-block;
    padding: 6px 12px;
    background: #0855A1;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
}

.map-directions-link:hover {
    background: #064478;
    color: white;
}

/* Custom Map Controls */
.map-custom-control {
    background: white;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    margin: 10px;
    text-align: center;
    padding: 8px 12px;
}

.map-custom-control:hover {
    background: #f7f7f7;
}

/* Map Legend */
.map-legend {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    margin: 10px;
    padding: 10px;
}

.map-legend h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.map-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #666;
}

.map-legend-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
}

/* Map Error State */
.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: #f8f9fa;
    text-align: center;
    padding: 2rem;
}

.map-error-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.map-error-message {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.map-error-link {
    color: #0855A1;
    text-decoration: none;
    font-weight: 500;
}

.map-error-link:hover {
    text-decoration: underline;
}

/* Responsive Map */
@media (max-width: 767px) {
    .location-map {
        min-height: 350px;
    }
    
    .map-info-window {
        max-width: 200px;
    }
    
    .map-info-window h3 {
        font-size: 1rem;
    }
    
    .map-info-window p {
        font-size: 0.85rem;
    }
}