/* Preserve the established SEO content, controls and layout on secondary pages. */
html[data-theme=dark] .bt2040-legacy{--bg:#07151e;--card:#0e222e;--surface:#0e222e;--text:#edf5f8;--muted:#9bb0bf;--border:#25404f;--line:#25404f;--accent:#ffbd45;--mint:#6fe9d1;background:#07151e;color:#edf5f8}
html[data-theme=light] .bt2040-legacy{--bg:#f0f4f3;--card:#fff;--surface:#fff;--text:#102c39;--muted:#526975;--border:#cfddda;--line:#cfddda;--accent:#ffbc40;--mint:#087b67;background:#f0f4f3;color:#102c39}
.bt2040-legacy{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}.bt2040-legacy .bt-public-header{border-bottom:1px solid var(--border);background:var(--bg)}.bt2040-legacy .panel,.bt2040-legacy .route-card,.bt2040-legacy .booking,.bt2040-legacy .bc-trip,.bt2040-legacy .lab-card{border-radius:22px;border-color:var(--border)}.bt2040-legacy .btn,.bt2040-legacy .bc-primary{border-radius:15px}.bt2040-legacy input,.bt2040-legacy select,.bt2040-legacy textarea{border-radius:12px}.bt2040-legacy :focus-visible{outline:3px solid var(--mint);outline-offset:3px}.bt2040-legacy .bt-public-wordmark>span{color:var(--accent)}.bt2040-legacy .bt-public-header .bt-public-controls{gap:8px}
.bt2040-legacy{--panel:var(--surface);--amber:var(--accent);--green:var(--mint);color-scheme:dark}
html[data-theme=light] .bt2040-legacy{color-scheme:light}
.bt2040-legacy input,.bt2040-legacy select,.bt2040-legacy textarea{background:var(--surface);color:var(--text);border-color:var(--line)}
.bt2040-legacy .bt-theme-toggle{background:var(--surface);color:var(--text);display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
.bt2040-legacy .panel,.bt2040-legacy .route-card,.bt2040-legacy .booking,.bt2040-legacy .bc-trip,.bt2040-legacy .lab-card{background:var(--surface)!important;color:var(--text)}
.bt2040-legacy header.bt-public-header{background:var(--surface)!important;color:var(--text)!important}
.bt2040-legacy .bt-public-header a,.bt2040-legacy .bt-public-header button,.bt2040-legacy .bt-public-header select,.bt2040-legacy .bt-public-wordmark{color:var(--text)!important}
.bt2040-legacy .bt-public-header select{background:var(--surface)!important}
.bt2040-legacy .bt-public-wordmark>span{color:var(--accent)!important}
@media(prefers-reduced-motion:reduce){.bt2040-legacy *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* A route with the standard search button needs only one search control. */
body.bt2040-legacy #form:has(button.df-find) .bt-connected-control{display:none!important}
