/* Biscayne Listing Gallery - Elementor Widget Styles */

.biscayne-listing-gallery-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.biscayne-listing-gallery {
    position: relative;
}

.biscayne-gallery-slide {
    position: relative;
    overflow: hidden;
    outline: none;
}

.biscayne-gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.biscayne-gallery-slide:hover img {
    transform: scale(1.05);
}

/* Slick Slider Customization */
.biscayne-listing-gallery .slick-list {
    overflow: hidden;
}

.biscayne-listing-gallery .slick-track {
    display: flex;
    align-items: stretch;
}

.biscayne-listing-gallery .slick-slide {
    height: auto;
    display: flex;
}

.biscayne-listing-gallery .slick-slide > div {
    width: 100%;
}

/* Arrows */
.biscayne-listing-gallery .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0;
}

.biscayne-listing-gallery .slick-arrow:hover {
    background-color: rgba(0, 124, 186, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.biscayne-listing-gallery .slick-arrow:focus {
    outline: none;
}

.biscayne-listing-gallery .slick-prev {
    left: 20px;
}

.biscayne-listing-gallery .slick-next {
    right: 20px;
}

/* Arrow Icons */
.biscayne-listing-gallery .slick-arrow:before {
    font-family: 'Font Awesome 5 Free', 'dashicons';
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    color: currentColor;
}

.biscayne-listing-gallery .slick-prev:before {
    content: '\f053'; /* FA left arrow */
}

.biscayne-listing-gallery .slick-next:before {
    content: '\f054'; /* FA right arrow */
}

/* Fallback for dashicons */
@supports not (content: '\f053') {
    .biscayne-listing-gallery .slick-prev:before {
        content: '\f341'; /* Dashicons left arrow */
    }
    
    .biscayne-listing-gallery .slick-next:before {
        content: '\f345'; /* Dashicons right arrow */
    }
}

/* Dots */
.biscayne-listing-gallery .slick-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10;
}

.biscayne-listing-gallery .slick-dots li {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.biscayne-listing-gallery .slick-dots li button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    display: block;
}

.biscayne-listing-gallery .slick-dots li button:before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.biscayne-listing-gallery .slick-dots li button:hover:before {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.biscayne-listing-gallery .slick-dots li.slick-active button:before {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* Loading State */
.biscayne-listing-gallery-wrapper.loading {
    position: relative;
    min-height: 300px;
}

.biscayne-listing-gallery-wrapper.loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Image Overlay on Hover */
.biscayne-gallery-slide:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.biscayne-gallery-slide:hover:after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .biscayne-listing-gallery .slick-arrow {
        width: 40px;
        height: 40px;
    }
    
    .biscayne-listing-gallery .slick-arrow:before {
        font-size: 20px;
    }
    
    .biscayne-listing-gallery .slick-prev {
        left: 15px;
    }
    
    .biscayne-listing-gallery .slick-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .biscayne-gallery-slide img {
        height: 300px;
    }
    
    .biscayne-listing-gallery .slick-arrow {
        width: 35px;
        height: 35px;
    }
    
    .biscayne-listing-gallery .slick-arrow:before {
        font-size: 18px;
    }
    
    .biscayne-listing-gallery .slick-prev {
        left: 10px;
    }
    
    .biscayne-listing-gallery .slick-next {
        right: 10px;
    }
    
    .biscayne-listing-gallery .slick-dots {
        bottom: 15px;
    }
    
    .biscayne-listing-gallery .slick-dots li button:before {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .biscayne-gallery-slide img {
        height: 250px;
    }
    
    .biscayne-listing-gallery .slick-arrow {
        width: 30px;
        height: 30px;
    }
    
    .biscayne-listing-gallery .slick-arrow:before {
        font-size: 16px;
    }
}

/* Smooth Transitions */
.biscayne-listing-gallery .slick-slide {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.biscayne-listing-gallery .slick-slide.slick-active {
    opacity: 1;
}

/* Accessibility */
.biscayne-listing-gallery .slick-arrow:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.biscayne-listing-gallery .slick-dots li button:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] .biscayne-listing-gallery .slick-prev {
    left: auto;
    right: 20px;
}

[dir="rtl"] .biscayne-listing-gallery .slick-next {
    right: auto;
    left: 20px;
}

/* Animation for slide change */
.biscayne-listing-gallery.slick-initialized .slick-slide {
    animation: fadeInSlide 0.5s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


