/* ═══════════════════════════════════════════════
   TRAVELPAL – style.css
   Mobile-first, modern design system
═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #2563eb;
  --brand-dark:  #1d4ed8;
  --brand-light: #eff6ff;
  --success:     #16a34a;
  --success-bg:  #f0fdf4;
  --danger:      #dc2626;
  --danger-bg:   #fef2f2;
  --warning:     #d97706;
  --warning-bg:  #fffbeb;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .18s ease;
  --max-w:       600px;
  --topbar-h:    56px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--shadow-sm);
}
.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.3px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-chip {
  background: var(--brand-light);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 20px;
}
.cloud-chip {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 20px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
  transition: var(--transition);
}
.cloud-chip.offline {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ── View System ── */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.view { display: none; flex: 1; padding: 1rem; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.view.active { display: block; }

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--text);
}

/* ── Login Card ── */
.login-card {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem 1.5rem;
}
.login-logo { font-size: 3rem; margin-bottom: .5rem; }
.login-title { font-size: 1.75rem; font-weight: 800; color: var(--brand); }
.login-sub { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; margin-bottom: 1.5rem; }

/* ── Page Header ── */
.page-header { padding: .5rem 0 .75rem; }
.page-header h2 { font-size: 1.3rem; font-weight: 700; }

/* ── Tabs (Passenger) ── */
.tab-bar {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  padding: .25rem;
  gap: .25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.tab {
  flex: 1;
  padding: .6rem 0;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 4px);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Attendance Card & Attention Blink ── */
.attendance-card {
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition), transform var(--transition);
}
.attendance-card.blink-attention {
  animation: card-attention-blink 1.0s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  border: 3px solid #f59e0b;
  position: relative;
}
@keyframes card-attention-blink {
  0%, 100% {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--surface);
    transform: scale(1);
  }
  50% {
    border-color: #ea580c;
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.38), 0 8px 24px rgba(234, 88, 12, 0.28);
    background-color: #fef3c7;
    transform: scale(1.015);
  }
}
.attendance-card.blink-attention .toggle-btn {
  border-color: #f59e0b;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}
.attendance-card.blink-attention .att-hint {
  color: #b45309;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

/* ── Attendance hint (shown until user taps) ── */
.att-hint {
  font-size: .8rem;
  color: var(--warning);
  margin-top: .4rem;
  font-weight: 500;
  transition: opacity .3s;
}
.att-hint.hidden { display: none; }

/* ── Toggle buttons ── */
.toggle-group { margin-top: .75rem; }
.toggle-group span { font-size: .95rem; color: var(--text-muted); display: block; margin-bottom: .5rem; }
.toggle-row { display: flex; gap: .5rem; }
.toggle-btn {
  flex: 1;
  padding: .65rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.toggle-btn.active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}
.toggle-btn[data-val="no"].active {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

/* ── Status Card ── */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }
.status-label { font-size: .9rem; color: var(--text-muted); }

/* ── Owner Tabs ── */
.owner-tabs {
  display: flex;
  gap: .25rem;
  background: var(--surface);
  padding: .25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow-x: auto;
}
.owner-tab {
  flex: 1;
  min-width: 80px;
  padding: .55rem .5rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 4px);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.owner-tab.active {
  background: var(--brand);
  color: #fff;
}
.owner-panel { display: none; }
.owner-panel.active { display: block; }

/* ── Session Switcher ── */
.session-switcher {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}
.sess-btn {
  flex: 1;
  padding: .6rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.sess-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* ── Route List ── */
.route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.route-title { font-weight: 700; font-size: 1rem; }

.route-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.route-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: grab;
  position: relative;
}
.route-item.dragging {
  opacity: .5;
  cursor: grabbing;
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.route-item.drag-over {
  border-color: var(--brand);
  background: var(--brand-light);
}
.route-item.done {
  background: var(--success-bg);
  border-color: #86efac;
}
.route-item.owner-skipped {
  background: #fefce8;
  border-color: #fef08a;
}
.route-item.absent {
  background: #fef2f2;
  border-color: #fca5a5;
  opacity: .75;
}
.route-item.unmarked {
  background: #fffbeb;
  border-color: #fcd34d;
}

/* ── Attendance badge inside route row ── */
.route-att-row {
  margin-top: .3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.att-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 20px;
  border: 1px solid;
}
.att-coming       { background: var(--success-bg); color: var(--success);  border-color: #86efac; }
.att-absent       { background: var(--danger-bg);  color: var(--danger);   border-color: #fca5a5; }
.att-unmarked     { background: var(--warning-bg); color: var(--warning);  border-color: #fcd34d; }
.att-done         { background: var(--brand-light); color: var(--brand);   border-color: #93c5fd; }
.att-owner-skipped{ background: #fef3c7; color: #b45309; border-color: #fcd34d; }

.route-seq {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.route-item.done .route-seq { background: var(--success-bg); color: var(--success); }
.route-item.owner-skipped .route-seq { background: #fef3c7; color: #b45309; }

.route-info { flex: 1; min-width: 0; }
.route-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-loc { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.route-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.action-btn-group {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.route-action-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
}
.route-action-btn.btn-tick:hover {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-bg);
}
.route-action-btn.btn-tick.active {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.route-action-btn.btn-skip:hover {
  border-color: #d97706;
  color: #d97706;
  background: #fefce8;
}
.route-action-btn.btn-skip.active {
  border-color: #d97706;
  background: #d97706;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.order-btns { display: flex; flex-direction: column; gap: 2px; }
.order-btn {
  width: 24px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.order-btn:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.order-btn:disabled { opacity: .3; cursor: not-allowed; }

.drag-handle {
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: grab;
  opacity: .5;
  flex-shrink: 0;
}

.absent-badge {
  font-size: .72rem;
  background: var(--warning-bg);
  color: var(--warning);
  padding: .15rem .4rem;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid #fcd34d;
}

/* ── Summary Bar ── */
.summary-bar {
  margin-top: .75rem;
  padding: .6rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  gap: .6rem 1rem;
  flex-wrap: wrap;
}
.summary-bar strong { color: var(--text); }

/* ── Passenger List (Owner) ── */
.panel-actions { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.passenger-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.passenger-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
}
.pax-seq-badge {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pax-info { flex: 1; min-width: 0; }
.pax-name-text { font-weight: 600; font-size: .95rem; }
.pax-loc-text { font-size: .8rem; color: var(--text-muted); }
.pax-item-actions { display: flex; gap: .4rem; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-green  { background: var(--success-bg); color: var(--success); border: 1px solid #86efac; }
.badge-red    { background: var(--danger-bg); color: var(--danger); border: 1px solid #fca5a5; }
.badge-blue   { background: var(--brand-light); color: var(--brand); border: 1px solid #93c5fd; }
.badge-gray   { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border); }
.badge-orange { background: var(--warning-bg); color: var(--warning); border: 1px solid #fcd34d; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* ── Autocomplete Suggestions ── */
.suggestions {
  position: absolute;
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  list-style: none;
}
.form-group { position: relative; }
.suggestions li {
  padding: .75rem 1rem;
  cursor: pointer;
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.suggestions li:last-child { border-bottom: none; }
.suggestions li:hover, .suggestions li.active { background: var(--brand-light); color: var(--brand); }
.suggestions.hidden { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: .85rem; color: var(--text-muted); padding: .35rem .6rem; border-radius: var(--radius-sm); transition: var(--transition); font-weight: 600; }
.btn-icon:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; min-height: 36px; }
.btn-full { width: 100%; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Divider ── */
.divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--text-muted); font-size: .85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(2px);
}
.modal-overlay.hidden { display: none; }
@media (min-width: 480px) {
  .modal-overlay { align-items: center; padding: 1rem; }
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
  max-height: 90dvh;
  overflow-y: auto;
}
@media (min-width: 480px) {
  .modal-box { border-radius: var(--radius); }
}
.modal-box-sm { max-width: 360px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 24px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  transition: opacity .3s;
}
.toast.hidden { display: none; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ── Utility ── */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.mt-sm { margin-top: .5rem; }
.mt-md { margin-top: 1rem; }
.mb-sm { margin-bottom: .5rem; }
.error-msg { color: var(--danger); font-size: .85rem; font-weight: 500; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; }

/* ── Responsive ── */
@media (min-width: 600px) {
  .view { padding: 1.5rem; }
  .login-card { padding: 2.5rem 2rem; }
}

/* Touch Targets – ensure minimum 44×44 */
button, .toggle-btn, .tab, .owner-tab, .sess-btn { min-height: 44px; }
.order-btn { min-height: 22px; }   /* intentionally smaller stacked */

/* Route item drag ghost */
.route-item[draggable="true"] { user-select: none; }

/* ═══════════════════════════════════════════════
   ROUTE GRAPH / LOCATION TIMELINE
═══════════════════════════════════════════════ */
.route-graph-card {
  margin-top: 1rem;
}
.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.btn-refresh-route {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  min-height: 32px;
}
.route-progress-wrap {
  margin-bottom: 1.25rem;
  background: var(--bg);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.route-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.route-progress-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.route-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--success));
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* ── Timeline Track ── */
.route-graph-timeline {
  display: flex;
  flex-direction: column;
  padding-left: 0.25rem;
}
.graph-stop {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 1.35rem;
}
.graph-stop:last-child {
  padding-bottom: 0.25rem;
}
/* Connecting vertical track line */
.graph-stop::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 1;
}
.graph-stop.stop-completed::before {
  background: var(--success);
}
.graph-stop.stop-skipped::before {
  border-left: 2px dashed #cbd5e1;
  background: transparent;
}
.graph-stop:last-child::before {
  display: none;
}

/* Stop Node Icon */
.graph-node {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.graph-stop.stop-completed .graph-node {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.graph-stop.stop-current .graph-node {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  animation: pulse-node 1.8s infinite;
}
@keyframes pulse-node {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.graph-stop.stop-skipped .graph-node {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  color: #94a3b8;
}

/* Stop details */
.graph-stop-content {
  flex: 1;
  min-width: 0;
  padding: 0.2rem 0.5rem 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.graph-stop.is-your-stop .graph-stop-content {
  background: var(--brand-light);
  border: 1px solid #bfdbfe;
  padding: 0.45rem 0.75rem;
}
.graph-city-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.graph-city-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.graph-stop.stop-skipped .graph-city-name {
  color: #94a3b8;
  text-decoration: line-through;
}
.graph-status-row {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.graph-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.48rem;
  border-radius: 12px;
}
.graph-chip-you {
  background: #2563eb;
  color: #fff;
  border: 1px solid #1d4ed8;
}

/* ── Refresh Spinner ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  display: inline-block;
  animation: spin 0.75s linear infinite;
}
.btn-refresh-route:disabled {
  opacity: .75;
  cursor: wait;
}



