/* =====================================================
   GTINO – Bouton sticky Filtrage véhicule
===================================================== */

.gtino-vehicle-filter-toggle {
  position: fixed;
  right: 0;
  top: 35%;
  z-index: 9000;

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

  /* padding regroupé : top/bottom | left | right */
  padding: 5px 10px 5px 5px;

  border-radius: 25px 0 0 25px;

  background: #f2f2f2;
  box-shadow: -3px 4px 10px rgba(0,0,0,0.18);
  border: 1px solid #ccc;
  border-right: none;

  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
    transition: box-shadow .2s ease;

}

/* BASE */
.gtino-vehicle-filter-toggle {
  transition: box-shadow .2s ease;
}

/* HOVER = PAS DE MOVE */
.gtino-vehicle-filter-toggle:hover {
  box-shadow: -8px 10px 24px rgba(0,0,0,0.25);
}

.gtino-toggle-text {
  line-height: 1;
}

.gtino-vehicle-filter-toggle:hover {
  box-shadow: -8px 10px 24px rgba(0,0,0,0.25);
}

/* Switch track */
.gtino-toggle-track {
  width: 36px;
  height: 64px;
  background: #dc2626; /* OFF */
  border-radius: 999px;
  position: relative;
  transition: background .25s ease;
}

/* Thumb */
.gtino-toggle-thumb {
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  bottom: 5px;
  transition: transform .25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}

/* ON */
.gtino-vehicle-filter-toggle.is-on .gtino-toggle-track {
  background: #22c55e;
}

.gtino-vehicle-filter-toggle.is-on .gtino-toggle-thumb {
  transform: translateY(-28px);
}

/* Tooltip desktop uniquement */
.gtino-vehicle-filter-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  margin-right: 12px;

  background: #111827;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.gtino-vehicle-filter-toggle:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile */
@media (max-width: 768px) {
  .gtino-vehicle-filter-toggle {
    top: auto;
    bottom: 120px;
  }

  .gtino-vehicle-filter-toggle::after {
    display: none; /* pas de tooltip mobile */
  }
}

/* Texte ON / OFF dans le bouton blanc */
.gtino-toggle-text {
  position: absolute;
  inset: 0;

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

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;

  color: #111;
  user-select: none;
  pointer-events: none;
}

.gtino-vehicle-filter-toggle:not(.is-on) .gtino-toggle-thumb {
  background: #f9fafb;
}

.gtino-toggle-track,
.gtino-toggle-thumb,
.gtino-toggle-text {
  pointer-events: none;
}
