.subway-thumb-wrap { background:#16213e; border-radius:12px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.15); }
.subway-thumb-map { height:380px; }
.subway-thumb-controls { display:flex; justify-content:center; padding:10px 16px; background:#0f3460; }
.btn-subway-expand { background:#009cd0; color:#fff; border:none; padding:10px 28px; border-radius:6px; font-size:14px; font-weight:600; cursor:pointer; transition:background 0.2s; }
.btn-subway-expand:hover { background:#0077a3; }

/* Fullscreen overlay */
.subway-fs-overlay { display:none; position:fixed; inset:0; z-index:99999; background:#1a1a2e; }
.subway-fs-overlay.fs-open { display:flex; }
/* Layer toggles */
.subway-fs-layers { padding:8px 16px; border-bottom:1px solid #0f3460; }

.subway-fs-header { padding:14px 16px; background:#0f3460; border-bottom:1px solid #1a1a4e; }
.subway-fs-header h2 { font-size:16px; font-weight:700; color:#fff; margin:0; }
.subway-fs-header p { font-size:11px; color:#8395a7; margin:2px 0 0; }

.subway-fs-planner { padding:12px 16px; border-bottom:1px solid #0f3460; background:#0a0a1e; }
.subway-input-row { display:flex; gap:6px; margin-bottom:6px; align-items:center; }
.subway-input-label { font-size:11px; color:#54a0ff; width:28px; font-weight:700; text-align:center; flex-shrink:0; }
.subway-input-row input[type="text"] { flex:1; padding:7px 10px; border:1px solid #0f3460; border-radius:5px; background:#1a1a2e; color:#eee; font-size:12px; }
.subway-input-row input[type="text"]:focus { outline:none; border-color:#009cd0; }
.subway-btn-row { display:flex; gap:6px; }
.subway-btn-find { flex:1; padding:8px; border:none; border-radius:5px; font-size:12px; font-weight:700; cursor:pointer; background:#009cd0; color:#fff; }
.subway-btn-find:hover { background:#0077a3; }
.subway-btn-clear { flex:1; padding:8px; border:none; border-radius:5px; font-size:12px; font-weight:700; cursor:pointer; background:#3d3d5c; color:#ccc; }
.subway-btn-clear:hover { background:#4d4d6c; }
.subway-swap-btn { background:#2a2a4e; color:#8395a7; border:1px solid #0f3460; border-radius:5px; padding:4px 8px; cursor:pointer; font-size:14px; flex-shrink:0; }

.subway-route-results { max-height:300px; overflow-y:auto; }

.subway-fs-layers { padding:8px 16px; border-bottom:1px solid #0f3460; }
.subway-fs-layers label { display:flex; align-items:center; gap:8px; padding:3px 0; font-size:12px; color:#ccc; cursor:pointer; }
.subway-fs-layers input[type="checkbox"] { accent-color:#009cd0; }


.subway-fs-search { flex:1; display:flex; flex-direction:column; min-height:0; }
.subway-fs-search input { width:100%; padding:8px 12px; border:none; border-bottom:1px solid #0f3460; background:#16213e; color:#eee; font-size:12px; outline:none; }
.subway-station-list { flex:1; overflow-y:auto; }
.station-item { padding:8px 16px; border-bottom:1px solid #0f3460; cursor:pointer; transition:background 0.15s; }
.station-item:hover { background:#1a1a4e; }
.station-item .name { font-size:13px; font-weight:600; color:#eee; }
.station-item .name-en { font-size:11px; color:#8395a7; }
.station-item .meta { display:flex; gap:4px; margin-top:3px; flex-wrap:wrap; }

.subway-fs-map-wrap { flex:1; position:relative; display:flex; }
.subway-fs-map { flex:1; height:100%; }
.subway-fs-close { position:absolute; top:12px; right:12px; z-index:10000; background:rgba(0,0,0,0.5); color:#fff; border:none; width:36px; height:36px; border-radius:50%; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.subway-fs-close:hover { background:rgba(0,0,0,0.8); }

/* Sidebar with collapse support */
.subway-map-legend { position:absolute; bottom:16px; right:16px; z-index:1000; background:rgba(22,33,62,0.95); border-radius:8px; border:1px solid #0f3460; box-shadow:0 2px 12px rgba(0,0,0,0.4); max-width:220px; font-size:11px; overflow:hidden; }
.subway-map-legend-head { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; cursor:pointer; color:#eee; font-weight:600; font-size:12px; user-select:none; }
.subway-map-legend-head:hover { background:rgba(255,255,255,0.05); }
.subway-legend-arrow { font-size:14px; color:#8395a7; }
.subway-map-legend-body { padding:0 12px 10px; max-height:300px; overflow-y:auto; }
.subway-map-legend.collapsed .subway-map-legend-body { display:none; }

/* Sidebar toggle */
.subway-fs-sidebar { width:340px; min-width:340px; background:#16213e; display:flex; flex-direction:column; position:relative; transition:width 0.25s,min-width 0.25s; overflow:hidden; border-right:1px solid #0f3460; }
.subway-fs-sidebar.collapsed { width:0; min-width:0; border-right:none; }
.subway-fs-sidebar-inner { display:flex; flex-direction:column; min-height:0; width:340px; overflow-y:auto; flex:1; }
.subway-fs-sidebar-toggle { position:absolute; top:50%; right:-16px; z-index:1001; transform:translateY(-50%); width:16px; height:48px; background:#0f3460; border:none; border-radius:0 6px 6px 0; color:#8395a7; font-size:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; transition:background 0.2s; }
.subway-fs-sidebar-toggle:hover { background:#1a4a7a; color:#fff; }
.subway-fs-sidebar.collapsed + .subway-fs-sidebar-toggle { right:0; }