/**
 * Vehicle Detail Page Styles
 * 
 * @package YuuYuuRental
 * @since 1.0.0
 */

/* ==========================================================================
   Vehicle Details Section
   ========================================================================== */
.vehicle-details-section {
    padding: 60px 0;
    background: white;
}

.vehicle-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Vehicle Images */
.vehicle-images {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-item.active {
    border-color: var(--color-primary);
}

.thumbnail-item:hover {
    border-color: var(--color-primary);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vehicle Information */
.vehicle-info {
    padding: 20px 0;
}

.vehicle-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.vehicle-description {
    margin-bottom: 30px;
}

.vehicle-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

.specs-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    gap: 12px;
}

.spec-item .spec-label {
    flex-shrink: 0;
}

.spec-item .spec-value {
    text-align: right;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #666;
    font-weight: 500;
}

.vehicle-price {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--color-primary);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.vehicle-actions {
    display: flex;
    gap: 15px;
}

.vehicle-actions .btn {
    flex: 1;
    text-align: center;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.vehicle-actions .btn i {
    margin-right: 8px;
}

/* ==========================================================================
   Vehicle Gallery Section
   ========================================================================== */
.vehicle-gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(204, 33, 27, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
    .vehicle-details-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vehicle-images {
        position: static;
    }

    .main-image img {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .vehicle-details-section {
        padding: 40px 0;
    }
    
    .vehicle-details-content {
        gap: 30px;
    }
    
    .vehicle-title {
        font-size: 1.5rem;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .thumbnail-images {
        gap: 8px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
    
    .vehicle-actions {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .vehicle-gallery-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .vehicle-info {
        padding: 15px 0;
    }
    
    .specs-grid {
        gap: 10px;
    }
    
    .spec-item {
        padding: 10px;
    }
    
    .vehicle-price {
        padding: 15px;
    }
    
    .vehicle-actions .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}