/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

* {

    box-sizing: border-box;

}


body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f7f8fa;

    color: #111827;

}


.vehicle-database-container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding-left: 20px;

    padding-right: 20px;

}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.vehicle-database-header {

    background: #ffffff;

    border-bottom:
        1px solid #e5e7eb;

}


.vehicle-database-header-content {

    padding:
        40px 0;

}


.vehicle-database-header h1 {

    margin: 0 0 8px;

    font-size: 32px;

    line-height: 1.2;

    color: #111827;

}


.vehicle-database-header p {

    margin: 0;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.6;

}


/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.vehicle-database main {

    padding:
        30px 0 60px;

}


/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.vehicle-database-breadcrumb {

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 18px;

    font-size: 13px;
    color: #6b7280;

}


.vehicle-database-breadcrumb a {

    color: #6b7280;

    text-decoration: none;

}


.vehicle-database-breadcrumb a:hover {

    color: #2563eb;

}


.vehicle-database-breadcrumb .current {

    color: #111827;

    font-weight: 600;

}


/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.vehicle-loading {

    padding: 60px 20px;

    text-align: center;

    color: #6b7280;

}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .vehicle-database-header-content {

        padding:
            30px 0;

    }


    .vehicle-database-header h1 {

        font-size: 26px;

    }


    .vehicle-database main {

        padding-top: 20px;

    }

}

/*
|--------------------------------------------------------------------------
| Vehicle Types
|--------------------------------------------------------------------------
*/

.vehicle-types-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

}


.vehicle-type-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 18px;

    width: 100%;

    min-height: 150px;

    padding: 24px;

    border:
        1px solid #e5e7eb;

    border-radius: 14px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.vehicle-type-card:hover {

    transform:
        translateY(-3px);

    border-color:
        #d1d5db;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, .07);

}


.vehicle-type-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #f3f4f6;

    font-size: 32px;

}


.vehicle-type-info {

    min-width: 0;

}


.vehicle-type-info h2 {

    margin: 0 0 5px;

    font-size: 18px;

    color: #111827;

}


.vehicle-type-info p {

    margin: 0;

    font-size: 13px;

    color: #6b7280;

}


.vehicle-type-arrow {

    margin-left: auto;

    color: #9ca3af;

    font-size: 22px;

}


.vehicle-error,
.vehicle-empty {

    padding: 50px 20px;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

    text-align: center;

    color: #6b7280;

}


@media (max-width: 900px) {

    .vehicle-types-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 600px) {

    .vehicle-types-grid {

        grid-template-columns: 1fr;

    }

}

/*
|--------------------------------------------------------------------------
| Section Header
|--------------------------------------------------------------------------
*/

.vehicle-section-header {

    margin-bottom: 25px;

}


.vehicle-section-label {

    display: inline-block;

    margin-bottom: 6px;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .05em;

    color: #6b7280;

}


.vehicle-section-header h2 {

    margin: 0 0 6px;

    font-size: 24px;

    color: #111827;

}


.vehicle-section-header p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;

}


/*
|--------------------------------------------------------------------------
| Brands
|--------------------------------------------------------------------------
*/

.vehicle-brands-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;

}


.vehicle-brand-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 170px;

    padding: 20px;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.vehicle-brand-card:hover {

    transform:
        translateY(-3px);

    border-color:
        #d1d5db;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .06);

}


.vehicle-brand-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 90px;

    height: 90px;

    margin-bottom: 15px;

}


.vehicle-brand-logo img {

    display: block;

    max-width: 80px;

    max-height: 70px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.vehicle-brand-logo span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    border-radius: 50%;

    background: #f3f4f6;

    color: #374151;

    font-size: 28px;

    font-weight: 700;

}


.vehicle-brand-name {

    font-size: 14px;

    font-weight: 600;

    color: #111827;

    text-align: center;

}


@media (max-width: 1000px) {

    .vehicle-brands-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

    }

}


@media (max-width: 800px) {

    .vehicle-brands-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


@media (max-width: 600px) {

    .vehicle-brands-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}

/*
|--------------------------------------------------------------------------
| Models
|--------------------------------------------------------------------------
*/

.vehicle-models-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

}


.vehicle-model-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;

    min-height: 100px;

    padding: 18px;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.vehicle-model-card:hover {

    transform:
        translateY(-2px);

    border-color:
        #d1d5db;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .06);

}


.vehicle-model-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #f3f4f6;

    color: #374151;

}


.vehicle-model-info {

    min-width: 0;

}


