/* =========================================================
   东北冬日 8日行程规划与演示地图 · Winter Editorial UI
   ========================================================= */

:root {
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-subtle: rgba(241, 245, 249, 0.85);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --warm: #f97316;
  --ice: #0ea5e9;
  --danger: #e11d48;
  --success: #0d9488;
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.11);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --sidebar-w: 390px;
}

body.map-dark {
  --surface: rgba(15, 23, 42, 0.84);
  --surface-strong: rgba(15, 23, 42, 0.95);
  --surface-subtle: rgba(30, 41, 59, 0.82);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --shadow-lg: 0 20px 48px rgba(2, 6, 23, 0.55);
  --shadow-md: 0 10px 28px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #0b1324;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==================== MAP CANVASES ==================== */
.map-canvas,
.vector-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.vector-canvas {
  user-select: none;
  cursor: grab;
  overflow: hidden;
}

.vector-canvas:active {
  cursor: grabbing;
}

.pick-cursor,
.pick-cursor * {
  cursor: crosshair !important;
}

.snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 450;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Vector SVG Elements */
.vec-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vec-grid-line {
  stroke: rgba(148, 163, 184, 0.08);
  stroke-width: 1;
}

.vec-grid-label {
  fill: rgba(148, 163, 184, 0.35);
  font-size: 10px;
}

.vec-land-base {
  fill: #16233a;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 1.1;
}

.vec-prov-ne {
  fill: rgba(56, 189, 248, 0.14);
  stroke: rgba(125, 211, 252, 0.42);
  stroke-width: 1.25;
}

.vec-prov-gd {
  fill: rgba(249, 115, 22, 0.16);
  stroke: rgba(251, 146, 60, 0.45);
  stroke-width: 1.25;
}

.vec-prov-label {
  fill: rgba(226, 232, 240, 0.42);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 2px;
}

.vec-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vec-city-pill {
  position: absolute;
  transform: translate(-50%, -140%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid color-mix(in srgb, var(--city-color) 65%, transparent);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.vec-city-pill:hover {
  transform: translate(-50%, -152%) scale(1.04);
  background: rgba(30, 41, 59, 0.96);
}

.vec-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  background: var(--pin-color, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  padding: 0;
  transition: transform 0.2s ease;
}

.vec-pin:hover,
.vec-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 30;
}

.vec-vehicle {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 50;
}

.vec-zoom-controls {
  position: absolute;
  right: 16px;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.vec-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vec-zoom-btn:hover {
  background: rgba(30, 41, 59, 0.95);
}

/* ==================== ROUTE & MARKER ANIMATIONS ==================== */
@keyframes dashFlow {
  to {
    stroke-dashoffset: -32;
  }
}

.route-animated-dash {
  animation: dashFlow 1.6s linear infinite;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.75;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.05);
    opacity: 0;
  }
}

.stop-pin-wrapper {
  background: transparent;
  border: none;
}

.stop-pin {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pin-color, #2563eb);
  border: 2.5px solid #ffffff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stop-pin:hover,
.stop-pin.is-selected {
  transform: scale(1.2);
}

.stop-pin.is-booked::after {
  content: "✓";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

.stop-pin-emoji {
  font-size: 15px;
  line-height: 1;
}

.stop-pin-badge {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f8fafc;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.stop-pin-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--pin-color, #2563eb);
  pointer-events: none;
  animation: pulseRing 1.5s ease-out infinite;
}

/* City Hub Pills on Leaflet */
.city-hub-wrapper {
  background: transparent;
  border: none;
}

.city-hub-pill {
  transform: translate(-50%, -145%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
  cursor: pointer;
}

.city-hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--city-color, #38bdf8);
  box-shadow: 0 0 8px var(--city-color, #38bdf8);
}

.city-hub-temp {
  font-size: 10.5px;
  font-weight: 500;
  color: #7dd3fc;
  padding-left: 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Transit Midpoint Badges */
.transit-badge-wrapper {
  background: transparent;
  border: none;
}

.transit-badge {
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.26);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.transit-badge.badge-flight {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.transit-badge.badge-train {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

/* Vehicle Marker in Presentation */
.vehicle-marker-wrapper {
  background: transparent;
  border: none;
}

.vehicle-marker {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2.5px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.65);
}

.vehicle-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.6);
  animation: pulseRing 1.2s ease-out infinite;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
}

.vehicle-emoji {
  font-size: 20px;
  line-height: 1;
}

/* ==================== LEFT SIDEBAR ==================== */
.sidebar {
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: var(--sidebar-w);
  max-width: calc(100vw - 28px);
  z-index: 600;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.sidebar.collapsed {
  transform: translateX(calc(-100% - 28px));
  opacity: 0;
  pointer-events: none;
}

.sidebar-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.trip-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ice);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.trip-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Route Ribbon */
.route-ribbon {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
}

.route-node {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.14);
}

.route-node.warm {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
}

body.map-dark .route-node.warm {
  color: #fb923c;
}

.route-node.cold {
  background: rgba(99, 102, 241, 0.16);
  color: #4f46e5;
}

body.map-dark .route-node.cold {
  color: #a5b4fc;
}

.route-sep {
  font-size: 11px;
  opacity: 0.78;
}

/* KPI Strip */
.kpi-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.kpi-item {
  padding: 7px 6px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  text-align: center;
}

.kpi-val {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.kpi-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Sidebar Actions */
.sidebar-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 6px;
}

.btn-primary,
.btn-secondary {
  height: 35px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.36);
}

.btn-secondary {
  background: var(--surface-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary.active-pick {
  background: #f97316;
  color: #ffffff;
  border-color: #f97316;
}

/* Day Filter Tabs */
.day-tabs-wrap {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.day-scroll-btn {
  flex-shrink: 0;
  width: 22px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.day-scroll-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.day-scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.day-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
  cursor: grab;
  user-select: none;
}

.day-tabs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.day-tabs::-webkit-scrollbar {
  height: 5px;
}

.day-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.day-tabs::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.32);
  border-radius: 999px;
}

.day-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.55);
}

.day-tab {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  transition: all 0.16s ease;
}

.day-tab small {
  font-size: 10px;
  opacity: 0.78;
  font-weight: 500;
}

.day-tab:hover {
  border-color: var(--tab-color, var(--accent));
}

.day-tab.active {
  background: var(--tab-color, var(--accent));
  border-color: var(--tab-color, var(--accent));
  color: #ffffff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tab-color, #2563eb) 36%, transparent);
}

.day-tab.active small {
  opacity: 0.92;
}

/* Day Banner */
.day-banner {
  padding: 10px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  flex-shrink: 0;
}

.day-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.day-banner-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}

