/* 005T — universal Toura Passport mobile destination rail polish. */
@media (max-width:760px){
  body.tp005s-has-mobile-nav:not(.tp005s-explorer-page){padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .tp005s-mobile-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:1600;
    height:calc(78px + env(safe-area-inset-bottom));
    padding:7px 6px env(safe-area-inset-bottom);
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;
    background:rgba(255,255,255,.98);border-top:1px solid rgba(17,63,78,.12);
    box-shadow:0 -12px 34px rgba(7,40,53,.09);
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    transition:transform .44s cubic-bezier(.22,.78,.2,1),box-shadow .2s ease;
  }
  .tp005s-mobile-nav>a,.tp005s-mobile-nav>button:not(.tp005s-nav-grab){
    appearance:none;border:0;background:transparent;text-decoration:none;color:#71817a;
    position:relative;min-width:0;height:100%;min-height:58px;padding:4px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    font:inherit;font-size:9px;font-weight:850;letter-spacing:.01em;cursor:pointer;
  }
  .tp005s-mobile-nav>a.active,.tp005s-mobile-nav>button.active{color:#23784f}
  .tp005s-mobile-nav>a.active:before{content:"";position:absolute;top:0;left:50%;width:28px;height:3px;border-radius:3px;background:#2c9560;transform:translateX(-50%)}
  .tp005s-mobile-nav b{font:inherit;white-space:nowrap}
  .tp005s-nav-icon{width:25px;height:25px;display:block;position:relative;font-size:0;color:currentColor}
  .tp005s-nav-explorer:before{content:"";position:absolute;left:6px;top:1px;width:13px;height:17px;border:1.8px solid currentColor;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}
  .tp005s-nav-explorer:after{content:"";position:absolute;left:10px;top:5px;width:5px;height:5px;border:1.6px solid currentColor;border-radius:50%}
  .tp005s-nav-profile:before{content:"";position:absolute;left:8px;top:2px;width:9px;height:9px;border:1.8px solid currentColor;border-radius:50%}
  .tp005s-nav-profile:after{content:"";position:absolute;left:4px;bottom:2px;width:17px;height:9px;border:1.8px solid currentColor;border-radius:12px 12px 7px 7px}
  .tp005s-nav-market:before{content:"";position:absolute;left:2px;right:2px;top:8px;bottom:2px;border:1.8px solid currentColor;border-radius:2px}
  .tp005s-nav-market:after{content:"";position:absolute;left:0;right:0;top:3px;height:7px;border:1.8px solid currentColor;border-radius:3px 3px 1px 1px;box-shadow:inset 5px 0 0 -4px currentColor,inset -5px 0 0 -4px currentColor}
  .tp005s-nav-community:before,.tp005s-nav-community:after,.tp005s-nav-community i:before{content:"";position:absolute;border:1.8px solid currentColor;border-radius:50%}
  .tp005s-nav-community:before{width:8px;height:8px;left:8px;top:2px}.tp005s-nav-community:after{width:6px;height:6px;left:1px;top:6px}.tp005s-nav-community i:before{width:6px;height:6px;right:1px;top:6px}.tp005s-nav-community i:after{content:"";position:absolute;left:2px;right:2px;bottom:2px;height:9px;border:1.8px solid currentColor;border-radius:10px 10px 4px 4px}

  /* Explorer keeps the map full-screen. The rail arrives expanded, then settles to a grab handle. */
  body.tp005s-explorer-page .tp005s-mobile-nav{z-index:1150;background:rgba(255,255,255,.985)}
  .tp005s-nav-grab{display:none}
  body.tp005s-explorer-page .tp005s-nav-grab{
    display:block;position:absolute;left:50%;top:2px;transform:translateX(-50%);z-index:3;
    width:58px;height:18px;border:0;background:transparent;cursor:ns-resize;padding:0;
  }
  body.tp005s-explorer-page .tp005s-nav-grab:after{content:"";display:block;width:38px;height:4px;margin:5px auto 0;border-radius:999px;background:#789087;box-shadow:0 0 0 1px rgba(255,255,255,.7)}
  body.tp005s-explorer-page .tp005s-mobile-nav.is-collapsed{transform:translateY(calc(100% - 24px));box-shadow:0 -5px 18px rgba(7,40,53,.10)}
  body.tp005s-explorer-page .map-control-stack{transition:bottom .44s cubic-bezier(.22,.78,.2,1)}
  body.tp005s-explorer-page.tp005s-explorer-nav-expanded .map-control-stack{bottom:calc(104px + env(safe-area-inset-bottom) + env(safe-area-inset-bottom))!important}
  body.tp005s-explorer-page.tp005s-explorer-nav-collapsed .map-control-stack{bottom:50px!important}
  body.tp005s-explorer-page .places-dock{transition:bottom .44s cubic-bezier(.22,.78,.2,1),transform .44s cubic-bezier(.22,.78,.2,1)}
  body.tp005s-explorer-page.tp005s-explorer-nav-expanded .places-dock{bottom:calc(94px + env(safe-area-inset-bottom) + env(safe-area-inset-bottom))!important}
  body.tp005s-explorer-page.tp005s-explorer-nav-collapsed .places-dock{bottom:max(30px,env(safe-area-inset-bottom))!important}

  /* Explorer search is the discoverability control; fit is now an action inside it. */
  #searchMapButton.tp005s-search-fab{position:relative}
  #searchMapButton.tp005s-search-fab span{width:18px;height:18px;border:2px solid currentColor;border-radius:50%;position:relative;display:block}
  #searchMapButton.tp005s-search-fab span:after{content:"";position:absolute;width:8px;height:2px;right:-6px;bottom:-3px;background:currentColor;border-radius:2px;transform:rotate(45deg);transform-origin:left center}
  .tp005s-fit-row{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:1px}
  #fitResultsButton.tp005s-fit-action{width:auto;height:34px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.06);color:#d9e7ef;padding:0 13px;font:inherit;font-size:10px;font-weight:850;display:inline-flex;align-items:center;gap:7px;box-shadow:none}
  #fitResultsButton.tp005s-fit-action:before{content:"⌖";font-size:14px;color:#82aaff}
}
