/* =================================== */
/* COMPONENT: IMAGES                   */
/* =================================== */

/* Remove rounded corners from img-fluid */
.img-fluid {
    border-radius: 0 !important;
}

/* Property images - Liste des biens */
.property-image {
    background: #f8f9fa;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.property-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Fix iOS Safari image display issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.property-image i {
    color: var(--gray-500);
    font-size: 3rem;
}

/* Carousel dans les cartes de biens */
.carousel-card {
    width: 100%;
    height: 100%;
}

.carousel-card .carousel-inner {
    height: 100%;
}

.carousel-card .carousel-item {
    height: 100%;
}

.carousel-card .carousel-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Fix iOS Safari image display issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-card .carousel-control-prev,
.carousel-card .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-card:hover .carousel-control-prev,
.carousel-card:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-card .carousel-control-prev-icon,
.carousel-card .carousel-control-next-icon {
    width: 25px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    background-size: 50%;
}

/* Gallery images - Base générale */
.gallery-image {
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Fix iOS Safari image display issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.gallery-image i {
    color: var(--gray-500);
    font-size: 3rem;
}

.gallery-image .text-center {
    color: var(--gray-500);
}

/* Image preview utility */
.img-preview {
    height: 100px;
    object-fit: contain;
}

/* Image thumbnail utility */
.img-thumbnail-sm {
    width: 60px;
    height: 45px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-image {
        height: 400px;
    }

    .gallery-image i {
        font-size: 2rem;
    }

    .property-image {
        height: 250px;
    }

    /* Carousel toujours visible sur mobile (pas de hover) */
    .carousel-card .carousel-control-prev,
    .carousel-card .carousel-control-next {
        opacity: 0.7;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        height: 300px;
    }

    .gallery-image i {
        font-size: 1.5rem;
    }

    .property-image {
        height: 220px;
    }
}

/* =================================== */
/* FOUNDER IMAGE                       */
/* =================================== */
.founder-image-container {
    width: 100%;
    max-width: 280px !important; /* Force correct size */
    margin: 0 auto;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    /* Clean shadow without frame/padding */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    transition: transform var(--transition-normal);
}

.founder-image-container img {
    width: 100%;
    height: auto;
    display: block;
    /* No double border radius needed as container clips overflow */
}

.founder-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