.day-banner-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.day-banner-desc {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.branch-bar {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.branch-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.branch-btn {
  flex: 1;
  min-width: 118px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.branch-btn:hover {
  border-color: var(--accent);
}

.branch-btn.active-a {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.28);
}

.branch-btn.active-b {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

/* Timeline List */
.timeline-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-day-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.timeline-day-divider:first-child {
  margin-top: 0;
}

.divider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.stop-card {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.stop-card:hover {
  border-color: var(--card-color, var(--accent));
  box-shadow: var(--shadow-sm);
}

.stop-card.is-selected {
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--card-color, #2563eb) 22%, transparent);
}

.stop-card.is-booked {
  border-left: 3.5px solid var(--success);
}

.stop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.stop-card-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.stop-order-pill {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: var(--card-color, #2563eb);
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.stop-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.stop-cat-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.stop-cost {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--warm);
  flex-shrink: 0;
}

.stop-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stop-card-notes {
  font-size: 11.8px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stop-card.is-selected .stop-card-notes {
  -webkit-line-clamp: unset;
}

.stop-card-actions {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.mini-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-btn {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.mini-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.mini-btn.booked-on {
  background: rgba(13, 148, 136, 0.14);
  color: var(--success);
  border-color: rgba(13, 148, 136, 0.4);
}

.mini-btn.danger:hover {
  background: rgba(225, 29, 72, 0.12);
  color: var(--danger);
  border-color: var(--danger);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 0.9fr;
  gap: 5px;
  flex-shrink: 0;
  background: var(--surface-subtle);
}

.footer-tool-btn {
  height: 33px;
  padding: 0 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.footer-tool-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Expand Sidebar Button */
.expand-sidebar-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 600;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== TOP-RIGHT FLOATING CONTROLS ==================== */
.map-topbar {
  position: fixed;
  top: 14px;
  right: 14px;
  left: calc(var(--sidebar-w) + 28px);
  z-index: 550;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
  transition: left 0.3s ease;
}

body.sidebar-collapsed .map-topbar {
  left: 140px;
}

.control-group {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.pill-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.city-pill-btn {
  height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.city-pill-btn:hover {
  background: var(--accent-soft);
}

.city-dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.basemap-select {
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.chip-toggle {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.48;
  transition: all 0.15s ease;
}

.chip-toggle.active {
  opacity: 1;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Floating Stop Inspector Card (used in Vector mode or quick view) */
.stop-float-card {
  position: fixed;
  right: 16px;
  bottom: 58px;
  width: 310px;
  max-width: calc(100vw - 32px);
  z-index: 560;
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 13px 14px;
}

/* Bottom-Right Legend (offset left of Leaflet zoom controls) */
.map-legend {
  position: fixed;
  right: 60px;
  bottom: 16px;
  z-index: 540;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

body.present-mode .leaflet-control-zoom,
body.present-mode .vec-zoom-controls {
  display: none !important;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.legend-line.flight {
  background: repeating-linear-gradient(90deg, #f97316 0 5px, transparent 5px 8px);
}

.legend-line.train {
  background: #0ea5e9;
}

.legend-line.local {
  background: #8b5cf6;
}

.legend-temp {
  padding-left: 10px;
  border-left: 1px solid var(--border);
  color: var(--ice);
}

/* Pick Mode Banner & Toast */
.pick-banner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.pick-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseRing 1.2s ease infinite;
  position: static;
  transform: none;
}

.btn-ghost-sm {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 66px;
  left: calc(50% + 140px);
  transform: translateX(-50%);
  z-index: 950;
  padding: 9px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

body.sidebar-collapsed .toast,
body.present-mode .toast {
  left: 50%;
}

/* ==================== LEAFLET POPUP & TOOLTIP ==================== */
.custom-stop-popup .leaflet-popup-content-wrapper {
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0;
}

.custom-stop-popup .leaflet-popup-content {
  margin: 13px 14px;
  min-width: 245px;
}

.custom-stop-popup .leaflet-popup-tip {
  background: var(--surface-strong);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.popup-day-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
}

.popup-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.popup-title {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.popup-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.popup-booked-tag {
  color: var(--success);
  font-weight: 700;
}

.popup-notes {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.popup-actions {
  display: flex;
  gap: 6px;
}

.popup-btn {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.popup-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.popup-btn-danger {
  color: var(--danger);
}

.custom-leaflet-tooltip {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  color: #f8fafc;
  padding: 8px 10px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.custom-leaflet-tooltip::before {
  display: none;
}

.tt-title {
  font-size: 11px;
  color: #7dd3fc;
  font-weight: 700;
}

.tt-route {
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0;
}

.tt-meta {
  font-size: 11.5px;
  color: #cbd5e1;
}

.tt-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  max-width: 230px;
  white-space: normal;
}

/* ==================== PRESENTATION MODE HUD ==================== */
.present-hud {
  position: fixed;
  inset: 0;
  z-index: 650;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 22px;
}

.present-top {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.45);
}

.present-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.present-badge {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.present-title {
  font-size: 14px;
  font-weight: 700;
}

.present-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stepper-city {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  cursor: pointer;
}

.stepper-city.active {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
}

.btn-exit-present {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-exit-present:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.65);
}

.present-bottom {
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.present-story-card {
  pointer-events: auto;
  width: 720px;
  max-width: 100%;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.58);
  overflow: hidden;
}

.present-progress-track {
  height: 4px;
  background: rgba(148, 163, 184, 0.22);
  width: 100%;
}

.present-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #38bdf8, #818cf8);
  transition: width 0.35s ease;
}

.present-story-body {
  padding: 16px 20px 12px;
}

.present-story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.p-day-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  color: #ffffff;
  background: #2563eb;
}

.p-city-temp {
  color: #7dd3fc;
  font-weight: 600;
}

.p-sunset {
  color: #fdba74;
  font-weight: 600;
}

.p-step-counter {
  margin-left: auto;
  color: #94a3b8;
  font-weight: 700;
}

.p-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.p-notes {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

.present-controls {
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-ctrl-btn {
  height: 36px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.p-play-btn {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: transparent;
  padding: 0 18px;
}

.p-speed-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.p-speed-btn:first-of-type {
  margin-left: auto;
}

.p-ctrl-btn:hover,
.p-speed-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==================== MODALS & DRAWER ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card.modal-lg {
  width: 660px;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.bonus-poi-section {
  padding: 10px 18px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.bonus-poi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.bonus-poi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bonus-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.bonus-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-form {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
  min-width: 120px;
}

.flex-2 {
  flex: 2;
  min-width: 180px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--surface-subtle);
  padding: 7px 10px;
  border-radius: 8px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

/* Drawer Tabs & Body */
.drawer-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.drawer-tab {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.drawer-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.drawer-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  max-height: 70vh;
}

/* Budget View */
.budget-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.budget-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.budget-card-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.budget-card-val {
  font-size: 20px;
  font-weight: 800;
}

.budget-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.budget-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
}

.budget-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  border-radius: 999px;
}

.hotel-slider-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

/* Bookings Checklist View */
.booking-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.booking-card:hover {
  border-color: var(--accent);
}

.booking-card.done {
  opacity: 0.58;
}

.booking-card.done .booking-title {
  text-decoration: line-through;
}

.booking-body {
  flex: 1;
  min-width: 0;
}

.booking-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.booking-day-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.booking-urgency {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.booking-urgency.high {
  background: rgba(225, 29, 72, 0.14);
  color: #e11d48;
}

.booking-urgency.medium {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
}

.booking-urgency.low {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}

.booking-price {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--warm);
}

.booking-title {
  font-size: 13.2px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.booking-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3px;
}

.booking-tip {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.free-list-box {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Checklist View */
.check-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.check-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin: 12px 0 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
}

.check-item.done {
  opacity: 0.6;
  text-decoration: line-through;
}

.check-add-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.check-add-row input {
  flex: 1;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 13px;
}

/* Export View */
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.export-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.export-card h4 {
  margin: 0;
  font-size: 14px;
}

.export-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  :root {
    --sidebar-w: 330px;
  }
  .city-group {
    display: none;
  }
  .legend-temp {
    display: none;
  }
}

@media (max-width: 680px) {
  .sidebar {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: 48vh;
  }
  .map-topbar {
    left: 10px;
    right: 10px;
    top: 10px;
  }
  .map-legend {
    display: none;
  }
  .budget-hero,
  .export-grid {
    grid-template-columns: 1fr;
  }
  .toast {
    left: 50%;
    max-width: calc(100vw - 24px);
    white-space: normal;
    text-align: center;
    border-radius: 14px;
  }
}

/* ==================== MULTI-TRIP NAV & WESTERN SICHUAN EXTENSIONS ==================== */
.planner-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--border);
}

.hub-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.16s ease;
}

.hub-back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.trip-switch-group {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  gap: 2px;
}

.trip-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.16s ease;
}

.trip-switch-pill:hover {
  color: var(--text);
}

.trip-switch-pill.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

body[data-trip="chuanxi"] .trip-switch-pill.active {
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.vec-prov-sc {
  fill: rgba(245, 158, 11, 0.15);
  stroke: rgba(251, 191, 36, 0.48);
  stroke-width: 1.25;
}

.legend-line.drive {
  border-top: 2.5px dashed #10b981;
  background: transparent;
}

.transit-badge.badge-drive {
  border-color: rgba(16, 185, 129, 0.55);
  color: #047857;
  background: rgba(236, 253, 245, 0.94);
}

body.map-dark .transit-badge.badge-drive {
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.88);
}

