/* =========================================
   GLOBAL WRAPPER
========================================= */

.em-single-vehicle {
    background: #f8fafc;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BREADCRUMBS
========================================= */

.breadcrumbs {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom:20px;
}

.breadcrumbs nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumbs a:hover {
    color: #4338ca;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.vehicle-content {
    padding-top: 50px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

/* =========================================
   HEADER SECTION
========================================= */

.vehicle-header {
    margin-bottom: 30px;
}

.meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vehicle-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.2;
}

.excerpt {
    font-size: 18px;
    color: #6b7280;
    max-width: 800px;
}

/* =========================================
   BADGES
========================================= */

.badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-type {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #ffffff;
}

.badge-available {
    background: #16a34a;
    color: #fff;
}

.badge-low_stock {
    background: #f59e0b;
    color: #fff;
}

.badge-unavailable {
    background: #ef4444;
    color: #fff;
}

/* =========================================
   GALLERY
========================================= */

.vehicle-gallery {
    margin-bottom: 40px;
}

.main-image {
    width: 100%;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background: #e5e7eb;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
    gap: 12px;
    margin-top: 15px;
}

.thumb {
    height: 90px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all .3s ease;
}

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

.thumb:hover {
    transform: translateY(-3px);
    border-color: #667eea;
}

.thumb.active {
    border-color: #667eea;
}

/* =========================================
   TABS
========================================= */

.vehicle-tabs {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,.05);
}

.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all .3s ease;
    background-color:white;

}

.tab-btn:hover {
    color: #667eea;
    background-color:white;

}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    background-color:white;

}

.tab-content {
    display: none;
    animation: fadeIn .3s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {opacity:0;transform:translateY(10px);}
    to {opacity:1;transform:translateY(0);}
}

/* =========================================
   SPECS GRID
========================================= */

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.spec-item {
    background: #f9fafb;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.spec-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.spec-value {
    font-weight: 700;
    color: #111827;
}

/* =========================================
   INCLUDES LIST
========================================= */

.includes-list {
    display: grid;
    gap: 12px;
}

.includes-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 12px;
}

/* =========================================
   SIDEBAR BOOKING
========================================= */

.booking-sidebar {
    position: relative;
}

.booking-panel {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,.08);
}

.booking-panel h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* =========================================
   PRICE LIST
========================================= */

.price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    background: #f9fafb;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

/* =========================================
   WHATSAPP BUTTON
========================================= */

.whatsapp-btn {
    display: block;
    text-align: center;
    padding: 18px;
    background: linear-gradient(135deg,#25D366,#128C7E);
    color: #ffffff;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all .3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37,211,102,.4);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .booking-panel {
        position: relative;
        top: auto;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {

    .vehicle-header h1 {
        font-size: 30px;
    }

    .main-image {
        height: 350px;
    }

    .vehicle-tabs {
        padding: 20px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

}

@media (max-width: 480px) {

    .container {
        padding: 0 15px;
    }

    .vehicle-header h1 {
        font-size: 24px;
    }

    .main-image {
        height: 260px;
    }

}
