/* ============================================================
   v2-extras.css - SMOG 品牌色版
   依賴 styles.css 的 CSS 變數
   ============================================================ */

/* ---------- 車輛 row 加大 ---------- */
.vehicle-cell {
  height: 92px !important;
  padding: 8px 12px !important;
}

/* ---------- 車輛顏色點 ---------- */
.vehicle-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- 地圖按鈕（時間軸 row 上）---------- */
.map-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-border);
  background: white;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-btn:hover {
  background: var(--smog-primary-light);
  border-color: var(--smog-primary);
  transform: scale(1.05);
}

/* ============================================================
   設定中心 Tabs
   ============================================================ */
.settings-tab {
  padding: 14px 24px;
  font-size: 16px;
  color: var(--c-text-mute);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  transition: all 0.15s;
}
.settings-tab:hover {
  color: var(--smog-primary);
  background: white;
}
.settings-tab.active {
  color: var(--smog-primary);
  border-bottom-color: var(--smog-primary);
  background: white;
  font-weight: 600;
}

/* ============================================================
   全車路線總覽
   ============================================================ */
#overview-panel {
  background: white;
}

#overview-map {
  background: var(--c-bg);
}

/* ---------- 車輛切換按鈕（pill 風格 - SMOG 風）---------- */
#vehicle-toggles {
  align-items: center;
  gap: 8px !important;
}

.vehicle-pill {
  --pill-color: var(--c-text-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--pill-color);
  border-radius: 999px;
  background: white;
  color: var(--c-text-mute);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  letter-spacing: 0.3px;
}
.vehicle-pill:hover {
  background: var(--c-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.vehicle-pill.active {
  background: var(--pill-color);
  color: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  border-color: transparent;
}
.vehicle-pill.active .vehicle-color-dot {
  background: rgba(255,255,255,0.85) !important;
}

/* ---------- 全選/全不選 次按鈕 ---------- */
.vehicle-pill-secondary {
  padding: 8px 16px;
  border: 1.5px solid var(--c-border);
  background: white;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-mute);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.vehicle-pill-secondary:hover {
  background: var(--smog-primary-light);
  border-color: var(--smog-primary);
  color: var(--smog-primary);
}

.vehicle-pill-sep {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: var(--c-border);
  margin: 0 4px;
}

/* ---------- 調換建議卡片 ---------- */
.swap-card {
  background: white;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.swap-card:hover {
  border-color: #F59E0B;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}
/* 點過「📍 標出」之後，這張卡會變淺灰，方便提醒「剛剛標的是這組」*/
.swap-card.marked {
  background: #E5E7EB;
  border-color: #9CA3AF;
}
.swap-card.marked:hover {
  background: #D1D5DB;
}

/* ============================================================
   地圖 marker
   ============================================================ */
.numbered-marker {
  background: var(--smog-primary);
  color: white;
  border: 2.5px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.hq-marker {
  background: var(--c-text);
  color: white;
  border: 2.5px solid white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* ============================================================
   站點卡片（單車地圖 modal 用）
   ============================================================ */
.stop-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}
.stop-card:hover {
  border-color: var(--smog-primary);
  background: var(--smog-primary-50);
}
.stop-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--smog-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.stop-number.hq {
  background: var(--c-text);
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  width: 14px;
  height: 14px;
  border: 2px solid var(--c-border);
  border-top-color: var(--smog-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   人員技能徽章（人員設定用）
   ⚠️ 重要：class 必須以 .skill- 開頭，不能用 .case-
        因為 .case- 會跟時間軸的「案件方塊」class 衝突
   ============================================================ */
.skill-丈量 {
  background: #D1FAE5;
  color: #065F46;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.skill-施作 {
  background: var(--smog-primary-light);
  color: var(--smog-primary-hover);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   Logo 標題（top bar）強化
   ============================================================ */
header h1, header > div > div:first-child > div:first-child {
  letter-spacing: 0.3px;
}
