/* RodOdemira — public bus search page */

.bus-search-page {
  --bg: #06120f;
  --bg2: #0a1d16;
  --card: rgba(15, 38, 30, .66);
  --card-solid: #0d211a;
  --line: rgba(242, 247, 240, .10);
  --text: #f2f7f0;
  --muted: rgba(242, 247, 240, .55);
  --accent: #4aa3ff;
  --accent-ink: #181300;
  --green: #3fa34d;
  --glow: rgba(74, 163, 255, .32);
  --chip: rgba(242, 247, 240, .06);
  --font-ui: 'Archivo', 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Gurmukhi', 'Noto Sans Thai', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Gurmukhi', 'Noto Sans Thai', monospace;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg2)) fixed;
  color: var(--text);
  font-family: var(--font-ui);
  transition: background .5s ease, color .5s ease;
}

.bus-search-page[data-theme="light"] {
  --bg: #f4f2e9;
  --bg2: #e8eee2;
  --card: rgba(255, 255, 255, .78);
  --card-solid: #ffffff;
  --line: rgba(14, 38, 31, .13);
  --text: #0e261f;
  --muted: rgba(14, 38, 31, .58);
  --accent: #4aa3ff;
  --accent-ink: #181300;
  --green: #1f8a3d;
  --glow: rgba(74, 163, 255, .35);
  --chip: rgba(14, 38, 31, .05);
}

