/* ============================================================================
   LUX4RIDES — "Your journey, connected." compact layout (2026-12-05)
   Applies only after home-journey-compact-20261205.js adds .is-compact.
   One list of four steps + one preview: about one laptop screen instead of
   2.4, and on phones the list sits above a single illustration instead of
   four stacked ones. Wording and illustrations are unchanged
   (includes/home-journey.php). Without JavaScript the stacked sequence from
   home-journey.css stays as it was.
   ========================================================================== */

.l4h-jc.is-compact { --jc-ease: cubic-bezier(.23, 1, .32, 1); }
.l4h-jc.is-compact .l4h-jc__trail { display: none; }

/* ---------- the step list ---------- */
.l4h-jc.is-compact .l4h-jc__story { display: grid; gap: 6px; }
.l4h-jc.is-compact .l4h-jc__st { border-top: 0; }
.l4h-jc.is-compact .l4h-jc__stbox {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 12px 0 6px;
  transition: background-color 220ms var(--jc-ease), border-color 220ms var(--jc-ease), box-shadow 220ms var(--jc-ease);
}
.l4h-jc.is-compact .l4h-jc__st.is-current .l4h-jc__stbox {
  background: #fff;
  border-color: var(--l4h-hairline-light);
  box-shadow: 0 1px 2px rgba(20, 18, 14, .04), 0 14px 30px -22px rgba(20, 18, 14, .38);
}
.l4h-jc.is-compact .l4h-jc__st-btn { min-height: 56px; padding: 10px 2px 10px 0; border: 0; }
.l4h-jc.is-compact .l4h-jc__st.is-current .l4h-jc__st-btn { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .l4h-jc.is-compact .l4h-jc__st:not(.is-current) .l4h-jc__stbox:hover { background: rgba(255, 255, 255, .6); border-color: var(--l4h-hairline-light); }
  .l4h-jc.is-compact .l4h-jc__st-btn:hover { background: transparent; }
}
.l4h-jc.is-compact .l4h-jc__st-btn:active { transform: none; }
.l4h-jc.is-compact .l4h-jc__st:not(.is-current) .l4h-jc__st-btn:active .l4h-jc__t { transform: scale(.985); }
.l4h-jc.is-compact .l4h-jc__t { transition: transform 140ms var(--jc-ease); transform-origin: left center; }

/* numbers: done steps keep a quiet gold ring, the current one is filled */
.l4h-jc.is-compact .l4h-jc__num { transition: background-color 220ms var(--jc-ease), border-color 220ms var(--jc-ease), color 220ms var(--jc-ease); }
.l4h-jc.is-compact .l4h-jc__st.is-done .l4h-jc__num { border-color: var(--l4h-gold-on-light); color: var(--l4h-gold-on-light); background: rgba(184, 149, 46, .08); }

/* the chevron points right on closed steps, down on the open one */
.l4h-jc.is-compact .l4h-jc__chev { transition: transform 220ms var(--jc-ease); }

/* the open step's explanation */
.l4h-jc.is-compact .l4h-jc__panel { transition: grid-template-rows 220ms var(--jc-ease); }
.l4h-jc.is-compact .l4h-jc__desc { margin: -2px 0 14px 48px; max-width: 52ch; font-size: 14px; line-height: 1.6; }

/* ---------- the one preview ---------- */
.l4h-jc.is-compact .l4h-jc__pin { display: block; position: relative; }
.l4h-jc.is-compact .l4h-jc__stage {
  position: relative;
  width: 100%; max-width: 392px; margin-inline: auto;
}
.l4h-jc.is-compact .l4h-jc__scene {
  /* only the chosen illustration is in flow, so the preview is exactly as tall as it (no empty card) */
  position: absolute; top: 0; left: 0; right: 0;
  margin: 0; max-width: none; align-items: center;
  padding: 2px 2px 6px;
  opacity: 0; visibility: hidden;
  transform: translate3d(0, 8px, 0);
  transition: opacity 200ms var(--jc-ease), transform 220ms var(--jc-ease), visibility 0s linear 220ms;
  pointer-events: none;
}
.l4h-jc.is-compact .l4h-jc__scene.is-active {
  position: relative;
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 220ms var(--jc-ease), transform 220ms var(--jc-ease), visibility 0s;
}
.l4h-jc.is-compact .l4h-jc__scene .jc-tag { align-self: flex-start; }
.l4h-jc.is-compact .jc-fade-in { opacity: 1; transform: none; transition: none; }
/* the long email greeting and the repeated live chauffeur card add no new detail */
.l4h-jc.is-compact .l4h-jc__scene--mail .jc-mail-p,
.l4h-jc.is-compact .l4h-jc__scene--live .jc-card:last-child { display: none; }
.l4h-jc.is-compact .l4h-jc__cap { margin-top: 10px; text-align: center; }

/* ---------- desktop: list left, preview right, about one screen ---------- */
@media (min-width: 901px) {
  .l4h-jc.is-compact .l4h-jc__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }
  .l4h-jc.is-compact .l4h-jc__storywrap { max-width: none; }
  .l4h-jc.is-compact .l4h-jc__pin::before {
    content: ""; position: absolute; inset: -24px -10% -10px;
    background: radial-gradient(55% 45% at 50% 38%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
  }
  /* the preview takes the chosen sample's height and the grid centres it beside the list,
     so a short sample never sits in an empty frame (the left column sets most of the height) */
  .l4h-jc.is-compact .l4h-jc__stage { z-index: 1; }
}

/* ---------- phones and small tablets: list, then the preview ---------- */
@media (max-width: 900px) {
  .l4h-jc.is-compact .l4h-jc__pin { margin-top: 18px; }
  .l4h-jc.is-compact .l4h-jc__desc { margin-left: 48px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .l4h-jc.is-compact .l4h-jc__desc { margin-left: 4px; }
}

/* ---------- reduced motion: instant swap, no drive (the script parks the marker mid-route) ---------- */
.l4h-jc.is-still .l4h-jc__scene,
.l4h-jc.is-still .l4h-jc__scene.is-active,
.l4h-jc.is-still .l4h-jc__panel,
.l4h-jc.is-still .l4h-jc__stbox,
.l4h-jc.is-still .l4h-jc__t { transition: none !important; }
.l4h-jc.is-still .l4h-jc__scene { transform: none; }

@media print {
  .l4h-jc.is-compact .l4h-jc__scene { opacity: 1 !important; visibility: visible !important; transform: none !important; position: static !important; }
}
