.wheelsys-vehicles-container {
    max-width: 1320px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;

    & h1 {
        text-align: center;
        margin-bottom: 2rem;
    }
}


.wheelsys-vehicles-grid {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(420px, 1fr));
    gap: 30px;
}

.wheelsys-badge {
    background-color: var(--wheelsys-bagde-bg-color);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.15rem;
    letter-spacing: 0.1px;
    padding: 0.25rem 0.75rem;
    border-radius: 2.25rem;
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.vehicle-card {
    border-radius: 0.875rem;
    width: 100%;
    border: 1px solid rgba(242, 242, 242, 1);
    box-shadow: 0px 2px 50px 0px rgba(25, 33, 61, 0.02);
    position: relative;


    box-sizing: border-box;

    & .vehicle-card-image {
        overflow: hidden;
        border-top-left-radius: 0.875rem;
        border-top-right-radius: 0.875rem;
        width: 100%;
        position: relative;
        aspect-ratio: 2/1;
        background: white;
        /* background: linear-gradient(180deg, #bfc7cc 0%, #ecf0f3 100%); */
    }

    /* Resolution 638x366 */
    & .vehicle-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    & .vehicle-card-body {
        gap: 1.25rem;
        display: flex;
        flex-direction: column;
        padding: 1.375rem;
        background: white;

        /* background: linear-gradient(180deg, #ecf0f3 0%, white 100%); */
    }

    & .vehicle-detail {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    & .vehicle-model {
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.25rem;
        letter-spacing: 0.1px;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;

        &>div {

            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.25rem;
        }

        & h3 {
            margin: 0;
            font-weight: 700;
            font-size: 1.25rem;
            line-height: 1.25rem;
            letter-spacing: 0.1px;
            text-align: center;
            vertical-align: middle;
            text-align: center;
            vertical-align: middle;
            /* text-transform: capitalize; */
        }
    }

    & .vehicle-guarantee {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.25rem;
        letter-spacing: 0.1px;

        & svg {
            color: var(--wheelsys-primary-color);
        }

    }

    & .vehicle-card-footer {
        border-top: 1px solid rgba(225, 225, 225, 1);
        padding: 1.25rem 1.375rem;
        display: flex;
        justify-content: space-between;
        align-items: center;

        & .vehicle-price {
            font-size: 1.125rem;
            font-weight: 700;
            line-height: 1.75rem;
            letter-spacing: 0.1px;

            display: flex;
            flex-direction: row;
            gap: 6px;
            align-items: baseline;
        }

        & .vehicle-price_unit {
            font-size: 0.875rem;
            line-height: 1.25rem;
            font-weight: 700;
            display: flex;
            flex-direction: row;
            align-items: baseline;

            & .amount-main {
                font-size: 1.375rem;
                font-weight: 700;
            }
        }

        & .vehicle-price_total {
            font-weight: 500;
            font-size: .875rem;
            line-height: 1.25rem;
            letter-spacing: 0.1px;
            text-align: center;
            vertical-align: middle;
            text-transform: lowercase;
            color: rgba(101, 106, 110, 1);
        }

        & .vehicle-action-button {
            background-color: var(--wheelsys-primary-color);
            color: white;
            border: none;
            border-radius: 2.25rem;
            padding: 0.375rem 1rem;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1.25rem;
            letter-spacing: 0.1px;
            cursor: pointer;
        }
    }
}

/* Filter Dropdowns */
.wheelsys-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--wheelsys-primary-color);
    color: var(--wheelsys-primary-color);
	background: white;
}

.filter-btn.active {
    background: var(--wheelsys-primary-color)!important;
    color: white;
    border-color: var(--wheelsys-primary-color);
}

.filter-btn svg {
    transition: transform 0.2s;
}

.filter-btn.open svg {
    transform: rotate(180deg);
}

.filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.filter-menu.show {
    display: block;
}

.filter-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option.selected {
    background: #e7f3ff;
    color: #007bff;
    font-weight: 600;
}

