/* 📍 LOCATION PERMISSION MODAL - BOTTOM RIGHT NOTIFICATION */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.location-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    padding: 24px;
    pointer-events: all;
    animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.location-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94a3b8;
}

.location-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.location-modal-close i {
    font-size: 14px;
}

.location-modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.location-modal-icon i {
    font-size: 24px;
    color: #fff;
}

.location-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 6px;
}

.location-modal-subtitle {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.location-modal-benefits {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.location-modal-benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.location-modal-benefit:last-child {
    margin-bottom: 0;
}

.location-modal-benefit i {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.location-modal-benefit span {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
}

.location-modal-privacy {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.location-modal-fallback {
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.location-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.location-modal-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.location-modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.location-modal-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.location-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.15);
}

.location-modal-btn i {
    font-size: 16px;
}

/* Loading State */
.location-modal-loading {
    text-align: center;
    padding: 20px;
}

.location-modal-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.location-modal-loading-text {
    color: #94a3b8;
    font-size: 14px;
}

/* Mobile Responsive - Bottom Sheet */
@media (max-width: 768px) {
    .location-modal-overlay {
        background: rgba(0, 0, 0, 0.4);
        pointer-events: all;
    }
    
    .location-modal {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px 20px 24px;
        animation: slideUpMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        transform: translateY(100%);
    }
    
    @keyframes slideUpMobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Drag handle */
    .location-modal::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }
    
    .location-modal-close {
        top: 16px;
        right: 16px;
    }
    
    .location-modal-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
    
    .location-modal-icon i {
        font-size: 20px;
    }
    
    .location-modal-title {
        font-size: 17px;
    }
    
    .location-modal-subtitle {
        font-size: 12px;
    }
    
    .location-modal-benefit span {
        font-size: 11px;
    }
    
    .location-modal-actions {
        gap: 8px;
    }
    
    .location-modal-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Tablet - Keep bottom right */
@media (min-width: 769px) and (max-width: 1024px) {
    .location-modal {
        width: 380px;
        bottom: 20px;
        right: 20px;
    }
}
