/* Route connectors between consecutive itinerary items */

.route-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  position: relative;
  z-index: 1;
}

.route-connector__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-color, #e0e0e0) 0,
    var(--border-color, #e0e0e0) 4px,
    transparent 4px,
    transparent 8px
  );
  z-index: 0;
}

.route-connector__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 20px;
  padding: 4px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 1;
  position: relative;
}

.route-connector__mode-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-tertiary, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  padding: 0;
}

.route-connector__mode-btn:hover {
  background: var(--bg-secondary, #f3f4f6);
  color: var(--text-primary, #374151);
}

.route-connector__mode-btn.is-active {
  background: var(--primary, #2dd4bf);
  color: #fff;
}

.route-connector__info {
  font-size: 0.75rem;
  color: var(--text-secondary, #6b7280);
  margin-left: 4px;
  white-space: nowrap;
  min-width: 0;
}

/* Loading state */
.route-connector__info.is-loading::after {
  content: "...";
  animation: routeEllipsis 1s steps(3) infinite;
}

@keyframes routeEllipsis {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

/* Mobile */
@media (max-width: 768px) {
  .route-connector__mode-btn {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .route-connector__controls {
    padding: 3px 8px;
    gap: 2px;
  }

  .route-connector__info {
    font-size: 0.7rem;
  }

  .route-connector__line {
    left: 16px;
  }
}
