/* Images améliorées et lightbox */

.enhanced-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.image-loading {
    filter: blur(12px) saturate(1.05);
    transform: scale(1.02);
    opacity: 0.88;
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.image-loaded {
    filter: none;
    transform: none;
    opacity: 1;
}

/* Cartes propriétés: ratio visuel stable */
.property-card .card-img-top {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

@media (max-width: 576px) {
    .property-card .card-img-top { aspect-ratio: 4 / 3; }
}

/* Lightbox (galerie) */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    touch-action: none;
    user-select: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}