/* ── 全站底部 pill nav（統一由 bottomnavbar2.js 注入）── */

.bottom-nav {
  position: fixed !important;
  bottom: 12px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 420px !important;
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  background: #201F21 !important;
  border-radius: 28px !important;
  border-top: none !important;
  padding: 6px 4px max(6px, env(safe-area-inset-bottom)) !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.35) !important;
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0 8px;
  border-radius: 22px;
  text-decoration: none;
  color: #757575 !important;
  font-size: 10px;
  transition: color .2s;
  min-width: 0;
}

.bottom-nav .nav-item span { display: none !important; }

.bottom-nav .nav-item i {
  font-size: 22px !important;
  margin-bottom: 0;
}

.bottom-nav .nav-item.active {
  color: #fff !important;
  background: rgba(255,255,255,.10) !important;
}

.bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.bottom-nav .nav-item:not(.active):hover {
  color: #aaa !important;
}

/* 新增按鈕 */
.bottom-nav .add-button {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0 8px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff !important;
}
.bottom-nav .add-button span { display: none !important; }
.bottom-nav .add-button i { font-size: 22px !important; }
.bottom-nav .add-button.active { background: rgba(255,255,255,.10) !important; }

/* 行程 badge */
.nav-trip-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}
