/* Erdmannsky Plugin Styles */

.erdmannsky-search-widget {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.erdmannsky-search-widget .search-field {
    margin-bottom: 15px;
}

.erdmannsky-search-widget label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.erdmannsky-search-widget select,
.erdmannsky-search-widget input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.erdmannsky-search-widget input[type="submit"] {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.erdmannsky-search-widget input[type="submit"]:hover {
    background: #005a87;
}

.erdmannsky-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.erdmannsky-vehicle-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.erdmannsky-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.erdmannsky-vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.erdmannsky-vehicle-content {
    padding: 15px;
}

.erdmannsky-vehicle-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.erdmannsky-vehicle-price {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.erdmannsky-vehicle-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.erdmannsky-vehicle-details strong {
    color: #333;
}

.erdmannsky-load-more {
    text-align: center;
    margin-top: 20px;
}

.erdmannsky-load-more button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.erdmannsky-load-more button:hover {
    background: #005a87;
}

.erdmannsky-loading {
    text-align: center;
    padding: 20px;
}

.erdmannsky-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Image Carousel Styles */
.erdmannsky-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.erdmannsky-carousel-wrapper {
    position: relative;
    width: 100%;
}

.erdmannsky-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.erdmannsky-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.erdmannsky-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.erdmannsky-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.erdmannsky-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.erdmannsky-carousel-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.erdmannsky-carousel-prev {
    left: 10px;
}

.erdmannsky-carousel-next {
    right: 10px;
}

.erdmannsky-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.erdmannsky-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.erdmannsky-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.erdmannsky-carousel-indicator.active {
    background: #fff;
}

.erdmannsky-carousel-indicator:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Gallery image styling */
.erdmannsky-vehicle-gallery {
    margin-top: 15px;
}

.erdmannsky-gallery-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .erdmannsky-vehicle-grid {
        grid-template-columns: 1fr;
    }

    .erdmannsky-search-widget {
        padding: 15px;
    }
    
    .erdmannsky-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .erdmannsky-carousel-prev {
        left: 5px;
    }
    
    .erdmannsky-carousel-next {
        right: 5px;
    }
    
    .erdmannsky-carousel-indicators {
        bottom: 10px;
    }
    
    .erdmannsky-carousel-indicator {
        width: 10px;
        height: 10px;
    }
}
