/**
 * Frontend Styles for Auto Listings Plugin
 */

/* Vehicle specifications */
.vehicle-specifications {
    margin-top: 40px;
}

.vehicle-specifications .spec-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vehicle-specifications .spec-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.vehicle-specifications .spec-item strong {
    color: #FFC43F;
    display: block;
    margin-bottom: 5px;
}

/* Vehicle features */
.vehicle-features {
    margin-top: 40px;
}

.vehicle-features .feature-item {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.vehicle-features .feature-item img {
    margin-right: 10px;
}

/* Vehicle search form */
.vehicle-search-form {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 30px;
}

.vehicle-search-form .form-select,
.vehicle-search-form .btn {
    height: 45px;
}

/* Vehicle price display */
.vehicle-price {
    font-size: 24px;
    font-weight: bold;
    color: #FFC43F;
    margin-bottom: 20px;
}

.vehicle-price .sale-price {
    color: #28a745;
}

.vehicle-price del {
    color: #999;
    font-size: 18px;
    margin-left: 10px;
}

/* Vehicles grid */
.vehicles-grid {
    margin-top: 30px;
}

/* Vehicle card adjustments */
.vehicle-crd {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-crd .card-body {
    flex: 1;
}

.vehicle-crd a {
    color: inherit;
    text-decoration: none;
}

.vehicle-crd a:hover {
    opacity: 0.8;
}

/* Vehicle gallery */
.vehicle-gallery {
    margin-top: 40px;
}

.vehicle-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.vehicle-gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vehicle-gallery-grid img:hover {
    transform: scale(1.05);
}

/* Widget styles */
.recent-vehicles-list {
    padding: 0;
    margin: 0;
}

.recent-vehicles-list li {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-vehicles-list li:last-child {
    border-bottom: none;
}

.recent-vehicles-list a {
    text-decoration: none;
    color: inherit;
}

.recent-vehicles-list a:hover {
    opacity: 0.8;
}

.recent-vehicles-list .vehicle-thumb {
    flex-shrink: 0;
}

.recent-vehicles-list .vehicle-thumb img {
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vehicle-specifications .col-md-4,
    .vehicle-features .col-md-4 {
        margin-bottom: 15px;
    }
    
    .vehicle-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Loading spinner */
.vehicle-loading {
    text-align: center;
    padding: 40px;
}

.vehicle-loading:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 196, 63, 0.3);
    border-top-color: #FFC43F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
