/* Barra inferior partilhada (home, mapa, …) */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #e2e5ec;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
}

.tabbar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.tabbar-inner > form {
  display: contents;
  margin: 0;
  padding: 0;
  border: 0;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7b8194;
  cursor: pointer;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

a.tab {
  text-decoration: none;
  color: #7b8194;
}

.tab svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  opacity: 0.55;
  color: currentColor;
}

.tab[aria-current="page"] {
  color: #ea580c;
}

.tab[aria-current="page"] svg {
  opacity: 1;
}

.tab:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.tab:active:not([aria-current="page"]) {
  background: rgba(234, 88, 12, 0.08);
}