.vehicle-model-info h3 {

    margin: 0 0 5px;

    font-size: 15px;

    color: #111827;

}


.vehicle-model-info span {

    font-size: 12px;

    color: #9ca3af;

}


.vehicle-model-arrow {

    margin-left: auto;

    color: #9ca3af;

    font-size: 20px;

}


/*
|--------------------------------------------------------------------------
| Generations
|--------------------------------------------------------------------------
*/

.vehicle-generations-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

}


.vehicle-generation-card {

    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;

    min-height: 100px;

    padding: 18px;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.vehicle-generation-card:hover {

    transform:
        translateY(-2px);

    border-color:
        #d1d5db;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .06);

}


.vehicle-generation-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #f3f4f6;

    color: #374151;

}


.vehicle-generation-info {

    min-width: 0;

}


.vehicle-generation-info h3 {

    margin: 0 0 5px;

    font-size: 15px;

    color: #111827;

}


.vehicle-generation-info span {

    font-size: 12px;

    color: #9ca3af;

}


.vehicle-generation-arrow {

    margin-left: auto;

    color: #9ca3af;

    font-size: 20px;

}


@media (max-width: 900px) {

    .vehicle-models-grid,
    .vehicle-generations-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 600px) {

    .vehicle-models-grid,
    .vehicle-generations-grid {

        grid-template-columns: 1fr;

    }

}

/*
|--------------------------------------------------------------------------
| Engines
|--------------------------------------------------------------------------
*/

.vehicle-engines-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

}


.vehicle-engine-card {

    display: flex;

    align-items: center;

    gap: 18px;

    width: 100%;

    min-height: 105px;

    padding: 18px 20px;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.vehicle-engine-card:hover {

    transform:
        translateY(-2px);

    border-color:
        #d1d5db;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .06);

}


.vehicle-engine-main {

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;

    flex: 1;

}


.vehicle-engine-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #f3f4f6;

    color: #374151;

}


.vehicle-engine-info {

    min-width: 0;

}


.vehicle-engine-info h3 {

    margin: 0 0 5px;

    font-size: 15px;

    color: #111827;

}


.vehicle-engine-info span {

    font-size: 12px;

    color: #6b7280;

}


.vehicle-engine-performance {

    display: flex;

    align-items: center;

    gap: 18px;

}


.vehicle-engine-performance div {

    display: flex;

    align-items: baseline;

    gap: 3px;

}


.vehicle-engine-performance strong {

    font-size: 15px;

    color: #111827;

}


.vehicle-engine-performance span {

    font-size: 11px;

    color: #6b7280;

}


.vehicle-engine-arrow {

    color: #9ca3af;

    font-size: 20px;

}


@media (max-width: 900px) {

    .vehicle-engines-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 600px) {

    .vehicle-engine-card {

        flex-wrap: wrap;

    }


    .vehicle-engine-performance {

        width: 100%;

        padding-left: 63px;

    }

}

/*
|--------------------------------------------------------------------------
| Engine Detail
|--------------------------------------------------------------------------
*/

.vehicle-engine-detail {

    display: flex;

    flex-direction: column;

    gap: 25px;

}


.engine-detail-header {

    padding:
        30px;

    border:
        1px solid #e5e7eb;

    border-radius: 14px;

    background: #ffffff;

}


.engine-detail-header h2 {

    margin: 5px 0 8px;

    font-size: 30px;

    color: #111827;

}


.engine-detail-header p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;

}


/*
|--------------------------------------------------------------------------
| Performance
|--------------------------------------------------------------------------
*/

.engine-performance-section,
.engine-chart-section,
.engine-specifications,
.engine-ecu-section {

    padding: 25px;

    border:
        1px solid #e5e7eb;

    border-radius: 14px;

    background: #ffffff;

}


.performance-header,
.engine-chart-header {

    margin-bottom: 20px;

}


.performance-header h3,
.engine-chart-header h3,
.engine-specifications-header h3,
.engine-ecu-section h3 {

    margin: 4px 0 0;

    font-size: 20px;

    color: #111827;

}


.performance-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

}


.performance-card {

    padding: 20px;

    border:
        1px solid #e5e7eb;

    border-radius: 10px;

    background: #f9fafb;

}


.performance-card.tuned {

    background: #f8fafc;

}


.performance-card-title {

    margin-bottom: 15px;

    font-size: 13px;

    font-weight: 600;

    color: #6b7280;

}


.performance-values {

    display: flex;

    gap: 25px;

}


.performance-values div {

    display: flex;

    align-items: baseline;

    gap: 4px;

}


