/* ============================================================
   drive-phase3.css — Drag reorder, optimize, along the way
   ============================================================ */

/* ---- Drag handle ---- */
.drive-drag-handle {
  cursor: grab;
  font-size: 18px;
  padding: 0 6px;
  color: rgba(255,255,255,0.45);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
}
.drive-drag-handle:active {
  cursor: grabbing;
  color: #60a5fa;
}

/* ---- Drag states ---- */
.drive-stop-row.dragging {
  opacity: 0.35;
}
.drive-stop-row.drag-over {
  border-top: 2px solid #60a5fa;
  padding-top: 2px;
}

/* ---- Optimize button ---- */
.drive-optimize-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(96,165,250,0.4);
  border-radius: 10px;
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.drive-optimize-btn:hover {
  background: rgba(96,165,250,0.22);
  border-color: #60a5fa;
}
.drive-optimize-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Along the Way tabs ---- */
.along-way-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.along-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.along-tab:hover {
  background: rgba(255,255,255,0.12);
}
.along-tab.active {
  background: rgba(96,165,250,0.2);
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ---- Along the Way list ---- */
.along-way-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}
.along-loading,
.along-empty {
  text-align: center;
  padding: 20px 12px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* ---- Place card ---- */
.along-place-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.along-place-info {
  flex: 1;
  min-width: 0;
}
.along-place-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.along-place-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.along-place-addr {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.along-add-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(96,165,250,0.4);
  border-radius: 8px;
  background: rgba(96,165,250,0.1);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.along-add-btn:hover {
  background: rgba(96,165,250,0.25);
}

/* ---- Status success color ---- */
.status.success {
  color: #34d399;
}
