/*============================================================================*/
/* SLIDER ARROW */
/*============================================================================*/
.rev_slider_wrapper {
    overflow: visible !important;
}
.tp-leftarrow, .tp-rightarrow {
    z-index: 9999 !important;
    display: block !important;
}

/*============================================================================*/
/* 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;
    }
}


/*============================================================================*/
/*  SLIDER */
/*============================================================================*/
}
/* SOCIAL ICONS */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}
/* Pressed / Click Effect */
.social-icons a:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.1),
    0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Icon scaling on hover */
.social-icons a:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Privacy Policy link */
.text-center a {
  text-decoration: none;
}
/* MOBILE*/
@media(max-width:768px){

  .variant-section{
    flex-direction:column;
  }

  .tabs{
    flex-direction:row;
    overflow-x:auto;
    width:100%;
    padding-bottom:6px;
  }

  .tab{
    min-width:160px;
    text-align:center;
    flex-shrink:0;
  }

  .tab.active::after{
    left:0;
    top:auto;
    bottom:-4px;
    width:100%;
    height:3px;
  }
}
.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;
}
/* Vertical variant tabs */
.tabs {
  display: flex;            /* vertical layout */
  flex-direction: column;
  gap: 10px;                /* space between tabs */
  margin-bottom: 20px;
  padding: 0;
}

.tab {
  flex: none;
  text-align: left;        /* align text left */
  cursor: pointer;
  padding: 10px 15px;      /* add left padding */
  background: #fff;
  font-weight: 500;
  transition: all 0.2s;
  box-sizing: border-box;
  position: relative;
}

.tab:hover {
  background: #f7f7f7;
}

.tab.active {
  font-weight: bold;
  background: #f5f5f5;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 3px;
  height: 100%;
  background: red;
  border-radius: 1.5px;
}
.variant-section {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tabs {
  width: 200px;
  flex-shrink: 0;
}
.car-image {
  flex: 1;
  margin-top: -30px; /* move upward */
}
.content { flex: 1; overflow: hidden; }
.car-image { text-align: center; margin-bottom: 60px; }
.car-image img { max-width: 80%; max-height: inherit}

#specTable td:nth-child(2) { padding-left: 20px; }

.colors {
  margin-top: 10px;
}
.colors #colorName {
  text-align: center;
  font-weight: bold;
  margin-bottom: 6px;
}
.colors span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 6px;
  cursor: pointer;
  border: 1px solid #ccc;
  position: relative;
  text-align: center;
  line-height: 22px;
  font-weight: bold;
  font-size: 16px;
  color: white;
}
.colors span.checked::after {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.colors span.checked[style*="background:#fff"]::after {
  color: gray;
}

.specs table { width: 100%; border-collapse: collapse; }
.specs td { padding: 10px; border-bottom: 1px solid #ddd; }
.full-specs {
  color: red;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  font-weight: bold;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 20px 25px;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
  font-family: Arial, sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}
.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}
.variant-title {
  font-size: 22px;
  font-weight: bold;
  color: #d32f2f;
  margin-bottom: 5px;
}
.variant-color-bar {
  height: 4px;
  width: 50px;
  background-color: #d32f2f;
  margin-bottom: 20px;
  border-radius: 2px;
}
.accordion-container {
  font-size: 14px;
  color: #333;
}
.accordion-header {
  padding: 12px 15px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
  border-radius: 5px;
}
.accordion-header:hover { background: #eee; }
.accordion-header.active { background: #e0e0e0; }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-bottom: 5px;
  background: #fff;
  border-radius: 0 0 5px 5px;
}
/* BUTTONS */
.spec-buttons {
  margin-top: 15px;
  display: flex;
  gap: 30px;               /* space between items */
  align-items: center;
}

.spec-buttons .full-specs,
.spec-buttons .spec-btn {
  cursor: pointer;
  text-decoration: none;
  color: #000;             /* black text */
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3); /* subtle 3D */
  transition: all 0.2s ease;
}

.spec-buttons .full-specs:hover,
.spec-buttons .spec-btn:hover {
  color: #d32f2f;          /* hover color */
  transform: translateY(-2px); /* lift for 3D effect */
  text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}

.spec-buttons i {
  margin-right: 6px;       /* space between icon and text */
  font-size: 18px;
}
  /* NAV TABS */
.nav-tabs .nav-link {
  color: #000;              /* default black */
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: #d32f2f;           /* red on hover */
}

.nav-tabs .nav-link.active {
   color: #d32f2f;           /* red for active tab */
}
.accordion-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.accordion-content td { padding: 8px 5px; border-bottom: 1px solid #eee; }
.social-icons {
  display: flex;
  gap: 15px;
  perspective: 800px;
}
 /* SOCIAL ICONS*/
.social-icons a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(145deg, #666, #333);
  border-radius: 50%;
  text-decoration: none;
  box-shadow:
    0 6px 0 #222,
    0 10px 15px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  transition: all 0.25s ease;
}

/* 3D Hover Effect */
.social-icons a:hover {
  transform: translateY(-6px) rotateX(15deg);
  box-shadow:
    0 12px 0 #111,
    0 18px 25px rgba(0, 0, 0, 0.45);
}

/* Pressed / Click Effect */
.social-icons a:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #111,
    0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Brand colors */
.social-icons a:nth-child(1) {
  background: linear-gradient(145deg, #1877f2, #0f5cc0);
}
.social-icons a:nth-child(2) {
  background: linear-gradient(145deg, #f58529, #dd2a7b, #8134af);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.privacy-link a {
  font-weight: bold;
  font-size: 15px;
  font-family: sans-serif;
  text-decoration: none;
  color: #000;
}

.privacy-link a:hover {
  text-decoration: underline;
}

