/* =====================================================
   TAIGEN PAGE COMPONENTS
   ===================================================== */

/* Remove any conflicting video styles */
.iyeg-video-reveal,
.iyeg-video-reveal__container,
.iyeg-video-reveal__wrapper,
.iyeg-video-reveal__video {
    display: none !important;
}



/* ===== IMAGE SECTION ===== */
.iyeg-image-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.iyeg-image-section__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== SPECS TABS OVERLAP ===== */
.iyeg-specs-tabs-section--overlap {
    padding-top: 2rem;
}

.iyeg-specs-tabs-section--overlap .iyeg-specs-tabs__inner {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 2rem 3rem;
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
}

/* ===== COLOR SWITCHER WITH OVERLAY ===== */


/* ===== VEHICLE FEATURES ===== */
.iyeg-vehicle-features {
    background: #000;
    padding: var(--iyeg-space-xl) var(--iyeg-container-padding);
    position: relative;
    z-index: 1;
}

.iyeg-vehicle-features__container {
    position: relative;

    max-width: 1200px;
    margin: 0 auto;

    height: 70vh;

    overflow: hidden;
}

.iyeg-vehicle-features__container::-webkit-scrollbar {
    display: none;
}


.iyeg-vehicle-features__slide{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    gap:4rem;
    padding:2rem 0;

    opacity:0;
    transform:translateX(0);

    pointer-events:none;

    transition:
        transform .55s cubic-bezier(.22,.61,.36,1),
        opacity .35s ease;
}

.iyeg-vehicle-features__slide.active{
    opacity:1;
    transform:translateX(0);
    pointer-events:auto;
    z-index:2;
}

.iyeg-vehicle-features__slide.enter-right{
    transform:translateX(20%);
    opacity:0;
}

.iyeg-vehicle-features__slide.enter-left{
    transform:translateX(-20%);
    opacity:0;
}

.iyeg-vehicle-features__slide.fade-out{
    opacity:0;
    transform:translateX(0);
    z-index:1;
}




/* .iyeg-vehicle-features__image {
    flex: 1;
    height: 80%;
    border-radius: 12px;
    overflow: hidden;
} */

.iyeg-vehicle-features__image {
    flex: 1;
    aspect-ratio: 4/3;  /* All images same aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* .iyeg-vehicle-features__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.iyeg-vehicle-features__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.iyeg-vehicle-features__content {
    flex: 1;
    padding: 2rem;
}

.iyeg-vehicle-features__title {
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-weight: 700;
    font-size: var(--iyeg-font-size-xl);
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.iyeg-vehicle-features__description {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: var(--iyeg-font-size-base);
    color: var(--iyeg-text-gray);
    line-height: 1.8;
    max-width: 500px;
}

/* .iyeg-vehicle-features__numbers {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
} */

.iyeg-vehicle-features__numbers {
    position: absolute;

    bottom: 3rem;
    right: 5%;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 1.5rem;

    z-index: 10;
}

/* .iyeg-vehicle-features__number {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-sm);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
} */

.iyeg-vehicle-features__number {
    border: none;
    background: transparent;

    color: rgba(255,255,255,.35);

    font-family: "Inter", sans-serif;
    font-size: .9rem;
    font-weight: 500;

    letter-spacing: .12em;

    min-width: 2ch;

    text-align: center;

    cursor: pointer;

    transition:
        color .3s ease,
        transform .3s ease;
}

/* .iyeg-vehicle-features__number.active {
    color: #ffffff;
    transform: scale(1.2);
} */

.iyeg-vehicle-features__number.active {
    color: var(--iyeg-active-green);
}

/* .iyeg-vehicle-features__number:hover {
    color: rgba(255, 255, 255, 0.8);
} */

.iyeg-vehicle-features__number:hover {
    color: #ffffff;
}

/* ===== ATTACHMENT CAROUSEL ===== */
.iyeg-attachment-carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.iyeg-attachment-carousel__track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease;
}

.iyeg-attachment-carousel__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iyeg-attachment-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iyeg-attachment-carousel__label {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-md);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iyeg-attachment-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.iyeg-attachment-carousel__btn:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
    background: rgba(255, 255, 255, 0.1);
}

.iyeg-attachment-carousel__btn--prev {
    left: 20px;
}

.iyeg-attachment-carousel__btn--next {
    right: 20px;
}

/* ===== GALLERY CAROUSEL ===== */
.iyeg-gallery-carousel {
    position: relative;
    width: 100%;
    padding: 3rem 0;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

.iyeg-gallery-carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 5% 2rem;
}

/* .iyeg-gallery-carousel__btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
} */

/* .iyeg-gallery-carousel__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
} */

.iyeg-gallery-carousel__btn {
    width: 36px;
    height: 36px;

    border: none;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    cursor: pointer;

    color: #ffffff;

    transition: color 0.3s ease, transform 0.3s ease;
}

.iyeg-gallery-carousel__btn:hover {
    color: var(--iyeg-active-green);
    transform: scale(1.08);
}

