/* =========================================================
   VSCL COMPARE — inventory + single listing + compare page
========================================================= */
.vscl-compare-card-btn,
.vscl-single-pill-btn--compare{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid rgba(17,17,17,.14)!important;
  background:#fff!important;
  color:#111!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:none!important;
}

.vscl-compare-card-btn{
  position:absolute;
  top:14px;
  left:14px;
  z-index:6;
  min-height:38px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  backdrop-filter:blur(8px);
  background:rgba(255,255,255,.88)!important;
}

.vscl-compare-card-btn.is-active,
.vscl-single-pill-btn--compare.is-active{
  background:#d71920!important;
  border-color:#d71920!important;
  color:#fff!important;
}

.vscl-compare-btn-icon,
.vscl-compare-btn-icon svg{
  width:17px;
  height:17px;
  display:block;
  flex:0 0 17px;
}

.vscl-compare-float{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translate(-50%, 140%);
  z-index:99998;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 10px 10px 16px;
  border-radius:999px;
  background:rgba(17,24,39,.92);
  color:#fff;
  box-shadow:0 22px 70px rgba(0,0,0,.24);
  backdrop-filter:blur(14px);
  opacity:0;
  pointer-events:none;
  transition:transform .22s ease, opacity .22s ease;
}

.vscl-compare-float.is-visible{
  transform:translate(-50%, 0);
  opacity:1;
  pointer-events:auto;
}

.vscl-compare-float-copy{
  display:flex;
  align-items:baseline;
  gap:6px;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
}

.vscl-compare-float-copy strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:26px;
  border-radius:999px;
  background:#d71920;
  color:#fff;
  font-size:14px;
}

.vscl-compare-float-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.vscl-compare-float-btn,
.vscl-compare-float-clear{
  min-height:38px;
  border-radius:999px;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none!important;
  cursor:pointer;
}

.vscl-compare-float-btn{
  padding:0 16px;
  background:#fff;
  color:#111!important;
  font-weight:900;
  font-size:13px;
}

.vscl-compare-float-clear{
  width:38px;
  padding:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:22px;
  line-height:1;
}

.vscl-compare-toast{
  position:fixed;
  top:22px;
  right:22px;
  z-index:999999;
  max-width:320px;
  padding:12px 15px;
  border-radius:14px;
  background:#111827;
  color:#fff;
  font-weight:800;
  font-size:13px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;
  transition:.2s ease;
}

.vscl-compare-toast.is-visible{
  opacity:1;
  transform:translateY(0);
}

.vscl-compare-page{
  max-width:1440px;
  margin:28px auto 70px;
  padding:0 20px;
}

.vscl-compare-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:34px;
  border-radius:28px;
  background:radial-gradient(circle at 15% 0%, rgba(215,25,32,.16), transparent 34%), linear-gradient(135deg,#101318,#20242d);
  color:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.18);
  overflow:hidden;
  position:relative;
}

.vscl-compare-hero:after{
  content:"COMPARE";
  position:absolute;
  right:-18px;
  bottom:-20px;
  font-size:clamp(56px, 10vw, 150px);
  line-height:.8;
  font-weight:950;
  letter-spacing:-.08em;
  color:rgba(255,255,255,.04);
  pointer-events:none;
}

.vscl-compare-kicker{
  display:inline-flex;
  margin-bottom:12px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vscl-compare-hero h1{
  margin:0;
  font-size:clamp(34px, 4.4vw, 66px);
  line-height:.94;
  letter-spacing:-.055em;
  color:#fff;
  font-weight:950;
}

.vscl-compare-hero p{
  max-width:680px;
  margin:14px 0 0;
  color:rgba(255,255,255,.74);
  font-size:16px;
  line-height:1.65;
  font-weight:600;
}

.vscl-compare-hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  position:relative;
  z-index:2;
}

.vscl-compare-pill{
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  border:0;
  background:#d71920;
  color:#fff!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none!important;
  font-weight:900;
  cursor:pointer;
}

.vscl-compare-pill.is-ghost{
  background:rgba(255,255,255,.12);
  color:#fff!important;
}

.vscl-compare-loader,
.vscl-compare-empty{
  margin-top:24px;
  border:1px solid rgba(17,17,17,.08);
  background:#fff;
  border-radius:24px;
  padding:30px;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}

.vscl-compare-empty{
  text-align:center;
}

.vscl-compare-empty-icon{
  width:64px;
  height:64px;
  margin:0 auto 14px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#d71920;
  color:#fff;
  font-size:32px;
}

.vscl-compare-empty h3{
  margin:0 0 8px;
  font-size:26px;
  letter-spacing:-.03em;
}

.vscl-compare-empty p{
  margin:0 auto 18px;
  max-width:560px;
  color:#64748b;
  line-height:1.6;
}

.vscl-compare-board{
  margin-top:24px;
  overflow:auto;
  padding-bottom:8px;
}

.vscl-compare-table{
  display:grid;
  grid-template-columns:minmax(160px, .55fr) repeat(var(--vscl-compare-cols), minmax(250px, 1fr));
  align-items:stretch;
  min-width:max-content;
  border:1px solid rgba(17,17,17,.08);
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.10);
}

.vscl-compare-label-cell,
.vscl-compare-value-cell,
.vscl-compare-car{
  border-right:1px solid rgba(17,17,17,.08);
  border-bottom:1px solid rgba(17,17,17,.08);
  background:#fff;
}

.vscl-compare-label-cell{
  padding:18px;
  font-size:13px;
  color:#64748b;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:#f8fafc;
}

.vscl-compare-label-cell.is-top{
  display:flex;
  align-items:center;
}

.vscl-compare-value-cell{
  padding:18px;
  color:#111827;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
}

