html,body{overflow-x:clip} /* Do not turn document into a sticky scroll container. */
/* Navigation de la liste — position sticky dans la page, aucune marque tierce. */
#travelTripsPanel{overflow:visible!important}
#tripListToolbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:11;min-width:0;margin:0 0 14px;padding:12px 10px 13px;background:#fff;border:1px solid #d4e0d8;border-radius:14px;box-shadow:0 2px 10px #1e493013;isolation:isolate}
#tripListSummary{margin:0 0 10px;color:#294c39;font:700 14px/1.3 system-ui,sans-serif;overflow-wrap:anywhere}
.tripListTools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tripListTools button.tripTool{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;padding:9px 5px;border:1px solid #b6cbbd;border-radius:999px;background:#fff;color:#174d3a;font:600 13px/1.1 system-ui,sans-serif;cursor:pointer}
.tripListTools .tripTool svg{width:17px;height:17px;flex-shrink:0}
.tripListTools .tripTool:hover,.tripListTools .tripTool[aria-expanded="true"]{border-color:#174d3a;background:#f0f7f1}
.tripListTools .tripTool:focus-visible,#tripSortMenu button:focus-visible{outline:3px solid #b17d20;outline-offset:2px}
.tripSortWrap{position:relative;min-width:0}
#tripSortMenu{position:absolute;right:0;top:calc(100% + 6px);width:min(245px,calc(100vw - 36px));max-width:none;padding:6px;background:white;border:1px solid #c5d7cb;border-radius:12px;box-shadow:0 10px 28px #1f3b2727;z-index:12}
#tripSortMenu[hidden]{display:none!important}
#tripSortMenu button{display:block;width:100%;min-height:44px;background:#fff;border:0;border-radius:8px;padding:10px 12px;color:#193b2d;text-align:left;font:500 13px/1.4 system-ui,sans-serif;cursor:pointer}
#tripSortMenu button[aria-pressed="true"]{background:#eaf3eb;font-weight:750}
#tripSortMenu button:hover{background:#f1f6f1}
#toggleFilters{display:none!important}
#app>.w>#filterAnchor{margin-bottom:10px!important}
#travelTripsPanel .upcomingTripsSection{padding:0;border:0;background:transparent}
@media(min-width:721px) and (max-width:899px){#filterPanel.filterOpen{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 36px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 0 0 100vmax #10241ab0}}
@media(max-width:339px){#tripListToolbar{padding:10px 8px}.tripListTools{gap:5px}.tripListTools button.tripTool{font-size:12px;gap:4px}.tripListTools .tripTool svg{width:15px;height:15px}}

/* Mobile sticky navigation must fully mask the cards below, even at its corners.
   Keep buttons inset 16px from each viewport side, independently of .w padding. */
@media(max-width:899px){
 #tripListToolbar{
  box-sizing:border-box;width:100vw;max-width:100vw;
  margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  padding:12px 16px 13px;border-radius:0;
  border-left:0;border-right:0;background:#fff;
  box-shadow:0 2px 10px #1e493020
 }
}
/* Reserve the entire last card above the 56px floating action + breathing room. */
#trips{padding-bottom:calc(56px + 16px + 44px + env(safe-area-inset-bottom, 0px))}
