.custom-car-grid-wrapper {
    display: grid;
    gap: 20px;
    width: 100%;
}

.custom-car-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.custom-car-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.custom-car-slider {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.custom-car-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF3366 0%, #FF9933 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

.custom-car-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

/* Bulletproof CSS Fallback if Swiper JS fails to load */
.custom-car-slider:not(.swiper-container-initialized) .swiper-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}
.custom-car-slider:not(.swiper-container-initialized) .swiper-slide {
    display: block;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
}
.custom-car-slider:not(.swiper-container-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.custom-car-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f1f5f9;
}

/* Isolated Navigation Arrows (Small & Gray) */
.custom-car-slider .my-custom-next,
.custom-car-slider .my-custom-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569; /* Gray icon color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.custom-car-slider .my-custom-next { right: 10px; }
.custom-car-slider .my-custom-prev { left: 10px; }

.custom-car-card:hover .my-custom-next,
.custom-car-card:hover .my-custom-prev {
    opacity: 1;
}

.custom-car-slider .my-custom-next:hover,
.custom-car-slider .my-custom-prev:hover {
    background: #ffffff;
    color: #0f172a;
}

/* Isolated Pagination Dots (At the bottom) */
.custom-car-slider .my-custom-dots {
    position: absolute;
    bottom: 8px; /* Exactly where requested */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.custom-car-slider .my-custom-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffffff;
    opacity: 0.5;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.custom-car-slider .my-custom-dot-active {
    opacity: 1;
    background: #0534ff; /* Active dot color */
}



.custom-car-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.custom-car-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.custom-car-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.custom-car-price {
    font-size: 24px;
    font-weight: 800;
    color: #0534ff; /* Beautiful blue */
}

/* Meta Data - Exact 2 Column Design */
.custom-car-meta-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.meta-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.meta-icon svg {
    color: #0f172a; /* Dark premium icon color */
    width: 20px;
    height: 20px;
}

.meta-text {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Space between label and value */
}

.meta-label {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1;
}

.meta-value {
    font-size: 15px;
    color: #475569;
    font-weight: 400;
    line-height: 1;
}

/* Specific highlight for mileage as requested in screenshot */
.mileage-val {
    color: #0534ff !important;
    text-decoration: underline;
}

/* Pagination */
.custom-car-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.custom-car-pagination a,
.custom-car-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-car-pagination a:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.custom-car-pagination span.current {
    background: #0534ff;
    color: #ffffff;
}

/* AJAX Loader */
.custom-car-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.custom-car-loader::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #0534ff;
    border-radius: 50%;
    animation: customCarSpin 0.8s linear infinite;
}

@keyframes customCarSpin {
    to {
        transform: rotate(360deg);
    }
}

