/* Floating bottom navigation (mobile + desktop) */
:root {
  --hh-nav-h: 64px;
  --hh-nav-orange: #e85d04;
  --hh-nav-ink: #1c1917;
  --hh-nav-muted: #78716c;
  --hh-nav-float-gap: 14px;
}

body {
  padding-bottom: calc(var(--hh-nav-h) + var(--hh-nav-float-gap) + 16px + env(safe-area-inset-bottom, 0px));
}

.hh-bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(var(--hh-nav-float-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 10050;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(420px, calc(100% - 24px));
  height: var(--hh-nav-h);
  transform: translateX(-50%);
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
}

.hh-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--hh-nav-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 0;
  padding: 6px 4px 8px;
}

.hh-bottom-nav__icon {
  display: flex;
  width: 22px;
  height: 22px;
}

.hh-bottom-nav__icon svg {
  width: 100%;
  height: 100%;
}

.hh-bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hh-bottom-nav__item.is-active {
  color: var(--hh-nav-orange);
}

.hh-bottom-nav__item:hover {
  color: var(--hh-nav-ink);
}

.hh-bottom-nav__item.is-active:hover {
  color: var(--hh-nav-orange);
}

/* Compact floating bar on mobile */
@media (max-width: 899px) {
  :root {
    --hh-nav-h: 52px;
    --hh-nav-float-gap: 10px;
  }

  .hh-bottom-nav {
    width: min(320px, calc(100% - 48px));
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.12);
  }

  .hh-bottom-nav__item {
    gap: 1px;
    font-size: 0.58rem;
    padding: 4px 2px 5px;
  }

  .hh-bottom-nav__icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 900px) {
  .hh-bottom-nav {
    bottom: 18px;
    width: min(420px, calc(100% - 32px));
  }

  body {
    padding-bottom: calc(var(--hh-nav-h) + 36px);
  }
}
