/* One height owner and one scroll container above navigation. */
#popular-panel.popular-mobile-sheet.is-mobile-sheet-open {position:fixed!important;z-index:350!important;left:max(10px,env(safe-area-inset-left))!important;right:max(10px,env(safe-area-inset-right))!important;top:auto!important;bottom:var(--map-swipe-bottom,var(--app-bottom-nav-height,68px))!important;width:auto!important;height:var(--map-swipe-height,46dvh)!important;min-height:0!important;max-height:var(--map-swipe-height,46dvh)!important;box-sizing:border-box;display:flex;flex-direction:column;padding:0!important;overflow:hidden;border-radius:20px 20px 0 0;transform:none!important;background:#fcfaf5;pointer-events:auto;}
#popular-panel.popular-mobile-sheet .popular-section {position:static!important;inset:auto!important;height:auto!important;max-height:none!important;min-height:0;flex:1 1 auto;overflow:hidden;transform:none!important;display:none!important;box-shadow:none;border-radius:0;}
#popular-panel.popular-mobile-sheet.is-tab-country .popular-section-country,#popular-panel.popular-mobile-sheet.is-tab-region .popular-section-region,#popular-panel.popular-mobile-sheet.is-tab-near-location .popular-section-area,#popular-panel.popular-mobile-sheet.is-tab-near-pin .popular-section-area {display:flex!important;flex-direction:column;}
#popular-panel.popular-mobile-sheet .popular-header {flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-areas:'title close';gap:4px;padding:24px 16px 4px;box-sizing:border-box;min-height:76px;touch-action:none;}
#popular-panel.popular-mobile-sheet .popular-header::before {content:none;display:none;}
#popular-panel.popular-mobile-sheet .popular-header button {width:48px;min-width:48px;height:48px;min-height:48px;display:grid;place-items:center;padding:0;border:0;border-radius:12px;background:transparent;color:#183e47;font-size:22px;}
#popular-panel.popular-mobile-sheet .popular-header > [id$='-title'] {grid-area:title;min-width:0;margin:0;color:var(--bm-ink,#183e47);font-size:18px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;text-align:left;}
#popular-panel.popular-mobile-sheet .popular-header > [data-popular-close] {grid-area:close;}
#popular-panel.popular-mobile-sheet .popular-header > .map-panel-swipe-grip {grid-area:auto;}
#popular-panel.popular-mobile-sheet[data-map-swipe-snap=peek] .popular-header > [id$='-title'] {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#popular-panel.popular-mobile-sheet .popular-list {position:static!important;flex:1 1 auto;min-height:0;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;padding:12px 16px 24px;box-sizing:border-box;-webkit-overflow-scrolling:touch;}
#popular-panel.popular-mobile-sheet .popular-list>* {flex-shrink:0;}
#popular-panel.popular-mobile-sheet .popular-list-more-wrap {padding:12px 0 4px;}
#popular-panel.popular-mobile-sheet .popular-list-more-btn {min-height:48px;width:100%;}
#popular-panel.popular-mobile-sheet :focus-visible {outline:3px solid #1c6370;outline-offset:-3px;}

#popular-panel.popular-mobile-sheet .popular-header :is([data-popular-back],[data-popular-sheet-toggle]) {display:none!important;}
#popular-panel.popular-mobile-sheet [data-popular-sheet-toggle][aria-expanded=true] svg {transform:rotate(180deg);}
#popular-panel.popular-mobile-sheet .popular-header [data-popular-close] {display:grid!important;}

/* The common sheet rule permits outer scrolling for other panel types.
   Popular keeps its grip/header outside the one scrolling result list. */
body #popular-panel.popular-mobile-sheet[data-map-swipe-sheet][data-map-swipe-sheet][data-map-swipe-sheet][data-map-swipe-sheet] {overflow:hidden!important;overflow:clip!important;overscroll-behavior:none;}
#popular-panel.popular-mobile-sheet[data-map-swipe-sheet] > .popular-section {flex:1 1 0%!important;height:100%!important;min-height:0!important;overflow:hidden!important;}
#popular-panel.popular-mobile-sheet[data-map-swipe-sheet] .popular-header {position:sticky!important;top:0!important;z-index:2;background:var(--bm-paper,#fcfaf5);}
#popular-panel.popular-mobile-sheet[data-map-swipe-sheet] .popular-list {flex:1 1 0%!important;min-height:0!important;overscroll-behavior-y:contain;}

/* Popular owns its geometry even if a cached common stylesheet has no swipe
   rules. clip prevents focus/scroll restoration from panning the outer shell. */
#popular-panel.popular-mobile-sheet.is-mobile-sheet-open {overflow:clip!important;}
#popular-panel.popular-mobile-sheet .popular-section {overflow:clip!important;}
#popular-panel.popular-mobile-sheet .map-panel-swipe-grip {position:absolute;top:4px;left:0;right:0;height:20px;cursor:ns-resize;touch-action:none;}
#popular-panel.popular-mobile-sheet .map-panel-swipe-grip::after {content:'';position:absolute;width:36px;height:4px;border-radius:4px;background:#82989b;top:6px;left:calc(50% - 18px);}

/* The header has exactly two flex items; common grid rules cannot introduce
   anonymous/implicit tracks that squeeze the title to the right. */
body #popular-panel.popular-mobile-sheet .popular-header {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
body #popular-panel.popular-mobile-sheet .popular-header > [id$='-title'] {flex:1 1 0%!important;order:0!important;min-width:0!important;width:auto!important;max-width:none!important;text-align:left!important;}
body #popular-panel.popular-mobile-sheet .popular-header > [data-popular-close] {flex:0 0 48px!important;order:1!important;}

/* The sheet owns its paper and motion. Legacy inner panels are content only. */
body #popular-panel.popular-mobile-sheet{transition:none;}
body #popular-panel.popular-mobile-sheet .popular-section{border:0;background:transparent;animation:none!important;transition:none;}