.filter-option:first-child {
    border-radius: 12px 12px 0 0;
}

.filter-option:last-child {
    border-radius: 0 0 12px 12px;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.clear-filters-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.clear-filters-btn svg {
    flex-shrink: 0;
}

/* Filter Pill Styles */
.wheelsys-filter-pill {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.5rem 0.875rem;
    margin: 0 auto;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.wheelsys-filter-pill:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.wheelsys-filter-pill-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    flex-wrap: nowrap;
}

.filter-pill-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: #333;
}

.filter-pill-section svg {
    width: 16px;
    height: 16px;
    color: #666;
    flex-shrink: 0;
    display: none;
    /* Hide icons to match reference */
}

.filter-pill-label {
    font-weight: 400;
    color: #666;
    display: none;
    /* Hide labels to match reference */
}

.filter-pill-value {
    color: #333;
    font-weight: 500;
}

.filter-pill-arrow {
    color: #999;
    font-weight: 400;
    margin: 0 4px;
}

.filter-pill-divider {
    width: 1px;
    height: 20px;
    background: #d0d0d0;
}

.filter-pill-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--wheelsys-primary-color);
    color: white;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-pill-edit:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(239, 52, 63, 0.3);
}

.filter-pill-edit svg {
    width: 18px;
    height: 18px;
    color: white;
    display: block;
}

.filter-pill-edit span {
    display: none;
    /* Hide "Editar" text */
}

/* Booking Popup Styles */
.wheelsys-booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
}

.wheelsys-booking-popup.active {
    display: flex;
}

.wheelsys-booking-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.wheelsys-booking-popup-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: slideDown 0.4s ease;
    max-height: 80vh;
    overflow-y: auto;
}

/* Ensure form dropdowns appear above popup content */
#wheelsys-booking-popup .sys-popover {
    z-index: 10;
}

#wheelsys-booking-popup .time-dropdown {
    z-index: 10;
}

#wheelsys-booking-popup .flatpickr-calendar {
    z-index: 10 !important;
}

/* Adjust popup position when WordPress admin bar is present */
body.admin-bar .wheelsys-booking-popup {
    top: 32px;
}

body.admin-bar .wheelsys-booking-popup-backdrop {
    top: 32px;
    height: calc(100% - 32px);
}

.wheelsys-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
}

.wheelsys-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.wheelsys-popup-close svg {
    color: #666;
}

.wheelsys-popup-form-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding-block: 24px;
}

.wheelsys-popup-form-wrapper h3 {
    display: none;
    /* Hide title to match reference */
}

/* Override booking form container styles for popup */
#wheelsys-booking-popup .wheelsys-container {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    gap: 16px;
    background: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wheelsys-vehicle-model {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: 0.1px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    position: absolute;
    top: 1rem;
    left: 1rem;

    color: white;

    &>div {

        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }

    & h3 {
        margin: 0;
        font-weight: 700;
        font-size: 1.25rem;
        line-height: 1.25rem;
        letter-spacing: 0.1px;
        text-align: center;
        vertical-align: middle;
        text-align: center;
        vertical-align: middle;
        /* text-transform: capitalize; */
    }

}

/* Responsive Styles */
@media (max-width: 768px) {
    .wheelsys-filter-pill {
        padding: 10px 16px;
    }

    .wheelsys-filter-pill-content {
        gap: 12px;
    }

    .filter-pill-section {
        font-size: 13px;
    }

    .filter-pill-divider {
        height: 16px;
    }

    .filter-pill-edit {
        width: 32px;
        height: 32px;
    }

    .filter-pill-edit svg {
        width: 16px;
        height: 16px;
    }

    .wheelsys-booking-popup-content {
        max-height: 90vh;
    }

    .wheelsys-popup-form-wrapper {
        padding: 20px;
    }

    #wheelsys-booking-popup .wheelsys-container {
        flex-direction: column;
        gap: 12px;
    }


    .wheelsys-popup-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }
}