/* model-detail.css */

/* 1. Hero Section Styles (Imported from custom_hero.css) */
.head_h {
    display: none;
}

.xq_ban {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 100%);
    overflow: hidden;
    height: 100vh;
    padding-top: 80px;
    min-height: 650px;
    /* Prevent squishing on very small screens */
}

.xq_bj {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    /* Lowered from 82% so the horizon line intersects the tires properly */
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    z-index: 1;
}

.xq_ban .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding-bottom: 20px;
}

.xq_bt {
    text-align: center;
    margin-top: 3vh;
}

.xq_bt img {
    height: 100px;
    /* Increased logo size */
    max-width: 100%;
    object-fit: contain;
}

.bd {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 0;
    /* Reset margin since .hd is now absolute */
    position: relative;
    z-index: 2;
}

.bd ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.bd ul li {
    display: none;
    text-align: center;
}

.bd ul li.active {
    display: block;
}

.bd ul li img {
    max-width: 100%;
    max-height: 60vh;
    /* Increased bike size */
    object-fit: contain;
}

/* Color selector */
.hd {
    position: absolute;
    right: 0; /* Moved to the right edge as requested */
    top: 75%;
    /* Align exactly to the track background cutoff line */
    transform: translateY(-50%);
    /* Center it vertically on the line */
    display: flex;
    align-items: center;
    z-index: 10;
}

.hd h3 {
    margin: 0 15px 0 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
    text-shadow: none;
    letter-spacing: 1px;
}

.hd ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    /* Spacing between dots */
}

.hd ul li.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    cursor: pointer;
    /* Use actual border for the thick white gap for perfectly round rendering */
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1px #ccc, /* Thin grey outer border */
        inset 0 6px 8px -2px rgba(0, 0, 0, 0.5); /* 3D inner shadow on the top half */
    position: relative;
    background-size: cover;
    overflow: hidden;
    box-sizing: border-box; /* Ensure border doesn't break shape */
}

.hd ul li.color-dot.active {
    box-shadow:
        0 0 0 2px #00a8b5, /* Cyan active border */
        inset 0 6px 8px -2px rgba(0, 0, 0, 0.5);
}

/* Stats Row */
.row.mg_my {
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0;
    border-top: none;
    position: relative;
    z-index: 3;
}

.bn_sj {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.bn_sj .stat-val {
    font-size: 2.3rem;
    /* Scaled down slightly to match proportion */
    font-weight: 500;
    color: #000;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: 'Archivo', sans-serif;
}

.bn_sj .stat-val span {
    font-size: 2.3rem;
    font-weight: 500;
}

.bn_sj p {
    font-size: 1.05rem;
    color: #999;
    /* Medium gray */
    margin: 4px 0 0;
    /* Tighter spacing to number */
    font-weight: 500;
}


/* 2. Normal Scrolling Layout Shared Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.light-bg {
    background-color: #fff;
    color: #111;
}

.text-primary-accent {
    color: #5881BC;
    /* ZXMOTO blue-ish accent */
}

/* 3. Specs Section */
.specs-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    --bs-nav-tabs-border-width: 0px !important;
}

/* Hide scrollbar for tabs */
.specs-tabs::-webkit-scrollbar {
    display: none;
}
.specs-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.specs-li {
    border-bottom: 4px solid #eee;
}

.specs-tabs .nav-link {
    color: #888;
    background: transparent;
    border: none;
    padding: 15px 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.specs-li.active {
    border-bottom: 4px solid #5881BC;
}

.specs-li.active .nav-link {
    color: #5881BC;
}

.specs-tabs .nav-link:hover {
    color: #111;
}

.specs-content {
    min-height: 600px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
}

.specs-list li span:first-child {
    color: #999;
    font-weight: 400;
    text-align: left;
}

.specs-list li span:last-child {
    font-weight: 400;
    color: #222;
    text-align: right;
}

/* 4. Feature Sections */
.feature-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* 5. Details Swiper */
.detailsSwiper {
    padding-bottom: 50px;
}

.detail-card {
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.detail-card:hover {
    transform: translateY(-3px);
}

.detail-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.detail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(88, 129, 188, 0.85);
    /* Blue translucent overlay */
    padding: 15px 20px;
    color: white;
}

.detail-info p {
    margin: 0;
    font-size: 1rem;
    color: white;
}

/* Details Swiper Navigation Arrows */
.detailsSwiper .swiper-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.detailsSwiper .swiper-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.detailsSwiper .details-prev {
    left: 0;
}

.detailsSwiper .details-next {
    right: 0;
}

/* 6. Review Swiper */
.reviewSwiper {
    padding-bottom: 60px;
}

.review-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

.review-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.review-nav-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5881BC;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.review-nav-arrow:hover {
    background-color: #466b9d;
}

.review-prev {
    left: -10px;
}

.review-next {
    right: -10px;
}

.review-pagination {
    bottom: 0 !important;
}

.review-pagination .swiper-pagination-bullet {
    background: #5881BC;
    opacity: 0.5;
}

.review-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #5881BC;
}