.iyeg-gallery-carousel__icon {
    width: 18px;
    height: 18px;
    display: block;

    color: inherit;
    pointer-events: none;

    transition: inherit;
}

.iyeg-gallery-carousel__icon--left {
    transform: rotate(180deg);
}

.iyeg-gallery-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
    padding: 0 5%;
}

.iyeg-gallery-carousel__slide {
    min-width: calc(33.33% - 14px);
    flex-shrink: 0;
    position: relative;

    overflow: hidden;
    background: #000;
}

.iyeg-gallery-carousel__slide img {
    width: 100%;

    max-height: 400px; /* Same as video */
    aspect-ratio: 16 / 11; /* Same as video */
    display: block;

    object-fit: cover;
    border-radius: 8px;


}

.iyeg-gallery-carousel__caption {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: var(--iyeg-font-size-sm);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
    padding-left: 0.25rem;
}

.iyeg-gallery-carousel__indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* .iyeg-gallery-carousel__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
} */

/* .iyeg-gallery-carousel__indicator.active {
    background: var(--iyeg-active-green);
} */



/* ===== DOT INDICATORS ===== */

.iyeg-gallery-carousel--dots .iyeg-gallery-carousel__indicator {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.25);

    cursor: pointer;

    transition: background-color .3s ease,
                transform .3s ease;
}

.iyeg-gallery-carousel--dots .iyeg-gallery-carousel__indicator.active {
    background: var(--iyeg-active-green);
    transform: scale(1.2);
}

/* ===== NUMBER INDICATORS ===== */

.iyeg-gallery-carousel--numbers .iyeg-gallery-carousel__indicators{

    justify-content:flex-end;

    gap:1.5rem;

    padding:0 5%;
}

.iyeg-gallery-carousel--numbers .iyeg-gallery-carousel__indicator {

    border: none;
    background: transparent;

    color: rgba(255,255,255,.35);

    font-family: "Inter", sans-serif;
    /* font-size: var(--iyeg-font-size-sm); */

    font-size:0.9rem;

font-weight:500;

letter-spacing:.12em;

min-width:2ch;

text-align:center;

    cursor: pointer;

    transition: color .3s ease,
                transform .3s ease;
}

.iyeg-gallery-carousel--numbers .iyeg-gallery-carousel__indicator.active {

    color: var(--iyeg-active-green);

    /* transform: scale(1.15); */

    /* font-weight:700; */
    /* or  */
    /* opacity:1; */

}

/* ===== LINE INDICATORS ===== */

.iyeg-gallery-carousel--lines .iyeg-gallery-carousel__indicator {

    position: relative;

    width: 36px;
    height: 12px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

.iyeg-gallery-carousel--lines .iyeg-gallery-carousel__indicator::before {

    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 100%;
    height: 2px;

    background: rgba(255,255,255,.25);

    transform: translateY(-50%);
}


.iyeg-gallery-carousel__indicator-line {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 100%;
    height: 2px;

    background: var(--iyeg-active-green);

    transform: translate(-50%,-50%) scaleX(0);

    transform-origin: center;

    transition: transform .35s ease;
}

.iyeg-gallery-carousel--lines
.iyeg-gallery-carousel__indicator.active
.iyeg-gallery-carousel__indicator-line{

    transform: translate(-50%,-50%) scaleX(1);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .iyeg-vehicle-features__slide {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .iyeg-vehicle-features__image {
        width: 100%;
        height: 50%;
    }
    
    .iyeg-vehicle-features__content {
        padding: 0 1rem;
    }
    
    .iyeg-gallery-carousel__slide {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .iyeg-dynamic-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .iyeg-attachment-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .iyeg-vehicle-features__container {
        height: 80vh;
    }
    
    /* .iyeg-vehicle-features__numbers {
        bottom: 2rem;
        right: 5%;
        flex-direction: row;
    } */

    .iyeg-vehicle-features__numbers {
        bottom: 2rem;
        right: 5%;
    
        justify-content: flex-end;
    
        gap: 1rem;
    }
    
    .iyeg-gallery-carousel__slide {
        min-width: calc(100% - 20px);
    }
    
    .iyeg-gallery-carousel__slide img {
        height: 200px;
    }
    
    .iyeg-color-picker-wrapper .iyeg-color-btn {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .iyeg-dynamic-carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .iyeg-attachment-carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .iyeg-vehicle-features__title {
        font-size: var(--iyeg-font-size-lg);
    }
    
    .iyeg-vehicle-features__description {
        font-size: var(--iyeg-font-size-sm);
    }
    
    .iyeg-gallery-carousel__controls {
        padding: 0 1rem 1rem;
    }
}


/* Responsive for images */
@media (max-width: 1024px) {
    .iyeg-gallery-carousel__slide img {
        max-height: 350px;
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 768px) {
    .iyeg-gallery-carousel__slide img {
        max-height: 280px;
        aspect-ratio: 16 / 12;
    }
}

@media (max-width: 480px) {
    .iyeg-gallery-carousel__slide img {
        max-height: 220px;
        aspect-ratio: 16 / 10;
    }
}