.container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

#sidebar-container {
    color: black;
    flex: 0.25 1;
}

.sidebar {
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
}

.sidebar-cleanfilter {
    width: 100%;
    background: #4974a9;
}

.sidebar-item-container {
    padding: 5px;
    display: flex;
    gap: 0;
    margin: auto;
}

.sidebar-item-check {
    width: 20px;
    height: 20px;
    align-self: center;
}

.sidebar-item-label {
    text-align: left;
    margin: auto 10px;
    font-size: 1.5rem;
}

.sidebar h4 {
    margin-top: 0;
}

.grid-area {
    flex: 1;
}

/* Make grid body a flex container */
.e-grid .e-content table,
.e-grid .e-content tbody,
.e-grid .e-content tr {
    display: block; /* break table flow so flex can work */
}

.e-grid .e-content tbody {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    padding: 10px;
}

.e-grid .e-content .e-row {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
    box-sizing: border-box;
}

.e-grid .e-content .e-rowcell {
    padding: 0 !important;
    border: 0 !important;
}

/* Card styling */
.car-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

.card-wrapper {
    flex: 1 1 calc(50%);
    max-width: calc(50% - 5px);
}

.car-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* uniform rectangle */
    object-fit: cover; /* fill & crop */
    border-radius: 8px;
    display: block;
    background: #f0f0f0;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
}

.card-footer .e-btn {
    width: 100%;
    border-radius: 6px;
    display: inline-block;
}

.container-inventary {
    flex-direction: row;
    display: flex;
    gap: 10px;
}


.car-listing {
    display: flex;
    background-color: white;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
}

.car-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.car-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.price .amount {
    font-size: 32px;
    font-weight: bold;
    color: #ff5353;
}

.price-title {
    color: #333;
    margin: 10px 0;
    font-family: "Anton", sans-serif;
}

.car-model h2 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.car-info span {
    font-size: 14px;
    color: #777;
}

.e-grid .e-loadingcontent,
.e-grid .e-spinner-pane {
    display: none !important;
}

.e-grid .e-gridheader {
    background-color: #fff;
    border-bottom-color: #fff;
    border-top-color: #fff;
}

.e-grid {
    border-color: #fff;
}

.e-grid {
    border-style: none solid solid;
    border-width: 0;
    border-radius: 0;
    display: block;
    font-family: "Roboto", "Segoe UI", "GeezaPro", "DejaVu Serif", "sans-serif", "-apple-system", "BlinkMacSystemFont";
    font-size: 13px;
    height: auto;
    position: relative;
}

.detalle-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.detalle-container-carousel {
    flex: 1 1;
    aspect-ratio: 5 / 4;
}

.detalle-container-table {
    flex: 1 1;
    width: 100%;
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
    .container-inventary {
        flex-direction: column;
        display: flex;
    }

    .e-grid .e-content .e-row {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card-wrapper {
        max-width: 100%;
    }

    .detalle-container {
        flex-direction: column;
    }
}

#search {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: url(/assets/favicon/lupa.png) no-repeat right 12px center;
    background-size: 20px;
    box-sizing: border-box;
}

.content_sidebar {
    display: block;
}

@media (max-width: 768px) {
    .content_sidebar {
        display: none;
    }
}

.contentblock {
    display: block;
}

.contentnone {
    display: none;
}

.e-slider-container.e-vertical .e-handle {
    height: 16px !important;
    width: 16px !important;
}