.vscl-compare-value-cell span{
  color:#9ca3af;
}

.vscl-compare-car{
  position:relative;
  padding:14px;
  min-height:330px;
}

.vscl-compare-car img,
.vscl-compare-noimg{
  width:100%;
  height:170px;
  display:block;
  object-fit:cover;
  border-radius:18px;
  background:#edf1f5;
}

.vscl-compare-car-copy{
  padding:14px 4px 2px;
}

.vscl-compare-uid{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  font-size:11px;
  font-weight:900;
}

.vscl-compare-car h3{
  margin:0;
  font-size:19px;
  line-height:1.18;
  letter-spacing:-.025em;
  font-weight:900;
}

.vscl-compare-car h3 a{
  color:#111827;
  text-decoration:none;
}

.vscl-compare-car strong{
  display:block;
  margin-top:9px;
  font-size:20px;
  color:#d71920;
}

.vscl-compare-details{
  display:inline-flex;
  margin-top:12px;
  color:#111827!important;
  font-size:13px;
  font-weight:900;
  text-decoration:none!important;
}

.vscl-compare-remove{
  position:absolute;
  top:22px;
  right:22px;
  z-index:4;
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  border-radius:50%;
  border:0;
  background:rgba(17,24,39,.86);
  color:#fff;
  font-size:22px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  text-align:center;
  box-sizing:border-box;
}

@media (max-width: 767px){
  .vscl-compare-card-btn{
    min-height:34px;
    padding:0 10px;
    font-size:12px;
    top:10px;
    left:10px;
  }

  .vscl-compare-float{
    left:12px;
    right:12px;
    bottom:14px;
    transform:translateY(140%);
    justify-content:space-between;
    border-radius:20px;
  }

  .vscl-compare-float.is-visible{
    transform:translateY(0);
  }

  .vscl-compare-page{
    padding:0 14px;
  }

  .vscl-compare-hero{
    display:block;
    padding:26px 20px;
    border-radius:22px;
  }

  .vscl-compare-hero-actions{
    justify-content:flex-start;
    margin-top:18px;
  }

  .vscl-compare-table{
    grid-template-columns:minmax(130px,.55fr) repeat(var(--vscl-compare-cols), minmax(220px,1fr));
  }
}


/* =========================================================
   VSCL COMPARE v60 — Requested fixes
   1) Inventory compare button sits below Popular/Featured badge
   2) Compare page stacks vehicles one under another on mobile
========================================================= */

.vscl-page-shell .vscl-grid-media,
.vscl-page-shell .vscl-stack-media,
.vscl-page-shell .vscl-home-media{
  position:relative;
}

.vscl-page-shell .vscl-compare-card-btn{
  top:14px !important;
  left:14px !important;
  right:auto !important;
}

.vscl-page-shell .vscl-compare-card-btn.has-vscl-special-badge,
.vscl-page-shell .vscl-grid-media:has(.vscl-special-badge) .vscl-compare-card-btn,
.vscl-page-shell .vscl-stack-media:has(.vscl-special-badge) .vscl-compare-card-btn,
.vscl-page-shell .vscl-home-media:has(.vscl-special-badge) .vscl-compare-card-btn{
  top:54px !important;
  left:14px !important;
}

.vscl-compare-mobile-stack{
  display:none;
}

@media (max-width:767px){
  .vscl-page-shell .vscl-compare-card-btn{
    top:10px !important;
    left:10px !important;
  }

  .vscl-page-shell .vscl-compare-card-btn.has-vscl-special-badge,
  .vscl-page-shell .vscl-grid-media:has(.vscl-special-badge) .vscl-compare-card-btn,
  .vscl-page-shell .vscl-stack-media:has(.vscl-special-badge) .vscl-compare-card-btn,
  .vscl-page-shell .vscl-home-media:has(.vscl-special-badge) .vscl-compare-card-btn{
    top:48px !important;
    left:10px !important;
  }

  .vscl-compare-board{
    overflow:visible !important;
  }

  .vscl-compare-table{
    display:none !important;
  }

  .vscl-compare-mobile-stack{
    display:grid !important;
    gap:18px;
    margin-top:0;
  }

  .vscl-compare-mobile-card{
    position:relative;
    border:1px solid rgba(17,17,17,.08);
    border-radius:22px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 18px 50px rgba(15,23,42,.08);
  }

  .vscl-compare-mobile-img,
  .vscl-compare-mobile-card .vscl-compare-noimg{
    display:block;
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:0;
    background:#edf1f5;
  }

  .vscl-compare-mobile-copy{
    padding:16px 16px 10px;
  }

  .vscl-compare-mobile-copy h3{
    margin:0;
    font-size:21px;
    line-height:1.16;
    letter-spacing:-.03em;
    font-weight:900;
  }

  .vscl-compare-mobile-copy h3 a{
    color:#111827;
    text-decoration:none;
  }

  .vscl-compare-mobile-copy strong{
    display:block;
    margin-top:9px;
    color:#d71920;
    font-size:20px;
    line-height:1.1;
  }

  .vscl-compare-mobile-fields{
    display:grid;
    padding:8px 16px 16px;
  }

  .vscl-compare-mobile-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
    gap:12px;
    padding:12px 0;
    border-top:1px solid rgba(17,17,17,.08);
    align-items:center;
  }

  .vscl-compare-mobile-row span{
    color:#64748b;
    font-size:12px;
    line-height:1.25;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
  }

  .vscl-compare-mobile-row strong{
    color:#111827;
    font-size:14px;
    line-height:1.3;
    font-weight:850;
    text-align:right;
    word-break:break-word;
  }

  .vscl-compare-mobile-card .vscl-compare-remove{
    top:12px !important;
    right:12px !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    padding:0 !important;
    border-radius:50% !important;
  }
}
