
.fig { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 18px clamp(14px, 3vw, 24px); margin: 18px 0 26px; }
.fig figure { margin: 0; }
.fig .fig-cap { font-size: .78rem; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

.fig-route { font-size: .95rem; }
.fig-route .rail { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.fig-route .rail::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 4px; background: var(--green); border-radius: 2px; }
.fig-route .st { position: relative; padding: 2px 0; }
.fig-route .st::before { content: ""; position: absolute; left: -26px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--card, #fff); border: 3px solid var(--green); box-sizing: border-box; }
.fig-route .st.hub::before { width: 18px; height: 18px; left: -29px; top: 6px; background: var(--green); border-color: var(--card, #fff); box-shadow: 0 0 0 3px var(--green); }
.fig-route .st b { font-family: var(--serif); font-size: 1.1rem; }
.fig-route .st i { font-style: normal; font-size: .78rem; color: var(--muted); margin-left: 8px; }
.fig-route .seg { color: var(--muted); font-size: .85rem; padding: 6px 0 6px 2px; }
.fig-route .seg b { color: var(--ink); font-weight: 500; }
.fig-route .seg::before { content: "↓ "; color: var(--green); }
.fig-route .br { list-style: none; margin: 4px 0 0 11px; padding: 0 0 0 28px; border-left: 4px solid var(--line); display: grid; gap: 10px; }
.fig-route .br li { position: relative; min-width: 0; }
.fig-route .br li::before { content: ""; position: absolute; left: -28px; top: 15px; width: 18px; height: 4px; background: var(--line); }
.fig-route .chip { display: inline-block; font-size: .8rem; font-weight: 700; padding: 1px 9px; border-radius: 6px; margin-right: 6px; }
.fig-route .c-bus { background: var(--green-bg, #E7F0E9); color: var(--green); }
.fig-route .c-taxi { background: var(--amber-bg, #F6EEDF); color: var(--amber, #9A6A1C); }
.fig-route .c-car { background: var(--blue-bg, #E6EEF5); color: var(--blue, #2D5F8A); }
.fig-route .c-walk { background: var(--sand); color: var(--ink); }
.fig-route .c-alert { background: var(--red-bg, #F7E7E2); color: var(--red, #A8442C); }
.fig-route .br small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.fig-route .br .warn { color: var(--red, #A8442C); font-weight: 500; }

.fig-season svg { width: 100%; height: auto; display: block; }
.fig-season .m { font: 500 18px var(--sans); fill: var(--muted); }
.fig-season .l { font: 700 19px var(--sans); fill: var(--ink); }
.fig-season .s { font: 500 15px var(--sans); fill: var(--ink); }
.fig-season .s.inv { fill: #fff; }
.fig-season .s.red { fill: var(--red, #A8442C); }
.fig-season .g { fill: var(--line); }

.minimap { position: relative; height: 340px; background: var(--sand); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.minimap button.mm-load { font: 700 1rem var(--sans); padding: 14px 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card, #fff); color: var(--ink); cursor: pointer; }
.minimap button.mm-load:hover, .minimap button.mm-load:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.minimap .mm-map { position: absolute; inset: 0; }
.minimap .mm-pin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.minimap .mm-pin.near { opacity: .65; border-style: dashed; }
.minimap .mm-tip { font: 700 .78rem var(--sans); color: #1F2420; background: rgba(255,255,255,.94); border: 1px solid #ccc; border-radius: 6px; padding: 2px 7px; box-shadow: none; }
.minimap .mm-tip::before { display: none; }
.minimap .leaflet-popup-content { font: .85rem/1.6 var(--sans); margin: 10px 14px; }
@media (max-width: 600px) { .minimap { height: 300px; } }

.minimap .mm-pin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.45); box-sizing: border-box; }
.minimap .mm-pin.near { opacity: 1; border-style: dashed; }
.minimap .mm-tip { font-size: .8rem; }

.smap { margin: 6px 0 22px; }
.smap .minimap { height: 300px; }
@media (max-width: 640px) { .smap .minimap { height: 280px; } }
.smap-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; }
.smap-filters label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: .88rem; cursor: pointer; user-select: none; }
.smap-filters input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.smap-filters .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.smap-filters small { color: var(--muted); }
.smap-note { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.minimap .mm-clu { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1F2420; color: #fff; font: 700 12px var(--sans); border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4); box-sizing: border-box; }

.smap-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.smap-bulk button { font: 700 .82rem var(--sans); padding: 6px 14px; min-height: 34px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card, #fff); color: var(--ink); cursor: pointer; }
.smap-bulk button:hover, .smap-bulk button:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.smap-count { font-size: .82rem; color: var(--muted); margin-left: 4px; }
.tcw { display: block; position: relative; min-width: 0; }
.tcw .tcard { padding-right: 58px; }
.tc-chk { position: absolute; top: 12px; right: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 6px; font-size: .68rem; color: var(--muted); cursor: pointer; user-select: none; border-radius: 6px; }
.tc-chk:hover { background: rgba(47,107,69,.08); }
.tc-chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); cursor: pointer; }
.tcw:has(.tc-chk input:not(:checked)) .tcard { opacity: .55; }

.minimap, .smap .minimap { transition: height .2s ease; }
.minimap.mm-big, .smap .minimap.mm-big { height: min(75vh, 760px) !important; }
.minimap .mm-size { position: absolute; left: 10px; bottom: 10px; z-index: 1000; background: #fff; color: #2F4A3A; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; padding: 6px 12px; font-size: 14px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.mm-list { margin: 6px 0 0; padding: 0 0 0 1.1em; max-height: 220px; overflow-y: auto; font-size: 14px; } .mm-list li { margin: 3px 0; } .mm-list small { color: #777; margin-left: 4px; }
.mm-sta { display: inline-block; background: #1F2420; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 7px; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.5); white-space: nowrap; }
