/* Transit map maker (/gifts/transit/): on top of the shared maker look (/gifts/globes/maker.css). */

.tr [hidden] { display: none !important; }
.tr .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.tr-chips .wm-chip { font-size: 0.78rem; padding: 5px 10px; }

.tr .tr-mapwrap { max-width: none; position: relative; margin-top: 10px; }
.tr .tr-map { aspect-ratio: 1; }
.tr-here { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 0.78rem; padding: 6px 10px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.tr-map .maplibregl-canvas { cursor: default; }
.tr-map.is-pick .maplibregl-canvas { cursor: pointer; }

.tr-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.tr-lines { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 0.78rem; color: var(--muted); max-height: 168px; overflow: auto; }
.tr-lines li { display: flex; align-items: center; gap: 6px; }
.tr-lines i { width: 18px; height: 5px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.tr-lines li.is-off { opacity: 0.45; }

.tr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-grid2 .wm-field { margin-top: 0; }
.tr-stopbar { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tr-stopbar .wm-btn { flex: 1 1 0; justify-content: center; }
.tr-route { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.tr-route li { display: flex; align-items: center; gap: 8px; }
.tr-route i { width: 18px; height: 5px; border-radius: 3px; flex: none; }

.tr-st, .tr-theme, .tr-font { margin-top: 10px; }
.tr-mono { margin-top: 10px; }
.tr-mono .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.tr-mono .wm-chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.tr-swatches { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.78rem; color: var(--muted); }
.tr-swatches li { display: flex; align-items: center; gap: 8px; }
.tr-swatches i { width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.tr-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tr-warn:empty { display: none; }
.tr-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }
.tr-warn button { margin-left: 6px; font-size: 0.76rem; padding: 3px 8px; }

/* station markers on the map: your stop and the end of the commute */
.tr-pin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); background: #e3b04b; }
.tr-pin.is-b { background: #1d2320; }

@media (max-width: 560px) {
    .tr .wm-stagebar .wm-btn span { display: none; }
    .tr-grid2, .tr-modes { grid-template-columns: 1fr; }
}
