﻿/* LeafletMap.css */

.map-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #f7fafc;
    position: relative;
    z-index: 1;
}

.map-blur {
    filter: blur(4px);
    pointer-events: none;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.location-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2d3748;
    font-size: 15px;
    font-weight: 500;
}

    .location-address .section-icon {
        color: #667eea;
        font-size: 18px;
    }

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

    .btn-directions:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .btn-directions i {
        font-size: 16px;
    }

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.location-item {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .location-item:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
    }

    .location-item .location-address {
        margin-bottom: 0.5rem;
    }

.location-title {
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }

    .location-info {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-directions {
        justify-content: center;
    }
}