.bus-search-page a { color: var(--accent); text-decoration: none; }
.bus-search-page a:hover { color: var(--green); }
.bus-search-page ::selection { background: var(--accent); color: #181300; }

@keyframes dash { to { stroke-dashoffset: -720; } }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(48px, -36px, 0) scale(1.08); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ride { 0% { top: 10px; } 100% { top: calc(100% - 24px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 44px 6px var(--glow); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes underlineDraw { to { background-size: 100% .09em; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes railGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes busRide { from { top: 8px; } to { top: calc(100% - 34px); } }
@keyframes progressGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flagShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes panelPulse { 0%, 100% { box-shadow: 0 18px 44px rgba(0, 0, 0, .3), 0 0 0 0 var(--glow); } 50% { box-shadow: 0 18px 44px rgba(0, 0, 0, .3), 0 0 30px 3px var(--glow); } }

/* overflow-x: clip (not hidden) — hidden would make this a scroll container and every animation-timeline: view() below would resolve to it and go inactive */
.bus-search-page { min-height: 100vh; position: relative; overflow-x: hidden; overflow-x: clip; }

.bus-search-glow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bus-search-glow__a, .bus-search-glow__b {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6;
  animation: floaty 16s ease-in-out infinite;
}
.bus-search-glow__a { width: 58vmax; height: 58vmax; left: -22vmax; top: -26vmax; background: radial-gradient(circle, var(--glow), transparent 62%); }
.bus-search-glow__b { width: 48vmax; height: 48vmax; right: -18vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(63, 163, 77, .30), transparent 62%); filter: blur(80px); opacity: .55; animation-duration: 20s; animation-direction: reverse; }

/* header — every control (nav chips, language picker, theme toggle) shares one height */
.site-header {
  --header-ctl-h: 42px;
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 44px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; background: none; border: none; padding: 0; color: inherit; font: inherit; }
.brand-mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinSlow 14s linear infinite; filter: drop-shadow(0 0 6px var(--glow)); }
.brand-mark__dot { width: 9px; height: 9px; border-radius: 50%; background: #f2c400; }
.brand-name { display: flex; align-items: baseline; font-size: clamp(20px, 3vw, 24px); letter-spacing: -.02em; }
.brand-name__rod { font-weight: 900; color: var(--accent); }
.brand-name__o { font-weight: 900; -webkit-text-fill-color: transparent; }
.brand-name__demira { font-weight: 700; -webkit-text-fill-color: transparent; }
.brand-name__grad { background: linear-gradient(90deg, #f2c400, #3fa34d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f2c400; }
.brand-name__dot { color: var(--green); font-weight: 900; animation: blink 2.4s ease-in-out infinite; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-picker { position: relative; z-index: 24; }
.language-picker__trigger {
  display: grid; grid-template-columns: 28px minmax(58px, 92px) 12px; align-items: center; gap: 9px;
  box-sizing: border-box; height: var(--header-ctl-h); max-width: 172px; padding: 0 11px 0 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--chip) 86%, transparent); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 34px rgba(0, 0, 0, .14);
  transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.language-picker__trigger:hover, .language-picker.is-open .language-picker__trigger {
  border-color: color-mix(in oklab, var(--accent) 70%, var(--line));
  background: color-mix(in oklab, var(--chip) 72%, var(--accent) 10%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 16px 44px rgba(0, 0, 0, .22);
}
.language-picker__trigger:active { transform: translateY(1px); }
.language-picker__flag { width: 28px; height: 28px; }
.language-picker__meta { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.language-picker__code { color: var(--text); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.language-picker__name { max-width: 100%; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.language-picker__chevron { color: var(--accent); font-size: 15px; line-height: 1; transition: transform .22s ease; }
.language-picker.is-open .language-picker__chevron { transform: rotate(180deg); }
.language-picker__menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 24px));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px;
  background: color-mix(in oklab, var(--card-solid) 84%, transparent);
  border: 1px solid color-mix(in oklab, var(--line) 84%, var(--accent) 16%);
  border-radius: 20px; box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.language-picker.is-open .language-picker__menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.language-picker__option {
  width: 100%; min-width: 0; min-height: 54px; display: grid; grid-template-columns: 31px minmax(0, 1fr) 16px; align-items: center; gap: 9px;
  padding: 8px 9px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text);
  text-align: left; cursor: pointer; font: inherit; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.language-picker__option:hover, .language-picker__option:focus-visible {
  background: var(--chip); border-color: color-mix(in oklab, var(--accent) 42%, var(--line)); outline: none;
}
.language-picker__option:active { transform: scale(.98); }
.language-picker__option.is-active { background: color-mix(in oklab, var(--accent) 16%, var(--chip)); border-color: color-mix(in oklab, var(--accent) 70%, var(--line)); }
.language-picker__option-flag { width: 31px; height: 31px; }
.language-picker__option-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.language-picker__option-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 800; }
.language-picker__option-code { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.language-picker__option-check { opacity: 0; color: var(--accent); font-weight: 900; font-size: 13px; }
.language-picker__option.is-active .language-picker__option-check { opacity: 1; }
.language-flag {
  display: block; position: relative; overflow: hidden; border-radius: 50%; flex: 0 0 auto;
  background-position: center; background-size: cover; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.language-flag::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 8px 13px rgba(255, 255, 255, .12), inset 0 -9px 14px rgba(0, 0, 0, .16);
}
.language-flag--pt { background: radial-gradient(circle at 41% 50%, #ffcc33 0 16%, transparent 17%), linear-gradient(90deg, #046a38 0 42%, #da291c 42%); }
.language-flag--gb {
  background:
    linear-gradient(0deg, transparent 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%),
    linear-gradient(90deg, transparent 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%),
    linear-gradient(33deg, transparent 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(-33deg, transparent 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    #012169;
}
.language-flag--it { background: linear-gradient(90deg, #009246 0 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.language-flag--es { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.language-flag--de { background: linear-gradient(180deg, #000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.language-flag--fr { background: linear-gradient(90deg, #0055a4 0 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.language-flag--np { background: radial-gradient(circle at 50% 32%, #fff 0 7%, transparent 8%), radial-gradient(circle at 54% 66%, #fff 0 9%, transparent 10%), linear-gradient(135deg, #003893 0 17%, transparent 17%), linear-gradient(45deg, transparent 0 39%, #dc143c 39% 77%, transparent 77%), #003893; }
.language-flag--in { background: radial-gradient(circle at 50% 50%, #06038d 0 8%, transparent 9%), linear-gradient(180deg, #ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }
.language-flag--bd { background: radial-gradient(circle at 56% 50%, #f42a41 0 28%, transparent 29%), #006a4e; }
.language-flag--ua { background: linear-gradient(180deg, #0057b7 0 50%, #ffd700 50%); }
.language-flag--th { background: linear-gradient(180deg, #a51931 0 16.6%, #fff 16.6% 33.2%, #2d2a4a 33.2% 66.8%, #fff 66.8% 83.4%, #a51931 83.4%); }
.btn-chip {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: var(--chip); border: 1px solid var(--line); color: var(--text); font: 700 13px var(--font-ui);
  letter-spacing: .12em; padding: 0 15px; border-radius: 999px; cursor: pointer; height: var(--header-ctl-h);
}
.btn-chip:hover { border-color: var(--accent); }
.btn-icon-circle {
  background: var(--chip); border: 1px solid var(--line); color: var(--accent); font-size: 17px;
  width: var(--header-ctl-h); height: var(--header-ctl-h); border-radius: 50%; cursor: pointer; line-height: 1; flex: 0 0 auto;
}
.btn-icon-circle:hover { border-color: var(--accent); }

/* hero */
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; height: min(96vh, 880px); z-index: 0; overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--bg) 82%, transparent) 0%, color-mix(in oklab, var(--bg) 38%, transparent) 46%, transparent 74%),
    url("../images/home-hero-odemira-Khvc_di.png") center 30% / cover no-repeat;
  transition: opacity .6s ease;
}
.bus-search-page:has(.home-main[hidden]) .hero-bg { opacity: 0; }
.hero-bg__fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent) 0%, transparent 30%, color-mix(in oklab, var(--bg) 78%, transparent) 82%, var(--bg) 100%);
}

.home-main { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: clamp(28px, 7vh, 72px) clamp(16px, 4vw, 44px) 60px; animation: fadeUp .6s ease both; }
.hero { position: relative; }
.hero__route-svg { position: absolute; left: -4%; right: -4%; bottom: -40px; width: 108%; height: auto; pointer-events: none; opacity: .9; }
.hero__route-path { animation: dash 7s linear infinite; filter: drop-shadow(0 0 9px var(--glow)); }
.hero__title { font-size: clamp(54px, 11vw, 126px); line-height: .94; letter-spacing: -.035em; font-weight: 800; margin: 0; text-wrap: balance; position: relative; }
.hero__title-accent, .text-accent { color: var(--accent); text-shadow: 0 0 40px var(--glow); }
.hero__subtitle { margin: 22px 0 0; max-width: 46ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--muted); position: relative; }

/* search card */
.search-card {
  margin-top: clamp(30px, 5vh, 52px); background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28); display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; position: relative;
}
.search-field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 230px; min-width: 0; }
.search-field__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.search-autocomplete { position: relative; }
.search-autocomplete__input {
  width: 100%; box-sizing: border-box; background: var(--chip); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-ui); font-weight: 600; font-size: 17px; padding: 14px 16px; border-radius: 14px;
  min-height: 52px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-autocomplete__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.search-autocomplete__list {
  display: none; position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; max-height: 290px; overflow-y: auto;
  padding: 6px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}
.search-autocomplete.is-open .search-autocomplete__list { display: grid; gap: 2px; }
.search-autocomplete__option {
  width: 100%; min-height: 42px; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text); font: 600 15px var(--font-ui); text-align: left; cursor: pointer;
}
.search-autocomplete__option:hover, .search-autocomplete__option.is-active { background: var(--chip); color: var(--accent); }
.search-swap {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip);
  color: var(--accent); font-size: 20px; cursor: pointer; transition: transform .3s;
}
.search-swap:hover { transform: rotate(180deg); border-color: var(--accent); }
.search-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 100%; }
.search-when__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.search-date, .search-time {
  background: var(--chip); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 12px; min-height: 44px; box-sizing: border-box;
}
.search-date { font-family: var(--font-ui); cursor: pointer; }
.search-time { font-family: var(--font-mono); }
.search-now {
  background: var(--chip); border: 1px solid var(--line); color: var(--text); font-family: var(--font-ui); font-weight: 700;
  font-size: 13px; letter-spacing: .08em; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px;
}
.search-now.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.search-submit {
  flex: 1 1 100%; background: linear-gradient(115deg, var(--accent), #ffe066); color: var(--accent-ink); border: none;
  border-radius: 16px; padding: 18px; font-family: var(--font-ui); font-weight: 800; font-size: 18px; letter-spacing: .01em;
  cursor: pointer; min-height: 56px; animation: pulseGlow 3.6s ease-in-out infinite; transition: transform .2s;
}
.search-submit:hover { transform: translateY(-2px); }
.search-submit:active { transform: translateY(0); }

.popular { margin-top: clamp(32px, 5vh, 48px); }
.popular__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.popular__list { display: flex; flex-wrap: wrap; gap: 10px; }
.popular__btn {
  background: var(--chip); border: 1px solid var(--line); color: var(--text); font-family: var(--font-ui); font-weight: 600;
  font-size: 14px; padding: 11px 16px; border-radius: 999px; cursor: pointer; min-height: 44px;
  transition: border-color .25s, transform .25s;
}
.popular__btn:hover { border-color: var(--accent); transform: translateY(-2px); }

/* results / line shared main */
.results-main, .line-main { position: relative; z-index: 1; margin: 0 auto; padding: clamp(22px, 5vh, 48px) clamp(16px, 4vw, 44px) 60px; animation: fadeUp .5s ease both; }
.results-main { max-width: 920px; }
.line-main { max-width: 920px; }

.screen-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 24px; }
.back-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); color: var(--text); font-size: 19px; cursor: pointer;
  line-height: 1; transition: border-color .25s, transform .25s;
}
.back-btn:hover { border-color: var(--accent); transform: translateX(-2px); }
.screen-header__title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.screen-header__title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.depart-chip { background: var(--chip); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.day-shift-note {
  animation: fadeUp .5s ease both; margin: 4px 0 14px; padding: 11px 16px;
  background: rgba(242, 196, 0, .08); border: 1px solid rgba(242, 196, 0, .35); border-radius: 14px;
  color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.55;
}

/* route visualization — only the svg strip scrolls; status row (back arrow) must stay
   outside the scroll container or its hover translate gets clipped at the edge */
.route-viz { margin: 10px 0 34px; }
.route-viz__scroll { overflow-x: auto; }
.route-viz__status { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px 3px rgba(63, 163, 77, .7); animation: blink 1.6s ease-in-out infinite; }
.route-viz__status-text { font-size: clamp(11px, 1.5vw, 14px); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.route-viz__big { font-family: var(--font-mono); font-weight: 600; font-size: clamp(58px, 12vw, 124px); line-height: 1.05; letter-spacing: -.05em; margin-top: 2px; text-shadow: 0 0 70px var(--glow); animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) .15s both; }
.route-viz__svgwrap { position: relative; min-width: 560px; animation: wipeIn .9s cubic-bezier(.3, .6, .2, 1) .35s both; }
.route-svg { display: block; width: 100%; height: auto; overflow: visible; }
.route-svg__path { animation: dash 7s linear infinite; filter: drop-shadow(0 0 9px var(--glow)); }
.route-stop { filter: drop-shadow(0 0 7px var(--glow)); transform-box: fill-box; transform-origin: center; animation: popIn .5s cubic-bezier(.3, 1.4, .4, 1) both; }
.route-bus { opacity: 0; transition: opacity .3s ease; }
.route-labels { position: absolute; inset: 0; pointer-events: none; }
.route-label { position: absolute; pointer-events: none; animation: fadeIn .6s ease both; }
.route-label__name { font-family: var(--font-ui); font-size: 13px; white-space: nowrap; }
.route-label__time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* results list */
.results-list { display: grid; gap: 12px; }
.result-card {
  animation: fadeUp .55s ease both; display: flex; align-items: center; gap: clamp(14px, 3vw, 22px); text-align: left;
  width: 100%; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px clamp(14px, 3vw, 22px); cursor: pointer; color: var(--text); font: inherit;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.result-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 36px rgba(0, 0, 0, .25); }
.result-card__times { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.result-card__dep { font-family: var(--font-mono); font-weight: 600; font-size: clamp(20px, 3.4vw, 26px); }
.result-card__arrow { color: var(--muted); font-size: 14px; }
.result-card__arr { font-family: var(--font-mono); font-size: clamp(15px, 2.6vw, 18px); color: var(--muted); }
.result-card__body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.result-card__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { color: #10130a; font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 3px 9px; border-radius: 7px; }
.badge--lg { font-size: 14px; padding: 5px 12px; border-radius: 9px; }
.result-card__name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-card__sub { color: var(--muted); font-size: 13px; }
.result-card__chev { color: var(--accent); font-size: 22px; flex: 0 0 auto; }

.no-results { background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 34px 24px; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* line detail */
/* header (viz) spans the full 920px like the results screen; the ride box itself stays compact */
.line-card { background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 28px); margin: 6px auto 0; max-width: 780px; }
.line-card__badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line-card__name { font-weight: 800; font-size: clamp(18px, 3vw, 22px); letter-spacing: -.01em; }
.line-card__times { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.line-card__time { font-family: var(--font-mono); font-weight: 600; font-size: clamp(30px, 6vw, 42px); }
.line-card__arrow { color: var(--accent); font-size: 20px; }
.line-card__dur { color: var(--muted); font-size: 15px; font-weight: 600; margin-left: auto; }

.line-stops { position: relative; margin-top: 28px; }
.line-stops__rail { position: absolute; left: 12px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--green)); opacity: .45; border-radius: 2px; }
.line-stops__ride { position: absolute; left: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px 5px var(--glow); animation: ride 6s ease-in-out infinite alternate; }
.line-stop { position: relative; display: flex; align-items: center; gap: 16px; padding: 13px 0 13px 40px; }
.line-stop__dot { position: absolute; left: 6px; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; }
.line-stop__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.line-stop__name { font-size: 16px; }
.line-stop__badge { align-self: flex-start; background: var(--chip); border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.line-stop__time { font-family: var(--font-mono); font-size: 15px; }

.site-footer { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 16px 40px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; }
.site-footer svg { width: 16px; height: 16px; opacity: .8; }
.site-footer__brand { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-weight: 700; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.bus-search-page .site-footer a { color: var(--muted); }
.bus-search-page .site-footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .site-header { --header-ctl-h: 38px; gap: 10px; padding: 12px 14px; }
  .btn-chip { padding: 0 11px; letter-spacing: .06em; font-size: 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 20px; min-width: 0; }
  .header-actions { gap: 8px; }
  .language-picker__trigger { grid-template-columns: 28px 34px 10px; width: 92px; padding-right: 9px; }
  .language-picker__name { display: none; }
  .language-picker__code { font-size: 11px; }
  .language-picker__menu {
    position: absolute; left: auto; right: -60px; top: calc(100% + 10px); bottom: auto; width: calc(100vw - 42px); max-height: min(72vh, 560px);
    grid-template-columns: 1fr; overflow-y: auto; overscroll-behavior: contain; padding: 12px; border-radius: 22px;
    transform: translateY(-8px) scale(.98); transform-origin: top right;
  }
  .language-picker.is-open .language-picker__menu { transform: translateY(0) scale(1); }
  .language-picker__option { min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) 18px; padding: 9px 11px; }
  .language-picker__option-flag { width: 34px; height: 34px; font-size: 20px; }
  .language-picker__option-name { font-size: 14px; }
  .search-card { border-radius: 20px; }
  .search-swap { order: 2; align-self: center; margin: -2px auto; }
}

/* phones: brand + four controls never fit on one row — let the actions drop to a second line,
   and collapse the about chip to just the avatar (the face is the button) */
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; row-gap: 9px; }
  .header-actions { flex: 1 1 100%; justify-content: flex-end; }
  .nav-chip--about { width: var(--header-ctl-h); padding: 0; justify-content: center; }
  .nav-chip--about .nav-chip__label { display: none; }
  .nav-chip__avatar { width: calc(var(--header-ctl-h) - 8px); height: calc(var(--header-ctl-h) - 8px); }
}

@media (max-width: 420px) {
  .brand-name__demira { display: none; }
  .language-picker__trigger { width: 82px; grid-template-columns: 26px 28px 9px; gap: 7px; }
  .language-picker__flag { width: 26px; height: 26px; font-size: 17px; }
  .language-picker__code { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .language-picker__trigger,
  .language-picker__menu,
  .language-picker__option {
    transition: none;
  }
}

/* header nav chips (taxi / about) */
.nav-chip { letter-spacing: .08em; white-space: nowrap; transition: translate .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease; }
.nav-chip:hover { translate: 0 -1px; }
.nav-chip.is-active { border-color: var(--accent); }

/* taxi chip — a nod to the Portuguese táxi paintjob, kept as light as the other chips:
   sheer green "roof" tint over the normal chip body, gold roof light, green-leaning border */
.nav-chip--taxi {
  gap: 7px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--green) 28%, transparent) 0 32%, var(--chip) 32%);
  border-color: color-mix(in oklab, var(--green) 40%, var(--line));
}
.nav-chip--taxi::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: #f2c400; box-shadow: 0 0 7px 1px rgba(242, 196, 0, .55);
  animation: blink 2.4s ease-in-out infinite;
}
.nav-chip--taxi:hover, .nav-chip--taxi.is-active {
  border-color: var(--green);
  box-shadow: 0 8px 22px rgba(63, 163, 77, .2);
}

/* the key word of each chip picks up its button's color: "Táxi!" gold, "mim" accent blue */
.nav-chip__hot { font-weight: 900; }
.nav-chip--taxi .nav-chip__hot { color: #f2c400; }
.bus-search-page[data-theme="light"] .nav-chip--taxi .nav-chip__hot { color: #9c7a00; }
.nav-chip--about .nav-chip__hot { color: var(--accent); }

/* about chip — Riccardo's face, so the button isn't anonymous; blue-washed so it
   holds its own next to the taxi chip */
.nav-chip--about {
  gap: 8px; padding-left: 5px;
  background: color-mix(in oklab, var(--accent) 9%, var(--chip));
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
}
.nav-chip--about:hover, .nav-chip--about.is-active {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(74, 163, 255, .22);
}
.nav-chip__avatar {
  width: calc(var(--header-ctl-h) - 10px); height: calc(var(--header-ctl-h) - 10px);
  border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow: 0 0 10px rgba(74, 163, 255, .25);
}
.nav-chip--about:hover .nav-chip__avatar, .nav-chip--about.is-active .nav-chip__avatar { border-color: var(--accent); }
.home-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.home-link {
  background: none; border: none; color: var(--muted); font: 600 14px var(--font-ui); cursor: pointer;
  padding: 6px 0; letter-spacing: .02em; transition: color .25s;
}
.home-link:hover { color: var(--accent); }

/* shared screen hero (about + taxi) */
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker__dot { width: 9px; height: 9px; border-radius: 50%; animation: blink 2s ease-in-out infinite; }
.kicker__dot--green { background: var(--green); box-shadow: 0 0 12px 3px rgba(63, 163, 77, .7); }
.kicker__dot--gold { background: #f2c400; box-shadow: 0 0 12px 3px rgba(242, 196, 0, .7); }
.kicker__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.screen-hero__title { font-size: clamp(46px, 8vw, 92px); line-height: .96; letter-spacing: -.035em; font-weight: 800; margin: 0; text-wrap: balance; animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.screen-hero__lead { margin: 22px 0 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--muted); max-width: 52ch; }
.screen-hero__lead + .screen-hero__lead { margin-top: 14px; }
.screen-hero__lead strong { color: var(--text); }

/* about screen */
.about-main { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 44px) 60px; animation: fadeUp .5s ease both; }
.about-progress { display: none; }
.about-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-hero .hero__title-accent {
  background-image: linear-gradient(90deg, #f2c400, var(--green));
  background-repeat: no-repeat; background-position: 0 96%; background-size: 0% .09em;
  animation: underlineDraw .8s cubic-bezier(.3, .7, .3, 1) .55s both;
}
.about-photo { position: relative; max-width: 400px; justify-self: center; width: 100%; transition: translate .4s cubic-bezier(.3, .7, .3, 1); }
.about-photo:hover { translate: 0 -5px; }
.about-photo__frame {
  position: absolute; inset: -14px; border: 2px dashed var(--accent); border-radius: 30px; transform: rotate(-2.5deg); opacity: .5;
  transition: transform .5s cubic-bezier(.3, .7, .3, 1), opacity .5s ease;
}
.about-photo:hover .about-photo__frame { transform: rotate(1.6deg); opacity: .9; }
.about-photo__img {
  display: block; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: 24px;
  border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) .1s both;
}
.about-photo__pin {
  position: absolute; left: 16px; bottom: 16px; background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; font-family: var(--font-mono); font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: translate .35s ease .06s, border-color .35s ease;
}
.about-photo:hover .about-photo__pin { translate: 0 -4px; border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.about-photo__pin span { color: var(--accent); font-weight: 600; }

.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: clamp(44px, 7vh, 72px); }
.about-fact {
  position: relative; overflow: hidden; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 22px; animation: fadeUp .7s ease both;
  transition: translate .3s cubic-bezier(.3, .7, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.about-fact::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #f2c400, var(--accent), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.3, .7, .3, 1);
}
.about-fact:hover { translate: 0 -4px; border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.about-fact:hover::before { transform: scaleX(1); }
.about-fact:nth-child(2) { animation-delay: .08s; }
.about-fact:nth-child(3) { animation-delay: .16s; }
.about-fact__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; color: var(--accent); font-weight: 600; margin-bottom: 8px; transition: letter-spacing .4s cubic-bezier(.3, .7, .3, 1); }
.about-fact:hover .about-fact__label { letter-spacing: .3em; }
.about-fact__text { font-size: 15px; line-height: 1.55; }

.about-h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.about-work { margin-top: clamp(44px, 7vh, 72px); }
.about-work .about-h2 { margin-bottom: 16px; animation: fadeUp .7s ease both; }
.about-work__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 3vw, 32px); }
.about-work__cols p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); animation: fadeUp .7s ease both; }
.about-skills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.skill-chip {
  background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-mono); font-size: 13px; cursor: default; animation: chipIn .55s ease both;
  transition: translate .25s cubic-bezier(.3, .7, .3, 1), rotate .25s cubic-bezier(.3, .7, .3, 1), border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.skill-chip:hover {
  translate: 0 -3px; rotate: -2deg; border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 18%, var(--chip)); box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
.skill-chip:nth-child(even):hover { rotate: 2deg; }

.about-route { margin-top: clamp(52px, 8vh, 84px); }
.about-route__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; animation: fadeUp .7s ease both; }
.about-route__badge { background: #f2c400; color: #10130a; font-weight: 800; font-size: 14px; letter-spacing: .06em; padding: 5px 12px; border-radius: 9px; }
.about-route__sub { margin: 0 0 26px; color: var(--muted); font-size: 15px; animation: fadeUp .7s ease both; }
.timeline { position: relative; max-width: 720px; }
.timeline__rail { position: absolute; left: 12px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, #f2c400, var(--accent), var(--green)); opacity: .45; border-radius: 2px; }
.timeline__bus {
  position: absolute; left: 13px; top: 8px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  background: var(--card-solid); border: 1px solid var(--accent); box-shadow: 0 0 16px 3px var(--glow);
  z-index: 2; pointer-events: none;
}
.timeline-stop { position: relative; padding: 14px 0 14px 44px; animation: fadeUp .7s ease both; transition: translate .25s ease; }
.timeline-stop:hover { translate: 6px 0; }
.timeline-stop__dot {
  position: absolute; left: 6px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-sizing: border-box;
  transition: transform .3s cubic-bezier(.3, 1.4, .4, 1), box-shadow .3s ease;
}
.timeline-stop:hover .timeline-stop__dot { transform: scale(1.45); box-shadow: 0 0 16px 4px var(--glow); }
.timeline-stop__dot--origin { background: #f2c400; box-shadow: 0 0 14px 2px rgba(242, 196, 0, .5); }
.timeline-stop__dot--now { background: var(--accent); box-shadow: 0 0 18px 5px var(--glow); animation: blink 2s ease-in-out infinite; }
.timeline-stop__when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.timeline-stop__role { font-weight: 800; font-size: 17px; margin-top: 4px; transition: color .25s ease; }
.timeline-stop:hover .timeline-stop__role { color: var(--accent); }
.timeline-stop__role--next { color: var(--accent); }
.timeline-stop__desc { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 4px; }

.about-hire { margin-top: clamp(52px, 8vh, 84px); }
.about-hire__title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; animation: fadeUp .7s ease both; }
.about-hire__sub { margin: 14px 0 30px; color: var(--muted); font-size: clamp(15px, 2vw, 17px); line-height: 1.6; max-width: 60ch; animation: fadeUp .7s ease both; }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.price-card {
  background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 16px; transition: translate .25s cubic-bezier(.3, .7, .3, 1), border-color .25s, box-shadow .25s;
  animation: fadeUp .7s ease both;
}
.price-card:nth-child(2) { animation-delay: .08s; }
.price-card:nth-child(3) { animation-delay: .16s; }
.price-card:hover { translate: 0 -4px; border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.price-card--featured { position: relative; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 22px 54px rgba(0, 0, 0, .3); }
.price-card--featured:hover { box-shadow: 0 0 0 1px var(--accent), 0 22px 54px rgba(0, 0, 0, .3); border-color: var(--accent); }
.price-card__flag {
  position: absolute; top: -11px; left: 24px; background: linear-gradient(115deg, var(--accent), #ffe066 45%, var(--accent) 90%); color: var(--accent-ink);
  font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background-size: 220% 100%; animation: flagShimmer 4s ease-in-out infinite;
}
.price-card__kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-card__amount { font-family: var(--font-mono); font-weight: 600; font-size: clamp(34px, 4vw, 44px); letter-spacing: -.04em; transition: color .3s ease, text-shadow .3s ease; }
.price-card:hover .price-card__amount { color: var(--accent); text-shadow: 0 0 30px var(--glow); }
.price-card__unit { color: var(--muted); font-size: 13px; }
.price-card__features { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.price-card__feature { display: flex; gap: 10px; align-items: baseline; }
.price-card__feature span:first-child { color: var(--green); font-weight: 800; flex: 0 0 auto; transition: transform .25s cubic-bezier(.3, 1.4, .4, 1); }
.price-card:hover .price-card__feature span:first-child { transform: scale(1.3); }
.price-card:hover .price-card__feature:nth-child(2) span:first-child { transition-delay: .05s; }
.price-card:hover .price-card__feature:nth-child(3) span:first-child { transition-delay: .1s; }
.price-card:hover .price-card__feature:nth-child(4) span:first-child { transition-delay: .15s; }
.price-card__feature span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.price-card__foot { font-size: 13px; color: var(--muted); }

.about-contact {
  margin-top: clamp(52px, 8vh, 84px); background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(28px, 5vw, 48px); text-align: center; box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  animation: fadeUp .8s ease both;
}
.about-contact__title { font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.about-contact__sub { margin: 12px auto 26px; color: var(--muted); font-size: clamp(15px, 2vw, 17px); line-height: 1.6; max-width: 46ch; }
.about-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px;
  padding: 16px 28px; border-radius: 16px; min-height: 56px; box-sizing: border-box;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cta-btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); transition: left .55s ease; pointer-events: none;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn:hover::after { left: 120%; }
.cta-btn__logo { width: 19px; height: 19px; flex: 0 0 auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
/* scoped under .bus-search-page so button text beats the global a / a:hover color rules */
.bus-search-page .cta-btn--whatsapp { background: linear-gradient(135deg, #2bd36a, #128c7e); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .22); }
.bus-search-page .cta-btn--whatsapp:hover { box-shadow: 0 16px 40px rgba(37, 211, 102, .38); color: #fff; }
.bus-search-page .cta-btn--linkedin { background: linear-gradient(135deg, #1583e6, #0a66c2); color: #fff; box-shadow: 0 10px 28px rgba(10, 102, 194, .22); }
.bus-search-page .cta-btn--linkedin:hover { box-shadow: 0 16px 40px rgba(10, 102, 194, .4); color: #fff; }

/* scroll-driven entrances where supported (design: animation-timeline: view()) */
@supports (animation-timeline: view()) {
  .about-fact, .timeline-stop { animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .price-card, .about-hire__title, .about-contact { animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .about-work .about-h2, .about-work__cols p, .about-route__head, .about-route__sub, .about-hire__sub { animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .skill-chip { animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .skill-chip:nth-child(even) { animation-range: entry 12% entry 57%; }
  .timeline { view-timeline: --route block; }
  .timeline__rail { transform-origin: top; animation: railGrow linear both; animation-timeline: --route; animation-range: cover 0% cover 85%; }
  .timeline__bus { display: flex; animation: busRide linear both; animation-timeline: --route; animation-range: cover 0% cover 85%; }
  .about-progress {
    display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30;
    background: linear-gradient(90deg, #f2c400, var(--accent), var(--green)); box-shadow: 0 0 12px var(--glow);
    transform-origin: left; animation: progressGrow linear both; animation-timeline: scroll(root);
  }
}

@media (max-width: 760px) {
  .nav-chip { display: none; }
}

/* taxi screen */
.taxi-main { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 44px) 60px; animation: fadeUp .5s ease both; }
.taxi-hero { margin-bottom: clamp(24px, 4vh, 40px); }

.taxi-board { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.taxi-map-box {
  position: relative; flex: 1 1 560px; min-width: 280px; height: clamp(420px, 58vh, 560px); border-radius: 26px;
  overflow: hidden; border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(0, 0, 0, .28); background: var(--bg2);
  animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) .1s both;
}
.taxi-map { position: absolute; inset: 0; background: var(--bg2); z-index: 0; }
.taxi-map__count {
  position: absolute; top: 14px; left: 14px; z-index: 1000; background: rgba(6, 18, 15, .75); backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 247, 240, .14); border-radius: 999px; padding: 7px 14px;
  font-family: var(--font-mono); font-size: 11px; color: #f2f7f0; letter-spacing: .08em; pointer-events: none;
}
.taxi-sel {
  position: absolute; left: 14px; bottom: 14px; z-index: 1000; width: min(340px, calc(100% - 28px));
  background: var(--card-solid); border: 1px solid var(--accent); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4); animation: fadeUp .35s ease both;
}
.taxi-sel__close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--chip);
  border: 1px solid var(--line); color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1;
}
.taxi-sel__close:hover { border-color: var(--accent); color: var(--text); }
.taxi-sel__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 34px; }
.taxi-kind { color: #10130a; font-weight: 800; font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border-radius: 7px; }
.taxi-sel__seats { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.taxi-sel__name { font-weight: 800; font-size: 19px; margin-top: 8px; }
.taxi-sel__town { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.5; }
.taxi-sel__desc { color: var(--muted); font-size: 13px; margin-top: 9px; line-height: 1.6; }
.taxi-sel__actions { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
/* same deep-gradient + white-text convention as the about-page CTAs; the
   .bus-search-page prefix is required to out-rank the `.bus-search-page a` /
   `a:hover` color rules, which otherwise paint the label accent-blue */
.bus-search-page .taxi-call {
  display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #1583e6, #0a66c2);
  color: #fff; font-weight: 800; font-size: 14px; padding: 11px 16px; border-radius: 12px; min-height: 44px;
  box-sizing: border-box; transition: transform .2s; box-shadow: 0 10px 28px rgba(21, 131, 230, .22);
}
.bus-search-page .taxi-call:hover { transform: translateY(-2px); color: #fff; }
/* secondary numbers: same button, quieter */
.bus-search-page .taxi-call--alt { background: linear-gradient(135deg, #3e6f9e, #2f5678); box-shadow: 0 10px 28px rgba(62, 111, 158, .18); }
  display: inline-flex; align-items: center; background: linear-gradient(135deg, #2bd36a, #128c7e); color: #fff; font-weight: 800; font-size: 14px;
  padding: 11px 16px; border-radius: 12px; min-height: 44px; box-sizing: border-box; transition: transform .2s; box-shadow: 0 10px 28px rgba(37, 211, 102, .22);
}
.bus-search-page .taxi-wa:hover { transform: translateY(-2px); color: #fff; }

.taxi-list { flex: 1 1 280px; min-width: 260px; max-height: clamp(420px, 58vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.taxi-item {
  text-align: left; flex: 0 0 auto; background: var(--card); backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; cursor: pointer; color: var(--text); font: inherit;
  transition: transform .2s, border-color .2s;
}
.taxi-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.taxi-item.is-selected { border-color: var(--accent); }
.taxi-item__head { display: flex; align-items: center; gap: 9px; }
.taxi-item__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.taxi-item__name { font-weight: 800; font-size: 15px; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taxi-item__sub { color: var(--muted); font-size: 13px; margin-top: 5px; }
.taxi-item__phone { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 5px; }

.taxi-join {
  margin: clamp(44px, 7vh, 72px) auto 0; max-width: 680px; background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28); animation: fadeUp .8s ease both;
}
.taxi-join__title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.taxi-join__sub { margin: 12px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.taxi-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.taxi-field { display: flex; flex-direction: column; gap: 8px; }
.taxi-input {
  background: var(--chip); border: 1px solid var(--line); color: var(--text); font-family: var(--font-ui); font-weight: 600;
  font-size: 15px; padding: 13px 15px; border-radius: 12px; min-height: 48px; box-sizing: border-box; width: 100%;
}
.taxi-input--mono { font-family: var(--font-mono); }
.taxi-field--full { grid-column: 1 / -1; }
.taxi-input--area { resize: vertical; min-height: 76px; font-family: inherit; line-height: 1.5; }
.taxi-check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.taxi-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.taxi-input--select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.taxi-input--select option { background: var(--card-solid); color: var(--text); }
.taxi-err { margin-top: 14px; color: #e0642f; font-size: 13px; font-weight: 700; }
.taxi-submit {
  margin-top: 18px; width: 100%; background: linear-gradient(115deg, var(--accent), #ffe066); color: var(--accent-ink);
  border: none; border-radius: 16px; padding: 17px; font-family: var(--font-ui); font-weight: 800; font-size: 17px;
  cursor: pointer; min-height: 54px; transition: transform .2s;
}
.taxi-submit:hover { transform: translateY(-2px); }
.taxi-submit:active { transform: translateY(0); }
.taxi-fine { margin-top: 14px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.taxi-back { display: block; margin: 18px auto 0; padding: 7px 0; border: 0; background: none; color: var(--muted); font: 700 12px var(--font-mono); letter-spacing: .06em; cursor: pointer; }
.taxi-back:hover { color: var(--accent); }
.taxi-sent {
  display: flex; align-items: flex-start; gap: 14px; background: var(--chip); border: 1px solid var(--green);
  border-radius: 16px; padding: 20px 22px; animation: fadeUp .4s ease both;
}
.taxi-sent[hidden] { display: none; }
.taxi-sent__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px 3px rgba(63, 163, 77, .7); flex: 0 0 auto; margin-top: 5px; animation: blink 2s ease-in-out infinite; }
.taxi-sent__title { font-weight: 800; font-size: 17px; }
.taxi-sent__sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 5px; }

/* leaflet marker labels (injected via divIcon, outside our BEM tree) */
.taxi-marker { position: relative; }
.taxi-marker__dot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(6, 18, 15, .85); cursor: pointer; }
.taxi-marker__town {
  position: absolute; left: 0; top: 13px; transform: translateX(-50%); font: 700 11px var(--font-ui);
  color: #f2f7f0; background: rgba(6, 18, 15, .82); padding: 3px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em;
}

@supports (animation-timeline: view()) {
  .taxi-join { animation-timeline: view(); animation-range: entry 0% entry 50%; }
}

/* about: try-the-backend demo card */
.about-demo {
  margin-top: clamp(52px, 8vh, 84px); display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28); animation: fadeUp .8s ease both;
}
.about-demo .kicker { margin-bottom: 14px; }
.about-demo__sub { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 52ch; }
.about-demo__panel {
  background: var(--card-solid); border: 1px solid var(--accent); border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3); max-width: 400px; justify-self: center; width: 100%; box-sizing: border-box;
  animation: panelPulse 4.5s ease-in-out infinite;
}
.about-demo__panel-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
/* both rows share the key column so translated labels of any length stay aligned */
.about-demo__creds { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.about-demo__cred { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; column-gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); transition: border-color .25s ease; }
@supports not (grid-template-columns: subgrid) {
  .about-demo__cred { grid-template-columns: minmax(76px, max-content) minmax(0, 1fr); }
}
.about-demo__cred:hover { border-bottom-color: color-mix(in oklab, var(--accent) 60%, var(--line)); }
.about-demo__key { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.about-demo__value { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text); user-select: all; transition: color .25s ease; overflow-wrap: anywhere; }
.about-demo__cred:hover .about-demo__value { color: var(--accent); }
.about-demo__panel .cta-btn--demo {
  margin-top: 16px; width: 100%; justify-content: center; background: linear-gradient(115deg, var(--accent), #ffe066);
  color: var(--accent-ink); font-size: 15px; padding: 14px 20px; border-radius: 14px; min-height: 50px;
  border: 0; font-family: inherit; font-weight: 800; cursor: pointer;
}
.about-demo__panel .cta-btn--demo:hover { color: var(--accent-ink); box-shadow: 0 14px 36px var(--glow); }

@supports (animation-timeline: view()) {
  .about-demo { animation-timeline: view(); animation-range: entry 0% entry 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .about-progress, .timeline__bus { display: none !important; }
  .about-hero .hero__title-accent { animation: none; background-size: 100% .09em; }
  .price-card__flag, .about-demo__panel, .timeline__rail { animation: none; }
  .about-photo, .about-fact, .skill-chip, .timeline-stop, .price-card, .cta-btn { transition: none; animation-name: fadeIn; }
}

/* ---- server-rendered landing pages (/horarios) + real-anchor nav ---- */
/* nav/brand/chips are now <a>; keep them out of the global accent/green link cascade */
.bus-search-page a.brand, .bus-search-page a.brand:hover { color: inherit; }
.bus-search-page a.btn-chip, .bus-search-page a.btn-chip:hover,
.bus-search-page a.popular__btn, .bus-search-page a.popular__btn:hover { color: var(--text); }
a.btn-chip, a.popular__btn { display: inline-flex; align-items: center; gap: 8px; }
.bus-search-page a.home-link { color: var(--muted); }
.bus-search-page a.home-link:hover { color: var(--accent); }

.landing-main { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: clamp(22px, 5vh, 48px) clamp(16px, 4vw, 44px) 60px; animation: fadeUp .5s ease both; }
.landing-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.bus-search-page .landing-breadcrumb a { color: var(--muted); }
.bus-search-page .landing-breadcrumb a:hover { color: var(--accent); }
.landing-h1 { font-size: clamp(32px, 5.6vw, 62px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 0; text-wrap: balance; }
.landing-h2 { font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; letter-spacing: -.02em; margin: 34px 0 14px; }
.landing-lead { margin: 14px 0 0; font-size: clamp(15px, 2vw, 18px); line-height: 1.6; color: var(--muted); max-width: 62ch; }

.landing-day { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.day-chip { background: var(--chip); border: 1px solid var(--line); font: 700 13px var(--font-ui); letter-spacing: .08em; padding: 9px 16px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; transition: border-color .25s; }
.bus-search-page a.day-chip, .bus-search-page a.day-chip:hover { color: var(--text); }
.day-chip:hover { border-color: var(--accent); }
.day-chip.is-active { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }
.landing-day__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.landing-note { background: var(--chip); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.landing-list { margin-top: 8px; }
.bus-search-page a.result-card, .bus-search-page a.result-card:hover { color: var(--text); }
.landing-ride-card { margin: 8px 0 0; max-width: none; }

.landing-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.landing-chip__count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.landing-cta-row { margin: 34px 0 0; }
.landing-cta { display: inline-flex; align-items: center; text-decoration: none; }
.bus-search-page a.landing-cta, .bus-search-page a.landing-cta:hover { color: var(--accent-ink); }
.landing-links { margin-top: 10px; }
