.browse-hero-section {
    background: url('/images/taxi-driver.jpg');
    background-size: cover;
    background-position: center center;
    color: white;
    height: 260px;
    min-height: 160px;
    position: relative;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.browse-hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 20, 60, 0.85) 40%, rgba(0, 40, 120, 0.6) 70%, rgba(0, 40, 120, 0.4) 100%);
    z-index: 1;
}

.browse-hero-section .container {
    position: relative;
    z-index: 2;
}

.browse-hero-section .hero-content {
    max-width: 500px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.browse-hero-section .hero-button-container {
    margin-bottom: 0.8rem;
}

.browse-hero-section .hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.5px;
    display: none;
}

.browse-hero-section .hero-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0;
    max-width: 310px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
}

.browse-hero-section .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 37, 71, 0.65);
    color: #0dcaf0;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    font-family: 'Space Grotesk', sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
}

.browse-hero-section .hero-btn:hover {
    background-color: #001c36;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filter-container {
    position: relative;
    margin-top: 0;
    margin-bottom: 25px;
    z-index: 2;
    padding: 0 1rem;
    background-color: #fff;
}

.filter-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f0f0f0;
}

.filter-card .row.align-items-end {
    margin-bottom: 0;
}

.filter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
    display: block;
}

.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid #eaeaea;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    height: 44px;
    background-color: #fcfcfc;
    padding: 0.5rem 0.75rem;
}

.form-select:focus, .form-control:focus {
    box-shadow: 0 0 0 3px rgba(12, 132, 254, 0.1);
    border-color: #0C84FE;
    background-color: #fff;
}

.input-group-text {
    background-color: transparent;
    border-left: none;
    color: #777;
}

.input-group .form-control {
    border-right: none;
}

/* Clear filters button base styling */
.clear-filters-btn {
    color: #555;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop specific styles */
@media (min-width: 992px) {
    .col-lg-2 .clear-filters-btn {
        margin-left: 0.5rem;
        margin-top: 0;
    }
}

/* Mobile specific styles */
@media (max-width: 991.98px) {
    .col-12.d-lg-none .clear-filters-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .filter-card .col-12.d-lg-none {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Hover and focus states */
.clear-filters-btn:hover, 
.clear-filters-btn:focus {
    color: #0C84FE;
    border-color: #0C84FE;
    background-color: #fff;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(12, 132, 254, 0.1);
}

.cars-listing {
    padding: 0 0 5rem;
    margin-top: 0;
}

.cars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.cars-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.car-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5; /* Light background for empty states */
}

.car-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.car-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.car-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.car-price {
    text-align: right;
}

.price {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #0C84FE;
    display: block;
    line-height: 1;
}

.price-period {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
}

.car-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: #555;
}

.stars {
    color: #FFC107;
    margin-right: 0.4rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.rating-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: #555;
}

.car-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.feature {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #555;
}

.feature i {
    margin-right: 0.4rem;
    color: #666;
    width: 14px;
    text-align: center;
}

.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: #555;
    display: flex;
    align-items: center;
}

.tag i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
    color: #0C84FE;
}

.btn-view-details {
    width: 100%;
    padding: 0.5rem 0;
    font-weight: 500;
    margin-top: auto;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Custom Pagination Styles */
.pagination-custom {
    display: flex;
    gap: 1rem;
    background: none;
    border: none;
    padding: 0;
    margin-top: 1rem;
}
.pagination-custom .page-item {
    list-style: none;
}
.pagination-custom .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 8px;
    font-size: 1.25rem;
    font-family: 'Syne', sans-serif;
    color: #222;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: box-shadow 0.2s, border 0.2s;
}
.pagination-custom .page-item.active .page-link {
    color: #0C84FE;
    border: 2px solid #0C84FE;
    box-shadow: 0 2px 8px rgba(79,0,255,0.12);
}
.pagination-custom .page-item.disabled .page-link {
    background: rgba(0,0,0,0.08);
    color: #fff;
    border: none;
    box-shadow: none;
    opacity: 0.5;
}
.pagination-custom .page-link i {
    font-size: 1.5rem;
    color: #acacac;
    opacity: 0.5;
}
.pagination-custom .page-item:not(.active):not(.disabled) .page-link:hover {
    border: 2px solid #0C84FE;
    color: #0C84FE;
    box-shadow: 0 4px 12px rgba(12,132,254,0.12);
    cursor: pointer;
}
@media (max-width: 768px) {
    .pagination-custom .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    .pagination-custom .page-link i {
        font-size: 1.1rem;
    }
    .cars-pagination {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-hero-section .hero-title {
        font-size: 2.8rem;
    }

    .car-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .browse-hero-section {
        height: 40vh;
        margin-bottom: 30px;
    }

    .browse-hero-section .hero-title {
        font-size: 2.3rem;
    }

    .filter-card {
        padding: 1.25rem;
    }

    .filter-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }

    .browse-hero-section {
        height: 35vh;
        margin-bottom: 20px;
    }

    .browse-hero-section .hero-title {
        font-size: 1.9rem;
    }

    .car-features {
        grid-template-columns: 1fr 1fr;
    }

    .car-image {
        height: 180px;
    }

    .filter-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .filter-card .col-12.d-lg-none {
        margin-top: 0.5rem;
    }
}
