/* ============================================================
   CAS Route List — static list of flights
   Each row: origin -> destination ............ duration
   Light pill rows with a tasteful hover (lift / tint). Pure CSS,
   no JS. All tunables are CSS custom properties so Elementor
   controls can override them per breakpoint.
   ============================================================ */

.cas-rl {
  /* tunables (Elementor writes over these via inline vars) */
  --rl-bg: #ffffff;
  --rl-bg-hover: #fbf7f3;
  --rl-radius: 38px;
  --rl-gap: 16px;
  --rl-shadow: 0 4px 16px rgba(9, 22, 39, 0.05);
  --rl-shadow-hover: 0 14px 32px rgba(9, 22, 39, 0.12);
  --rl-text: #5a6473;
  --rl-text-hover: #091627;
  --rl-dur: #5a6473;
  --rl-arrow: #d85b30;
  --rl-arrow-size: 26px;
  --rl-arrow-gap: 18px;
  --rl-lift: 3px;
  --rl-arrow-shift: 6px;

  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rl-gap);
}

.cas-rl *,
.cas-rl *::before,
.cas-rl *::after {
  box-sizing: border-box;
}

.cas-rl__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 44px;
  background-color: var(--rl-bg);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.cas-rl__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rl-arrow-gap);
  min-width: 0;
}

.cas-rl__from,
.cas-rl__to {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 1.2;
  color: var(--rl-text);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.cas-rl__arrow {
  flex: none;
  display: flex;
  align-items: center;
  width: var(--rl-arrow-size);
  color: var(--rl-arrow);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cas-rl__arrow svg {
  display: block;
  width: 100%;
  height: auto;
}

.cas-rl__duration {
  flex: none;
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  color: var(--rl-dur);
  white-space: nowrap;
  text-align: right;
}

/* ---- Hover: lift ---- */
.cas-rl[data-hover="lift"] .cas-rl__row:hover {
  transform: translateY(calc(-1 * var(--rl-lift)));
  box-shadow: var(--rl-shadow-hover);
}

/* ---- Hover: tint ---- */
.cas-rl[data-hover="tint"] .cas-rl__row:hover {
  background-color: var(--rl-bg-hover);
  box-shadow: var(--rl-shadow-hover);
}

/* shared accents for both hover styles */
.cas-rl[data-hover="lift"] .cas-rl__row:hover .cas-rl__arrow,
.cas-rl[data-hover="tint"] .cas-rl__row:hover .cas-rl__arrow {
  transform: translateX(var(--rl-arrow-shift));
}

.cas-rl[data-hover="lift"] .cas-rl__row:hover .cas-rl__from,
.cas-rl[data-hover="lift"] .cas-rl__row:hover .cas-rl__to,
.cas-rl[data-hover="tint"] .cas-rl__row:hover .cas-rl__from,
.cas-rl[data-hover="tint"] .cas-rl__row:hover .cas-rl__to {
  color: var(--rl-text-hover);
}

@media (prefers-reduced-motion: reduce) {
  .cas-rl__row,
  .cas-rl__arrow {
    transition: none;
  }
  .cas-rl[data-hover="lift"] .cas-rl__row:hover {
    transform: none;
  }
}

/* Stack the duration under the route on small screens. */
@media (max-width: 600px) {
  .cas-rl__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cas-rl__duration {
    text-align: left;
  }
}
