﻿.map-container {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
    background: #f8fafc;
    position: relative;
}

/* ---------- Loading Overlay ---------- */
.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1000;
    backdrop-filter: blur(2px);
    border-radius: 16px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e2e8f0;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 14px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Optional: blur map while loading */
.map-blur {
    filter: blur(3px);
    pointer-events: none;
}

/* ---------- Location Info ---------- */

.location-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: white;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

    .location-address i {
        color: #667eea;
        font-size: 1.3rem;
    }

/* ---------- Directions Button ---------- */
.btn-directions {
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

    .btn-directions:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    }

    .btn-directions:active {
        transform: translateY(0);
    }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .location-info {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-directions {
        justify-content: center;
        width: 100%;
    }

    .map-container {
        height: 300px;
    }
}
.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* or whatever height your map should be */
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.map-container {
    width: 100%;
    height: 100%;
}