/* css/vehicules.css */

/* UTILITY CLASSES */
.text-yellow {
    color: var(--primary-yellow);
}

.text-white {
    color: var(--text-light);
}

.text-gray {
    color: var(--text-gray);
}

.text-center {
    text-align: center;
}

/* PAGE HEADER */
.page-header {
    background: var(--dark-bg);
    padding: 180px 0 80px;
    /* high top padding to clear navbar */
    color: var(--text-light);
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* CATALOG SECTION */
.catalog {
    background: var(--light-bg);
    padding: 60px 0 100px;
}

/* FILTERS BAR */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-icon {
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.filter-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.filter-select {
    padding: 10px 30px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: transparent;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--primary-yellow);
}

.results-count {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

/* VEHICLES GRID */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: start;
}

.vehicle-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.vehicle-img-wrap {
    position: relative;
    height: 40vh;
    overflow: hidden;
}

.vehicle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

.badge.yellow {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.vehicle-body {
    padding: 20px;
}

.vehicle-body h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.vehicle-features {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-footer .price {
    font-size: 20px;
    font-weight: 800;
}

.vehicle-footer .details-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.vehicle-footer .details-link:hover {
    color: var(--text-dark);
}

/* CAROUSEL */
.vehicle-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.indicator.active {
    background: var(--primary-yellow);
}

.vehicle-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vehicle-feature-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.vehicle-details-dropdown {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, margin-top 0.3s ease-in-out;
}

.vehicle-details-dropdown.expanded {
    max-height: 800px;
    margin-top: 15px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.vehicle-details-list {
    list-style: none;
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vehicle-details-list li {
    position: relative;
    padding-left: 15px;
}

.vehicle-details-list li::before {
    content: "•";
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

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

    .page-title {
        font-size: 32px;
    }

    .filter-group {
        flex-wrap: wrap;
    }
}