/* 軌道層共用樣式（spec 2026-10-21-saved-map-layout §3.x）：地圖頁（index.html）與收藏頁（saved.html）都載，從 style.css 原樣搬出。
   地圖頁在 style.css 之前載入，style.css 後面針對地圖頁版面的覆寫（.tb2-right 尺寸、街格評分點開關）維持原本的疊加順序。
   顏色變數（--ink、--hair、--brand、--card、--muted、--text）兩頁的 skin-orange.css／cityguide.css 都有。 */
/* 開關（spec 2026-10-07-grid-ratings-toggle §10）：軌道（工具列尾端）與街格評分點（圖例卡）都是 role=switch，
   外觀＝文字＋小軌道圓鈕；開＝品牌色、圓鈕在右；關＝灰、圓鈕在左（位置也表示狀態，不只靠顏色） */
:is(.tb2, .tb2-right) .tb2-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 8px; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
:is(.tb2, .tb2-right) .tb2-switch .rail-ico { width: 16px; height: 16px; fill: currentColor; flex: 0 0 16px; }
:is(.tb2, .tb2-right) .tb2-switch .sw { position: relative; flex: 0 0 30px; width: 30px; height: 18px; border-radius: 9px; background: var(--hair); transition: background .15s; }
:is(.tb2, .tb2-right) .tb2-switch .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
:is(.tb2, .tb2-right) .tb2-switch[aria-checked="true"] .sw { background: var(--brand); }
:is(.tb2, .tb2-right) .tb2-switch[aria-checked="true"] .sw::after { transform: translateX(12px); }
:is(.tb2, .tb2-right) .tb2-switch[aria-checked="false"] { color: var(--muted); }
:is(.tb2, .tb2-right) .tb2-switch:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
:is(.tb2, .tb2-right) .tb2-switch.rail { height: 44px; padding: 0 12px 0 14px; border: 1px solid var(--hair); border-radius: 22px; background: var(--card); }
.rail-label{ pointer-events: none; }
.rail-label span { display: inline-block; white-space: nowrap; font: 800 11px/1.2 var(--sans, system-ui); color: var(--text, #1b1f2a); text-shadow: 0 0 3px var(--card, #fff), 0 0 3px var(--card, #fff), 0 0 2px var(--card, #fff); }
.rail-label.ich span { font-size: 12px; }
.rail-tip { font: 600 12px/1.4 var(--sans, system-ui); }
.rail-tip .rail-tip-name { font-weight: 900; margin-bottom: 2px; }
.rail-tip .rail-tip-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.leaflet-rail-lines-pane path { pointer-events: none; }
.leaflet-rail-lines-pane path.rail-hit{ pointer-events: stroke; cursor: pointer; }
