/**
 * Styles pour le plugin Kepler API Integration
 */

/* Styles pour la liste des véhicules */
.kepler-vehicles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.kepler-vehicles-count {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
}

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

.kepler-vehicle-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.kepler-vehicle-card:hover {
    transform: translateY(-5px);
}

.kepler-vehicle-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.kepler-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kepler-vehicle-card:hover .kepler-vehicle-image img {
    transform: scale(1.05);
}

.kepler-vehicle-info {
    padding: 15px;
}

.kepler-vehicle-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.kepler-vehicle-version {
    display: block;
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.kepler-vehicle-details {
    margin-bottom: 15px;
    font-size: 14px;
}

.kepler-vehicle-details > div {
    margin-bottom: 5px;
}

.kepler-vehicle-details .label {
    font-weight: bold;
    color: #555;
}

.kepler-vehicle-price {
    font-size: 22px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.kepler-vehicle-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.kepler-vehicle-link:hover {
    background-color: #2980b9;
    color: white !important;
    text-decoration: none;
}

.kepler-pagination {
    margin-top: 30px;
    text-align: center;
}

.kepler-pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.kepler-pagination a.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.kepler-no-vehicles, .kepler-error {
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 5px;
}

.kepler-error {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* JavaScript pour la galerie de photos */
.kepler-js-enabled .kepler-vehicle-thumbnail {
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    .kepler-vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .kepler-vehicles-grid {
        grid-template-columns: 1fr;
    }
}
