/* ============================================================================
   HIGHLAND VAULT — DRAW SLIDER  ([hv_draw_slider])
   Hero "card slide" (design S2p): ONE full-width poster card at a time. The
   card is the draw's banner image edge to edge, with a counter pill top-right,
   an optional badge pill top-left, and a bottom overlay holding the draw title,
   optional subtitle, the LIVE countdown tiles (ticked by hv.js) and the blue
   price CTA. Under the card: progress dashes (the active one fills while the
   autoplay waits) and prev/next arrows. Slides sit stacked and glide sideways
   via per-slide transforms set by draw-slider.js; the loop is endless in both
   directions. Tokens with literal fallbacks; light page ground.
   ========================================================================== */

.hv-dslider {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding-block: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  /* Parked slides sit at ±103% — clip them here so the slider never widens
     the page, wherever it is placed (base.css clips the page too). clip, not
     hidden: hidden would turn the other axis into a scroll context and crop
     the card's drop shadow. */
  overflow-x: clip;
}

.hv-dslider__head { text-align: center; padding-inline: var(--hv-space-5, 1.25rem); }
.hv-dslider__title { margin: 0; font-size: var(--hv-fs-h1); font-weight: var(--hv-fw-black); color: var(--hv-ink); line-height: 1.1; }

/* ---- Stage: the viewport the slides stack inside ------------------------- */
.hv-dslider__stage {
  position: relative;
  height: 560px;                   /* fallback for browsers without aspect-ratio */
  touch-action: pan-y;             /* horizontal swipes are ours, page scroll stays */
}
/* The card takes the banner's own shape: --hv-dslide-ratio is set inline by
   PHP from the first slide's image, capped at the design height. One wide
   upload then serves every screen — on phones the WHOLE banner is visible
   instead of a portrait crop showing only its middle third. */
@supports (aspect-ratio: 1 / 1) {
  .hv-dslider__stage {
    height: auto;
    aspect-ratio: var(--hv-dslide-ratio, 1600 / 790);
    max-height: 560px;
  }
}

.hv-dslide { position: absolute; inset: 0; }
/* Slides glide only once JS is driving (prevents a first-paint animation). */
.hv-dslider.is-ready .hv-dslide {
  transition: transform .85s cubic-bezier(.22, .8, .22, 1), opacity .45s ease;
}
/* No-JS / pre-JS: show the first slide alone, no stacked pile-up. */
.hv-dslider:not(.is-ready) .hv-dslide:not(:first-child) { visibility: hidden; }
.hv-dslider:not(.is-ready) .hv-dslider__nav { display: none; }

