/* Styles pour la popup de localisation Around Me */

.aroundme-location-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.aroundme-location-popup-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 600px;
    height: 90vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.aroundme-location-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    position: relative;
}

.drag-handle-wrapper {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
}

.aroundme-location-popup-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.aroundme-location-popup-header .btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aroundme-location-filters {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    background: var(--bg-white);
}

.filter-item {
    flex: 1;
}

.filter-item label {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 5px;
    display: block;
}

.filter-item select {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--color-text);
}

.users-counter {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding: 8px;
    background: var(--primary-light);
    border-radius: 8px;
}

.aroundme-location-map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Écran d'avertissement */
.aroundme-warning-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aroundme-warning-content {
    text-align: center;
    max-width: 400px;
}

.aroundme-warning-icon {
    margin-bottom: 20px;
}

.aroundme-warning-content h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.aroundme-warning-content p {
    font-size: 14px;
    line-height: 1.6;
}

.aroundme-warning-content .btn {
    min-width: 150px;
    padding: 10px 20px;
    font-size: 16px;
}

/* Dark mode */
.dark .aroundme-location-popup-content,
.dark .aroundme-location-popup-header,
.dark .aroundme-location-filters {
    background: var(--dark-bg-2);
}

.dark .filter-item select {
    background: var(--dark-bg-2);
    border-color: var(--dark-border);
}

.dark .users-counter {
    background: rgba(254, 144, 99, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aroundme-location-popup-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
    
    .aroundme-location-filters {
        flex-wrap: wrap;
    }
    
    .filter-item {
        min-width: calc(50% - 8px);
    }
}

/* Styles pour les infobulles de la carte */
.map-info-window {
    padding: 10px;
    max-width: 250px;
}

.map-info-window h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.map-info-window small {
    font-size: 12px;
}

.map-info-window .btn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 12px;
}