/* ============================================
   POPUP CARTE - Style amélioré
   ============================================ */

.mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.mapboxgl-popup-close-button {
    font-size: 20px;
    padding: 4px 8px;
    color: #666;
    z-index: 10;
}

.mapboxgl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.map-popup {
    min-width: 220px;
    max-width: 300px;
}

.map-popup__photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.map-popup__content {
    padding: 12px;
}

.map-popup__location {
    font-size: 13px;
    font-weight: 600;
    color: #1a4d7c;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Liste des lots */
.map-popup__lots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.map-popup__lot {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.map-popup__lot::before {
    content: "•";
    color: #1a4d7c;
    font-weight: bold;
    margin-right: 8px;
}

.map-popup__lot:hover {
    background: #1a4d7c;
}

.map-popup__lot:hover::before {
    color: white;
}

.map-popup__lot:hover .map-popup__lot-surface,
.map-popup__lot:hover .map-popup__lot-price {
    color: white;
}

.map-popup__lot-surface {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.map-popup__lot-separator {
    margin: 0 8px;
    color: #999;
}

.map-popup__lot-price {
    font-size: 13px;
    font-weight: 600;
    color: #d4a017;
}

/* Scrollbar pour la liste */
.map-popup__lots::-webkit-scrollbar {
    width: 4px;
}

.map-popup__lots::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.map-popup__lots::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.map-popup__lots::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* ========================================
   CORRECTIONS SMARTPHONE - MAP POPUP
   Audit Janvier 2026
   ======================================== */

@media (max-width: 480px) {
    .map-popup {
        min-width: 200px;
        max-width: 280px;
    }
    
    .map-popup__photo {
        height: 100px;
    }
    
    .map-popup__content {
        padding: 10px;
    }
    
    .map-popup__location {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .map-popup__lot {
        padding: 6px 8px;
    }
    
    .map-popup__lot-surface,
    .map-popup__lot-price {
        font-size: 12px;
    }
    
    .map-popup__lots {
        max-height: 150px;
    }
}

@media (max-width: 374px) {
    .map-popup {
        min-width: 180px;
        max-width: 250px;
    }
    
    .map-popup__photo {
        height: 80px;
    }
    
    .map-popup__content {
        padding: 8px;
    }
    
    .map-popup__location {
        font-size: 11px;
    }
    
    .map-popup__lot-surface,
    .map-popup__lot-price {
        font-size: 11px;
    }
}
