/* ==========================================================
🪟 CLS MAP MODAL — FINAL (PLUGIN READY)
FILE: 10-modal-popup.css
========================================================== */


/* ==========================================================
🌑 MODAL OVERLAY
========================================================== */

.cls-map-modal {

    position: fixed;
    inset: 0;
    z-index: 9999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background: radial-gradient(
        circle at center,
        rgba(15, 23, 42, 0.65),
        rgba(2, 6, 23, 0.95)
    );

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease;
}

.cls-map-modal.active {
    opacity: 1;
    pointer-events: auto;
}


/* ==========================================================
📦 MODAL BOX
========================================================== */

.cls-map-box {

    width: 100%;
    max-width: 1100px;
    height: 90vh;

    border-radius: 20px;
    overflow: hidden;

    display: grid;
    grid-template-rows: auto 1fr auto;

    background: #0f172a;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.55),
        0 10px 30px rgba(79,107,255,0.25);

    transform: scale(0.96) translateY(20px);
    opacity: 0;

    transition: all 0.3s ease;
}

.cls-map-modal.active .cls-map-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}


/* ==========================================================
🧠 HEADER
========================================================== */

.cls-map-header {

    height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    background: rgba(255,255,255,0.04);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cls-map-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}


/* CLOSE BUTTON */

.cls-map-close {

    width: 36px;
    height: 36px;

    border-radius: 50%;
    border: none;

    background: rgba(255,255,255,0.08);
    color: #fff;

    cursor: pointer;

    transition: all 0.25s ease;
}

.cls-map-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}


/* ==========================================================
🗺️ MAP AREA
========================================================== */

.cls-map-inner {

    width: 100%;
    height: 100%;

    position: relative;
    overflow: hidden;
}

/* Google Map Fix */
.cls-map-inner > div {
    width: 100% !important;
    height: 100% !important;
}


/* ==========================================================
📊 FOOTER (ULTRA FIXED)
========================================================== */

.cls-map-footer {

    min-height: 72px;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.98),
        rgba(2, 6, 23, 1)
    );

    border-top: 1px solid rgba(255,255,255,0.08);

    position: relative;
    z-index: 20;
}


/* INFO TEXT */

.cls-map-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* second line ko break karne ke liye */
.cls-map-footer-info div {
    width: 100%;
}

.cls-map-footer-info strong {
    color: #ffffff;
    font-weight: 600;
}

.cls-map-footer-info div {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}


/* BUTTON */

.cls-map-action {

    flex-shrink: 0;

    background: linear-gradient(135deg, #4f6bff, #7a5cff);
    color: #fff;

    padding: 8px 14px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    box-shadow: 0 6px 18px rgba(79,107,255,0.35);

    transition: all 0.25s ease;
}

.cls-map-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79,107,255,0.45);
}


/* ==========================================================
🔒 BODY LOCK
========================================================== */

body.cls-modal-open {
    overflow: hidden;
}


/* ==========================================================
📱 MOBILE
========================================================== */

@media (max-width: 768px) {

    /* FULLSCREEN MODAL */
    .cls-map-modal {
        padding: 0;
    }

    .cls-map-box {
        height: 100vh;
        width: 100%;
        border-radius: 0;

        grid-template-rows: 52px 1fr auto;
    }

    /* HEADER COMPACT */
    .cls-map-header {
        height: 52px;
        padding: 0 12px;
    }

    .cls-map-title {
        font-size: 13px;
    }

    .cls-map-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* MAP FULL HEIGHT FIX */
    .cls-map-inner {
        min-height: 0;
    }

    /* ======================================================
    📊 FOOTER (MOBILE OPTIMIZED)
    ====================================================== */

    .cls-map-footer {

        flex-direction: column;
        align-items: stretch;

        gap: 10px;
        padding: 10px 12px;

        min-height: auto;
    }

    /* INFO BLOCK */
    .cls-map-footer-info {

        max-width: 100%;
        font-size: 13px;
        line-height: 1.4;
    }

    .cls-map-footer-info strong {
        font-size: 14px;
    }

    .cls-map-footer-info div {
        font-size: 11px;
    }

    /* BUTTON FULL WIDTH (THUMB FRIENDLY) */
    .cls-map-action {

        width: 100%;
        text-align: center;

        padding: 10px 14px;
        font-size: 14px;

        border-radius: 12px;
    }

    /* TOUCH FEEDBACK */
    .cls-map-action:active {
        transform: scale(0.98);
    }
}