/* Property Image Carousel Styles */

.property-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Main image display */
.carousel-main {
    position: relative;
    width: 100%;
    height: 450px;
    max-height: 50vh;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.carousel-main img:hover {
    transform: scale(1.02);
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #0891b2;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
}

.carousel-nav:hover {
    background: #0e7490;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

/* Thumbnail strip */
.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-gray-100);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 3px;
}

.carousel-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-thumb:hover {
    opacity: 1;
    border-color: var(--primary-light);
}

.carousel-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.3);
}

/* Image counter */
.carousel-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

/* Loading state */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
    color: var(--color-gray-400);
    font-size: 3rem;
}

/* Empty state */
.carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    padding: 2rem;
    text-align: center;
}

.carousel-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-gray-300);
}

.carousel-empty p {
    font-size: 1.125rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav.prev {
        left: 0.5rem;
    }

    .carousel-nav.next {
        right: 0.5rem;
    }

    .carousel-thumb {
        flex: 0 0 60px;
        height: 45px;
    }
}