/* Transit: readable live data, semantic route identifiers and a responsive map. */
.pt-app { display: flex; min-height: 100dvh; background: var(--space-bg); color: var(--space-ink); }
.pt-app a { text-decoration: none; color: inherit; }
.pt-rail { width: 88px; flex: 0 0 88px; height: 100dvh; position: sticky; top: 0; display: flex; align-items: center; flex-direction: column; padding: 28px 12px; background: var(--space-rail); border-right: 1px solid var(--space-border); z-index: 3; }
.pt-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--space-accent); color: var(--space-on-accent) !important; }
.pt-rail-links { display: grid; width: 100%; gap: 12px; margin-top: 48px; }
.pt-rail-links a, .pt-rail-links button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; min-height: 64px; padding: 8px; background: transparent; border: 0; border-radius: var(--radius); color: var(--space-muted); }
.pt-rail-links small { font-size: 10px; }
.pt-rail-links a.active { background: var(--space-soft); color: var(--space-accent-dark); }
.pt-rail-links a:hover { background: var(--space-secondary); }
.pt-account { display: grid; place-items: center; width: 38px; height: 38px; margin-top: auto; border-radius: 50%; background: var(--space-soft); color: var(--space-accent-dark) !important; font-weight: 650; }
.pt-main { flex: 1; min-width: 0; }
.pt-topbar { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 40px; background: var(--space-surface); border-bottom: 1px solid var(--space-border); }
.pt-wordmark { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.pt-wordmark > span { font-weight: 400; color: var(--space-muted); margin-left: 5px; }
.pt-wordmark > i { display: block; font-style: normal; font-size: 10px; letter-spacing: .08em; font-weight: 500; text-transform: uppercase; margin-top: 4px; color: var(--space-muted); }
.pt-topbar-right { display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--space-muted); }
.pt-provider { display: grid; gap: 3px; font-size: 10px; letter-spacing: .07em; }
.pt-provider b { font-size: 9px; color: var(--space-success); font-weight: 600; }
.pt-workspace { display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(320px, .9fr); max-width: 1800px; margin: 0 auto; }
.pt-content { padding: 40px clamp(24px, 3.5vw, 64px); min-width: 0; }
.pt-intro { margin-bottom: 28px; }
.pt-eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--space-accent-dark); }
.pt-intro h1 { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.055em; margin: 0 0 18px; }
.pt-intro h1 > span { color: var(--space-accent); }
.pt-intro > p:last-of-type { color: var(--space-muted); font-size: 14px; line-height: 1.75; margin-bottom: 0; }
.pt-mode-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pt-mode-pills > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--space-border); border-radius: var(--radius-sm); background: var(--space-surface); color: var(--space-muted); font-size: 11px; font-weight: 650; }
.pt-mode-pills small { font-size: 11px; font-weight: 450; }
.pt-tabs { display: flex; padding: 4px; gap: 4px; background: var(--space-secondary); border-radius: 14px; margin-bottom: 24px; }
.pt-tabs > button { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; border: 0; min-width: 0; padding: 10px 6px; min-height: 44px; border-radius: 10px; background: transparent; color: var(--space-muted); font-size: 12px; }
.pt-tabs > button.active { background: var(--space-surface); color: var(--space-accent-dark); box-shadow: var(--space-shadow); }
.pt-tabs .app-icon { width: 16px; height: 16px; }
.pt-count { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--space-warning-soft); color: var(--space-warning); font-size: 10px; }
.pt-planner { border: 1px solid var(--space-border); background: var(--space-surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--space-shadow); }
.pt-planner h2 { font-size: 20px; margin: 0; }
.pt-planner-heading, .pt-section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.pt-planner-heading > span, .pt-section-title > span { font-size: 9px; color: var(--space-muted); letter-spacing: .05em; }
.pt-section-title h2, .pt-section-title h3 { margin: 0; font-size: 17px; }
.pt-journey-inputs { position: relative; }
.pt-stop-search { margin: 20px 0; position: relative; }
.pt-stop-search > label { font-size: 11px; margin: 0 0 8px; font-weight: 600; text-transform: uppercase; color: var(--space-muted); }
.pt-stop-input { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 4px 0 14px; border: 1px solid var(--space-border); border-radius: var(--radius); background: var(--space-bg); }
.pt-stop-input:focus-within { border-color: var(--space-accent); box-shadow: 0 0 0 3px var(--space-soft); }
.pt-stop-input > span { color: var(--space-accent); }
.pt-stop-input > input { background: transparent; border: 0; box-shadow: none; min-width: 0; margin: 0; padding: 12px 0; font-size: 15px; }
.pt-stop-input > input:focus-visible { outline: 0; }
.pt-stop-input > button { border: 0; background: transparent; padding: 8px; min-width: 44px; color: var(--space-muted); font-size: 22px; }
.pt-stop-options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; background: var(--space-surface); border: 1px solid var(--space-border); border-radius: var(--radius); box-shadow: var(--space-shadow-lg); max-height: min(300px, 40dvh); overflow-y: auto; }
.pt-stop-options > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.pt-stop-options > button.active, .pt-stop-options > button:hover { background: var(--space-soft); }
.pt-stop-options strong { display: block; font-size: 14px; }
.pt-stop-options small { display: block; color: var(--space-muted); font-size: 12px; margin-top: 3px; }
.pt-stop-symbol { color: var(--space-accent); }
.pt-search-hint { display: block; color: var(--space-muted); font-size: 12px; margin: 8px 0; }
.pt-swap { position: absolute; right: 16px; top: 79px; display: grid; place-items: center; width: 44px; height: 44px; z-index: 1; padding: 8px; border-radius: 50%; background: var(--space-surface); color: var(--space-accent-dark); }
.pt-time-row { display: flex; align-items: end; gap: 12px; margin-top: 20px; }
.pt-time-row label { flex: 1; min-width: 0; margin: 0; font-size: 11px; }
.pt-time-row input { font-size: 14px; min-width: 0; }
.pt-time-row button { color: var(--space-accent-dark); background: var(--space-soft); border-color: transparent; white-space: nowrap; }
.pt-preferences { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 20px; align-items: center; }
.pt-preferences label, .pt-departure-filters label, .pt-mode-options > label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 12px; font-weight: 450; letter-spacing: 0; }
.pt-preferences > button { padding: 8px 0; border: 0; background: transparent; color: var(--space-accent-dark); font-size: 12px; margin-left: auto; }
.pt-mode-options { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 8px 0 16px; padding: 12px; background: var(--space-bg); border-radius: var(--radius); }
.pt-primary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 14px 18px; border: 0; border-radius: var(--radius); color: var(--space-on-accent); background: var(--space-accent); font-size: 14px; }
.pt-primary:hover:not(:disabled) { background: var(--space-accent-dark); }
.pt-scope { font-size: 11px; color: var(--space-muted); text-align: center; margin: 14px 0 0; }
.pt-muted, .pt-empty { color: var(--space-muted); font-size: 13px; line-height: 1.7; }
.pt-empty { text-align: center; padding: 40px 16px; background: var(--space-bg); border: 1px dashed var(--space-border); border-radius: var(--radius); margin-top: 16px; }
.pt-saved { margin-top: 32px; }
.pt-favorite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-favorite-grid > button { display: grid; gap: 4px; text-align: left; padding: 16px; min-width: 0; }
.pt-favorite-grid > button > span { color: var(--space-accent); font-size: 18px; }
.pt-favorite-grid strong { font-size: 13px; overflow-wrap: anywhere; }
.pt-favorite-grid small { color: var(--space-muted); font-size: 11px; }
.pt-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--space-border); color: var(--space-muted); font-size: 10px; }
.pt-map-panel { padding: 40px 32px; border-left: 1px solid var(--space-border); background: var(--space-secondary); min-width: 0; }
.pt-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.pt-map-heading h2 { font-size: 24px; margin: 6px 0 0; letter-spacing: -.035em; }
.pt-map-heading .pt-eyebrow { font-size: 9px; }
.pt-map-live { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--space-border); border-radius: 99px; font-size: 10px; white-space: nowrap; color: var(--space-success); background: var(--space-success-soft); }
.pt-map-live i, .pt-live-indicator { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--space-success); }
.pt-map { position: relative; height: 420px; border: 1px solid var(--space-border); border-radius: var(--radius-lg); isolation: isolate; overflow: hidden; background: var(--space-secondary); }
.pt-map-loading { height: 100%; display: grid; place-items: center; color: var(--space-muted); }
.pt-map .leaflet-tile-pane { filter: var(--space-map-filter); }
.pt-map.leaflet-container .leaflet-control-attribution { background: var(--space-surface); color: var(--space-muted); }
.pt-map.leaflet-container .leaflet-control-zoom a { color: var(--space-ink); background: var(--space-surface); border-color: var(--space-border); min-width: 36px; min-height: 36px; }
.pt-map .leaflet-popup-content-wrapper, .pt-map .leaflet-popup-tip { background: var(--space-surface); color: var(--space-ink); }
.pt-map-marker { padding: 4px 6px; background: var(--route-bus); color: var(--route-on-color); border: 2px solid var(--route-on-color); border-radius: 7px; font: 650 11px/1.2 ui-sans-serif, sans-serif; min-width: 22px; box-shadow: var(--space-shadow); text-align: center; }
.pt-map-marker.tram { background: var(--route-tram); }
.pt-map-marker.metro { background: var(--route-metro); }
.pt-map-marker.train { background: var(--route-train); }
.pt-map-marker.ferry { background: var(--route-ferry); }
.pt-map-marker.stop { background: var(--route-bus); border-radius: 50%; width: 16px; height: 16px; min-width: 0; padding: 0; }
.pt-map-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pt-map-controls > button { min-height: 44px; padding: 10px 12px; font-size: 12px; color: var(--space-ink); }
.pt-map-key { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--space-border); color: var(--space-muted); font-size: 11px; }
.pt-map-key > span { display: flex; align-items: center; gap: 6px; }
.pt-map-key > span:last-child { margin-left: auto; }
.pt-map-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--route-bus); }
.pt-map-key i.tram { background: var(--route-tram); }
.pt-map-key i.train { background: var(--route-train); }
.pt-map-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--space-border); }
.pt-map-caption > div { display: flex; gap: 12px; align-items: center; }
.pt-map-caption > div > span { color: var(--space-cyan); font-size: 32px; }
.pt-map-caption strong { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.03em; }
.pt-map-caption p { color: var(--space-muted); font-size: 11px; line-height: 1.7; margin: 0; }
.pt-nearby { margin-top: 28px; }
.pt-nearby h3 { font-size: 14px; margin: 0; }
.pt-nearby > button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--space-border); border-radius: 0; padding: 16px 0; background: transparent; }
.pt-nearby > button > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--space-surface); color: var(--space-accent-dark); }
.pt-nearby > button > span:nth-child(2) { flex: 1; min-width: 0; }
.pt-nearby strong { display: block; font-size: 13px; }
.pt-nearby small { display: block; font-size: 11px; color: var(--space-muted); margin-top: 4px; }
.pt-text-button { background: transparent; border: 0; padding: 8px 4px; color: var(--space-accent-dark); font-size: 12px; }
.pt-error, .pt-notice, .pt-inline-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--space-warning) 25%, transparent); border-radius: var(--radius); background: var(--space-warning-soft); color: var(--space-warning); font-size: 13px; line-height: 1.7; margin: 16px 0; }
.pt-error button { color: inherit; background: transparent; border-color: currentColor; font-size: 12px; white-space: nowrap; }
.pt-notice { display: block; }
.pt-notice p { margin: 6px 0 0; }
.pt-results { margin-top: 28px; }
.pt-results-notice { background: var(--space-secondary); border-radius: var(--radius); color: var(--space-muted); padding: 14px; font-size: 12px; line-height: 1.6; }
.pt-journey-card { width: 100%; text-align: left; display: block; padding: 20px; margin-bottom: 12px; border-radius: var(--radius-lg); }
.pt-journey-time { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.pt-journey-time strong { font-size: 22px; letter-spacing: -.04em; }
.pt-journey-time > span { color: var(--space-muted); }
.pt-journey-time > b { margin-left: auto; font-size: 13px; color: var(--space-accent-dark); }
.pt-journey-lines { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pt-journey-lines small, .pt-journey-caption { color: var(--space-muted); font-size: 11px; }
.pt-journey-caption { margin-left: auto; }
.pt-line { display: inline-grid; place-items: center; min-width: 36px; padding: 6px 9px; border-radius: var(--radius-sm); background: var(--route-bus); color: var(--route-on-color); font-size: 13px; font-weight: 700; line-height: 1.25; }
.pt-line.metro { background: var(--route-metro); }
.pt-line.tram { background: var(--route-tram); }
.pt-line.bus, .pt-line.trolleybus { background: var(--route-bus); }
.pt-line.train { background: var(--route-train); }
.pt-line.ferry { background: var(--route-ferry); }
.pt-line.funicular { background: var(--route-funicular); }
.pt-departure-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.pt-departure-filters select { margin: 0; width: auto; max-width: 100%; font-size: 13px; }
.pt-board-status { font-size: 11px; color: var(--space-muted); padding-bottom: 12px; border-bottom: 1px solid var(--space-border); }
.pt-live-indicator { margin-right: 5px; }
.pt-departure { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 88px; text-align: left; padding: 18px 4px; border: 0; border-bottom: 1px solid var(--space-border); border-radius: 0; background: transparent; }
.pt-departure-destination { flex: 1; min-width: 0; }
.pt-departure strong { display: block; font-size: 14px; }
.pt-departure small { display: block; font-size: 11px; color: var(--space-muted); margin-top: 5px; }
.pt-departure-time { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-departure-time strong { font-size: 20px; font-weight: 650; }
.pt-departure-time small.live { color: var(--space-success); }
.pt-departure.canceled strong { text-decoration: line-through; color: var(--space-muted); }
.pt-inline-alert { font-size: 12px; }
.pt-simple-input { font-size: 16px; }
.pt-filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: thin; }
.pt-filter-chips > button { border-radius: 99px; padding: 8px 14px; font-size: 12px; white-space: nowrap; text-transform: capitalize; }
.pt-filter-chips > button.active { color: var(--space-accent-dark); background: var(--space-soft); border-color: var(--space-accent); }
.pt-line-list { max-height: 540px; overflow-y: auto; }
.pt-line-list > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; text-align: left; border: 0; border-bottom: 1px solid var(--space-border); border-radius: 0; background: transparent; padding: 14px 0; }
.pt-line-list > button > span:nth-child(2) { flex: 1; min-width: 0; }
.pt-line-list strong { display: block; font-size: 14px; font-weight: 500; }
.pt-line-list small { display: block; color: var(--space-muted); font-size: 11px; margin-top: 4px; text-transform: capitalize; }
.pt-alert-card { padding: 24px; margin: 16px 0; border: 1px solid var(--space-border); border-left: 3px solid var(--space-warning); border-radius: var(--radius); background: var(--space-surface); }
.pt-alert-card.high { border-left-color: var(--space-error); }
.pt-alert-card > div { color: var(--space-warning); display: flex; align-items: center; gap: 8px; }
.pt-alert-card > div > small { font-size: 10px; letter-spacing: .06em; }
.pt-alert-card.high > div { color: var(--space-error); }
.pt-alert-card h3 { font-size: 15px; line-height: 1.6; margin: 16px 0 12px; }
.pt-alert-card p { font-size: 13px; line-height: 1.7; color: var(--space-muted); }
.pt-alert-card footer { color: var(--space-muted); font-size: 12px; }
.pt-alert-card footer small { display: block; margin-top: 6px; }
.pt-drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: var(--space-overlay); }
.pt-trip-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(480px, 100vw); padding: 48px 32px; overflow-y: auto; background: var(--space-surface); box-shadow: var(--space-shadow-lg); animation: fade-in 180ms ease-out; }
.pt-close { position: absolute; top: 12px; right: 12px; width: 44px; padding: 8px; border: 0; background: transparent; font-size: 24px; }
.pt-trip-title { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.pt-trip-title h2 { font-size: 25px; margin: 0; }
.pt-trip-stops { list-style: none; margin: 32px 0 0; padding: 0; }
.pt-trip-stops > li { display: flex; gap: 24px; position: relative; min-height: 80px; padding-bottom: 24px; }
.pt-trip-stops > li:before { content: ''; position: absolute; top: 6px; left: 61px; height: 8px; width: 8px; border: 2px solid var(--space-accent); border-radius: 50%; background: var(--space-surface); z-index: 1; }
.pt-trip-stops > li:after { content: ''; position: absolute; top: 14px; bottom: -6px; left: 66px; width: 1px; background: var(--space-border); }
.pt-trip-stops > li:last-child:after { display: none; }
.pt-trip-stops time { min-width: 52px; color: var(--space-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pt-trip-stops > li > div { flex: 1; min-width: 0; padding-left: 8px; }
.pt-trip-stops strong { font-size: 14px; }
.pt-trip-stops small { display: block; color: var(--space-muted); margin-top: 4px; font-size: 12px; }
.pt-trip-stops button { background: transparent; border: 0; padding: 8px; min-width: 44px; color: var(--space-accent-dark); }
.pt-tile-notice { position: absolute; left: 10px; top: 10px; z-index: 450; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--space-surface); color: var(--space-muted); font-size: 11px; max-width: 80%; }
@media (min-width: 1700px) { .pt-map { height: 520px; } .pt-content { padding-top: 56px; } .pt-map-panel { padding: 56px 40px; } }
@media (max-width: 1200px) { .pt-topbar { padding: 20px 28px; } .pt-city { display: none; } .pt-workspace { grid-template-columns: minmax(370px, 1.1fr) minmax(280px, .9fr); } .pt-content { padding: 32px 24px; } .pt-map-panel { padding: 32px 20px; } .pt-map-heading { align-items: start; flex-direction: column; } .pt-map-caption > p { display: none; } .pt-map-key > span:last-child { display: none; } .pt-planner { padding: 22px; } }
@media (max-width: 960px) { .pt-workspace { grid-template-columns: 1fr; } .pt-map-panel { border-left: 0; border-top: 1px solid var(--space-border); } .pt-map-heading { flex-direction: row; } .pt-map-caption > p { display: block; } .pt-map { height: 400px; } .pt-topbar-right time { display: none; } }
@media (max-width: 740px) { .pt-app { display: block; padding-bottom: calc(88px + env(safe-area-inset-bottom)); } .pt-rail { display: none; } .pt-topbar { padding: 16px 20px; min-height: 80px; gap: 12px; } .pt-topbar-right { gap: 8px; } .pt-topbar-right .theme-control > .app-icon, .pt-provider { display: none; } .pt-wordmark { font-size: 18px; } .pt-content { padding: 28px 20px; } .pt-intro h1 { font-size: 42px; } .pt-intro > p:last-of-type { font-size: 14px; } .pt-map-panel { padding: 28px 20px; } .pt-map { height: 340px; } .pt-planner { padding: 22px 18px; } .pt-journey-time strong { font-size: 20px; } .pt-trip-drawer { top: auto; width: 100%; max-height: 90dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 48px 24px max(32px, env(safe-area-inset-bottom)); } }
@media (max-width: 374px) { .pt-topbar, .pt-content, .pt-map-panel { padding-left: 14px; padding-right: 14px; } .pt-tabs > button { font-size: 11px; gap: 4px; } .pt-tabs .app-icon { width: 14px; height: 14px; } .pt-favorite-grid { grid-template-columns: 1fr; } }

.pt-map.leaflet-container .leaflet-control-attribution a { color: var(--space-accent-dark); }
.pt-mode-pills > .metro { border-left: 3px solid var(--route-metro); }
.pt-mode-pills > .tram { border-left: 3px solid var(--route-tram); }
.pt-mode-pills > .bus { border-left: 3px solid var(--route-bus); }
.pt-mode-pills > .train { border-left: 3px solid var(--route-train); }
.pt-mode-pills > .ferry { border-left: 3px solid var(--route-ferry); }

.pt-map.leaflet-container { background: var(--space-secondary); }
.pt-map.leaflet-container a { color: var(--space-accent-dark); }
