/* ============================================================
   Bottom Navigation Bar — partilhada em todas as páginas
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    height: 60px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: stretch;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 6px 4px;
    transition: color 0.18s ease;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg,
.bottom-nav-item img {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
}

.bottom-nav-item span {
    line-height: 1;
    white-space: nowrap;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
    color: var(--color-primary, #0072c6);
}

.bottom-nav-item.active {
    color: var(--color-primary, #0072c6);
}

/* Ajuste do mapa para não ficar tapado pela barra */
.leaflet-bottom.leaflet-right { bottom: 60px; }
.leaflet-bottom.leaflet-left  { bottom: 60px; }

@media (max-width: 768px) {
    .bottom-nav { height: 56px; }
    .leaflet-bottom.leaflet-right,
    .leaflet-bottom.leaflet-left { bottom: 50px; }
}

@media (max-width: 480px) {
    .bottom-nav { height: 54px; padding-bottom: env(safe-area-inset-bottom); }
    .bottom-nav-item { font-size: 11px; }
    .bottom-nav-item svg,
    .bottom-nav-item img { width: 25px; height: 25px; }
    .leaflet-bottom.leaflet-right,
    .leaflet-bottom.leaflet-left { bottom: 45px; }
}

.map-action-btn {
    position: absolute;
    left: 12px;
    z-index: 1000;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #555;
    text-decoration: none; transition: all 0.2s ease;
}
/* Posicionar: tutorial acima do fino */
#tutorial-btn       { bottom: 110px; } /* acima da bottom-nav */
.map-action-btn--beer { bottom: 60px; }
.map-action-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

.bottom-nav-item-buses svg {
    width: 40px;
}