/* custom CSS for CONMAR Landing Page */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Material Image Toggle Animation */
#mat1 {
    transition: opacity 0.8s ease-in-out;
}

.material-swapped #mat1 {
    opacity: 0;
}

/* Property Card Expand Animation - handled dynamically in JS to prevent clipping of large galleries */
.property-details {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, margin-top 0.5s ease-out;
}

/* Add some padding to bottom for mobile to account for sticky button */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px;
    }
}

/* --- LIGHTBOX PREMIUM STYLES --- */
#lightbox {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Animación ultra suave para cambio de imágenes */
#lightbox-img {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    opacity: 0;
}

#lightbox-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Controles Premium y Hover */
#lightbox-prev, #lightbox-next, #lightbox-close {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#lightbox-prev:hover, #lightbox-next:hover {
    color: #C5A059 !important;
    background-color: rgba(197, 160, 89, 0.15) !important;
    border-color: #C5A059 !important;
    transform: scale(1.1);
}

#lightbox-prev:active, #lightbox-next:active {
    transform: scale(0.9);
}

#lightbox-close:hover {
    color: #C5A059 !important;
    transform: rotate(90deg) scale(1.15);
    border-color: rgba(197, 160, 89, 0.3);
    background-color: rgba(197, 160, 89, 0.1);
}

/* Optimizaciones responsivas para tabletas y móviles */
@media (max-width: 1024px) {
    #lightbox-prev, #lightbox-next {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
        background-color: rgba(0, 0, 0, 0.6);
    }
    
    #lightbox-close {
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        background-color: rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 640px) {
    #lightbox-prev {
        left: 0.5rem;
    }
    #lightbox-next {
        right: 0.5rem;
    }
    #lightbox-prev, #lightbox-next {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
    
    #lightbox-caption {
        font-size: 0.95rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #lightbox-counter {
        font-size: 0.8rem;
    }
}

