/* Main container */
.es-vehicle-container {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.es-search-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

/* Search form */
.es-vehicle-search-form {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.es-search-section {
    margin-bottom: 10px;
    padding-bottom: 0;
     background: #f8f8f8;
    border-radius: 5px;
}

.es-search-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.es-search-section-title {
    font-size: 16px;
    margin: 0 0 15px;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

.es-search-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.es-search-col {
    flex: 1;
    min-width: 205px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.es-vehicle-search-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.es-vehicle-search-form select,
.es-vehicle-search-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.es-search-submit {
    padding: 10px 20px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.es-search-submit:hover {
    background: #b82222;
}

/* Results header */
.es-vehicle-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.es-vehicle-count {
    font-size: 18px;
    font-weight: bold;
}

.es-vehicle-sorting {
    display: flex;
    align-items: center;
}

.es-vehicle-sorting span {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.es-vehicle-sorting select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Vehicle grid */
.es-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.es-vehicle-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.es-vehicle-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.es-vehicle-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.es-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.es-vehicle-card:hover .es-vehicle-image img {
    transform: scale(1.05);
}

.es-vehicle-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
}

.es-vehicle-content {
    padding: 15px;
}

.es-vehicle-title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.es-vehicle-subtitle {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.es-vehicle-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.es-vehicle-odometer,
.es-vehicle-price {
    font-size: 16px;
    font-weight: bold;
}

.es-vehicle-price {
    color: #000000;
}
.regularprice-group {
    font-size: 22px;
}
.discountedprice {
    text-decoration: line-through;
    color: #aaa;
    font-size: 16px;
    margin-right: 8px;
}
.savedprice {
    color: #00c853;
    font-size: 13px;
    text-align: right;
}
.licencetxt {
    color: #ffffff;
    font-size: 12px;
    text-align: right;
}

.es-vehicle-details {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 5px 10px;
}

.es-vehicle-detail-row {
    display: flex;
    margin-bottom: 5px;
    font-size: 13px;
}

.es-vehicle-detail-label {
    font-weight: bold;
    color: #666;
    min-width: 100px;
    margin-right: -15px;
}

.es-vehicle-detail-value {
    color: #333;
}

.es-vehicle-actions {
    margin-top: 15px;
}

.es-vehicle-action-buttons {
    display: flex;
    margin-bottom: 10px;
}

.es-vehicle-action-button {
    flex: 1;
    padding: 8px;
    margin: 0 5px;
    background: #f0f0f0;
    color: #333;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.3s;
}

.es-vehicle-action-button:hover {
    background: #e0e0e0;
}

.es-vehicle-action-button:first-child {
    margin-left: 0;
}

.es-vehicle-action-button:last-child {
    margin-right: 0;
}

.es-vehicle-compare-button {
    display: block;
    text-align: center;
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.es-vehicle-compare-button:hover {
    text-decoration: underline;
}

/* Pagination */
.es-vehicle-pagination {
    text-align: center;
    margin-top: 30px;
}

.es-vehicle-load-more {
    padding: 10px 25px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.es-vehicle-load-more:hover {
    background: #666666;
}

.es-vehicle-load-more:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* No results */
.es-vehicle-no-results {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    font-size: 16px;
    color: #666;
}
/* Sorting buttons */
.es-sorting-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.es-sort-button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    position: relative;
}

.es-sort-button:hover {
    color: #333;
}

.es-sort-button.active {
    color: #000000;
    font-weight: bold;
}

.es-sort-button.active:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
}

.es-sort-button.active.asc:after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000000;
}

.es-sort-button.active.desc:after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000000;
}

/* Style for select dropdowns */
.es-vehicle-search-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    padding-right: 30px;
}

/* Style for range sections */

.es-search-section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.vehicle-detail-taxonomy-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.vehicle-detail-taxonomy-row .taxonomy-label {
    font-weight: bold;
    width: 40%;
}
.vehicle-detail-taxonomy-row .taxonomy-value {
    width: 60%;
}

.es-vehicle-logolink {
    float: right;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .es-search-col {
        min-width: 50%;
    }
    
    .es-vehicle-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .es-vehicle-sorting {
        margin-top: 10px;
        width: 100%;
    }
    
    .es-vehicle-sorting select {
        width: 100%;
    }
    
    .es-vehicle-action-buttons {
        flex-wrap: wrap;
    }
    
    .es-vehicle-action-button {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }
}