/**
 * Styles spécifiques pour la page de détail des propriétés
 *
 * Ce fichier contient des styles personnalisés pour améliorer l'affichage et
 * l'interactivité de la page de détail des propriétés dans l'administration.
 */

/* Animations et transitions pour les cartes et modales */
.transition-all {
    transition: all 0.3s ease;
}

.animated-modal {
    animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0.7; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Style pour les cartes et conteneurs */
.hover-effect-card {
    transition: all 0.2s ease;
}

.hover-effect-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Améliorations pour le modal de suppression */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3rem);
}

/* Styles personnalisés pour la page de détail des propriétés */
.property-card-highlight:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.property-status-badge {
    transition: all 0.2s ease;
}

.property-status-badge:hover {
    transform: translateY(-2px);
}

/* Amélioration des éléments interactifs */
.interactive-element {
    transition: all 0.2s ease-in-out;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Styles pour la galerie d'images */
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnail {
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gallery-thumbnail.active {
    opacity: 1;
    border: 2px solid #F0A820;
}

/* Animation pour la galerie */
.gallery-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation pour le changement d'image */
.gallery-slide-right {
    animation: slideRight 0.3s ease-out;
}

.gallery-slide-left {
    animation: slideLeft 0.3s ease-out;
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Styles pour les cartes Leaflet */
.custom-popup .leaflet-popup-content-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.custom-popup .leaflet-popup-content {
    margin: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.custom-popup .leaflet-popup-tip {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Amélioration de l'affichage des informations de propriété */
.property-info-card {
    position: relative;
    overflow: hidden;
}

.property-info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background-color: #F0A820;
    transition: height 0.3s ease;
}

.property-info-card:hover::before {
    height: 100%;
}

/* Styles d'impression pour les détails de la propriété */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
        width: 100%;
    }

    .bg-white {
        box-shadow: none !important;
        border: 1px solid #eee;
    }

    .text-blue-navy {
        color: #000 !important;
    }

    .text-gold {
        color: #666 !important;
    }

    h1 {
        font-size: 18pt !important;
    }

    h2 {
        font-size: 16pt !important;
    }

    h3 {
        font-size: 14pt !important;
    }
}

/* Adaptation mobile améliorée */
@media (max-width: 640px) {
    .property-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .property-action-buttons .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .gallery-content {
        height: 40vh !important;
    }

    #mapContainer {
        height: 250px !important;
    }
}
