/* Mobile bottom navigation ------------------------------------------------ */

.rp-bottomnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--rp-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 24px -20px rgba(14, 46, 20, 0.55);
}

.rp-bottomnav__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 6px 2px 7px;
  color: #7b887a;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s ease;
}

.rp-bottomnav__item:hover { color: var(--rp-green-600); }

.rp-bottomnav__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.rp-bottomnav__item.is-active { color: var(--rp-green-700); font-weight: 600; }
.rp-bottomnav__item.is-active .rp-bottomnav__icon { background: rgba(42, 138, 0, 0.1); }

.rp-bottomnav__badge {
  position: absolute;
  top: -3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rp-green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid #fff;
}

.rp-has-bottomnav .rp-main { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 860px) {
  .rp-bottomnav { display: flex; }
}

@media (min-width: 861px) {
  .rp-has-bottomnav .rp-main { padding-bottom: 0; }
}
