:root {
  --bg:            #f0f2f5;
  --bg-card:       #ffffff;
  --bg-elevated:   #f7f8fa;
  --bg-input:      #ffffff;
  --border:        #e4e7ec;
  --border-strong: #cfd4dc;
  --text:          #111827;
  --text-secondary:#374151;
  --text-muted:    #6b7280;
  --accent:        #6600cc;
  --accent-hover:  #5200a3;
  --accent-soft:   #f3e8ff;
  --accent-border: #d8b4fe;
  --success:       #059669;
  --success-soft:  #ecfdf5;
  --success-border:#a7f3d0;
  --warning:       #d97706;
  --warning-soft:  #fffbeb;
  --danger:        #dc2626;
  --radius:        14px;
  --radius-sm:     10px;
  --radius-xs:     8px;
  --shadow-sm:     0 1px 2px rgba(17,24,39,.04);
  --shadow:        0 4px 16px rgba(17,24,39,.07);
  --shadow-lg:     0 10px 28px rgba(17,24,39,.1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  margin: 0;
}

.container {
  max-width: 100% !important;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}
@media (min-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1200px) {
  .container { max-width: 920px !important; margin-left: auto; margin-right: auto; }
}

.card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-header {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
  border-bottom: none !important;
  padding: 1.1rem 1.35rem;
  color: #f9fafb !important;
}
.card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffcc !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.card-header .app-icon {
  color: #ffffcc;
  flex-shrink: 0;
}
.card-body {
  background: var(--bg-card);
  padding: 1.35rem;
  color: var(--text);
}

.nav-tabs {
  border-bottom: 1px solid var(--border);
  gap: 2px;
  background: var(--bg-elevated);
  padding: 0.4rem 0.5rem 0 !important;
  flex-wrap: wrap;
}
.nav-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.95rem;
  transition: color .15s ease, background .15s ease;
  background: transparent;
  position: relative;
}
.nav-tabs .nav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-tabs .nav-link.active {
  color: var(--accent) !important;
  background: var(--bg-card) !important;
  font-weight: 700;
}
.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.form-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.route-picker {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 1.1rem;
}
.route-picker .form-control,
.form-control {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  background: #fff !important;
  color: var(--text) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.route-picker .form-control:focus,
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 0, 204, 0.15);
  outline: none;
}
.route-picker .form-control::placeholder {
  color: #9ca3af;
}

.form-select,
.form-select.form-select-lg {
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-strong);
  background: #fff !important;
  color: var(--text) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-select:focus,
.form-select.form-select-lg:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 0, 204, 0.15);
  outline: none;
}
.form-select option {
  background: #fff;
  color: #111827;
}

.selected-route-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #faf5ff 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.1rem;
}
.selected-route-banner .route-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  min-width: 3.4rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.selected-route-banner .route-meta .dir {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}
.selected-route-banner .route-meta .stop {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.route-list {
  max-height: min(42vh, 230px);
  min-height: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}
.route-list .route-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.35;
  transition: background .12s ease, color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.route-list .route-item:last-child { border-bottom: none; }
.route-list .route-item:hover,
.route-list .route-item:focus {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}
.route-list .route-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-left: 4px solid var(--accent-hover);
  padding-left: calc(1rem - 4px);
}
.route-list .route-item.route-empty {
  color: var(--text-muted);
  font-weight: 500;
  cursor: default;
  text-align: center;
}
.route-list .route-item.route-empty:hover {
  background: #fff;
  color: var(--text-muted);
}

