/* =========================================================
   SKD Car Booking - Cars List Styles
========================================================= */

/* Loader */
#skd-cr-global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

#skd-cr-global-loader.active {
    display: flex;
}

.skd-cr-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6f00a0;
    border-radius: 50%;
    animation: skd-cr-spin 1s linear infinite;
}

@keyframes skd-cr-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Overall Outer Container */
.skd-cr-cars-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.skd-cr-cars-list-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 1. TOP BAR: SEARCH DETAILS (FULL WIDTH) */
.skd-cr-search-details-topbar {
    width: 100%;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.skd-cr-topbar-header h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #6f00a0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.skd-cr-topbar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.skd-cr-topbar-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.skd-cr-topbar-field select,
.skd-cr-topbar-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.skd-cr-topbar-field select:focus,
.skd-cr-topbar-field input[type="text"]:focus {
    border-color: #6f00a0;
    outline: none;
}

.skd-cr-topbar-flex-inputs {
    display: flex;
    gap: 8px;
}

.skd-cr-topbar-flex-inputs input {
    flex: 1;
}

/* 2. MAIN SPLIT LAYOUT (CAR FILTERS LEFT + CAR CARDS RIGHT) */
.skd-cr-cars-main-layout {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
}

.skd-cr-filters-sidebar {
    flex: 1 1 280px;
    max-width: 320px;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.skd-cr-cars-results-wrapper {
    flex: 1 1 600px;
    display: flex;
    flex-direction: column;
}

/* Sidebar Specifics */
.skd-cr-filter-group-title h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #6f00a0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.skd-cr-filter-field {
    margin-bottom: 16px;
}

.skd-cr-filter-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.skd-cr-filter-field select,
.skd-cr-filter-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.skd-cr-filter-field select:focus,
.skd-cr-filter-field input[type="text"]:focus {
    border-color: #6f00a0;
    outline: none;
}

.skd-cr-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 6px;
}

.skd-cr-feature-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

.skd-cr-feature-checkbox input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #6f00a0;
}

/* Reset Button */
.skd-cr-filter-actions {
    margin-top: 20px;
}

.skd-cr-btn-reset-filters {
    width: 100%;
    padding: 12px;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.skd-cr-btn-reset-filters:hover {
    background: #fca5a5;
    color: #991b1b;
}

/* Car Card Grid */
.skd-cr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}



.skd-cr-card-Outer {
    padding: 1px;
    background: linear-gradient(180deg, var(--e-global-color-c4b1d83) 0%, var(--e-global-color-9563ed7) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skd-cr-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.skd-cr-card-Outer:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(111, 0, 160, 0.12);
}

/* Card Image */
.skd-cr-card-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.skd-cr-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card Header (Title, Subtitle, Year & Price) */
.skd-cr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.skd-cr-card-title {
    flex: 1;
    padding-right: 10px;
}

.skd-cr-card-title h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 800;
    line-height: 1.2;
}

.skd-cr-car-model {
    margin: 3px 0 2px 0;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.skd-cr-car-year {
    font-size: 0.82rem;
    color: #6f00a0;
    font-weight: 700;
    margin-top: 2px;
}

.skd-cr-card-price {
    text-align: right;
}

.skd-cr-card-price .amount {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #6f00a0;
    line-height: 1.2;
}

.skd-cr-card-price .period {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.skd-cr-other-prices {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.3;
}

/* Card Features */
.skd-cr-card-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.skd-cr-card-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--e-global-typography-6b2f3ea-font-family), Sans-serif;
    font-size: var(--e-global-typography-6b2f3ea-font-size);
    font-weight: var(--e-global-typography-6b2f3ea-font-weight);
    line-height: var(--e-global-typography-6b2f3ea-line-height);
    color: #111;
}

.skd-cr-card-feature svg {
    width: 24px;
    height: 24px;
    color: #6f00a0 !important;
}

.skd-cr-card-feature svg path {}

/* Card Buttons */
.skd-cr-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.skd-cr-card-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 16px 20px !important;
    border-radius: 30px !important;
    font-family: var(--e-global-typography-accent-font-family) !important;
    font-size: var(--e-global-typography-accent-font-size) !important;
    font-weight: var(--e-global-typography-accent-font-weight) !important;
    text-transform: var(--e-global-typography-accent-text-transform) !important;
    line-height: var(--e-global-typography-accent-line-height) !important;
    letter-spacing: var(--e-global-typography-accent-letter-spacing) !important;
    cursor: pointer !important;
    transition: all ease-in-out 0.3s !important;
    text-decoration: none !important;
    border: none !important;
}

.skd-cr-card-btn-book {
    background: #6f00a0 !important;
    color: #fff !important;

}

.skd-cr-card-btn-book:hover {
    background: #500075 !important;
    box-shadow: 0 10px 25px rgba(111, 0, 160, 0.12);
}

.skd-cr-card-btn-view {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.skd-cr-card-btn-view:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Modern Empty State */
.skd-cr-empty-state {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.skd-cr-empty-icon {
    margin-bottom: 16px;
}

.skd-cr-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 700;
}

.skd-cr-empty-state p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    color: #64748b;
}

.skd-cr-empty-state .skd-cr-btn-reset-filters {
    max-width: 200px;
    margin: 0 auto;
    border: none !important;
}

.skd-cr-filters-sidebar .skd-cr-btn-reset-filters {
    border: none !important;
}

.skd-cr-empty-state .skd-cr-btn-reset-filters:hover,
.skd-cr-filters-sidebar .skd-cr-btn-reset-filters:hover {
    background: #500075 !important;
    color: #fff;
}

/* Pagination */
.skd-cr-pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.skd-cr-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.skd-cr-pagination-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skd-cr-pagination-btn:hover {
    background: #f8fafc;
    border-color: #6f00a0;
    color: #6f00a0;
}

.skd-cr-pagination-btn.active {
    background: #6f00a0;
    border-color: #6f00a0;
    color: #ffffff;
}

/* Responsive */

@media (max-width: 767px) {
    .skd-cr-cars-main-layout {
        flex-direction: column;
    }

    .skd-cr-filters-sidebar {
        max-width: 100%;
        width: 100%;
    }

    .skd-cr-cars-results-wrapper {
        flex: auto;
        width: 100%;
    }

    .skd-cr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skd-cr-card-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .skd-cr-grid {
        grid-template-columns: 1fr;
    }


}