/* --- Root Variables & Reset --- */
:root {
    --primary-blue: #0066B2;
    --light-blue: #49C5F1;
    --purple: #7B2E8E;
    --green-success: #4CAF50;
    --dark: #1a1a1a;
    --font-family: 'Quicksand', sans-serif;
    --dark-bg: #0a0a0a;
    --input-bg: #1a1a1a;
    --text-gray: #aaa;
    --white: #ffffff;
    --bc-blue: #f0f5f9;
}

/* ==========================================================================
   Cars Page Styles
   ========================================================================== */

/* --- Main Page Wrapper --- */
.cars-main-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Quicksand', sans-serif;
}

/* --- Hero Section --- */
.cars-hero-section {
    padding: 0 20px;
    margin-top: 120px; 
}

.cars-hero-container {
    width: 100%;
}

.cars-hero-card {
    height: 350px;
    border-radius: 60px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Centering the content and breadcrumbs */
.cars-hero-content {
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cars-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 0;
    line-height: 1.1;
    text-transform: capitalize;
}

/* --- Breadcrumb Styling --- */
.cars-breadcrumb {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cars-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cars-breadcrumb a:hover {
    color: var(--green-success);
}

.cars-breadcrumb .cars-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.cars-breadcrumb .cars-current {
    color: var(--green-success); 
    font-weight: 600;
}

/* --- Helper Class --- */
.review-section-wrapper {
    padding: 60px 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .cars-hero-section {
        padding: 0 15px;
        margin-top: 100px;
        margin-bottom: -60px;
    }

    .cars-hero-card {
        height: 350px;
        border-radius: 40px;
    }
    
    .cars-hero-title {
        font-size: 40px;
    }
    
    .cars-breadcrumb {
        font-size: 14px;
        padding: 6px 20px;
    }
}

@media (max-width: 480px) {
    .cars-hero-card {
        height: 300px;
        border-radius: 30px;
    }

    .cars-hero-title {
        font-size: 32px;
    }

    .cars-breadcrumb {
        gap: 8px;
        padding: 5px 15px;
    }

    .cars-breadcrumb .cars-separator {
        font-size: 12px;
    }
}






/* --- Inventory Layout --- */
.iv-inventory-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 80px 5%;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
    font-family: var(--font-family);
}

/* --- Sidebar Styling --- */
.iv-sidebar {
    background: var(--bc-blue); /* Using your bc-blue for a light sidebar */
    padding: 35px;
    border-radius: 30px;
    position: sticky;
    top: 160px;
    border: 1px solid #e2e8f0;
}

.iv-sidebar-group {
    margin-bottom: 35px;
}

.iv-sidebar-group h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.iv-sidebar-group h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cbd5e0;
}

.iv-search-box {
    position: relative;
}

.iv-search-box input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: var(--white); font-family: var(--font-family);
    font-size: 15px;
    transition: all 0.3s ease;
}

.iv-search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 178, 0.1);
}

.iv-search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
}

.iv-filter-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iv-filter-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.iv-filter-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-success);
}

.iv-btn-search {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 18px;    font-family: var(--font-family);

    font-size: 15px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.iv-btn-search:hover {
    background: var(--green-success);
    transform: translateY(-2px);
}

/* --- Grid & Cards --- */
.iv-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.iv-car-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

 

.iv-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--green-success);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

.iv-car-image {
    height: 200px;
    background: #f8f9fa;
    overflow: hidden;
}

.iv-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.iv-car-card:hover .iv-car-image img {
    transform: scale(1.1);
}

.iv-car-info {
    padding: 25px;
}

.iv-car-name {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 15px;
}

.iv-car-specs {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.iv-car-specs span {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.iv-car-specs i {
    color: var(--light-blue);
}

.iv-car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iv-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.iv-per-day {
    font-size: 12px;
    color: var(--text-gray);
}

.iv-details-btn {
    width: 45px;
    height: 45px;
    background: var(--green-success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.iv-details-btn:hover {
    background: var(--purple);
    transform: rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 1200px) { .iv-cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 992px) { 
    .iv-inventory-wrapper { grid-template-columns: 1fr; }
    .iv-sidebar { position: static; margin-bottom: 30px; }
}
@media (max-width: 600px) { .iv-cars-grid { grid-template-columns: 1fr; } }

/* Animation Container */
.iv-circle-anim {
    background-color: var(--green-success); 
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Arrow Image */
.iv-arrow-icon {
    width: 16px;
    height: auto;    filter: brightness(0) invert(1); /* Turns black arrow white */

    transition: transform 0.6s ease, filter 0.3s ease;
}

/* Hover State - Triggers when the whole card is hovered */
.iv-car-card:hover .iv-circle-anim {
    background-color: var(--primary-blue);
    transform: scale(1.1);
    border-color: var(--primary-blue);
}

.iv-car-card:hover .iv-arrow-icon {
    transform: rotate(420deg);
    filter: brightness(0) invert(1); /* Turns black arrow white */
}



.iv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    grid-column: 1 / -1; /* spans across grid if inside the wrapper */
}

.iv-page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.iv-page-link:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.iv-page-link.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}



/* 1. Default for Desktop (Show everything) */
.iv-mobile-close {
    display: none;
}

/* 2. Mobile Logic */
@media (max-width: 992px) {
    .iv-filter-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    /* When the sidebar has the .show-filters class */
    .iv-sidebar.show-filters .iv-filter-content {
        max-height: 2000px; /* High enough to fit content */
        opacity: 1;
        pointer-events: auto;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
    }

    .iv-mobile-close {
        display: block;
        width: 100%;
        
        margin-top: 15px;
        padding: 12px;
        background: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 50px;
        font-weight: 600;
            font-family: var(--font-family);

        cursor: pointer;
    }
}

.iv-search-icon-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; /* Adjust size to match your design */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.iv-search-icon-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.8;
}

/* Star Rating Styles */
.iv-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.iv-stars {
    color: #FFD700; /* Gold Color */
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.iv-review-count {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Ensure the card name has less margin bottom to accommodate the stars */
.iv-car-name {
    margin-bottom: 8px !important;
}