.car-listing-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    color: var(--text-color);
}

.car-image {
    position: relative;
    width: 220px;
    margin-left: auto;
    margin-right: auto;
    height: 210px;
    flex-shrink: 0;
}

.car-thumbnail {
    border-radius: 10px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.car-photo-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
}
.car-wishlist {
    left: 80% !important;
}
.car-wishlist button {
    border: none;
    outline: none;
    background: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
}

.car-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.car-details-left {
    flex: 1;
}

.car-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.car-tags {
    margin-bottom: 8px;
}
.car-tags .tag {
    background: #333;
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 5px;
    font-size: 12px;
    color: #ccc;
}

.car-specs {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    gap: 20px;
    margin-bottom: 4px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 100px;
}
.car-listing-card i, .car-listing-card svg {
    color: var(--bs-link-color);
}
.spec-item .label {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.spec-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}
.car-search label {
    pointer-events: none;
}

.car-search .current-filters {
    padding: 10px;
}

.car-search .current-filters ul {
    text-decoration: none;
    padding: 0;
    list-style: none;
}
.car-search .current-filters i {
    color: red;
    margin-left: auto;
}

.car-search .current-filters span {
    font-weight: bold;
    margin-right: auto;
}

.car-search .current-filters .clear_filters i {
    margin-right: 5px;
    margin-top: 4px;
    color: white;
}

.car-search .current-filters .clear_filters:hover {
    background-color: red;
    color: black;
}

.car-search .current-filters .clear_filters {
    margin-top: 1rem;
    transition: 1s ease;
    width: 100%;
    font-family: "Roboto", sans-serif;
    outline: none;
    border: none;
    background-color: #970747;
    color: white;
    padding: 5px;
    border-radius: 10px;
}

.car-search .card-header {
    background-color: #1e1e2e;
    color: white;
}

.car-search a {
    text-decoration: none;
}
/* Car Search */
.styled-select, .smFilterBTN {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    border-radius: 0;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.styled-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.styled-select:hover {
    border-color: #007bff;
}

.carsFound h5 {
    font-family: "Roboto", sans-serif;
}

#filters-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}
.carsFound {
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    max-width: 100%;
}

.carsFound h5 {
    margin: 0;
    color:var(--text-color);
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Icon Animation */
.pulse-icon {
    color: var(--text-color);
    font-size: 16px;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Divider (gradient line) */
.divider {
    background: linear-gradient(transparent, rgba(125, 158, 255, 0.4), transparent);
    width: 1px;
    height: 16px;
    display: inline-block;
    opacity: 0.6;
}

.count-glow {
    color: var(--text-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(125, 158, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

.carsFound:hover {
    transform: translateY(-2px);
    box-shadow:
            0 6px 24px rgba(0, 0, 0, 0.25),
            inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(125, 158, 255, 0.2);
}

.carsFound:hover .count-glow {
    text-shadow: 0 0 12px rgba(125, 158, 255, 0.5);
}
#filters-container.visible {
    opacity: 1;
    visibility: visible;
}


.car-image img {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 10px;
}

/* White Mode */
[data-bs-theme="light"] {
    .car-search {
        min-height: 100dvh;
    }
    .car-search .collapsing {
        -webkit-transition: none;
        transition: none;
        visibility: hidden;
    }

    .car-search .collapse.show {
        -webkit-transition: none;
        transition: none;
        visibility: visible;
    }
}

/* Dark mode */
[data-bs-theme="dark"] {
    .car-search .card-header {
        background-color: var(--bs-dark);
        color: var(--bs-body-color);
    }
}