/* Android owns the system insets; the web UI remains shared with browser/PWA. */
html.bevi-native-app #install-button,
html.bevi-native-app #page-install-button,
html.bevi-native-app #manual-install-steps,
html.bevi-native-app #desktop-qr,
html.bevi-native-app .site-menu a[href$="/download/"],
html.bevi-native-app .site-menu a[href$="/download"],
html.bevi-native-app .footer-nav a[href$="/download/"],
html.bevi-native-app .footer-nav a[href$="/download"] { display: none !important; }
.site-menu [hidden], .footer-nav [hidden] { display: none !important; }
.native-app-settings { margin-top: 20px; }
.native-app-settings h2 { margin: 0 0 6px; color: #5E7377; font-size: 13px; font-weight: 600; }
.site-menu .native-app-settings a { min-height: 48px; font-size: 16px; }

/* Keep credits legible and physically below controls, including on narrow phones. */
#map .leaflet-control-attribution {
    max-width: calc(100vw - 16px);
    margin: 0 0 max(4px, env(safe-area-inset-bottom)) 6px !important;
    padding: 3px 5px !important;
    font-size: 10px;
    line-height: 1.25;
    color: #1D606A;
    background: rgba(253,253,251,.94) !important;
}
.map-actions { bottom: calc(max(4px, env(safe-area-inset-bottom)) + var(--bevi-credits-height, 32px) + 12px); }
.community-picker { bottom: calc(max(4px, env(safe-area-inset-bottom)) + var(--bevi-credits-height, 32px) + 12px); }
#map .leaflet-bottom.leaflet-right .leaflet-control-zoom {
    margin-bottom: calc(max(4px, env(safe-area-inset-bottom)) + var(--bevi-credits-height, 32px) + 124px) !important;
}
@media (max-width: 900px) {
    html.bevi-native-app .topbar { top: 8px; }
    html.bevi-native-app .search { top: 70px; }
}

.native-app-settings { margin-top: 0; }
.native-app-settings h2 { display: none; }
.site-menu .native-app-settings a { min-height: 50px; font-size: 17px; }
