/* Shared phone-sheet heights. Used by the 3-level sheets (traffic, bike, recycling, FairPrice/supermarkets); keep in step with NavSheet.snapHeights in nav-sheet.js.
   full: most of the screen, but always leaving 150px of map under the header and search row.
   half: half the screen, never under 360px (so a header, tabs and a list row still fit on a 640px phone), never above full.
   peek is each page's own header strip: its content differs, so it is not tokenised. */
:root {
  --ns-full: min(80dvh, calc(100dvh - 150px));
  --ns-half: min(max(50dvh, 360px), var(--ns-full));
}

/* The phone-sheet tab (NavSheet.tab): one small tab on the top edge of every bottom sheet. Script sets its top from the sheet and hides it when the sheet is not a bottom sheet. */
.nv-sheet-tab { position: fixed; left: calc(50% - 40px); top: 0; z-index: 1003; width: 80px; height: 28px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; color: var(--nv-ink, #1c2438); background: #fff; border: 1.5px solid var(--nv-ink, #1c2438); border-bottom: 0; border-radius: var(--nv-r, 4px) var(--nv-r, 4px) 0 0; box-shadow: 0 -2px 6px rgba(28, 36, 56, .18); cursor: pointer; touch-action: none; transform: none !important; }
.nv-sheet-tab:active { background: var(--nv-surface, #f2f3f5); }
.nv-sheet-tab svg { width: 22px; height: 22px; display: block; }
.nv-sheet-tab[hidden] { display: none; }
.nv-sheet-tab::before { content: ''; position: absolute; inset: -14px -8px 0; } /* a 44px-tall touch target around the small tab */
[data-nv-tabbed] { display: none !important; }
/* Leaflet's bottom controls (attribution) sit above the tab, not under it. */
.nv-has-tab .leaflet-bottom { margin-bottom: 28px !important; }
/* The tab replaced each page's grab bar, so sheets whose first row sat flush with the top edge get the room the bar used to give. */
@media (max-width: 767px) {
  #bike-panel, #mt-sheet, #panel { padding-top: 18px; }
  .panel[data-state] { padding-top: 18px; }
}
/* Live drag: the sheet follows the finger, so its own height transitions are off while it is held or measured. */
.nv-sheet-dragging, .nv-sheet-measuring { transition: none !important; }
