/* ==========================================================================
   Vehicle Styles - Automobile Tomi
   ========================================================================== */

/* --------------------------------------------------------------------------
   Vehicle Detail Page
   -------------------------------------------------------------------------- */

.vehicle-detail-top {
    background: #f8f9fa;
}

/* Price Card */
.vehicle-price-card {
    position: sticky;
    top: 100px;
}

.vehicle-price-display {
    padding: 0.75rem 0;
}

/* Quick Specs */
.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.quick-spec-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar Navigation */
.vehicle-sidebar-nav {
    position: sticky;
    top: 100px;
}

.vehicle-sidebar-nav .nav-link {
    color: #495057;
    padding: 0.625rem 1rem;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.vehicle-sidebar-nav .nav-link:hover,
.vehicle-sidebar-nav .nav-link.active {
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

/* Spec Cards */
.spec-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.spec-card i {
    display: block;
    margin-bottom: 0.5rem;
}

/* Vehicle Sections */
.vehicle-section {
    scroll-margin-top: 100px;
}

/* Equipment List */
.equipment-list ul li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.equipment-list ul li i {
    flex-shrink: 0;
    line-height: inherit;
}

/* --------------------------------------------------------------------------
   Vehicle Gallery
   -------------------------------------------------------------------------- */

.vehicle-gallery-main {
    border-radius: 0.5rem;
    overflow: hidden;
}

.vehicle-gallery-main .slick-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.vehicle-gallery-thumbs {
    margin: 0 -4px;
}

.vehicle-gallery-thumbs .slick-slide {
    padding: 0 4px;
}

.vehicle-gallery-thumbs .slick-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border-radius: 0.25rem;
}

.vehicle-gallery-thumbs .slick-slide.slick-current img,
.vehicle-gallery-thumbs .slick-slide:hover img {
    opacity: 1;
}

.vehicle-gallery-main .slick-prev,
.vehicle-gallery-main .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vehicle-gallery-main .slick-prev:hover,
.vehicle-gallery-main .slick-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.vehicle-gallery-main .slick-prev {
    left: 12px;
}

.vehicle-gallery-main .slick-next {
    right: 12px;
}

/* --------------------------------------------------------------------------
   Vehicle Archive Page
   -------------------------------------------------------------------------- */

.vehicle-archive {
    min-height: 60vh;
}

/* Filter Sidebar */
.vehicle-filters .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.vehicle-filters .filter-group {
    margin-bottom: 1rem;
}

.vehicle-filters .filter-group:last-child {
    margin-bottom: 0;
}

/* Vehicle Card */
.vehicle-card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
    height: 100%;
}

.vehicle-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.vehicle-card a {
    text-decoration: none;
    color: inherit;
}

.vehicle-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.05);
}

.vehicle-card-price {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: var(--bs-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 1rem;
}

.vehicle-card-body {
    padding: 1rem;
}

.vehicle-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.vehicle-card-spec {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vehicle-card-spec i {
    font-size: 0.75rem;
    color: var(--bs-primary);
}

/* Results Header */
.vehicle-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* No Results */
.vehicle-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.vehicle-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Pagination */
.vehicle-pagination .btn {
    min-width: 200px;
}

/* Loading State */
.vehicle-grid.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Delivery Calculator
   -------------------------------------------------------------------------- */

#delivery-plz {
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Bar
   -------------------------------------------------------------------------- */

.vehicle-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #dee2e6;
}

.vehicle-mobile-bar-toc {
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vehicle-mobile-nav .nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.vehicle-mobile-nav .nav-link {
    font-size: 0.7rem;
    color: #495057;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.vehicle-mobile-nav .nav-link i {
    font-size: 0.9rem;
}

.vehicle-mobile-nav .nav-link.active {
    color: var(--bs-primary);
}

.vehicle-mobile-bar-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .vehicle-gallery-main .slick-slide img {
        height: 300px;
    }

    .vehicle-price-card {
        position: static;
    }

    .vehicle-card-specs {
        font-size: 0.75rem;
    }

    .vehicle-detail {
        padding-bottom: 120px;
    }
}

@media (max-width: 575.98px) {
    .vehicle-gallery-main .slick-slide img {
        height: 220px;
    }

    .vehicle-gallery-thumbs .slick-slide img {
        height: 50px;
    }

    .spec-card {
        padding: 0.5rem !important;
        font-size: 0.85rem;
    }

    .vehicle-card-image {
        aspect-ratio: 16/10;
    }
}
