/* Lease cards: exclusive-only “running light” on the boundary (always-on)
   - Runner follows the *rectangle perimeter* (SVG stroke-dashoffset), not a circular conic gradient
*/

/* Ensure non-exclusive cards don't inherit any glow/animation from this file */
.lease-offer {
  animation: none;
}

.lease-offer--exclusive {
  --ex-rgb: 59, 130, 246; /* default bright blue */
  --ex-stroke: 3px;       /* thicker runner */
  --ex-inset: 0px;        /* flush to the card boundary */
  --ex-speed: 2.2s;
  --ex-glow: 34px;
  outline: none !important;
  /* Keep card border subtle; the SVG runner provides the "wow" */
  border-color: rgba(var(--ex-rgb), 0.30) !important;
  border-width: 2px !important;
}

.lease-offer--exclusive-red { --ex-rgb: 239, 68, 68; }
.lease-offer--exclusive-gold { --ex-rgb: 245, 158, 11; }
.lease-offer--exclusive-blue { --ex-rgb: 59, 130, 246; }

/* SVG runner that follows the rounded-rect perimeter */
.lease-exclusive-runner {
  position: absolute;
  inset: var(--ex-inset);
  pointer-events: none;
  z-index: 6;
}

.lease-exclusive-runner rect {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.lease-exclusive-runner .track {
  stroke: rgba(var(--ex-rgb), 0.18);
  stroke-width: var(--ex-stroke);
}

.lease-exclusive-runner .runner {
  stroke: rgba(var(--ex-rgb), 1);
  stroke-width: var(--ex-stroke);
  stroke-linecap: round;
  /* Bright segment that travels along the perimeter */
  stroke-dasharray: 70 930;
  animation: leaseRunnerDash var(--ex-speed) linear infinite;
  animation-delay: var(--ex-delay, 0s);
  filter:
    drop-shadow(0 0 10px rgba(var(--ex-rgb), 0.55))
    drop-shadow(0 0 var(--ex-glow) rgba(var(--ex-rgb), 0.40));
}

/* The wrapper exists only for structure; don't affect layout/clipping. */
.lease-offer-inner { display: contents; }

@media (max-width: 767px) {
  /* On mobile (horizontal scroll), keep glow tighter to avoid clipping artifacts */
  .lease-offer--exclusive { --ex-glow: 26px; }
}

@keyframes leaseRunnerDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1000; }
}

@media (prefers-reduced-motion: reduce) {
  .lease-exclusive-runner .runner { animation: none !important; }
}