/* ---- The card ------------------------------------------------------------ */
.hv-dslide__card {
  position: absolute; inset: 0; display: block;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--hv-blue-100, #DDE9FE);
  /* Literal, not var(--hv-surface-2): that token is a DARK value (#141414)
     on this site, and it painted the card black behind a loading image. */
  background: #F4F8FE;
  /* Flat: no drop shadow anywhere in the slider (site rule). */
}
.hv-dslide__card:focus-visible { outline: 3px solid var(--hv-primary, #065BE0); outline-offset: -3px; }

.hv-dslide__media { position: absolute; inset: 0; }
/* The image FILLS the card, whatever its shape (the sides get cropped).
   height is !important because Elementor's global reset
   `.elementor img{height:auto;max-width:100%}` outweighs one class — it is
   what let the image collapse to its natural shape and exposed the card's
   background below it. Absolute + inset pins it to the card either way. */
.hv-dslider .hv-dslide__img {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important; max-width: none;
  object-fit: cover; display: block; -webkit-user-drag: none;
}
.hv-dslide__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #F4F8FE, #E7EEFB); }

/* No darkening gradient over the banner (owner request, 1.17.4): the
   countdown tiles, pills and CTA all carry their own solid backgrounds. */

/* Counter pill — top right. */
.hv-dslide__count {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255, 255, 255, .95); color: var(--hv-ink, #0F1729);
  border-radius: var(--hv-radius-pill, 999px); padding: 6px 13px;
  font-size: 12px; font-weight: var(--hv-fw-extra, 800); letter-spacing: 1.4px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}

/* Badge pill (the admin "Badge override" field) — top left. */
.hv-dslide__badge {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 14px; border-radius: var(--hv-radius-pill, 999px);
  background: var(--hv-primary, #065BE0); color: #fff;
  font-size: 12px; font-weight: var(--hv-fw-extra, 800);
  letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}

/* ---- Bottom overlay: title/sub + countdown left, CTA right --------------- */
.hv-dslide__over {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.hv-dslide__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; text-align: left; }

/* Countdown tiles — hv.js ticks the numbers ([data-hv-time] / [data-cd]). */
.hv-dslide__cd { display: flex; gap: 7px; }
.hv-dslide__cd-tile {
  min-width: 56px; padding: 7px 4px; border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  display: flex; flex-direction: column; align-items: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hv-dslide__cd-tile strong {
  font-size: 21px; font-weight: var(--hv-fw-extra, 800); color: var(--hv-primary, #065BE0);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hv-dslide__cd-tile span {
  font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #5B6474; font-weight: var(--hv-fw-bold, 700);
}
.hv-dslide__ended {
  display: inline-flex; align-self: flex-start; align-items: center;
  background: rgba(255, 255, 255, .94); color: var(--hv-ink, #0F1729);
  border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: var(--hv-fw-extra, 800);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* CTA — blue pill with the price chip inside. */
.hv-dslide__cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--hv-primary, #065BE0); color: #fff;
  font-weight: var(--hv-fw-extra, 800); font-size: 14px; letter-spacing: .8px; text-transform: uppercase;
  border-radius: var(--hv-radius-pill, 999px); padding: 15px 26px;
  transition: filter .2s ease, transform .2s ease;
}
.hv-dslide__card:hover .hv-dslide__cta { filter: brightness(.92); transform: translateY(-1px); }
.hv-dslide__price {
  background: rgba(255, 255, 255, .22); border-radius: var(--hv-radius-pill, 999px);
  padding: 4px 11px; font-size: 13px; font-weight: var(--hv-fw-black, 900);
}

/* ---- Nav row: dashes left, arrows right ---------------------------------- */
.hv-dslider__nav { position: relative; display: flex; align-items: center; gap: 18px; }

.hv-dslider__dashes { display: flex; gap: 8px; }
.hv-dslider__dash {
  width: 30px; height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: inline-flex; align-items: center;
}
.hv-dslider__dash-bar {
  position: relative; display: block; width: 100%; height: 4px;
  border-radius: var(--hv-radius-pill, 999px); background: #E3E9F3; overflow: hidden;
}
.hv-dslider__dash-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: var(--hv-radius-pill, 999px); background: var(--hv-primary, #065BE0);
}
.hv-dslider__dash:focus-visible { outline: none; box-shadow: var(--hv-ring); border-radius: var(--hv-radius-sm, 8px); }

.hv-dslider__arrows { margin-left: auto; display: flex; gap: 8px; }
.hv-dslider__arrow {
  width: 48px; height: 48px; border-radius: var(--hv-radius-pill, 999px);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: filter .2s ease, transform .2s ease;
}
.hv-dslider__arrow:hover { filter: brightness(.92); transform: translateY(-1px); }
.hv-dslider__arrow:focus-visible { outline: none; box-shadow: var(--hv-ring); }
.hv-dslider__arrow--prev {
  border: 1px solid var(--hv-blue-100, #DDE9FE); background: #fff; color: var(--hv-ink, #0F1729);
}
.hv-dslider__arrow--next {
  border: 0; background: var(--hv-primary, #065BE0); color: #fff;
}

/* The site's GLOBAL button/link hover (Elementor kit) repaints hovered
   buttons pink. These heavier selectors pin the slider's own colours on
   hover and focus, whatever the kit says and in whatever order it loads. */
.hv-dslider .hv-dslider__dash:hover,
.hv-dslider .hv-dslider__dash:focus { background: transparent; }
.hv-dslider .hv-dslider__arrow--prev:hover,
.hv-dslider .hv-dslider__arrow--prev:focus { background: #fff; color: var(--hv-ink, #0F1729); border-color: var(--hv-blue-100, #DDE9FE); }
.hv-dslider .hv-dslider__arrow--next:hover,
.hv-dslider .hv-dslider__arrow--next:focus { background: var(--hv-primary, #065BE0); color: #fff; }
.hv-dslider .hv-dslide__card:hover .hv-dslide__cta,
.hv-dslider .hv-dslide__cta:hover { background: var(--hv-primary, #065BE0); color: #fff; }

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 700px) {
  /* Phones show just the counter, badge and countdown on the image — no CTA
     button. The card is short here (the banner's own shape), so the overlay
     tucks in tighter and the tiles/pills shrink to cover as little of the
     image as possible. */
  .hv-dslide__cta { display: none; }
  .hv-dslide__over { left: 10px; right: 10px; bottom: 10px; }
  .hv-dslide__count { top: 10px; right: 10px; padding: 4px 9px; font-size: 10px; letter-spacing: 1px; }
  .hv-dslide__badge { top: 10px; left: 10px; padding: 5px 10px; font-size: 10px; letter-spacing: 1px; }
  .hv-dslide__cd { gap: 5px; }
  .hv-dslide__cd-tile { min-width: 40px; padding: 4px 3px; border-radius: 9px; }
  .hv-dslide__cd-tile strong { font-size: 15px; }
  .hv-dslide__cd-tile span { font-size: 8px; letter-spacing: 1px; }
  .hv-dslide__ended { padding: 8px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-dslider.is-ready .hv-dslide { transition: none; }
  .hv-dslider__dash-fill { transition: none !important; }
  .hv-dslide__cta, .hv-dslider__arrow { transition: none; }
}
