/* Gallery Styles */
.vehicle-gallery {
    background: var(--white);
    display: flex;
    gap: 15px;
    height: fit-content;
    align-items: flex-start;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    height: 450px; /* 4 slike * 80px + 3 razmaka * 12px */
    flex-shrink: 0;
}

.thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: opacity var(--transition);
}

.thumbnails img:hover {
    opacity: 0.8;
}

.thumbnails img.active {
    border: 2px solid var(--primary-color);
}

.main-image {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    z-index: 1;
}

.price-period {
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .vehicle-gallery {
        flex-direction: column-reverse;
        align-items: center;
        height: auto;
        padding: var(--spacing-md);
    }

    .thumbnails {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        height: auto;
        width: 100%;
        gap: 8px;
    }

    .thumbnails img {
        width: 60px;
        height: 60px;
    }

    .main-image {
        width: 100%;
        height: 348px;
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .vehicle-gallery {
        padding: var(--spacing-sm);
    }

    .main-image {
        height: 280px;
    }

    .thumbnails {
        gap: 6px;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }

    .price-tag {
        font-size: 14px;
        padding: 6px 12px;
    }
}