.performance-values strong {

    font-size: 25px;

    color: #111827;

}


.performance-values span {

    font-size: 12px;

    color: #6b7280;

}


/*
|--------------------------------------------------------------------------
| Chart
|--------------------------------------------------------------------------
*/

.engine-chart {

    width: 100%;

    overflow: hidden;

}


#engineChartCanvas {

    display: block;

    width: 100%;

}


/*
|--------------------------------------------------------------------------
| Specifications
|--------------------------------------------------------------------------
*/

.engine-specifications-header {

    margin-bottom: 20px;

}


.engine-specifications-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

}


.engine-specification {

    padding: 16px;

    border:
        1px solid #e5e7eb;

    border-radius: 10px;

    background: #f9fafb;

}


.engine-specification span {

    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    color: #6b7280;

}


.engine-specification strong {

    display: block;

    font-size: 14px;

    color: #111827;

}


/*
|--------------------------------------------------------------------------
| ECU
|--------------------------------------------------------------------------
*/

.engine-ecu-section {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.engine-ecu-list {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}


.engine-ecu-card {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 14px;

    border:
        1px solid #e5e7eb;

    border-radius: 8px;

    background: #f9fafb;

    font-size: 13px;

    font-weight: 600;

    color: #374151;

}


.engine-no-ecu {

    color: #9ca3af;

    font-size: 13px;

}


@media (max-width: 900px) {

    .performance-grid {

        grid-template-columns:
            1fr;

    }


    .engine-specifications-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 600px) {

    .engine-detail-header,
    .engine-performance-section,
    .engine-chart-section,
    .engine-specifications,
    .engine-ecu-section {

        padding: 18px;

    }


    .engine-detail-header h2 {

        font-size: 24px;

    }


    .engine-specifications-grid {

        grid-template-columns:
            1fr;

    }

}

.engine-chart-container {

    width: 100%;

    max-width: 100%;

    overflow: hidden;

    box-sizing: border-box;

}


#engineChartCanvas {

    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    box-sizing: border-box;

}

.engine-chart {

    width: 100%;

    max-width: 100%;

    overflow: hidden;

    box-sizing: border-box;

}


#engineChartCanvas {

    display: block;

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

}

/* ==========================================================
   Vehicle Database Banner
   ========================================================== */

.vehicle-database-banner {

    min-height: 300px;
    height: 300px;

    display: flex;
    align-items: center;

}


.vehicle-database-banner .header-text {

    margin-top: 0;

}


.vehicle-database-banner .header-text h2 {

    font-size: 44px;

    line-height: 1.05;

    letter-spacing: 0.5px;

}

/* ==========================================================
   Vehicle Database Content Spacing
   ========================================================== */

.vehicle-database-content {

    margin-top: 0 !important;

}

#vehicleDatabaseContent {

    margin-top: 0 !important;

    padding-top: 0 !important;

}

/* ==========================================================
   Server Side Engine SEO Content
   ========================================================== */

.engine-seo-content {

    max-width: 1100px;
    margin: 0 auto 40px;

}


.engine-seo-header {

    margin-bottom: 24px;

}


.engine-seo-eyebrow {

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 600;

    color: #6b7280;

    text-transform: uppercase;

    letter-spacing: .04em;

}


.engine-seo-header h1 {

    margin: 0;

    font-size: 28px;

    font-weight: 700;

    color: #111827;

}


.engine-seo-header p {

    margin: 6px 0 0;

    color: #6b7280;

    font-size: 14px;

}


.engine-seo-stage {

    margin-bottom: 24px;

    padding: 22px;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

}


.engine-seo-stage h2 {

    margin: 0 0 18px;

    font-size: 18px;

    color: #111827;

}


.engine-seo-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;

}


.engine-seo-specification {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 14px;

    border-radius: 8px;

    background: #f9fafb;

}


.engine-seo-specification span {

    font-size: 12px;

    color: #6b7280;

}


.engine-seo-specification strong {

    font-size: 15px;

    color: #111827;

}


@media (
    max-width: 700px
) {

    .engine-seo-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

    }


    .engine-seo-header h1 {

        font-size: 24px;

    }

}


@media (
    max-width: 480px
) {

    .engine-seo-grid {

        grid-template-columns:
            1fr;

    }


    .engine-seo-stage {

        padding: 16px;

    }

}

.vehicle-type-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.vehicle-type-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;
}

.vehicle-engine-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-engine-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.vehicle-generation-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.vehicle-model-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}