.stop-list-section {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}
.stop-list-section .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.stop-list-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.stop-list {
  max-height: min(44vh, 340px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}
.stop-list .stop-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background .12s ease, color .12s ease;
  cursor: pointer;
  line-height: 1.35;
}
.stop-list .stop-item:last-child { border-bottom: none; }
.stop-list .stop-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.stop-list .stop-item.active {
  background: linear-gradient(90deg, var(--accent-soft) 0%, #fff 50%);
  color: var(--text);
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: calc(1rem - 4px);
}
.stop-list .stop-item .stop-seq {
  flex-shrink: 0;
  min-width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 7px;
  background: #f3f4f6;
  color: #6b7280;
}
.stop-list .stop-item.active .stop-seq {
  background: var(--accent);
  color: #fff;
}
.stop-list .stop-item .stop-name {
  flex: 1;
  min-width: 0;
}
.stop-list .stop-item .stop-eta {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--success);
  text-align: right;
  max-width: 48%;
  line-height: 1.3;
}
.stop-list .stop-item .stop-eta .eta-row {
  display: block;
  white-space: nowrap;
}
.stop-list .stop-item .stop-eta .eta-row + .eta-row {
  margin-top: 2px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #4b5563;
}
.stop-list .stop-item .stop-eta .eta-time {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: 0.25rem;
}
.stop-list .stop-item.active .stop-eta { color: var(--accent); }
.stop-list .stop-item .stop-eta.eta-loading,
.stop-list .stop-item .stop-eta.eta-empty,
.stop-list .stop-item .stop-eta.eta-hint {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.stop-list .stop-item .stop-walk-btn {
  flex-shrink: 0;
  margin-left: 0.3rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 8px;
  border: 1.5px solid var(--success);
  background: var(--success-soft);
  color: #047857;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  transition: all .15s ease;
}
.stop-list .stop-item .stop-walk-btn:hover,
.stop-list .stop-item .stop-walk-btn:focus {
  background: var(--success);
  color: #fff;
  outline: none;
}
.stop-list .stop-item.active .stop-walk-btn {
  border-color: var(--success);
  background: #fff;
  color: #047857;
}
.stop-list .stop-item.active .stop-walk-btn:hover {
  background: var(--success);
  color: #fff;
}

.station-walk-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.station-walk-row .form-select {
  flex: 1 1 auto;
  min-width: 0;
}
.station-walk-row .station-walk-btn {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
  border: 2px solid var(--success);
  background: var(--success-soft);
  color: #047857;
  cursor: pointer;
  transition: all .15s ease;
}
.station-walk-row .station-walk-btn:hover {
  background: var(--success);
  color: #fff;
}

.action-btn-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}
.action-btn-row .btn {
  flex: 1 1 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.5rem;
  white-space: nowrap;
  transition: all .15s ease;
}

.btn-lg {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.7rem 1.2rem;
}

/* 最近車站 – solid teal (locate / position) */
.btn-success {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #fff !important;
}
.btn-success:hover {
  background: #0f766e !important;
  border-color: #0f766e !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-outline-primary {
  border-width: 1.5px;
  border-color: #6600cc !important;
  color: #6600cc !important;
  background: #f3e8ff;
}
.btn-outline-primary:hover {
  background: #6600cc !important;
  border-color: #6600cc !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(102, 0, 204, 0.25);
}

.action-btn-row .btn-outline-primary:last-child,
.action-btn-row .btn.btn-outline-primary:nth-child(3) {
  border-color: #d97706 !important;
  color: #b45309 !important;
  background: #fffbeb !important;
}
.action-btn-row .btn-outline-primary:last-child:hover,
.action-btn-row .btn.btn-outline-primary:nth-child(3):hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}

.action-btn-row .btn-outline-primary:first-child {
  border-color: #6600cc !important;
  color: #6600cc !important;
  background: #f3e8ff !important;
}
.action-btn-row .btn-outline-primary:first-child:hover {
  background: #6600cc !important;
  border-color: #6600cc !important;
  color: #fff !important;
}

.btn-outline-secondary {
  border-color: var(--border-strong) !important;
  color: var(--text-muted) !important;
}
.btn-outline-secondary:hover {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
}

.btn-outline-danger {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}
.btn-outline-danger:hover {
  background: var(--danger) !important;
  color: #fff !important;
}

