/*============================================================================*/
/* MODAL OVERLAY SPECS */
/*============================================================================*/

body.modal-open {
    overflow: hidden;
}

.specs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.specs-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.specs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.specs-modal.show {
    opacity: 1;
    visibility: visible;
}

.spec-header {
    color: #c30606;
    font-weight: bold;
}

.specs-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c30606;
    color: #fff;
    border: none;
    padding: 5px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1000;
}

/*============================================================================*/
/* COLOR CHANGE */
/*============================================================================*/

.color-circle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
}

.color-circle .checkmark {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    display: none;
    pointer-events: none;
}

.color-circle.selected .checkmark {
    display: block;
}

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

/* Slider items */
.gallery-slider .gallery-item {
    margin: 5px;
    position: relative;
}

.gallery-slider img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.thumb-info-action {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .thumb-info-action {
    opacity: 1;
}

.thumb-info-action-icon {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
}

/* Owl Carousel navigation arrows */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 40px;
    color: red;
    cursor: pointer;
    z-index: 1000;
}

.owl-nav button:hover {
    color: darkred;
}

.owl-nav .arrow-left { left: -25px; }
.owl-nav .arrow-right { right: -25px; }

/* Magnific Popup */
/* Remove default × and show only "Close" in red */
.mfp-close {
    text-indent: 0 !important;    /* Remove default × */
    width: auto !important;
    height: auto !important;
    font-size: 16px !important;
    color: #c30606 !important;   /* Close text in red */
    opacity: 1 !important;
    cursor: pointer !important;
    right: 10px !important;
    top: 10px !important;
    line-height: normal !important;
}

.mfp-close:after {
    content: "close";                 /* Display word Close */
    display: inline-block;
    font-size: 16px;
    color: white;                        /* Text red */
    background-color: #7878782e;            /* Light gray background */
    padding: 5px 10px;
    border-radius: 4px;
}

/*============================================================================*/
/* ACCORDION CONTACT */
/*============================================================================*/

.panel {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 10px;
}

.panel-heading {
    background: #f7f5f5 !important;
    border-radius: 6px;
    padding: 12px 18px;
}
.panel-group .panel-heading + .panel-collapse {
    border-top: none;
}
.accordion .panel-heading.active {
    background: #e6e4e4 !important;
}
.panel-title a {
    color: #0e0d0d !important;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
    display: block;
}

.panel-collapse {
    border: 1px solid #ddd;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 6px 6px;
    background: #fff;
}

/* =======================
   Slider Container Fix
   ======================= */
.tp-banner-container {
    max-width: 100%;
    overflow: hidden; /* prevents horizontal overflow */
    margin: 0 auto;
}

/* =======================
   Slider Images Fix
   ======================= */
.tp-banner-container img,
.tp-banner-container .tp-revslider-slidesli img {
    width: 100%;
    height: auto;
    object-fit: cover; /* keeps aspect ratio, fills container */
}

/* =======================
   Optional: Slider Height (Adjust as Needed)
   ======================= */
.tp-banner-container,
.tp-banner-container .tp-revslider-mainul {
    min-height: 400px; /* change to fit your design */
}

/*============================================================================*/
/* ACCESSORIES */
/*============================================================================*/

.accessory-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.accessory-info {
    padding: 10px;
    text-align: center;
}

.accessory-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/*============================================================================*/
 /* SLIDE TEXT */
/*============================================================================*/

/* IMAGE WRAPPER 
.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

/* IMAGE ZOOM 
.image-wrapper img {
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.image-wrapper.zoom img {
    transform: scale(1.15);
}

/* SLIDE TEXT 
.slide-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    color: #fff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 5px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

/* SHOW TEXT ON ACTIVE 
.image-wrapper.active .slide-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Text1 always visible 
.text1 {
    top: 12%;
    font-size: 1.6em;
    opacity: 1;
}

/* Text2 initially hidden 
.text2 {
    bottom: 5%;
    font-size: 2.6em;
    opacity: 1;
}

/* =============================================================================*/
/* RIBBON*/
/*==============================================================================*/

/* Price Ribbon on Car Image */
/* =======================
   Toyota Style Price Ribbon
   ======================= */

.toyota-ribbon-wrapper {
    position: relative; /* IMPORTANT */
    display: table-header-group;
}
.toyota-float-ribbon {
	background-color: #f4f4f4;
    display: flex;
    align-items: center;
    gap: 10px; /* space between label and price */
}

/* Label in red */
.label-text {
    color:#000;
    font-weight:bolder;
    font-size: 13px;
}

/* Price in default/black */
.price-text {
    color: #c30606; /* or your desired color */
    font-weight: 100;
    font-size: 15px;
	padding: 5px 1px;
	border-radius: 0;
}

/* Ribbon */
.toyota-ribbon {
    position: absolute;
    top: 15px;
    left: 0;
    background: #c30606;
    color: #fff;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    z-index: 5;
    white-space: nowrap;
}

/* Ribbon Tail */
.toyota-ribbon::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 15px solid #c30606;
}

/* Mobile Fix */
@media (max-width: 576px) {
    .toyota-ribbon {
        font-size: 12px;
        padding: 8px 14px;
    }

    .toyota-ribbon::after {
        border-top: 17px solid transparent;
        border-bottom: 17px solid transparent;
    }
}

