/* KTB — fixed bottom app bar for phones (≤768px).
   Five tabs: home, booking, the 109-place map, the fare calculator, the
   order card. Labels follow the page language; the bar re-renders when
   hub.js changes <html lang>. Nothing here runs on desktop.

   2026-11-30 (v2): the first build read too small on a real phone, so the
   icon, the label and the bar all grew — 23px icons, 12px/700 labels in
   near-black (#1f1a17), a 66px bar, and a body pad of 82px above it. */
.ktb-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:none;
  min-height:66px;
  background:#fffdfa;border-top:1px solid #e3d5c1;
  box-shadow:0 -6px 18px rgba(43,38,32,.08);
  padding-bottom:env(safe-area-inset-bottom);
  -webkit-text-size-adjust:100%}
.ktb-tabbar a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;min-width:0;min-height:66px;padding:6px 2px;color:#1f1a17;text-decoration:none;
  font-size:12px;font-weight:700;line-height:1.2;letter-spacing:-.02em;
  white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:transparent}
.ktb-tabbar a .ktb-tb-i{font-size:23px;line-height:1;display:block}
.ktb-tabbar a .ktb-tb-l{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ktb-tabbar a[aria-current="page"]{color:#166b45}
.ktb-tabbar a[aria-current="page"] .ktb-tb-i{transform:scale(1.06)}
.ktb-tabbar a[aria-current="page"]::before{content:"";position:absolute;top:0;left:12%;right:12%;
  height:3px;border-radius:0 0 3px 3px;background:#166b45}
.ktb-tabbar a:active{background:#f7f0e4}
@media(max-width:768px){
  .ktb-tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  body{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
  /* the share toast used to sit 22px off the bottom floor; lift it above the bar */
  body .kts-toast{bottom:calc(96px + env(safe-area-inset-bottom))}
}
@media print{.ktb-tabbar{display:none!important}}
@media(max-width:360px){
  .ktb-tabbar a{font-size:11px;letter-spacing:-.03em;gap:2px;padding:5px 1px}
  .ktb-tabbar a .ktb-tb-i{font-size:21px}
}
@media(prefers-color-scheme:dark){
  .ktb-tabbar{background:#1c1915;border-top-color:#3a332a}
  .ktb-tabbar a{color:#efe6d6}
  .ktb-tabbar a[aria-current="page"]{color:#9fdcb8}
  .ktb-tabbar a[aria-current="page"]::before{background:#9fdcb8}
}