#etaLiveArea .table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  color: var(--text);
  background: #fff;
}
#etaLiveArea .table thead th {
  background: #f3f4f6 !important;
  font-weight: 700;
  color: #4b5563 !important;
  border-bottom: 2px solid var(--border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.85rem;
}
#etaLiveArea .table td {
  vertical-align: middle;
  font-size: 0.98rem;
  border-color: var(--border) !important;
  color: var(--text) !important;
  padding: 0.65rem 0.85rem;
}
#etaLiveArea .table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #f9fafb !important;
}
#etaLiveArea .table tbody tr:hover > * {
  background: var(--accent-soft) !important;
}

#etaLiveStatus {
  font-size: 0.8rem;
  color: var(--text-muted) !important;
}

.walk-route-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #065f46;
}
.walk-route-summary.visible { display: flex; }
.walk-route-summary .walk-meta { font-weight: 600; }
.walk-route-summary .walk-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.walk-route-summary .walk-actions a,
.walk-route-summary .walk-actions button {
  font-size: 0.82rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
}

.map-wrapper {
  position: relative;
  margin-top: 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.map-wrapper #map {
  height: 320px;
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}
.map-fullscreen-btn,
.map-exit-fullscreen-btn {
  position: absolute;
  z-index: 1000;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  line-height: 1.2;
  transition: all .15s ease;
}
.map-fullscreen-btn:hover,
.map-exit-fullscreen-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.map-exit-fullscreen-btn {
  display: none;
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}
.map-wrapper.map-is-fullscreen .map-fullscreen-btn { display: none; }
.map-wrapper.map-is-fullscreen .map-exit-fullscreen-btn {
  display: block;
  top: 16px;
  right: 16px;
  font-size: 1rem;
  padding: 0.55rem 1rem;
}
.map-wrapper.map-is-fullscreen {
  border-radius: 0;
  border: none;
}
.map-wrapper.map-is-fullscreen #map {
  height: 100%;
  width: 100%;
}
.map-wrapper:fullscreen,
.map-wrapper:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0;
  border: none;
}
.map-wrapper:fullscreen #map,
.map-wrapper:-webkit-full-screen #map {
  height: 100% !important;
  width: 100% !important;
}

.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow);
}
.leaflet-routing-container {
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.1) !important;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.85rem;
}
.leaflet-routing-alt { max-height: 180px; }
.leaflet-routing-container h2,
.leaflet-routing-container h3 {
  font-size: 0.95rem !important;
  color: #111827 !important;
}
.leaflet-routing-collapse-btn {
  background: var(--accent) !important;
}

.fav-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.list-group-item,
.fav-item {
  background: #fff !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.55rem;
  border: 1px solid var(--border) !important;
  transition: box-shadow .15s ease, border-color .15s ease;
  padding: 0.9rem 1rem;
}
.fav-item:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 2px 12px rgba(102, 0, 204, 0.12);
}
.fav-item.sortable-ghost {
  opacity: 0.4;
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
}
.fav-item.sortable-chosen {
  box-shadow: var(--shadow-lg);
}
.fav-item.sortable-drag { opacity: 0.95; }
.fav-drag-handle {
  cursor: grab;
  color: #9ca3af;
  font-size: 1.3rem;
  margin-right: 0.55rem;
  user-select: none;
  -webkit-user-select: none;
  padding: 0.25rem 0.3rem;
  line-height: 1;
  touch-action: none;
}
.fav-drag-handle:active { cursor: grabbing; }
.fav-item {
  user-select: none;
  -webkit-user-select: none;
}
.company-badge { font-size: 0.72rem; }

.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.85rem 1.1rem;
}
.alert-info {
  background: #eff6ff !important;
  color: #1e40af !important;
}
.alert-warning {
  background: var(--warning-soft) !important;
  color: #92400e !important;
}

