/* Car Profile Specific Styles */

/* Main image styling */
#main-car-image {
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

/* Horizontal gallery layout */
.horizontal-gallery {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

/* Gallery grid adjustments */
.gallery-container {
    min-height: 600px;
}

/* Ensure thumbnail columns match main image height */
.thumbnail-column {
    height: 600px;
    overflow: hidden;
}

/*.profile-search-options .search-input-wrapper {*/
/*    display: block;*/

/*    & .place-input-group {*/
/*        display: grid;*/
/*        grid-template-columns: 1fr;*/
/*        gap: 10px;*/
/*    }*/

/*    & .pick-drop-date-time-group {*/
/*        display: grid;*/
/*        grid-template-columns: 1fr;*/
/*        gap: 10px;*/
/*        width: 100%;*/

/*        & > label {*/
/*            max-width: unset;*/
/*        }*/
/*    }*/
/*    */
/*    & button[type="submit"] {*/
/*        display: none;*/
/*    }*/
/*}*/

/* Thumbnail columns responsive behavior */
@media (max-width: 768px) {
    .horizontal-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile: thumbnails in horizontal scroll */
    .thumbnail-column {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        height: auto;
    }
}

@media (min-width: 769px) {
    /* Desktop: thumbnails in vertical stack */
    .thumbnail-column {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        height: 600px;
        align-content: start;
    }
}

/* Car profile hover effects */
.car-profile-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.car-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Thumbnail gallery styles */
.thumbnail-img {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    border: 2px solid transparent;
    border-radius: 0.5rem;
}

.thumbnail-img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.thumbnail-img.active {
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px #3B82F6;
}

/* Ensure proper aspect ratio for thumbnails */
.thumbnail-img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* View more overlay */
.view-more-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    border-radius: 0.5rem;
}

/* Price card animation */
.price-card {
    animation: slideInRight 0.6s ease-out;
}

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

/* Details grid animation */
.details-grid {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery specific adjustments */
.gallery-grid {
    align-items: start;
}

/* Thumbnail grid spacing */
.thumbnail-grid {
    height: fit-content;
}
