/* Whise Integration - Styles CSS */

/* Galerie d'images */
.whise-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.whise-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whise-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.whise-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.whise-gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whise-gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Images de propriété */
.property-images {
    margin: 30px 0;
}

.property-images h2,
.property-images h3 {
    margin-bottom: 20px;
    color: #333;
}

.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Featured image */
.whise-featured-image {
    margin-bottom: 30px;
}

.whise-featured-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Descriptions multilingues */
.whise-multilingual-descriptions {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.whise-description-lang {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.whise-description-lang h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 14px;
    text-transform: uppercase;
}

.whise-description-lang p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .whise-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .whise-gallery-item img {
        height: 120px;
    }
    
    .image-item img {
        height: 150px;
    }
}

/* Loading state */
.whise-image-loading {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #666;
}

.whise-image-loading::after {
    content: "Chargement...";
}

/* Error state */
.whise-image-error {
    background: #ffe6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #d63384;
    border: 1px dashed #d63384;
}

.whise-image-error::after {
    content: "Erreur de chargement";
}