.badge {
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35em 0.7em;
}
.badge.bg-dark   { background: #1f2937 !important; color: #fff !important; }
.badge.bg-warning{ background: var(--warning) !important; color: #fff !important; }
.badge.bg-danger { background: #dc2626 !important; }
.badge.bg-primary{ background: #2563eb !important; }
.badge.bg-success{ background: var(--success) !important; }
.badge.bg-info   { background: #0891b2 !important; }

.card .card-header.py-2 {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.list-group-item {
  background: #fff !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

hr {
  border-color: var(--border) !important;
  opacity: 1;
  margin: 1.25rem 0;
}

/* Utility text */
.text-danger  { color: var(--danger) !important; }
.text-primary { color: var(--accent) !important; }
.text-muted   { color: var(--text-muted) !important; }
.fw-bold.text-primary { color: var(--accent) !important; }

@media (max-width: 576px) {
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .card {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .card-header {
    padding: 0.85rem 1rem !important;
    border-radius: 0 !important;
  }
  .card-header h3 { font-size: 1.15rem; }
  .card-body { padding: 0.85rem 0.75rem 1.1rem !important; }

  .nav-tabs {
    padding: 0.3rem 0.35rem 0 !important;
    gap: 1px;
  }
  .nav-tabs .nav-link {
    padding: 0.5rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 8px 8px 0 0;
  }

  .route-picker {
    padding: 0.7rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
  }
  .selected-route-banner {
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    gap: 0.6rem;
  }
  .selected-route-banner .route-num {
    font-size: 1.5rem;
    min-width: 2.8rem;
  }

  .stop-list-section {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
  }
  .stop-list {
    max-height: min(42vh, 300px);
    border-radius: 12px;
  }
  .stop-list .stop-item {
    padding: 0.75rem 0.8rem;
    font-size: 0.95rem;
    gap: 0.55rem;
  }
  .stop-list .stop-item.active {
    padding-left: calc(0.8rem - 4px);
  }
  .stop-list .stop-item .stop-eta {
    font-size: 0.85rem;
    max-width: 48%;
  }
  .stop-list .stop-item .stop-walk-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .route-list {
    max-height: min(38vh, 200px);
    min-height: 100px;
  }
  .route-list .route-item {
    padding: 0.75rem 0.9rem;
    font-size: 1.05rem;
  }
  .route-list .route-item.active {
    padding-left: calc(0.9rem - 4px);
  }

  .action-btn-row {
    gap: 0.4rem;
    margin-top: 0.85rem;
  }
  .action-btn-row .btn {
    font-size: 0.88rem;
    padding: 0.65rem 0.35rem;
  }

  .map-wrapper {
    border-radius: 12px;
    margin-top: 0.85rem;
  }
  .map-wrapper #map { height: 250px; }

  .form-select.form-select-lg,
  .form-select {
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
  }
  .btn-lg {
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
  }
  .mb-3 { margin-bottom: 0.85rem !important; }
  .mt-3 { margin-top: 0.85rem !important; }

  .list-group-item,
  .fav-item {
    border-radius: 10px !important;
    margin-bottom: 0.45rem;
  }
  hr { margin: 0.9rem 0; }
  .app-icon { width: 24px; height: 24px; }

  .station-walk-row .station-walk-btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .action-btn-row .btn {
    font-size: 0.82rem;
    padding: 0.6rem 0.25rem;
  }
  .nav-tabs .nav-link {
    padding: 0.45rem 0.4rem;
    font-size: 0.75rem;
  }
}

.route-list::-webkit-scrollbar,
.stop-list::-webkit-scrollbar {
  width: 5px;
}
.route-list::-webkit-scrollbar-thumb,
.stop-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.route-list::-webkit-scrollbar-track,
.stop-list::-webkit-scrollbar-track {
  background: transparent;
}

.form-select-lg {
  font-size: 1.1rem;
}
.table {
  font-size: 1rem;
}
#map {
  height: 300px;
  width: 100%;
  border-radius: 8px;
}