/* =====================================================================
   Waypoint timeline — the site's signature motif.
   A route line with stop markers. Used wherever content is a genuine
   sequence: shipment status progression, and the booking-to-delivery
   process. Two layouts: horizontal (desktop "how it works" / tracking
   summary) and vertical (tracking detail, mobile).
   ===================================================================== */

.waypoint-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: var(--space-4) 0;
}

.waypoint-line::before {
  content: '';
  position: absolute;
  top: calc(var(--space-4) + 11px);
  left: 22px;
  right: 22px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--color-slate-300) 50%, transparent 50%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}

.waypoint-line.filled::before {
  background-image: linear-gradient(90deg, var(--color-orange-500) 50%, transparent 50%);
}

.waypoint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 var(--space-2);
}

.waypoint-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-slate-300);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  transition: all var(--duration-base) var(--ease-out);
}

.waypoint.is-complete .waypoint-dot {
  background: var(--color-orange-500);
  border-color: var(--color-orange-500);
}

.waypoint.is-complete .waypoint-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-white);
}

.waypoint.is-current .waypoint-dot {
  border-color: var(--color-orange-500);
  box-shadow: 0 0 0 4px var(--color-orange-100);
}

.waypoint.is-current .waypoint-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-orange-500);
}

.waypoint-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-slate-600);
  max-width: 90px;
}

.waypoint.is-complete .waypoint-label,
.waypoint.is-current .waypoint-label {
  color: var(--color-white);
}

.waypoint-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-slate-600);
  margin-top: var(--space-1);
}

@media (max-width: 720px) {
  .waypoint-line {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .waypoint-line::before {
    top: 11px;
    left: 11px;
    right: auto;
    width: 2px;
    height: calc(100% - var(--space-5) - 22px);
    background-image: linear-gradient(180deg, var(--color-slate-300) 50%, transparent 50%);
    background-size: 2px 10px;
  }

  .waypoint-line.filled::before {
    background-image: linear-gradient(180deg, var(--color-orange-500) 50%, transparent 50%);
  }

  .waypoint {
    flex-direction: row;
    text-align: left;
    padding: 0;
    gap: var(--space-4);
  }

  .waypoint-dot { margin-bottom: 0; flex-shrink: 0; }
  .waypoint-label { max-width: none; }
}

/* ---- Mini waybill card (hero visual) ---- */
.waybill-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
}

.waybill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--color-border);
}

.waybill-header .label {
  font-size: var(--text-xs);
  color: var(--color-slate-600);
  margin-bottom: var(--space-1);
}

.waybill-header .value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-navy-900);
  font-weight: 600;
}

.waybill-badge {
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.waybill-route {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-top: var(--space-5);
}

.waybill-route .city { font-weight: 600; color: var(--color-navy-900); }
.waybill-route .tag { font-size: var(--text-xs); color: var(--color-slate-600); }