/* 7. Gallery */
.gallery-grid img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid img:hover {
    opacity: 0.8;
}

/* 8. Recommend Swiper */
.recommendSwiper {
    padding-bottom: 20px;
}

.recommend-card {
    background-color: #f8f9fa;
    position: relative;
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.recommend-card:hover {
    transform: translateY(-5px);
}

.recommend-card img {
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.recommend-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background: linear-gradient(90deg, #6ba1df, #40689b);
    color: white;
    padding: 5px 20px 5px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%);
}

.recommend-title {
    font-weight: bold;
    margin: 0;
}

.recommend-pagination .swiper-pagination-bullet {
    background: #5881BC;
    opacity: 0.5;
}

.recommend-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #5881BC;
}

/* 9. Specs Carousel and Badge */
.specs-model-badge {
    background-color: #5881BC;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    padding: 10px 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.specsImageSwiper {
    padding-bottom: 20px;
}

.specs-img-prev,
.specs-img-next {
    background-color: #5881BC;
    color: white;
    border: none;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.specs-img-prev:hover,
.specs-img-next:hover {
    background-color: #466b9d;
    color: white;
}

/* 10. Custom Scroll Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(150px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 11. Model Toggle Buttons */
.model-toggle-group {
    display: flex;
    gap: 10px;
}

.model-toggle-btn {
    padding: 10px 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.model-toggle-btn.active {
    background-color: #5881BC;
    color: #fff;
    border-color: #5881BC;
}

/* 12. Responsive Adjustments */
@media (max-width: 991px) {
    /* Tablet & Mobile Adjustments */
    .xq_ban {
        height: auto;
        min-height: 500px;
    }
    .xq_bj {
        height: 60%;
    }
    .hd {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        justify-content: center;
        margin-top: 25px;
        margin-bottom: 35px;
    }
    .hd h3 { font-size: 0.9rem; margin-right: 10px; margin-bottom: 0; }
    .color-dot { width: 22px; height: 22px; margin-right: 10px; border-width: 1px; }
    .row.mg_my {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 35px 0;
        padding-bottom: 30px;
    }
    .bn_sj {
        align-items: center;
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 10px;
    }
    .bn_sj .stat-val {
        font-size: 1.25rem;
    }
    .bn_sj .stat-val span {
        font-size: 1.25rem;
    }
    .bn_sj p {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    h2[style*="font-size: 2.2rem;"] {
        font-size: 1.8rem !important;
        text-align: center;
    }
    div[style*="width: 60px;"][style*="#5881BC"] {
        margin: 0 auto 30px auto !important;
    }
    .feature-section {
        padding: 50px 0;
        min-height: 400px !important;
    }
    .specs-model-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }
    .model-toggle-btn {
        padding: 8px 15px;
        font-size: 1rem;
        flex: 1;
        text-align: center;
    }
    .model-toggle-group {
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    /* Mobile only adjustments */
    .xq_bt img {
        height: 70px;
    }
    .bd ul li img {
        max-height: 40vh;
    }
    .specs-tabs .nav-link {
        padding: 10px;
        font-size: 0.85rem;
    }
    .specs-list li {
        flex-direction: row;
        padding: 12px 0;
        font-size: 0.95rem;
    }
    .specs-list li span:first-child {
        text-align: left;
        max-width: 45%;
        padding-right: 10px;
    }
    .specs-list li span:last-child {
        text-align: right;
        margin-top: 0;
        color: #111;
        max-width: 55%;
    }
    .section-padding {
        padding: 50px 0;
    }
    .footer-contact ul li {
        display: block !important;
        margin-bottom: 10px;
    }
    .footer-contact .list-inline-item:not(:last-child) {
        margin-right: 0;
    }
    .review-nav-arrow {
        width: 30px;
        height: 30px;
    }
    .detailsSwiper .swiper-nav-arrow {
        width: 30px;
        height: 60px;
    }
    .specs-content {
        min-height: auto;
    }
    h2[style*="font-size: 2.5rem;"] {
        font-size: 1.8rem !important;
        text-align: center;
    }
}