:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #08111d;
  --panel: #0b111c;
  --panel-2: #111b29;
  --panel-3: #172235;
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .28);
  --text: #ffffff;
  --muted: #aab6c5;
  --yellow: #ffd23f;
  --green: #2ee889;
  --blue: #39a7ff;
  --orange: #ff9f2e;
  --red: #ff4d5e;
  --shadow: rgba(0, 0, 0, .45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 44%, #020408);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.hero {
  min-height: 104px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 72px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 20, 33, .98), rgba(5, 9, 16, .96));
  box-shadow: 0 16px 44px var(--shadow);
  overflow: hidden;
}

.language-switcher {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.header-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: rgba(255, 210, 63, .12);
  color: var(--yellow);
}

.header-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon-button .icon-accent {
  stroke: var(--text);
}

.header-icon-button:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .85);
  outline-offset: 2px;
}

.location-selector-toggle {
  order: 2;
}

.language-toggle {
  order: 1;
}

.language-toggle {
  min-width: 46px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: rgba(255, 210, 63, .12);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.language-dropdown {
  position: fixed;
  z-index: 2147483647;
  width: 84px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #080d15;
  box-shadow: 0 18px 38px var(--shadow);
}

.language-dropdown button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.language-dropdown button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #05070c;
}

.language-dropdown button:hover {
  background: rgba(255, 210, 63, .16);
  color: var(--yellow);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  position: relative;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  background: rgba(255, 210, 63, .1);
}

.brand-mark::before {
  content: "";
  width: 42px;
  height: 28px;
  border: 5px solid var(--yellow);
  border-bottom-width: 8px;
  border-radius: 8px 8px 5px 5px;
}

.brand-mark span {
  position: absolute;
  bottom: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.brand-mark span:nth-child(1) { left: 21px; }
.brand-mark span:nth-child(2) { right: 21px; }
.brand-mark span:nth-child(3) {
  top: 17px;
  width: 24px;
  height: 4px;
  border-radius: 2px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 5vw, 76px);
  line-height: .92;
  font-weight: 950;
}

.brand-main-title {
  min-width: 0;
}

.brand-domain {
  display: block;
  margin-bottom: 3px;
  color: var(--yellow);
  font-size: clamp(15px, 1.9vw, 20px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand-product {
  display: block;
  white-space: nowrap;
}

.hero-tagline {
  margin-top: 4px;
  color: var(--yellow);
  font-size: clamp(13px, 1.7vw, 18px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 750;
}

.skyline {
  flex: 0 0 min(28vw, 250px);
  opacity: .72;
}

.skyline svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mode-tabs button {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 950;
  white-space: nowrap;
}

.mode-tabs button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #05070c;
}

.mode-icon,
.svg-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.mode-icon svg,
.svg-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-icon svg circle,
.svg-icon svg circle {
  fill: currentColor;
  stroke: none;
}

.mode-tabs .mode-icon {
  color: var(--yellow);
}

.mode-tabs button.active .mode-icon {
  color: #05070c;
}

.bus-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coach-subtabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 520px);
  margin-inline: auto;
}

.bus-subtabs button {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 16, 25, .92);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.bus-subtabs button.active {
  border-color: var(--yellow);
  background: rgba(255, 210, 63, .14);
  color: var(--yellow);
}

.location-card,
.location-warning,
.current-location-bar,
.hubs-panel,
.live-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 16, 25, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
}

.location-card.start-card:not(.is-compact) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 4px;
}

.location-card.start-card:not(.is-compact) .start-choice {
  width: min(100%, 680px);
}

.location-card.start-card:not(.is-compact) .start-explore {
  width: 100%;
}

.location-card.is-compact {
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  padding: 14px;
}

.location-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: 0;
}

.location-message {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 650;
}

.location-actions {
  display: flex;
  gap: 10px;
}

.location-actions button,
.location-warning button,
.manual-result,
.pager button,
.rotation-button {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 950;
}

.location-actions button {
  min-height: 46px;
  padding: 0 16px;
}

.start-choice {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.start-location-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.08;
  font-weight: 950;
}

.start-location-subtitle {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.4;
  font-weight: 700;
}

.geo-choice {
  display: grid;
  gap: 10px;
}

.geo-choice .primary-action {
  width: 100%;
  min-height: 62px;
  border-radius: 12px;
  font-size: 18px;
}

.geo-choice .secondary-action {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel-3);
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.near-me-choice {
  justify-items: start;
  padding-top: 0;
  text-align: left;
}

.geo-choice .near-me-action {
  width: auto;
  min-width: 170px;
  min-height: 46px;
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .2);
}

.near-me-description {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.start-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.start-divider::before,
.start-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.manual-search label {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.manual-hint {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.cancel-location {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  min-height: 36px;
  padding: 0 12px;
  font-weight: 900;
}

.cancel-location {
  justify-self: start;
  border-color: rgba(255, 255, 255, .24);
}

.primary-action,
.pager #nextButton {
  border-color: var(--yellow) !important;
  background: var(--yellow) !important;
  color: #05070c !important;
}

.manual-search {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.manual-search input {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--yellow);
  border-radius: 10px;
  padding: 0 14px;
  background: #060a11;
  color: var(--text);
  font-size: 16px;
}

.quick-city-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-city-buttons::-webkit-scrollbar {
  display: none;
}

.quick-cities-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quick-city-buttons button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.quick-city-buttons button:hover,
.quick-city-buttons button:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.manual-results {
  display: grid;
  gap: 8px;
}

.manual-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  min-width: 0;
}

.manual-category-card,
.start-feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: linear-gradient(180deg, #0b1624, #070d16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.manual-category-card.is-open {
  grid-column: 1 / -1;
  border-color: rgba(255, 210, 77, .65);
}

.manual-category-button,
.start-feature-card {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 950;
}

.manual-category-button:focus-visible,
.manual-result:focus-visible,
.start-feature-card:focus-visible {
  outline: 3px solid rgba(255, 210, 77, .9);
  outline-offset: 2px;
}

.manual-category-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: #f4f7fb;
  background: rgba(255, 210, 77, .08);
}

.manual-category-icon .svg-icon {
  width: 34px;
  height: 34px;
}

.manual-category-icon .icon-accent,
.manual-result-row-icon .icon-accent {
  stroke: var(--yellow);
}

.manual-category-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.manual-category-copy strong {
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 950;
}

.manual-category-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-category-chevron {
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease;
}

.manual-category-card.is-open .manual-category-chevron {
  transform: rotate(180deg);
}

.start-feature-card:hover {
  border-color: rgba(255, 210, 77, .55);
}

.start-feature-chevron {
  transform: none;
}

.manual-category-results {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
}

.manual-result-row-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 210, 77, .55);
  border-radius: 999px;
  color: #f4f7fb;
}

.manual-result-row-icon .svg-icon {
  width: 18px;
  height: 18px;
}

.manual-result {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  text-align: left;
}

.manual-result-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual-result-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.favorite-star {
  color: var(--yellow);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.location-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--yellow);
  font-weight: 850;
}

.location-warning button {
  min-height: 38px;
  padding: 0 12px;
}

.current-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  position: relative;
  padding: 10px 14px;
}

.current-location-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.current-location-bar span {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.current-location-bar > button,
.weather-summary {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(255, 210, 63, .55);
  border-radius: 999px;
  background: rgba(255, 210, 63, .1);
  color: var(--yellow);
  padding: 0 14px;
  font-weight: 950;
}

.weather-shell {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  min-width: 0;
}

.weather-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  white-space: nowrap;
  max-width: 100%;
}

.weather-icon {
  font-size: 24px;
  line-height: 1;
}

.weather-temperature {
  font-size: 17px;
  line-height: 1;
}

.weather-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(260px, calc(100vw - 28px));
  min-width: min(230px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
  color: var(--text);
}

.selected-object-weather-shell {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.selected-object-weather {
  min-height: 32px;
  padding: 0 10px;
}

.selected-object-weather .weather-icon {
  font-size: 18px;
}

.selected-object-weather .weather-temperature {
  font-size: 14px;
}

.selected-object-weather-popover {
  top: calc(100% + 8px);
  right: 0;
}

.weather-popover-title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.weather-popover-description {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-popover-grid {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.weather-popover-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-top: 7px;
  line-height: 1.2;
}

.weather-popover-grid div:first-child {
  padding-top: 0;
}

.weather-popover-grid span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.weather-popover-grid strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.start-explore {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 0;
}

.location-card .start-transfer-promo {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.start-explore-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.start-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  min-width: 0;
}

.board-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 66%);
  gap: 12px;
}

.hubs-panel,
.live-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.live-panel.bus-city-board,
.live-panel.bus-intercity-board {
  display: flex;
  flex-direction: column;
}

.live-panel.city-map-first-board {
  display: flex;
  flex-direction: column;
}

.board-layout.city-map-first {
  grid-template-columns: minmax(0, 1fr);
}

.board-layout.city-map-first .hubs-panel {
  display: none;
}

.live-panel.bus-city-board .live-head,
.live-panel.bus-intercity-board .live-head {
  order: 2;
}

.live-panel.bus-city-board .selected-object-summary,
.live-panel.bus-intercity-board .selected-object-summary {
  order: 1;
}

.live-panel.bus-city-board .vehicle-map-panel,
.live-panel.bus-intercity-board .vehicle-map-panel {
  order: 7;
}

.live-panel.bus-city-board .map-transport-legend,
.live-panel.bus-intercity-board .map-transport-legend {
  order: 8;
}

.live-panel.bus-city-board .city-map-location-cta,
.live-panel.bus-intercity-board .city-map-location-cta {
  order: 6;
}

.live-panel.bus-city-board .live-table,
.live-panel.bus-intercity-board .live-table {
  order: 3;
}

.live-panel.bus-city-board .pager,
.live-panel.bus-intercity-board .pager {
  order: 4;
}

.live-panel.bus-city-board .transfer-promo,
.live-panel.bus-intercity-board .transfer-promo {
  order: 5;
}

.live-panel.city-map-first-board .live-head { order: 1; }
.live-panel.city-map-first-board .city-map-location-cta { order: 2; }
.live-panel.city-map-first-board .vehicle-map-panel { order: 3; }
.live-panel.city-map-first-board .map-transport-legend { order: 4; }
.live-panel.city-map-first-board .selected-object-summary { order: 5; }
.live-panel.city-map-first-board .live-table { order: 6; }
.live-panel.city-map-first-board .pager { order: 7; }
.live-panel.city-map-first-board .transfer-promo { order: 8; }

.bus-station-list {
  display: grid;
  gap: 9px;
  padding: 10px 12px 14px;
}

.bus-station-list .hub-card {
  grid-template-columns: 44px minmax(0, 1fr) minmax(68px, max-content);
}

.section-title {
  padding: 12px 14px 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.hub-list {
  display: grid;
  gap: 9px;
  padding: 10px 12px 14px;
  overflow: auto;
}

.hub-group {
  display: grid;
  gap: 9px;
}

.hub-group-title {
  margin: 8px 2px 0;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hub-card {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px minmax(68px, max-content);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a111c;
  color: var(--text);
  text-align: left;
}

.hub-copy {
  min-width: 0;
}

.hub-card.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 210, 63, .22), 0 0 22px rgba(255, 210, 63, .12);
}

.hub-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 210, 63, .12);
  color: var(--yellow);
}

.airport-logo-mark {
  background: #0f1928;
}

.airport-logo-link {
  color: inherit;
  text-decoration: none;
}

.airport-logo-link:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .85);
  outline-offset: 3px;
}

.airport-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hub-name {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 950;
}

.hub-city,
.hub-selected {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hub-distance {
  justify-self: end;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 950;
}

.live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 12px;
}

.selected-meta {
  padding: 0 14px 4px;
  color: var(--muted);
}

.selected-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.map-physical-choices__heading {
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-physical-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a111c;
  color: inherit;
  font: inherit;
  text-align: left;
}

.map-physical-choice--action,
.map-physical-choice__role--action {
  cursor: pointer;
}

.map-physical-choice--action:focus-visible,
.map-physical-choice__role--action:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.map-physical-choice__header {
  display: contents;
}

.map-physical-choice__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  grid-column: 1;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.map-physical-choice__summary {
  grid-column: 2;
  min-width: 0;
}

.map-physical-choice__title,
.map-physical-choice__role-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.map-physical-choice__title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-physical-choice__modes,
.map-physical-choice__routes,
.map-physical-choice__destinations {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-physical-choice__role {
  display: grid;
  grid-column: 2;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.map-physical-choice__role--action {
  min-height: 38px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.live-panel.airport-board .live-head > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  min-width: 0;
}

.live-panel.airport-board .live-head .section-title {
  text-align: center;
}

.live-panel.airport-board .selected-meta {
  display: contents;
  min-width: 0;
  padding: 0;
}

.live-panel.airport-board .meta-badges {
  justify-self: end;
  justify-content: flex-end;
  margin-top: 0;
}

.live-panel.airport-board .airport-details {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.live-panel.airport-board .board-actions {
  grid-column: 1 / -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.badge.yellow {
  border-color: rgba(255, 210, 63, .55);
  color: var(--yellow);
}

.badge.status-live {
  border-color: rgba(39, 216, 127, .55);
  color: var(--green);
}

.badge.status-delayed {
  border-color: rgba(255, 159, 46, .55);
  color: var(--orange);
}

.badge.status-scheduled-only {
  border-color: rgba(224, 231, 255, .35);
  color: var(--muted);
}

.badge.status-offline {
  border-color: rgba(123, 132, 150, .4);
  color: #7b8496;
}

.use-nearest-button {
  min-height: 24px;
  border: 1px solid rgba(255, 210, 63, .65);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 210, 63, .12);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 950;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.taxi-action {
  min-height: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 167, 255, .68);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(57, 167, 255, .12);
  color: #bfe3ff;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.taxi-action:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.external-service-note {
  min-width: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
}

.port-source-action {
  margin-top: 6px;
}

.port-source-action a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 210, 63, .45);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 210, 63, .08);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.port-source-action a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .weather-shell {
    flex-basis: 100%;
  }

  .weather-summary {
    min-height: 44px;
  }

  .weather-icon {
    font-size: 24px;
  }

  .weather-temperature {
    font-size: 16px;
  }

  .weather-popover {
    right: 0;
    left: auto;
  }
}

@media (max-width: 430px) {
  .live-panel.airport-board .live-head > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-panel.airport-board .meta-badges {
    justify-self: start;
  }

  .board-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .taxi-action {
    width: 100%;
  }

  .external-service-note {
    text-align: center;
  }
}

.coach-board-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.coach-board-tabs button {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.coach-board-tabs button.active {
  border-color: var(--green);
  background: rgba(70, 190, 120, .12);
  color: var(--text);
}

.coach-destinations,
.coach-destination-detail {
  padding: 8px;
}

.coach-destinations h3,
.coach-destination-detail h3 {
  margin: 0 2px 6px;
  font-size: 17px;
  line-height: 1.2;
}

.coach-destination-count {
  margin: 0 2px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.coach-destination-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.coach-destination-expand,
.coach-destination-back {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.coach-destination-expand::after {
  float: right;
  color: var(--muted);
  content: "›";
}

.coach-all-stops {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.coach-stop-search {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.coach-destination-card {
  display: grid;
  min-width: 0;
  min-height: 52px;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  text-align: left;
}

.coach-destination-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-destination-times {
  overflow: hidden;
  color: var(--yellow);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-destination-remaining {
  margin-left: 5px;
  color: var(--muted);
}

.coach-destination-detail {
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.coach-destination-detail h3 {
  padding: 0 10px 3px;
}

@media (max-width: 430px) {
  .coach-board-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--panel);
  }

  .coach-destination-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .coach-destination-card {
    min-height: 48px;
    padding: 6px 8px;
  }
}

.airport-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.airport-details div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.airport-details span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.airport-details strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.demo,
.badge.stale {
  border-color: rgba(255, 159, 46, .55);
  color: var(--orange);
}

.rotation-button {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 10px;
  font-size: 12px;
}

.rotation-button.active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.live-table {
  min-width: 0;
  overflow: hidden;
}

.vehicle-map-panel {
  margin: 12px 12px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 12, 20, .92);
}

.regional-stops-map-panel {
  min-width: 0;
}

.regional-stops-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.regional-stops-map-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.regional-stops-map-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.regional-stops-map-canvas {
  width: 100%;
  height: clamp(280px, 44vh, 460px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111923;
  overflow: hidden;
  touch-action: pan-x pan-y;
}

.regional-stop-marker-shell,
.regional-user-marker-shell {
  border: 0;
  background: transparent;
}

.regional-user-marker-shell {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
}

.regional-stop-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 3px solid #07101a;
  border-radius: 50%;
  background: #62b5ff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 12px rgba(0, 0, 0, .4);
  transition: width .15s ease, height .15s ease, background .15s ease, box-shadow .15s ease;
}

.regional-stop-marker-symbol {
  display: block;
  font-size: 11px;
  line-height: 1;
  filter: saturate(.85) contrast(1.15);
}

.regional-stop-marker.selected {
  width: 24px;
  height: 24px;
  border-color: #171201;
  background: var(--yellow);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 210, 63, .38), 0 5px 16px rgba(0, 0, 0, .48);
}

.regional-stop-marker.selected .regional-stop-marker-symbol {
  font-size: 14px;
}

.regional-route-number {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #258f4d;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.regional-route-number .svg-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.operator-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  max-width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  overflow-wrap: anywhere;
}

a.operator-brand {
  color: var(--text);
  text-decoration: none;
}

a.operator-brand:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.operator-ticket-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(255, 216, 77, .42);
  border-radius: 8px;
  background: rgba(255, 216, 77, .10);
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.operator-ticket-action:hover,
.operator-ticket-action:focus-visible {
  background: rgba(255, 216, 77, .18);
  border-color: rgba(255, 216, 77, .68);
}

.operator-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(140px, 100%);
  max-height: 36px;
  object-fit: contain;
  flex: 0 1 auto;
}

.operator-brand[data-operator-id="dfds"] {
  padding: 2px 4px;
  border-radius: 4px;
  background: #fff;
}

.operator-name-fallback {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.operator-name-fallback[hidden],
.operator-logo[hidden] {
  display: none !important;
}

.regional-trip-headsign {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.regional-departure-title {
  padding-top: 14px;
}

.regional-event-direction {
  margin-top: 5px;
  color: #8dccff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .03em;
  white-space: normal;
}

.regional-stop-popup-directions {
  margin-top: 5px;
}

.regional-stop-popup-directions > span {
  font-weight: 800;
}

.selected-object-routes {
  margin-top: 4px;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.regional-user-marker {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1677ff;
  box-shadow: 0 0 0 2px #0753b8, 0 0 0 6px rgba(22, 119, 255, .25), 0 3px 12px rgba(0, 0, 0, .5);
}

.regional-user-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid #0753b8;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.regional-stop-popup {
  min-width: 170px;
  color: #101820;
  font-size: 13px;
  line-height: 1.4;
}

.regional-stop-popup strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.regional-stop-popup button {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: #142a3d;
  color: #fff;
  font-weight: 800;
}

.regional-stop-popup-diagnostic {
  color: #52616e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

@media (max-width: 700px) {
  .regional-stops-map-panel {
    margin-inline: 8px;
    padding: 8px;
  }

  .regional-stops-map-canvas {
    height: min(58vh, 410px);
    min-height: 280px;
  }
}

/* One non-draggable transport map shared by every mode. */
.unified-transport-map {
  box-sizing: border-box;
  align-self: stretch;
  min-width: 0;
  width: calc(100% - 24px);
  max-width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
}

.unified-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.unified-map-header h2 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.15;
}

.unified-map-top-controls {
  flex: 1 0 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(7, 12, 20, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.unified-map-top-controls .map-transport-legend {
  flex: 1 1 auto;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
}

.unified-map-top-controls .map-transport-legend__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unified-map-radius-label {
  display: grid;
  align-items: center;
  min-height: 40px;
  color: var(--yellow);
  font-size: clamp(12px, 1.6vw, 15px);
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.unified-map-viewport {
  position: relative;
  min-width: 0;
  width: 100%;
}

.unified-map-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(7, 12, 20, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.unified-map-top-controls .unified-map-toolbar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.unified-map-controls {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 6px;
}

.unified-map-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.unified-map-controls button:disabled {
  opacity: .38;
}

.unified-map-controls button:focus-visible,
.unified-map-orientation-button:focus-visible,
.unified-map-pan-controls button:focus-visible,
.unified-map-popup button:focus-visible {
  outline: 3px solid rgba(255, 210, 63, .82);
  outline-offset: 2px;
}

.unified-map-orientation-control {
  border: 0;
  background: transparent;
}

.unified-map-orientation-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(7, 16, 26, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  color: #172334;
  font: 900 18px/1 system-ui, sans-serif;
  cursor: pointer;
}

.unified-map-orientation-button.is-heading {
  border-color: rgba(126, 70, 166, .88);
  background: #7e46a6;
  color: #fff;
}

.unified-map-orientation-heading {
  display: inline-block;
  transform: rotate(-90deg);
  font-size: 19px;
}

.unified-map-orientation-button [hidden] {
  display: none;
}

.unified-map-pan-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 4px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(7, 12, 20, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.unified-map-pan-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: rgba(7, 12, 20, .92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .38);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.unified-map-pan-controls button:hover {
  border-color: rgba(255, 210, 63, .8);
  color: var(--yellow);
}

.unified-map-focus-icon {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  margin: auto;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.unified-map-focus-icon::before {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.unified-map-focus-icon::after {
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-top-color: transparent;
  border-bottom-color: transparent;
  content: "";
}

.unified-transport-map-canvas {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: clamp(300px, 48vh, 620px);
  height: clamp(300px, 48svh, 620px);
  min-height: 300px;
  max-height: 620px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101923;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.unified-transport-map-canvas .leaflet-container,
.unified-transport-map-canvas.leaflet-container {
  touch-action: pan-y;
}

.unified-map-status {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.unified-map-status:empty {
  height: 0;
  min-height: 0;
  max-height: 0;
  margin-top: 0;
}

.unified-map-status[hidden] {
  display: none;
}

.unified-map-touch-hint {
  position: absolute;
  z-index: 500;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 32px);
  padding: 5px 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(7, 12, 20, .76);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  white-space: normal;
}

.unified-map-touch-hint[hidden] {
  display: none;
}

.unified-map-marker-shell,
.unified-map-cluster-shell,
.unified-map-user-shell,
.unified-map-active-center-shell {
  border: 0;
  background: transparent;
}

.unified-map-physical-choice-shell {
  background: transparent;
  border: 0;
}

.leaflet-physical-choice-pane {
  z-index: 700;
  pointer-events: none;
}

.unified-map-physical-choice-number {
  align-items: center;
  background: #111827;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgb(0 0 0 / 45%);
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-width: 28px;
  padding: 0 4px;
}

.unified-map-user-shell {
  width: 40px !important;
  height: 52px !important;
  max-width: none !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.unified-map-active-center-shell {
  width: 40px !important;
  height: 40px !important;
  max-width: none !important;
  overflow: visible !important;
}

.unified-map-major-hub-shell {
  width: 32px !important;
  height: 32px !important;
  max-width: none !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.unified-map-major-hub-icon {
  display: block;
  width: 32px;
  height: 32px;
  overflow: visible;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .48));
}

.unified-map-major-hub-background {
  fill: #687384;
  stroke: #07101a;
  stroke-width: 1.5;
}

.unified-map-major-hub-symbol {
  fill: #fff;
}

.unified-map-major-hub-icon--airport .unified-map-major-hub-background { fill: #20a9c9; }
.unified-map-major-hub-icon--ferry .unified-map-major-hub-background { fill: #8356c5; }
.unified-map-major-hub-icon--rail .unified-map-major-hub-background { fill: #e0b51b; }
.unified-map-major-hub-icon--bus .unified-map-major-hub-background { fill: #d87922; }
.unified-map-major-hub-icon--coach .unified-map-major-hub-background { fill: #258f4d; }
.unified-map-major-hub-icon--tram .unified-map-major-hub-background { fill: #d94b4b; }
.unified-map-major-hub-icon--trolleybus .unified-map-major-hub-background { fill: #2f80d0; }
.unified-map-major-hub-icon--metro .unified-map-major-hub-background { fill: #374151; }
.unified-map-major-hub-icon--hub .unified-map-major-hub-background { fill: #687384; }
.unified-map-major-hub-icon--rail .unified-map-major-hub-symbol { fill: #07101a; }

.unified-map-mixed-local-shell {
  width: 44px !important;
  height: 44px !important;
  max-width: none !important;
  overflow: visible !important;
}

.unified-map-mixed-local-icon {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: visible;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .48));
}

.unified-map-mixed-local-background {
  stroke: #07101a;
  stroke-width: 1.5;
}

.unified-map-mixed-local-part--bus .unified-map-mixed-local-background { fill: #d87922; }
.unified-map-mixed-local-part--tram .unified-map-mixed-local-background { fill: #d94b4b; }
.unified-map-mixed-local-part--trolleybus .unified-map-mixed-local-background { fill: #2f80d0; }
.unified-map-mixed-local-part--coach .unified-map-mixed-local-background { fill: #258f4d; }

.unified-map-mixed-local-symbol {
  fill: #fff;
}

.unified-map-mixed-local-selection-ring {
  fill: none;
  stroke: transparent;
  stroke-width: 3;
}

.unified-map-mixed-local-icon.is-selected .unified-map-mixed-local-selection-ring {
  stroke: #fff;
}

.unified-map-metro-symbol {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  fill: #fff;
}

.unified-map-stop-icon--city_bus_stop .unified-map-major-hub-background { fill: #d87922; }
.unified-map-stop-icon--regional_bus_stop .unified-map-major-hub-background,
.unified-map-stop-icon--intercity_bus_stop .unified-map-major-hub-background { fill: #258f4d; }
.unified-map-stop-icon--tram_stop .unified-map-major-hub-background { fill: #d94b4b; }
.unified-map-stop-icon--trolley_stop .unified-map-major-hub-background { fill: #2f80d0; }
.unified-map-stop-icon--rail_stop .unified-map-major-hub-background { fill: #e0b51b; }
.unified-map-stop-icon--rail_stop .unified-map-major-hub-symbol { fill: #07101a; }
.unified-map-stop-icon--unknown_stop .unified-map-major-hub-background { fill: #687384; }

.unified-map-active-center {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  max-width: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #687384;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .82), 0 5px 16px rgba(0, 0, 0, .52);
}

.unified-map-active-center svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.unified-map-active-center--bus { background: #d87922; color: #fff; }
.unified-map-active-center--coach { background: #258f4d; color: #fff; }
.unified-map-active-center--tram { background: #d94b4b; color: #fff; }
.unified-map-active-center--trolleybus { background: #2f80d0; color: #fff; }
.unified-map-active-center--metro { background: #374151; color: #fff; }
.unified-map-active-center--rail { background: #e0b51b; color: #07101a; }
.unified-map-active-center--airport { background: #20a9c9; color: #fff; }
.unified-map-active-center--ferry { background: #8356c5; color: #fff; }
.unified-map-active-center--hub { background: #687384; color: #fff; }

.unified-map-marker-shell {
  display: flex;
  align-items: center;
  overflow: visible !important;
}

.unified-map-marker {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #687384;
  color: #fff;
  box-shadow: 0 4px 13px rgba(0, 0, 0, .5);
}

.unified-map-marker svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.unified-map-marker--bus { background: #d87922; color: #fff; }
.unified-map-marker--coach { background: #258f4d; color: #fff; }
.unified-map-marker--tram { background: #d94b4b; color: #fff; }
.unified-map-marker--trolleybus { background: #2f80d0; color: #fff; }
.unified-map-marker--metro { background: #374151; color: #fff; }
.unified-map-marker--rail { background: #e0b51b; color: #07101a; }
.unified-map-marker--airport { background: #20a9c9; color: #fff; }
.unified-map-marker--ferry { background: #8356c5; color: #fff; }
.unified-map-marker--hub { background: #687384; color: #fff; }

.unified-map-marker.is-selected {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 6px rgba(7, 16, 26, .42), 0 5px 16px rgba(0, 0, 0, .52);
}

.unified-map-marker-label {
  display: block;
  max-width: 112px;
  margin-left: 5px;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 6px;
  background: rgba(7, 12, 20, .9);
  color: #fff;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .32);
}

.unified-map-cluster {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #16263a;
  color: var(--yellow);
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 0 0 3px rgba(255, 210, 63, .32), 0 5px 16px rgba(0, 0, 0, .52);
}

.unified-map-user-pin {
  display: block;
  width: 40px;
  height: 52px;
  overflow: visible;
  pointer-events: none;
}

.unified-map-user-pin svg {
  display: block;
  width: 40px;
  height: 52px;
  overflow: visible;
}

.unified-map-user-pin-body {
  fill: #e53935;
  stroke: #fff;
  stroke-width: 2.5;
}

.unified-map-user-pin-shadow {
  fill: #000;
  stroke: none;
  opacity: .34;
}

.unified-map-user-pin-center {
  fill: #fff;
  stroke: #a90f14;
  stroke-width: 1.5;
}

.unified-map-user-pin.is-fallback .unified-map-user-pin-body {
  fill: #ef7d25;
}

.unified-transport-map[hidden] + .map-transport-legend {
  display: none;
}

.map-transport-legend {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 12, 20, .82);
}

.map-transport-legend__title {
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-transport-legend__items {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
}

.map-transport-legend__item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #dbe4ef;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.map-transport-filter-menu {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #dbe4ef;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.map-transport-filter-menu__caret {
  color: currentColor;
  font-size: 12px;
  line-height: 1;
}

.map-transport-filter-menu.active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.map-transport-filter-panel {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  padding-top: 1px;
}

.map-transport-filter-panel[hidden] {
  display: none;
}

.map-transport-filter {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: #dbe4ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.map-transport-filter.active {
  border-color: var(--yellow);
  background: rgba(255, 214, 10, .12);
  color: #fff;
}

.map-transport-filter--inactive {
  border-style: dashed;
}

.map-transport-filter__toggle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.map-transport-filter__toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dbe4ef;
  transition: transform .15s ease;
}

.map-transport-filter--inactive.active .map-transport-filter__toggle::after {
  transform: translateX(12px);
  background: var(--yellow);
}

.map-transport-filter__icons {
  display: inline-flex;
  align-items: center;
}

.map-transport-filter__icons .map-transport-legend__marker {
  width: 22px;
  height: 22px;
}

.map-transport-filter__icons .map-transport-legend__marker + .map-transport-legend__marker {
  margin-left: -6px;
}

.city-map-location-cta {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  text-align: center;
}

.city-map-location-cta p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.city-map-location-cta button {
  width: auto;
  min-height: 42px;
  padding-inline: 16px;
}

.map-transport-legend__preview {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.map-transport-legend__marker {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .42));
}

.map-transport-legend__preview--gps .unified-map-user-pin {
  position: absolute;
  top: -13px;
  left: -8px;
  transform: scale(.46);
  transform-origin: center;
}

.map-transport-legend__selected-ring {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .42), 0 2px 5px rgba(0, 0, 0, .5);
}

@media (max-width: 430px) {
  .unified-map-top-controls {
    gap: 6px;
    padding: 5px;
  }

  .unified-map-top-controls .map-transport-legend {
    padding: 6px 2px;
  }

  .map-transport-legend {
    padding: 9px 10px;
  }

  .map-transport-legend__items {
    gap: 6px 8px;
  }

  .map-transport-legend__item {
    font-size: 11px;
  }

  .map-transport-filter {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding-inline: 6px;
  }
}

.unified-map-popup-shell .leaflet-popup-content-wrapper,
.unified-map-popup-shell .leaflet-popup-tip {
  background: #070c14;
  color: #fff;
}

.unified-map-popup-shell .leaflet-popup-content-wrapper {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.unified-map-popup-shell .leaflet-popup-close-button {
  color: #fff !important;
}

.unified-map-popup {
  min-width: min(230px, 72vw);
  max-width: 280px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.unified-map-popup strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.map-stop-overlay {
  position: absolute !important;
  z-index: 1000;
  display: block;
  flex: none;
  flex-shrink: 0;
  box-sizing: border-box !important;
  width: max-content;
  min-width: 0;
  max-width: 320px;
  max-height: min(56%, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 11px 34px 11px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: #070c14;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .map-stop-overlay {
    max-width: min(290px, calc(100% - 20px));
    max-height: min(52%, 320px);
    padding: 9px 32px 9px 10px;
  }

  .map-physical-choice {
    padding: 5px 7px;
  }
}

.map-stop-overlay[hidden] {
  display: none !important;
}

.map-stop-overlay__close {
  position: absolute;
  top: 3px;
  right: 3px;
  box-sizing: border-box;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 26px;
  text-align: center;
}

.map-stop-overlay__close:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .9);
  outline-offset: 0;
}

.map-stop-overlay__title,
.map-stop-overlay__routes,
.map-stop-overlay__route-line {
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.map-stop-overlay__title {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.map-stop-overlay__routes {
  margin-top: 5px;
  color: #e8edf3;
  font-weight: 750;
  line-height: 1.45;
}

.map-stop-overlay__route-line + .map-stop-overlay__route-line {
  margin-top: 2px;
}

.map-stop-overlay__route-line.is-action,
.map-stop-overlay__open-schedule {
  width: 100%;
  margin-top: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.map-stop-overlay__route-line.is-action:focus-visible,
.map-stop-overlay__open-schedule:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .9);
  outline-offset: 1px;
}

.unified-map-popup-muted {
  color: #b9c5d4;
}

.unified-map-popup-modes {
  margin-top: 6px;
  color: #8dccff;
  font-weight: 850;
}

.unified-map-popup-routes {
  margin-top: 7px;
}

.unified-map-popup-routes > span {
  display: block;
  margin-bottom: 4px;
  color: #d8e0ea;
  font-weight: 850;
}

.unified-map-route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.unified-map-route-list button,
.unified-map-more {
  min-width: 34px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 210, 63, .66);
  border-radius: 6px;
  background: rgba(255, 210, 63, .1);
  color: var(--yellow);
  font-weight: 900;
}

.unified-map-open-schedule {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--yellow);
  color: #101820;
  font-weight: 950;
}

@media (max-width: 767px) {
  .unified-transport-map {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin: 10px 8px 12px;
    padding: 8px;
  }

  .unified-map-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .unified-map-toolbar {
    gap: 5px;
  }

  .unified-map-controls {
    grid-template-columns: repeat(3, 44px);
  }

  .unified-map-pan-controls {
    margin-top: 8px;
    gap: 5px;
  }

  .unified-map-radius-label {
    min-height: 38px;
  }

  .unified-transport-map-canvas {
    height: clamp(300px, 46svh, 440px);
    min-height: 300px;
    max-height: 440px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 430px) {
  .unified-map-radius-label {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .unified-transport-map-canvas {
    height: clamp(320px, 42vh, 500px);
    max-height: 500px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 350px) {
  .unified-map-popup {
    min-width: min(205px, 68vw);
  }

  .unified-map-marker-label {
    max-width: 92px;
  }
}

.vehicle-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vehicle-map-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.vehicle-map-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.vehicle-map-fit,
.vehicle-map-filters button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-map-fit {
  flex: 0 0 auto;
  padding: 0 10px;
}

.vehicle-map-filters,
.vehicle-map-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vehicle-map-filters button,
.vehicle-map-layers button {
  padding: 0 10px;
}

.vehicle-map-filters button.active,
.vehicle-map-layers button.active {
  border-color: var(--yellow);
  background: rgba(255, 210, 63, .14);
  color: var(--yellow);
}

.vehicle-map-layers {
  margin-top: -2px;
  gap: 6px;
}

.vehicle-map-layers button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 18, 29, .92);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.vehicle-map-viewport {
  position: relative;
  min-width: 0;
}

.vehicle-map-canvas {
  width: 100%;
  height: clamp(480px, 48vh, 560px);
  height: clamp(480px, 48svh, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101923;
}

.vehicle-map-fullscreen {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(14, 23, 37, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #132033;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
  display: none !important;
}

.vehicle-map-nearby-badge {
  position: absolute;
  left: 10px;
  bottom: 28px;
  z-index: 500;
  max-width: calc(100% - 20px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 210, 63, .42);
  border-radius: 8px;
  background: rgba(7, 12, 20, .88);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.vehicle-map-fit:focus-visible,
.vehicle-map-filters button:focus-visible,
.vehicle-map-layers button:focus-visible,
.vehicle-map-fullscreen:focus-visible {
  outline: 3px solid rgba(255, 210, 63, .78);
  outline-offset: 2px;
}

.vehicle-map-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-map-attribution {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.vehicle-marker {
  display: grid;
  place-items: center;
}

.vehicle-marker strong {
  min-width: 48px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  z-index: 1;
  padding: 0 8px;
  border: 1px solid rgba(255, 210, 63, .78);
  border-radius: 999px;
  background: rgba(7, 12, 20, .93);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .38);
}

.vehicle-marker-bus strong,
.vehicle-marker-night-bus strong {
  color: #bfdbfe;
}

.vehicle-marker-tram strong {
  color: #bbf7d0;
}

.vehicle-marker-trolleybus strong {
  color: var(--yellow);
}

.vehicle-user-marker,
.vehicle-stop-marker {
  display: grid;
  place-items: center;
}

.vehicle-user-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(229, 57, 53, .24);
  transform: translate(-50%, -42%);
  animation: vehicle-user-pulse 1.8s ease-out infinite;
}

.vehicle-user-pin {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 42px;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}

.vehicle-user-pin path {
  fill: #e53935;
  stroke: #fff;
  stroke-width: 2.5;
}

.vehicle-user-pin circle {
  fill: #fff;
}

@keyframes vehicle-user-pulse {
  0% {
    opacity: .72;
    transform: translate(-50%, -42%) scale(.72);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(1.45);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(1.45);
  }
}

.vehicle-stop-marker span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 210, 63, .72);
  border-radius: 999px;
  background: rgba(7, 12, 20, .94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .32);
}

.vehicle-stop-marker svg {
  width: 14px;
  height: 14px;
  fill: var(--yellow);
}

.vehicle-map-popup {
  max-width: min(220px, 72vw);
  color: #111;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 750;
}

.vehicle-map-popup div + div {
  margin-top: 3px;
}

.vehicle-popup-compact {
  min-width: min(230px, 76vw);
  max-width: min(300px, 82vw);
}

.vehicle-popup-compact div {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.vehicle-stop-popup {
  min-width: min(230px, 72vw);
  max-width: min(290px, 78vw);
}

.vehicle-stop-popup strong {
  display: block;
  margin-bottom: 3px;
}

.vehicle-map-popup-muted {
  color: #4b5563;
  font-size: 12px;
}

.vehicle-stop-popup ul {
  display: grid;
  gap: 5px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.vehicle-stop-popup li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vehicle-stop-popup li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-stop-popup li em {
  color: #92400e;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.railway-map-open {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 210, 63, .14);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.railway-map-open:focus-visible {
  outline: 3px solid rgba(255, 210, 63, .78);
  outline-offset: 2px;
}

.railway-map-panel .vehicle-map-canvas {
  height: clamp(430px, 52vh, 560px);
  height: clamp(430px, 52svh, 560px);
}

.railway-map-note {
  margin-top: 4px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 850;
}

.railway-map-popup {
  max-width: min(220px, 72vw);
  color: #111;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}

.railway-map-popup button {
  min-height: 34px;
  margin-top: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #132033;
  color: #fff;
  font-weight: 850;
}

.railway-user-marker {
  display: grid;
  place-items: center;
}

.railway-user-marker span {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #1d6fd1;
  box-shadow: 0 0 0 5px rgba(29, 111, 209, .25), 0 4px 12px rgba(0, 0, 0, .38);
}

.vehicle-map--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  margin: 0;
  padding:
    max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: rgba(7, 12, 20, .98);
}

.vehicle-map--fullscreen .vehicle-map-viewport {
  min-height: 0;
}

.vehicle-map--fullscreen .vehicle-map-canvas {
  height: 100%;
  min-height: 0;
}

.vehicle-map--fullscreen .vehicle-map-header {
  margin-bottom: 8px;
}

.vehicle-map--fullscreen .vehicle-map-attribution {
  padding-bottom: env(safe-area-inset-bottom);
}

.vehicle-map--fullscreen .vehicle-map-fullscreen {
  top: 12px;
  right: 12px;
}

.live-header {
  display: none !important;
}

.board-section {
  min-width: 0;
}

.board-section + .board-section {
  margin-top: 10px;
}

.board-section-title {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 5px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.board-section.arrival .board-section-title {
  color: var(--green);
}

.board-section.departure .board-section-title {
  color: var(--orange);
}

.live-row {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.live-row.template-airport,
.live-row.template-ferry {
  grid-template-columns: 46px minmax(96px, 112px) minmax(0, 1.15fr) minmax(0, .8fr) minmax(112px, .58fr);
  grid-template-areas: "mode time place service status";
}

.live-row.template-train,
.live-row.template-bus {
  grid-template-columns: 112px minmax(180px, 1.2fr) minmax(112px, .55fr) minmax(108px, .52fr) minmax(132px, .58fr);
  grid-template-areas: "time place service facility status";
}

.live-row.no-status.template-airport,
.live-row.no-status.template-ferry {
  grid-template-columns: 46px minmax(96px, 112px) minmax(0, 1.15fr) minmax(0, .8fr);
  grid-template-areas: "mode time place service";
}

.live-row.no-status.template-train,
.live-row.no-status.template-bus {
  grid-template-columns: 112px minmax(180px, 1.2fr) minmax(112px, .55fr) minmax(108px, .52fr);
  grid-template-areas: "time place service facility";
}

.event-mode {
  grid-area: mode;
  display: grid;
  place-items: center;
  min-width: 0;
}

.live-row.template-train .event-mode,
.live-row.template-bus .event-mode {
  display: none;
}

.event-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
}

.event-icon .svg-icon {
  width: 28px;
  height: 28px;
}

.event-icon.arrival { color: var(--green); }
.event-icon.departure { color: var(--orange); }

.live-panel.bus-city-board .event-icon.bus { background: #d87922; color: #fff; }
.live-panel.bus-city-board .event-icon.tram { background: #d94b4b; color: #fff; }
.live-panel.bus-city-board .event-icon.trolleybus { background: #2f80d0; color: #fff; }
.live-panel.bus-city-board .event-icon.metro { background: #a855f7; color: #fff; }
.live-panel.bus-city-board .event-icon.unknown { background: #f59e42; color: #2c1200; }

.local-stop-name {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-route-display {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.transport-route-display .svg-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 6px;
  background: var(--transport-mode-color);
  color: #fff;
}

.local-route-display.bus { --transport-mode-color: #d87922; color: #d87922; }
.local-route-display.tram { --transport-mode-color: #d94b4b; color: #d94b4b; }
.local-route-display.trolleybus { --transport-mode-color: #2f80d0; color: #2f80d0; }
.local-route-display.metro { --transport-mode-color: #343a40; color: #aeb6bf; }
.local-route-display.unknown { --transport-mode-color: #53657a; color: #b8c4d1; }
.coach-route-display { --transport-mode-color: #258f4d; color: #258f4d; }

.local-stop-name--mobile {
  margin-top: 2px;
  text-transform: none;
}

.event-time {
  grid-area: time;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--yellow);
  font-size: clamp(34px, 4vw, 58px);
  line-height: .95;
  font-weight: 950;
  white-space: nowrap;
}

.event-time-value {
  display: block;
  line-height: .95;
}

.flight-time-block.next-day {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.flight-day-label {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-size: .36em;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.flight-time-main {
  display: block;
  color: currentColor;
  line-height: .95;
  white-space: nowrap;
}

.event-time-original {
  display: block;
  color: var(--yellow);
  font-size: .52em;
  line-height: .95;
  font-weight: 650;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.event-time.time-urgent,
.event-time.time-status-arriving,
.event-time.time-status-arrived,
.event-time.time-status-boarding,
.event-time.time-status-sailing {
  color: var(--green);
}

.event-time.time-status-delayed,
.event-time.time-status-en-route,
.event-time.time-status-gate-closed {
  color: var(--orange);
}

.event-time.time-status-cancelled,
.event-time.time-status-departed,
.event-time.time-status-left {
  color: var(--red);
}

.live-row.template-airport .event-time.time-status-gate-closed {
  color: var(--red);
}

.destination-weather-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  min-width: 68px;
  min-height: 42px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.destination-weather-button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.destination-weather-popover {
  position: fixed;
  z-index: 20000;
  width: min(260px, calc(100vw - 24px));
  min-width: 230px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
  color: var(--text);
}

.destination-weather-title {
  margin-bottom: 9px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-weather-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.destination-weather-now {
  padding-top: 0;
  color: var(--text);
}

.destination-weather-row span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.destination-weather-row strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.event-place {
  grid-area: place;
  min-width: 0;
}

.event-destination,
.event-main-row,
.event-main {
  min-width: 0;
}

.event-main-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.event-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.02;
  font-weight: 950;
}

.tallinn-airport-arrival {
  padding-top: 7px;
  padding-bottom: 7px;
}

.tallinn-airport-arrival .event-main {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-sub {
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.airport-arrival-guidance {
  display: grid;
  gap: 2px;
  max-width: 100%;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.18;
}

.airport-arrival-guidance.state-delayed {
  color: #f6b84f;
}

.airport-arrival-guidance.state-arrived {
  color: #5dd39e;
}

.airport-arrival-guidance.state-cancelled {
  color: #ff6b6b;
}

.airport-arrival-advice {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-service {
  grid-area: service;
}

.live-row.template-airport .event-service {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px 6px;
  overflow: visible;
  text-overflow: clip;
}

.event-facility {
  grid-area: facility;
}

.live-row.template-airport .event-facility,
.live-row.template-ferry .event-facility {
  display: none;
}

.event-service,
.event-facility,
.event-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: clamp(15px, 1.7vw, 23px);
  font-weight: 950;
}

.event-service .badge,
.event-facility .badge {
  max-width: 100%;
}

.live-row.template-airport .event-service .badge {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-row.template-airport .event-service .airline-logo-link {
  width: 120px;
  height: 42px;
  padding: 5px 8px;
  border: 1px solid #334158;
  border-radius: 999px;
  background-color: #C8C8C8;
  opacity: 1;
  text-decoration: none;
  overflow: hidden;
  justify-content: center;
}

.airline-logo-badge-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.airline-logo-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.event-ticket-desktop {
  display: inline-flex;
  margin-top: 6px;
}

.event-flight-actions {
  display: inline-flex;
  max-width: 100%;
}

.flight-checkin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 216, 77, .46);
  border-radius: 8px;
  background: rgba(255, 216, 77, .10);
  color: var(--yellow);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.flight-checkin-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flight-checkin-action:hover,
.flight-checkin-action:focus-visible {
  background: rgba(255, 216, 77, .18);
  border-color: rgba(255, 216, 77, .68);
}

.ferry-ticket-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 216, 77, .42);
  border-radius: 8px;
  background: rgba(255, 216, 77, .10);
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.ferry-ticket-action:hover,
.ferry-ticket-action:focus-visible {
  background: rgba(255, 216, 77, .18);
  border-color: rgba(255, 216, 77, .68);
}

.event-mobile-action {
  display: none;
}

.event-status {
  grid-area: status;
  justify-self: end;
  max-width: 100%;
  text-align: right;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.airport-arrival-status {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.airport-arrival-status span {
  display: block;
}

.airport-arrival-status strong {
  display: block;
  font: inherit;
}

.event-status-mobile {
  display: none;
}

.event-airline-brand {
  display: none;
}

.event-airport-mobile-card {
  display: none;
}

.event-status.on-time,
.event-status.arriving,
.event-status.boarding,
.event-status.sailing,
.event-status.arrived { color: var(--green); }
.event-status.scheduled,
.event-status.estimated { color: var(--muted); }
.event-status.en-route { color: var(--blue); }
.event-status.delayed,
.event-status.last-call,
.event-status.gate-closed { color: var(--orange); }
.event-status.cancelled,
.event-status.departed,
.event-status.left { color: var(--red); }

.event-mobile-meta {
  display: none;
}

.frequency-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  grid-template-areas:
    "route actions"
    "details actions";
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.frequency-route {
  grid-area: route;
  min-width: 0;
  color: var(--yellow);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  font-weight: 950;
}

.frequency-route span { color: var(--muted); }

.frequency-details {
  grid-area: details;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.frequency-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.source-mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.empty {
  padding: 18px 14px;
  color: var(--muted);
  font-weight: 850;
}

.pager {
  display: grid;
  grid-template-columns: 136px minmax(110px, 1fr) 136px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.pager button {
  min-height: 46px;
}

.region-empty {
  display: grid;
  gap: 12px;
  padding: 18px 14px;
  color: var(--text);
  font-weight: 850;
}

.region-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-actions button,
.coverage-close {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}

.coverage-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .58);
}

.coverage-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(80vh, 620px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #080d15;
  box-shadow: 0 22px 60px var(--shadow);
}

.coverage-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 34px;
  padding: 0;
}

.coverage-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.coverage-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.pager button:disabled {
  opacity: .38;
}

#pageLabel {
  text-align: center;
  color: var(--muted);
  font-weight: 950;
}

/* tablet and compact desktop: keep schedule row columns independent on iPad landscape. */
@media (min-width: 768px) and (max-width: 1366px) {
  .app {
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(44px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: 90px;
    padding: 12px 66px 12px 12px;
  }

  .language-toggle {
    min-width: 44px;
    min-height: 32px;
    font-size: 12px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: clamp(32px, 6vw, 54px);
  }

  .skyline {
    display: none;
  }

  .mode-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .mode-tabs button {
    min-height: 48px;
    font-size: 14px;
  }

  .location-card {
    grid-template-columns: 1fr;
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .location-card.is-compact {
    grid-template-columns: 1fr;
  }

  .start-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    height: auto;
  }

  .hubs-panel,
  .live-panel {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
  }

  .hub-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .hub-group {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
  }

  .hub-group-title {
    align-self: center;
    flex: 0 0 auto;
    margin: 0 2px;
  }

  .hub-card {
    width: clamp(230px, 31vw, 280px);
    min-width: clamp(230px, 31vw, 280px);
    max-width: 280px;
    min-height: 66px;
    grid-template-columns: 36px minmax(0, 1fr) 24px minmax(58px, max-content);
    gap: 8px;
    padding: 8px;
    scroll-snap-align: start;
  }

  .hub-card.active {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(255, 210, 63, .26), 0 0 18px rgba(255, 210, 63, .12);
  }

  .hub-icon {
    width: 34px;
    height: 34px;
  }

  .hub-name {
    font-size: 16px;
    white-space: normal;
  }

  .live-row.template-airport,
  .live-row.template-ferry,
  .live-row.template-train,
  .live-row.template-bus {
    grid-template-columns: 34px minmax(96px, 110px) minmax(0, 1.1fr) minmax(0, .85fr) minmax(96px, 120px);
    grid-template-areas: "mode time place service status";
  }

  .live-row.no-status.template-airport,
  .live-row.no-status.template-ferry,
  .live-row.no-status.template-train,
  .live-row.no-status.template-bus {
    grid-template-columns: 34px minmax(96px, 110px) minmax(0, 1.1fr) minmax(0, .85fr);
    grid-template-areas: "mode time place service";
  }

  .live-row {
    min-height: auto;
    padding: 7px 12px;
  }

  .live-row.template-train .event-mode,
  .live-row.template-bus .event-mode {
    display: grid;
  }

  .live-row.template-train .event-facility,
  .live-row.template-bus .event-facility {
    display: none;
  }

  .event-time {
    font-size: 34px;
  }

  .event-main {
    font-size: 24px;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .event-service,
  .event-facility,
  .event-status {
    font-size: 15px;
    overflow: visible;
    text-overflow: clip;
  }

  .event-service {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px 6px;
    min-width: 0;
  }

  .event-service .badge {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-status {
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* desktop airport board: keep flight rows compact on wide screens. */
@media (min-width: 1280px) {
  .board-layout {
    width: min(100%, 1580px);
    max-width: 1580px;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  }

  .live-panel.airport-board .live-table {
    max-width: 1560px;
    margin-right: auto;
    margin-left: auto;
  }

  .live-panel.airport-board .live-row.template-airport {
    grid-template-columns: 42px 158px minmax(260px, 1fr) minmax(150px, 210px) minmax(78px, 96px) minmax(132px, 168px);
    grid-template-areas: "mode time place service facility status";
    column-gap: 14px;
    min-height: 72px;
    padding: 9px 18px 9px 14px;
  }

  .live-panel.airport-board .live-row.no-status.template-airport {
    grid-template-columns: 42px 158px minmax(260px, 1fr) minmax(150px, 210px) minmax(78px, 96px);
    grid-template-areas: "mode time place service facility";
  }

  .live-panel.airport-board .event-time {
    min-width: 0;
    font-size: clamp(34px, 2.8vw, 48px);
  }

  .live-panel.airport-board .event-main {
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.04;
  }

  .live-panel.airport-board .event-service {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .live-panel.airport-board .event-service .airport-service-facility {
    display: none;
  }

  .live-panel.airport-board .event-service .airline-logo-link {
    width: 112px;
    height: 38px;
  }

  .live-panel.airport-board .event-facility {
    display: flex;
    grid-area: facility;
    align-self: center;
    justify-self: start;
    min-width: 0;
    overflow: visible;
  }

  .live-panel.airport-board .event-facility .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-panel.airport-board .event-status {
    align-self: center;
    justify-self: start;
    width: auto;
    max-width: 168px;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* Desktop transport boards: keep time, route, service and status visually connected. */
@media (min-width: 900px) {
  .live-table.mode-ports,
  .live-table.mode-buses,
  .live-table.mode-trains {
    width: min(100%, 1240px);
    margin-right: auto;
    margin-left: auto;
  }

  .live-row.template-ferry {
    grid-template-columns:
      38px
      minmax(108px, 136px)
      minmax(280px, 1fr)
      minmax(180px, 260px)
      minmax(145px, 180px);
    grid-template-areas: "mode time place service status";
  }

  .live-row.template-train,
  .live-row.template-bus {
    grid-template-columns:
      38px
      minmax(108px, 136px)
      minmax(250px, 1fr)
      minmax(145px, 220px)
      minmax(78px, 112px)
      minmax(145px, 180px);
    grid-template-areas: "mode time place service facility status";
  }

  .live-row.no-status.template-ferry {
    grid-template-columns:
      38px
      minmax(108px, 136px)
      minmax(280px, 1fr)
      minmax(180px, 260px);
    grid-template-areas: "mode time place service";
  }

  .live-row.no-status.template-train,
  .live-row.no-status.template-bus {
    grid-template-columns:
      38px
      minmax(108px, 136px)
      minmax(250px, 1fr)
      minmax(145px, 220px)
      minmax(78px, 112px);
    grid-template-areas: "mode time place service facility";
  }

  .live-row.template-ferry,
  .live-row.template-train,
  .live-row.template-bus {
    min-height: 84px;
    height: auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 11px 12px;
  }

  .live-row.template-train .event-mode,
  .live-row.template-bus .event-mode {
    display: grid;
  }

  .live-row.template-ferry .event-time,
  .live-row.template-train .event-time,
  .live-row.template-bus .event-time {
    min-width: 0;
    font-size: clamp(32px, 2.5vw, 44px);
  }

  .live-row.template-ferry .event-place,
  .live-row.template-train .event-place,
  .live-row.template-bus .event-place,
  .live-row.template-ferry .event-service,
  .live-row.template-train .event-service,
  .live-row.template-bus .event-service,
  .live-row.template-train .event-facility,
  .live-row.template-bus .event-facility,
  .live-row.template-ferry .event-status,
  .live-row.template-train .event-status,
  .live-row.template-bus .event-status {
    min-width: 0;
  }

  .live-row.template-ferry .event-main,
  .live-row.template-train .event-main,
  .live-row.template-bus .event-main {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.12;
  }

  .live-row.template-ferry .event-service,
  .live-row.template-train .event-service,
  .live-row.template-bus .event-service {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.2;
  }

  .live-row.template-train .event-facility,
  .live-row.template-bus .event-facility {
    display: flex;
    align-self: center;
    justify-self: start;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(14px, 1.1vw, 16px);
  }

  .live-row.template-ferry .event-service .badge,
  .live-row.template-train .event-service .badge,
  .live-row.template-bus .event-service .badge,
  .live-row.template-train .event-facility .badge,
  .live-row.template-bus .event-facility .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-row.template-ferry .event-ticket-desktop {
    margin-top: 0;
  }

  .live-row.template-ferry .event-status,
  .live-row.template-train .event-status,
  .live-row.template-bus .event-status {
    align-self: center;
    justify-self: start;
    width: auto;
    max-width: 180px;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.2;
  }

  .live-row.template-bus .operator-logo {
    max-width: min(150px, 100%);
  }
}

/* mobile: <768px */
@media (max-width: 767px) {
  .vehicle-map-panel {
    margin: 10px;
    padding: 10px;
  }

  .vehicle-map-header {
    display: grid;
    gap: 10px;
  }

  .vehicle-map-fit {
    width: 100%;
  }

  .vehicle-map-filters,
  .vehicle-map-layers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-map-filters button,
  .vehicle-map-layers button {
    width: 100%;
    padding: 0 8px;
  }

  .vehicle-map-layers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-map-canvas {
    height: clamp(400px, 58vh, 460px);
    height: clamp(400px, 58svh, 460px);
  }

  .railway-map-panel .vehicle-map-canvas {
    height: clamp(420px, 58vh, 500px);
    height: clamp(420px, 58svh, 500px);
  }

  body {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
  }

  .app {
    gap: 7px;
    padding: max(8px, env(safe-area-inset-top)) 8px calc(140px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .transport-board-page .hero {
    min-height: 66px;
    align-items: flex-start;
    padding: 8px 58px 8px 8px;
    border-radius: 10px;
  }

  .language-switcher {
    top: max(7px, env(safe-area-inset-top));
    right: max(7px, env(safe-area-inset-right));
    gap: 8px;
  }

  .header-icon-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .header-icon-button svg {
    width: 18px;
    height: 18px;
  }

  .language-toggle {
    min-width: 42px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .language-dropdown {
    width: 78px;
  }

  .location-card,
  .location-card.is-compact {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    grid-template-columns: 1fr;
    gap: 14px;
    margin-inline: auto;
    padding: 14px;
    overflow: visible;
  }

  .location-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .location-message {
    font-size: 15px;
  }

  .geo-choice .primary-action {
    min-height: 54px;
    font-size: 16px;
  }

  .manual-search input {
    min-width: 0;
    font-size: 16px;
  }

  .start-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .current-location-bar {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin-inline: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .current-location-bar button {
    min-height: 38px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-width: 2px;
    border-radius: 9px;
  }

  .brand-mark::before {
    width: 24px;
    height: 15px;
    border-width: 3px;
    border-bottom-width: 5px;
  }

  .brand-mark span {
    bottom: 7px;
    width: 6px;
    height: 6px;
  }

  .brand-mark span:nth-child(1) { left: 12px; }
  .brand-mark span:nth-child(2) { right: 12px; }
  .brand-mark span:nth-child(3) {
    top: 12px;
    width: 18px;
    height: 3px;
  }

  h1 {
    font-size: clamp(24px, 8.4vw, 36px);
  }

  .hero-tagline {
    margin-top: 2px;
    font-size: clamp(11px, 3.3vw, 14px);
  }

  .hero-meta {
    margin-top: 3px;
    gap: 2px 0;
    font-size: 11px;
  }

  .hero-meta span {
    line-height: 1.15;
  }

  .hero-meta #updatedLine,
  .hero-meta #windowLine,
  .hero-meta #sourceLine {
    display: inline-flex;
    align-items: center;
  }

  .hero-meta #windowLine::before,
  .hero-meta #sourceLine::before {
    content: "·";
    margin: 0 5px;
    color: var(--muted);
  }

  .skyline {
    display: none;
  }

  .mode-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mode-tabs::-webkit-scrollbar {
    display: none;
  }

  .mode-tabs button {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 44px;
    padding: 0 12px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    font-size: 13px;
  }

  .location-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .location-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .location-title {
    font-size: 16px;
  }

  .location-message {
    font-size: 12px;
  }

  .board-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-title {
    padding: 9px 10px 6px;
    font-size: 16px;
  }

  .hub-list {
    gap: 6px;
    padding: 6px 8px 8px;
  }

  .hub-group {
    gap: 6px;
  }

  .hub-group-title {
    margin-top: 4px;
    font-size: 10px;
  }

  .hub-card {
    min-height: 54px;
    max-height: 104px;
    grid-template-columns: 32px minmax(0, 1fr) 22px minmax(52px, max-content);
    gap: 7px;
    padding: 6px 7px;
    border-radius: 8px;
  }

  .hub-icon {
    width: 30px;
    height: 30px;
  }

  .hub-icon .svg-icon {
    width: 20px;
    height: 20px;
  }

  .hub-name {
    font-size: 14px;
  }

  .hub-city,
  .hub-selected {
    font-size: 10px;
  }

  .hub-distance {
    font-size: 13px;
  }

  .live-head {
    padding-right: 8px;
  }

  .selected-meta {
    padding: 0 10px 7px;
  }

  .selected-name {
    font-size: 14px;
  }

  .airport-details {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .rotation-button {
    min-width: 64px;
    min-height: 28px;
    margin-top: 8px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
  }

  .board-section + .board-section {
    margin-top: 7px;
  }

  .board-section-title {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .live-row {
    min-height: 52px;
    column-gap: 14px;
    row-gap: 4px;
    padding: 7px 8px;
  }

  .live-row.template-airport,
  .live-row.template-ferry {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "icon time"
      ". destination"
      ". status"
      ". meta"
      ". action";
    column-gap: 16px;
  }

  .live-row.template-ferry {
    grid-template-columns: 28px minmax(76px, 92px) minmax(0, 1fr);
    grid-template-areas:
      "icon time destination"
      ". meta meta"
      ". status status"
      ". action action";
    column-gap: 8px;
    row-gap: 3px;
    min-height: 0;
    height: auto;
    padding: 6px 8px;
  }

  .live-row.template-train,
  .live-row.template-bus {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas:
      "time destination"
      ". meta"
      ". status";
  }

  .live-row.no-status.template-airport,
  .live-row.no-status.template-ferry {
    grid-template-areas:
      "icon time"
      ". destination"
      ". meta"
      ". action";
  }

  .live-row.no-status.template-ferry {
    grid-template-areas:
      "icon time destination"
      ". meta meta"
      ". action action";
  }

  .live-row.no-status.template-train,
  .live-row.no-status.template-bus {
    grid-template-areas:
      "time destination"
      ". meta";
  }

  /* Mobile train cards can contain an explicit operator ticket action. */
  .live-row.template-train {
    grid-template-areas:
      "time destination"
      ". meta"
      ". status"
      ". action";
  }

  .live-row.no-status.template-train {
    grid-template-areas:
      "time destination"
      ". meta"
      ". action";
  }

  .event-mode {
    grid-area: icon;
    display: grid;
    place-items: center;
    min-width: 0;
  }

  .live-row.template-train .event-mode,
  .live-row.template-bus .event-mode {
    display: none;
  }

  .event-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .event-icon .svg-icon {
    width: 22px;
    height: 22px;
  }

  .event-time {
    grid-area: time;
    align-items: flex-start;
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: .95;
    white-space: nowrap;
    position: static;
    margin: 0;
    transform: none;
  }

  .destination-weather-button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 18px;
  }

  .live-row.template-airport .event-time,
  .live-row.template-ferry .event-time {
    width: auto;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(30px, 8vw, 38px);
  }

  .live-row.template-train .event-time,
  .live-row.template-bus .event-time {
    width: 104px;
    min-width: 104px;
    max-width: 104px;
  }

  .event-place,
  .event-destination,
  .event-main-row,
  .event-main,
  .event-mobile-meta,
  .event-status,
  .event-service,
  .event-facility {
    position: static;
    transform: none;
    margin-left: 0;
    padding-left: 0;
  }

  .event-place {
    grid-area: destination;
  }

  .event-sub {
    display: none;
  }

  .event-main-row {
    display: block;
  }

  .event-main {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .live-row.template-airport .event-main,
  .live-row.template-ferry .event-main {
    font-size: clamp(22px, 6vw, 28px);
  }

  .live-row.template-ferry .event-main {
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }

  .event-service,
  .event-facility {
    display: none;
  }

  .event-mobile-meta {
    grid-area: meta;
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
  }

  .event-mobile-meta-main {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 5px;
    min-width: 0;
  }

  .ferry-mobile-meta-main {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  .event-mobile-meta .ferry-mobile-meta-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: var(--text);
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .ferry-mobile-meta-main .ferry-mobile-meta-item + .ferry-mobile-meta-item::before {
    content: none;
  }

  .live-row.template-train .event-mobile-meta-main,
  .live-row.template-bus .event-mobile-meta-main {
    flex-wrap: wrap;
  }

  .event-mobile-meta span {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .event-mobile-meta span + span::before {
    content: "·";
    margin-right: 5px;
  }

  .live-row.template-airport .event-mobile-meta span:last-child,
  .live-row.template-ferry .event-mobile-meta span:last-child {
    max-width: 24ch;
  }

  .event-mobile-meta-facility {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .operator-brand-mobile {
    margin-top: 4px;
    overflow: hidden;
  }

  .operator-logo {
    height: 22px;
    max-width: min(96px, 100%);
    max-height: 22px;
  }

  .event-mobile-action {
    grid-area: action;
    display: block;
    min-width: 0;
  }

  .event-mobile-action:empty {
    display: none;
  }

  .event-ticket-desktop {
    display: none;
  }

  .event-mobile-action .ferry-ticket-action {
    min-height: 30px;
    width: fit-content;
    padding: 5px 8px;
    font-size: 12px;
  }

  .event-mobile-action .operator-ticket-action {
    min-height: 30px;
    padding: 5px 8px;
  }

  .frequency-card {
    grid-template-columns: 1fr;
    grid-template-areas: "route" "details" "actions";
  }

  .frequency-actions {
    justify-content: flex-start;
  }

  .frequency-actions .ferry-ticket-action,
  .frequency-actions .source-mini-link {
    min-height: 38px;
  }

  .event-status {
    grid-area: status;
    align-self: start;
    justify-self: start;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-top: 4px;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    font-size: 13px;
    line-height: 1.2;
  }

  .airport-arrival-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
  }

  .event-status-mobile {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .airport-arrival-status span,
  .airport-arrival-status strong {
    display: inline;
  }

  .live-row.template-airport > .event-status,
  .live-row.template-ferry > .event-status {
    display: block;
    width: fit-content;
    min-width: 0;
    white-space: nowrap;
  }

  .live-row.template-airport .event-status-mobile,
  .live-row.template-ferry .event-status-mobile {
    display: none;
  }

  .pager {
    grid-template-columns: 92px minmax(76px, 1fr) 92px;
    gap: 8px;
    padding: 10px;
  }

  .pager button {
    min-height: 44px;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .mode-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 6px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mode-tabs button {
    flex: 0 0 auto;
    min-width: clamp(82px, 24vw, 104px);
    min-height: 42px;
    height: 42px;
    padding: 0 6px;
    gap: 3px;
    scroll-snap-align: start;
    font-size: clamp(9.5px, 2.5vw, 11px);
    line-height: 1;
    white-space: nowrap;
  }

  .mode-tabs .mode-icon {
    width: 15px;
    height: 15px;
  }

  .bus-subtabs {
    gap: 5px;
    padding: 0 2px;
  }

  .bus-subtabs button {
    min-height: 36px;
    padding: 0 4px;
    font-size: clamp(10px, 2.7vw, 11px);
  }

  .live-panel.airport-board .board-section-title {
    min-height: 34px;
    justify-content: center;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 1000;
    text-align: center;
  }

  .live-row.template-airport {
    display: block;
    min-height: auto;
    padding: 6px 7px;
  }

  .live-row.template-airport > .event-airport-mobile-card {
    display: flex;
  }

  .live-row.template-airport > .event-airport-mobile-card {
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    width: 100%;
  }

  .live-row.template-airport > .event-place,
  .live-row.template-airport > .event-mode,
  .live-row.template-airport > .event-time,
  .live-row.template-airport > .event-service,
  .live-row.template-airport > .event-facility,
  .live-row.template-airport > .event-status,
  .live-row.template-airport > .event-mobile-meta,
  .live-row.template-airport > .event-mobile-action {
    display: none;
  }

  .event-airport-mobile-left {
    display: flex;
    flex: 0 0 clamp(104px, 30vw, 120px);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 120px;
  }

  .event-airport-mobile-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
  }

  .event-airport-mobile-left .event-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
  }

  .event-airport-mobile-left .svg-icon {
    width: 18px;
    height: 18px;
  }

  .event-airport-mobile-time {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    color: var(--yellow);
    font-size: clamp(24px, 6.4vw, 30px);
    font-weight: 950;
    line-height: .95;
    white-space: nowrap;
  }

  .event-airport-mobile-time .event-time-original {
    margin: 0 0 2px;
    font-size: .46em;
    font-weight: 750;
  }

  .event-airport-mobile-time .event-time-value {
    white-space: nowrap;
  }

  .event-airport-mobile-time .flight-day-label {
    font-size: .34em;
  }

  .event-airport-mobile-time.time-urgent,
  .event-airport-mobile-time.time-status-arriving,
  .event-airport-mobile-time.time-status-arrived,
  .event-airport-mobile-time.time-status-boarding {
    color: var(--green);
  }

  .event-airport-mobile-time.time-status-delayed,
  .event-airport-mobile-time.time-status-en-route,
  .event-airport-mobile-time.time-status-sailing {
    color: var(--orange);
  }

  .event-airport-mobile-time.time-status-gate-closed,
  .event-airport-mobile-time.time-status-cancelled,
  .event-airport-mobile-time.time-status-departed,
  .event-airport-mobile-time.time-status-left {
    color: var(--red);
  }

  .event-airport-mobile-left .event-airline-brand {
    display: inline-flex;
  }

  .event-airline-brand {
    max-width: min(110px, 100%);
    min-height: 21px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-airline-brand-logo {
    width: min(104px, 100%);
    height: 34px;
    padding: 4px 7px;
    border: 1px solid #334158;
    border-radius: 999px;
    background-color: #C8C8C8;
    opacity: 1;
    text-decoration: none;
    overflow: hidden;
  }

  .event-airline-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
  }

  .event-airline-brand-logo:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
  }

  .event-airline-brand.brand-airbaltic { background: #b8e6ff; color: #102d55; }
  .event-airline-brand.brand-finnair { background: #fff; color: #093b7a; }
  .event-airline-brand.brand-ryanair { background: #113a8f; color: #ffd84d; }
  .event-airline-brand.brand-wizz { background: #d8269b; color: #fff; }
  .event-airline-brand.brand-lufthansa { background: #071d49; color: #ffcc00; }
  .event-airline-brand.brand-sas { background: #0b4aa2; color: #fff; }
  .event-airline-brand.brand-turkish { background: #d71920; color: #fff; }

  .event-airline-brand-logo.airline-logo-link {
    background-color: #C8C8C8;
    color: var(--text);
  }

  .event-airport-mobile-right {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-left: 28px;
    text-align: left;
  }

  .event-airport-mobile-city {
    display: -webkit-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-size: clamp(19px, 5.2vw, 24px);
    font-weight: 950;
    line-height: 1.05;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .event-airport-mobile-route,
  .event-airport-mobile-airline,
  .event-airport-mobile-gate {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.18;
  }

  .event-airport-mobile-route {
    text-transform: uppercase;
  }

  .event-airport-mobile-left .destination-weather-button {
    max-width: 100%;
    min-width: min(86px, 100%);
    min-height: 42px;
    padding: 8px 9px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1;
  }

  .event-airport-mobile-status {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin-top: 2px;
  }

  .event-airport-mobile-status .event-status {
    width: auto;
    min-width: 0;
    max-width: max-content;
    margin-top: 0;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    text-align: left;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    font-size: 11px;
    line-height: 1.05;
  }

  .event-airport-mobile-status .event-status.airport-arrival-status {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
  }

  .event-airport-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    justify-content: flex-start;
  }

  .event-airport-mobile-actions a {
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 216, 77, .48);
    border-radius: 10px;
    background: rgba(255, 216, 77, .12);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .event-airport-mobile-actions .flight-checkin-icon {
    width: 15px;
    height: 15px;
  }

  .event-airport-mobile-actions a:focus-visible {
    outline: 2px solid rgba(255, 216, 77, .8);
    outline-offset: 2px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .vehicle-map-canvas {
    height: clamp(320px, 65vh, 460px);
    height: clamp(320px, 65svh, 460px);
  }

  .vehicle-map--fullscreen .vehicle-map-canvas {
    height: 100%;
  }
}

@media (max-width: 340px) {
  .start-feature-grid,
  .manual-category-grid {
    grid-template-columns: 1fr;
  }
}

/* narrow iPhone header */
@supports (-webkit-touch-callout: none) {
@media (max-width: 430px) {
  .app {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .transport-board-page .hero {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    min-height: 92px;
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: clamp(44px, 11vw, 46px) minmax(0, 1fr) clamp(62px, 16vw, 64px);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 8px;
    row-gap: 4px;
    padding: 12px 14px;
    overflow: visible;
  }

  .location-card,
  .location-card.is-compact,
  .current-location-bar {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .brand {
    min-width: 0;
    display: contents;
  }

  .brand > div:not(.brand-mark) {
    display: contents;
  }

  .brand-mark {
    grid-column: 1;
    grid-row: 1;
    width: clamp(44px, 11vw, 44px);
    height: clamp(44px, 11vw, 44px);
    min-width: clamp(44px, 11vw, 44px);
    margin: 0;
    position: relative;
    transform: none;
  }

  .brand-mark::before {
    width: 27px;
    height: 17px;
    border-width: 3px;
    border-bottom-width: 5px;
  }

  .brand-mark span {
    bottom: 8px;
    width: 6px;
    height: 6px;
  }

  .brand-mark span:nth-child(1) { left: 14px; }
  .brand-mark span:nth-child(2) { right: 14px; }
  .brand-mark span:nth-child(3) {
    top: 14px;
    width: 18px;
    height: 3px;
  }

  h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    text-align: left;
    font-size: clamp(27px, 7.7vw, 34px);
    line-height: 1;
    letter-spacing: -.5px;
  }

  .transport-board-page .hero-tagline {
    grid-column: 1 / 4;
    grid-row: 2;
    margin-top: 2px;
    margin-left: 54px;
    max-width: calc(100% - 54px);
    white-space: normal;
    overflow: visible;
  }

  .transport-board-page .hero-meta {
    grid-column: 1 / 4;
    grid-row: 3;
    margin-left: 54px;
    width: calc(100% - 54px);
    max-width: calc(100% - 54px);
    min-width: 0;
    flex-wrap: wrap;
    white-space: normal;
  }

  .transport-board-page .language-switcher {
    grid-column: 3;
    grid-row: 1 / 4;
    position: static;
    justify-self: end;
    align-self: start;
    margin: 0;
    gap: 8px;
  }

  .header-icon-button {
    width: 40px;
    min-width: 40px;
    height: 42px;
    min-height: 42px;
  }

  .header-icon-button svg {
    width: 19px;
    height: 19px;
  }

  .language-toggle {
    width: clamp(62px, 16vw, 64px);
    min-width: clamp(62px, 16vw, 64px);
    max-width: clamp(62px, 16vw, 64px);
    height: 42px;
    min-height: 42px;
    padding: 0 7px;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
  }

  .mode-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 8px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mode-tabs button {
    flex: 0 0 auto;
    min-width: clamp(82px, 24vw, 104px);
    height: 42px;
    min-height: 42px;
    padding: 0 2px;
    gap: 2px;
    font-size: clamp(9px, 2.45vw, 10.5px);
    scroll-snap-align: start;
    transform: none;
  }

  .mode-tabs button:first-child {
    margin-left: 0;
    transform: none;
  }

  .location-card,
  .location-warning,
  .current-location-bar,
  .board-layout,
  .hubs-panel,
  .live-panel,
  .pager {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .location-card,
  .location-card.is-compact {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .location-title {
    font-size: clamp(28px, 8vw, 38px);
    line-height: .96;
  }

  .location-message {
    font-size: 15px;
  }

  .start-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
}

/* Board-first selected object priority */
.location-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.location-summary__left { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.location-source-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: 999px;
  color: #f8d982;
  font-size: 0.78rem;
  line-height: 1.2;
}
.location-summary__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.location-summary__actions button,
.location-summary__actions .taxi-action { min-height: 40px; width: auto; max-width: 100%; }
.location-refresh-message {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}
.location-summary__weather { justify-self: end; align-self: start; }
.location-summary__weather .weather-shell { flex-basis: auto; }
.location-taxi-action:empty { display: none; }
.location-taxi-action {
  display: block;
  width: 100%;
  min-width: 0;
}
.location-taxi-card {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.location-taxi-copy {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 7px;
}
.location-taxi-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}
.taxi-phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.taxi-phone-card {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 3px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}
.taxi-phone-card:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.taxi-phone-name {
  max-width: 100%;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.05;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.taxi-phone-number {
  max-width: 100%;
  font-size: clamp(9px, 2.7vw, 12px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.taxi-service-message {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: break-word;
}
.location-taxi-link { width: auto !important; min-height: 40px; padding: 7px 13px; }
.location-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 6px 10px;
}
.location-summary__left { display: contents; }
.location-summary #currentLocationLabel,
.location-summary #currentLocationSource,
.location-summary #changeLocationButton {
  display: none !important;
}
.location-summary__weather {
  order: 1;
  flex: 0 0 auto;
}
.location-summary__actions {
  order: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
.location-summary__actions button {
  min-height: 32px;
  width: auto;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.location-refresh-message {
  order: 3;
  flex: 1 0 100%;
  margin: 0;
}
.location-taxi-badge {
  display: grid;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  min-width: 56px;
  max-width: 64px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: #fff;
  color: #05070c;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}
.location-taxi-badge.brand-uber { background: #fff; color: #05070c; }
.location-taxi-badge.brand-bolt { background: #35d072; color: #06150c; }
.location-taxi-badge.brand-forus { background: #182030; color: #fff; }
.location-taxi-icon {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: calc(15px - 4px);
  object-fit: contain;
  object-position: center;
}
.location-taxi-name-fallback {
  display: block;
  max-width: 100%;
  padding: 3px;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
}
.location-taxi-badge:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .85);
  outline-offset: 2px;
}
.taxi-apps-footer {
  width: 100%;
  max-width: 1180px;
  margin: 18px auto 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  text-align: center;
}
.services-apps-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.services-apps-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 340px;
  margin-inline: auto;
}
.services-apps-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin-inline: auto;
}
.services-app-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(18px, auto) 52px;
  justify-items: center;
  align-items: center;
}
.services-app-column--taxi {
  width: 100%;
  min-width: 0;
  grid-template-rows: minmax(18px, auto) auto;
}
.taxi-apps-footer-title {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-bottom: 9px;
  color: var(--text);
  font-size: clamp(11px, 2.8vw, 14px);
  line-height: 1.1;
  font-weight: 950;
  text-align: center;
  overflow-wrap: anywhere;
}
.services-app-column--taxi .taxi-apps-footer-title {
  width: 100%;
  max-width: none;
  overflow: visible;
  font-size: clamp(12px, 2.2vw, 16px);
  overflow-wrap: normal;
  white-space: normal;
}
.taxi-apps-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 72px));
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 632px;
  min-width: 0;
  margin-inline: auto;
}
.taxi-apps-footer.no-taxi-apps .services-apps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-brand-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.service-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}
.service-transfer-link {
  color: var(--yellow);
  background: #111c2c;
}
.service-transfer-icon {
  width: 88%;
  height: 88%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-brand-link:hover,
.location-taxi-badge:hover {
  border-color: rgba(255, 210, 63, .72);
  transform: translateY(-1px);
}
.service-brand-link:focus-visible,
.location-taxi-badge:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .9);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, .13), 0 8px 18px rgba(0, 0, 0, .24);
}
@media (max-width: 430px) {
  .taxi-apps-footer {
    padding: 10px 8px;
  }
  .services-apps-grid {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 4px;
  }
  .services-app-column {
    grid-template-rows: minmax(18px, auto) 48px;
  }
  .services-app-column--taxi {
    grid-template-rows: minmax(18px, auto) auto;
  }
  .taxi-apps-footer-title {
    margin-bottom: 7px;
    font-size: clamp(10px, 2.8vw, 12px);
  }
  .taxi-apps-footer-links {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    max-width: 232px;
  }
  .taxi-apps-footer .location-taxi-badge {
    grid-column: span 2;
  }
  .taxi-apps-footer .location-taxi-badge:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
  .taxi-apps-footer .location-taxi-badge:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }
  .service-brand-link {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
}
@media (max-width: 340px) {
  .taxi-apps-footer {
    padding-inline: 6px;
  }
  .services-apps-grid {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 3px;
  }
  .services-app-column {
    grid-template-rows: minmax(18px, auto) 44px;
  }
  .services-app-column--taxi {
    grid-template-rows: minmax(18px, auto) auto;
  }
  .taxi-apps-footer-title {
    font-size: 9px;
    letter-spacing: 0;
  }
  .taxi-apps-footer-links {
    gap: 8px;
    max-width: 232px;
  }
  .service-brand-link {
    width: 44px;
    height: 44px;
  }
}
.board-layout { grid-template-columns: 1fr; gap: 12px; }
.live-panel { order: 1; }
.hubs-panel { order: 2; }
.selected-object-summary { padding: 10px 12px 0; }
.selected-object-label { margin: 0 2px 7px; color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.selected-object-card { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) max-content; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0a111c; }
.selected-object-card--airport { grid-template-columns: 52px minmax(0, 1fr) max-content; }
.selected-object-card--airport .airport-logo-mark { width: 52px; height: 52px; border-radius: 13px; }
.selected-object-copy { min-width: 0; }
.selected-object-name { overflow: hidden; color: var(--text); font-size: 18px; line-height: 1.08; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.selected-object-city { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.selected-object-side { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; min-width: 0; }
.selected-object-distance { justify-self: end; color: var(--yellow); font-size: 16px; font-weight: 950; white-space: nowrap; }
.live-panel.airport-board .board-actions { display: none; }
@media (max-width: 430px) {
  .location-summary { gap: 6px; align-items: center; padding: 6px 8px; }
  .location-summary__left { display: contents; }
  .location-summary__actions { flex-direction: row; align-items: center; gap: 6px; }
  .location-summary__actions button,
  .location-summary__actions .taxi-action { width: auto; max-width: 100%; }
  .location-taxi-action { gap: 10px; }
  .location-taxi-card {
    padding: 7px 8px;
  }
  .location-summary .location-taxi-badge {
    flex-basis: 52px;
    width: 52px;
    min-width: 52px;
  }
  .location-summary__weather { align-self: center; }
  .selected-object-summary { padding: 8px 8px 0; }
  .selected-object-label { display: none; }
  .selected-object-card { grid-template-columns: 36px minmax(0, 1fr) max-content; gap: 8px; padding: 8px; }
  .selected-object-card--airport { grid-template-columns: 52px minmax(0, 1fr) max-content; }
  .selected-object-card--airport .airport-logo-mark { width: 52px; height: 52px; }
  .selected-object-name { font-size: 16px; }
  .selected-object-side { flex-direction: column; align-items: flex-end; gap: 4px; }
}
@media (max-width: 375px) {
  .location-summary { gap: 6px; padding: 8px; }
  .weather-summary { padding: 0 10px; }
}


/* Taxi provider catalog */
.taxi-catalog {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 6px;
}

.taxi-catalog-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.taxi-provider-row {
  max-width: min(100%, 360px);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  overscroll-behavior-inline: contain;
}

.taxi-provider-card,
.taxi-more-button {
  min-height: 48px;
  max-width: 160px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.taxi-provider-card:hover,
.taxi-provider-card:focus-visible,
.taxi-more-button:focus-visible {
  border-color: rgba(255, 213, 74, .7);
  outline: none;
}

.taxi-provider-card.muted {
  opacity: .55;
}

.taxi-provider-card img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: contain;
}

.taxi-provider-initials {
  min-width: 32px;
  max-width: 58px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 213, 74, .14);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taxi-provider-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taxi-more-button {
  cursor: pointer;
}

@media (max-width: 430px) {
  .taxi-provider-row { max-width: min(100%, 260px); }
  .taxi-provider-card,
  .taxi-more-button { min-height: 46px; max-width: 142px; padding: 5px 9px; }
}


.taxi-provider-panel {
  position: fixed;
  z-index: 10020;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
  color: var(--text);
}

.taxi-provider-panel-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.taxi-provider-panel-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.taxi-provider-panel-row .taxi-provider-card {
  max-width: 170px;
}

@media (max-width: 430px) {
  .taxi-provider-panel {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 76px);
    width: auto !important;
  }
}

.board-attribution {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: right;
}

/* Shared informational footer */
.site-footer {
  width: min(100%, 1180px);
  margin: 12px auto max(8px, env(safe-area-inset-bottom));
  padding: 14px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
  min-width: 0;
}

.site-footer a,
.about-content a {
  color: var(--yellow);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.site-footer a:focus-visible,
.about-content a:focus-visible {
  outline: 2px solid rgba(255, 210, 63, .85);
  outline-offset: 3px;
  border-radius: 3px;
}

/* About & Privacy page */
.about-app {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.about-brand {
  color: inherit;
  text-decoration: none;
}

.brand-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 5vw, 76px);
  line-height: .92;
  font-weight: 950;
}

.about-content {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 17, 28, .98), rgba(7, 12, 21, .96));
  box-shadow: 0 16px 44px var(--shadow);
  overflow-wrap: anywhere;
}

.about-heading {
  margin-bottom: clamp(28px, 5vw, 46px);
}

.about-eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
}

.about-content h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.04;
}

.about-content section + section {
  margin-top: clamp(30px, 5vw, 46px);
}

.about-content h2 {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: clamp(21px, 3.4vw, 29px);
  line-height: 1.2;
}

.about-content p,
.about-content li {
  color: #e5ebf3;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.72;
}

.about-content p {
  margin: 0 0 14px;
}

.about-content ul {
  margin: 10px 0 18px;
  padding-inline-start: 24px;
}

.about-content li + li {
  margin-top: 6px;
}

.about-updated {
  color: var(--muted) !important;
}

.about-back-link {
  width: fit-content;
  min-height: 44px;
  margin-top: clamp(34px, 6vw, 56px);
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  background: rgba(255, 210, 63, .1);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 767px) {
  .site-footer {
    flex-direction: column;
    gap: 2px;
  }

  .about-hero {
    min-height: 92px;
  }

  .about-content {
    padding: 22px 18px 28px;
  }

  .about-content h1 {
    font-size: clamp(29px, 9vw, 42px);
  }

  .about-content p,
  .about-content li {
    line-height: 1.68;
  }

}

@media (max-width: 375px) {
  .about-app {
    padding-inline: max(10px, env(safe-area-inset-left));
  }

  .about-content {
    padding-inline: 15px;
  }

  .about-hero .brand-title {
    font-size: 29px;
  }

  .about-hero .brand-mark {
    width: 48px;
    height: 48px;
  }
}

html[lang="ja"] .about-content p,
html[lang="ja"] .about-content li,
html[lang="zh-Hans"] .about-content p,
html[lang="zh-Hans"] .about-content li {
  line-height: 1.82;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .board-attribution {
    text-align: left;
    font-size: 0.74rem;
  }
}

/* Geolocation notices must never reflow the board or the unified map. */
.location-message {
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  margin-top: 8px;
  overflow: auto;
  opacity: 1;
  transition: opacity .18s ease;
}

/* Schedule-first transfer promotion. */
.transfer-promo {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 12px 14px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 63, .72);
  border-radius: 12px;
  background: radial-gradient(circle at 8% 20%, rgba(255, 210, 63, .12), transparent 34%), linear-gradient(135deg, #111c2c, #080e18 72%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.transfer-promo-icon,
.transfer-heading-icon {
  display: grid;
  place-items: center;
  color: var(--yellow);
}

.transfer-promo-icon {
  width: 58px;
  height: 50px;
  border: 1px solid rgba(255, 210, 63, .34);
  border-radius: 12px;
  background: rgba(255, 210, 63, .08);
}

.transfer-promo-icon svg,
.transfer-heading-icon svg {
  width: 86%;
  height: 86%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transfer-promo-copy {
  min-width: 0;
}

.transfer-promo-copy h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: .025em;
}

.transfer-promo-copy p {
  margin: 5px 0 0;
  color: #d9e2ed;
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.35;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.transfer-promo-action,
.transfer-submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  background: var(--yellow);
  color: #07101b;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.transfer-promo-action {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 13px;
}

.transfer-promo-action:focus-visible,
.transfer-submit:focus-visible,
.transfer-back-link:focus-visible,
.transfer-form input:focus-visible,
.transfer-form textarea:focus-visible {
  outline: 3px solid rgba(255, 210, 63, .82);
  outline-offset: 3px;
}

/* Airline logo remains useful, while a visible text name is always present. */
.live-row.template-airport .event-service .airline-logo-link,
.airline-logo-badge.airline-logo-link,
.event-airline-brand-logo.airline-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  max-width: min(112px, 100%);
  border-color: rgba(255, 255, 255, .18);
  border-radius: 8px;
  background-color: rgba(192, 202, 214, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.live-row.template-airport .event-service .airline-logo-link {
  min-width: 0;
  width: auto;
  height: 36px;
  padding: 5px 7px;
}

.airline-logo-badge-image,
.event-airline-logo {
  flex: 0 1 88px;
  width: auto;
  min-width: 24px;
  max-width: 88px;
  object-fit: contain;
  object-position: center;
}

.airline-brand-name {
  min-width: 0;
  overflow: hidden;
  color: #0b1725;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Transfer page. */
.transfer-app {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  max-width: 100%;
}

.transfer-content {
  width: min(100%, 960px);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 17, 28, .99), rgba(7, 12, 21, .97));
  box-shadow: 0 16px 44px var(--shadow);
}

.transfer-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 210, 63, .55);
  border-radius: 9px;
  color: var(--yellow);
  font-weight: 900;
  text-decoration: none;
}

.transfer-heading {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  margin: clamp(24px, 4vw, 38px) 0;
  min-width: 0;
}

.transfer-heading > *,
.transfer-heading > * > * {
  min-width: 0;
  max-width: 100%;
}

.transfer-heading-icon {
  width: 104px;
  height: 82px;
  border: 1px solid rgba(255, 210, 63, .38);
  border-radius: 16px;
  background: rgba(255, 210, 63, .08);
}

.transfer-heading h1 {
  margin: 0;
  font-size: clamp(31px, 5vw, 54px);
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.transfer-scope {
  max-width: 100%;
  margin: 0 0 5px !important;
  color: var(--yellow) !important;
  font-size: clamp(13px, 1.7vw, 16px) !important;
  line-height: 1.25 !important;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.transfer-heading p:last-child {
  max-width: 620px;
  margin: 10px 0 0;
  color: #d9e2ed;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
}

.transfer-vehicle {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 clamp(24px, 4vw, 34px);
  padding: clamp(14px, 2.5vw, 20px);
  border: 1px solid rgba(255, 210, 63, .28);
  border-radius: 14px;
  background: rgba(4, 9, 16, .72);
}

.transfer-vehicle h2 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.2;
}

.transfer-vehicle-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.transfer-vehicle-photo {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  background: #03070d;
}

.transfer-vehicle-photo--main {
  grid-row: 1 / span 2;
}

.transfer-vehicle-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.transfer-vehicle-note {
  max-width: 820px;
  margin: 12px 0 0;
  color: #aeb8c6;
  font-size: 12px;
  line-height: 1.55;
}

.transfer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.transfer-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.transfer-field--wide {
  grid-column: 1 / -1;
}

.transfer-field label {
  color: #eef3f8;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.transfer-form input,
.transfer-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  inline-size: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #060b13;
  color: var(--text);
  font: inherit;
}

.transfer-form input[type="date"],
.transfer-form input[type="time"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  inline-size: 100%;
}

.transfer-form input[type="date"]::-webkit-date-and-time-value,
.transfer-form input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.transfer-form textarea {
  min-height: 104px;
  resize: vertical;
}

.transfer-form input::placeholder,
.transfer-form textarea::placeholder {
  color: #8391a3;
  opacity: 1;
}

.transfer-form-actions {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin-top: 4px;
}

.transfer-submit {
  cursor: pointer;
}

.transfer-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.transfer-form-status {
  min-height: 22px;
  margin: 0;
  color: var(--yellow);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.transfer-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.transfer-consent {
  max-width: 680px;
  margin: 0;
  color: #aeb8c6;
  font-size: 12px;
  line-height: 1.5;
}

.transfer-consent a {
  color: var(--yellow);
  text-underline-offset: 3px;
}

.transfer-consent a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 3px;
}

.transfer-success {
  width: min(100%, 680px);
  margin: clamp(24px, 5vw, 44px) auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 210, 63, .42);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 26, 39, .98), rgba(6, 12, 21, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.transfer-success[hidden] {
  display: none;
}

.transfer-success h2 {
  margin: 0 0 22px;
  color: #8ee6a7;
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.15;
}

.transfer-success p {
  max-width: 540px;
  margin: 9px auto 0;
  color: #d9e2ed;
  line-height: 1.55;
}

.transfer-success .transfer-success-number-label {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.transfer-success .transfer-success-number {
  margin: 5px auto 20px;
  color: var(--yellow);
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 950;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

.transfer-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.transfer-success-home,
.transfer-success-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: min(100%, 150px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 210, 63, .55);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.transfer-success-home {
  background: var(--yellow);
  color: #111827;
}

.transfer-success-new {
  background: rgba(255, 210, 63, .06);
  color: var(--yellow);
}

.transfer-success-home:focus-visible,
.transfer-success-new:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .services-apps-grid.services-apps-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 220px);
    margin-inline: auto;
    gap: 12px;
  }

  .transfer-promo {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 5px 8px;
    margin: 7px 6px;
    padding: 7px 9px;
  }

  .transfer-success {
    padding: 20px 16px;
  }

  .transfer-success-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .transfer-success-home,
  .transfer-success-new {
    width: 100%;
    min-width: 0;
  }

  .transfer-promo-icon {
    width: 44px;
    height: 40px;
    border-radius: 9px;
  }

  .transfer-promo-copy h2 {
    font-size: clamp(15px, 4.6vw, 18px);
  }

  .brand-domain {
    margin-bottom: 1px;
    font-size: clamp(12px, 3.5vw, 15px);
    letter-spacing: .03em;
  }

  .transfer-promo-copy p {
    margin-top: 3px;
    font-size: 11px;
  }

  .transfer-promo-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    padding-inline: 11px;
    font-size: 12px;
    white-space: normal;
  }

  .transfer-app {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: max(8px, env(safe-area-inset-left));
  }

  .transfer-hero {
    min-width: 0;
    max-width: 100%;
    padding: 13px 62px 13px 12px;
  }

  .transfer-hero .about-brand {
    min-width: 0;
    gap: 10px;
  }

  .transfer-hero .brand-mark {
    width: 50px;
    height: 50px;
    border-width: 2px;
  }

  .transfer-hero .brand-mark::before {
    width: 30px;
    height: 20px;
    border-width: 4px;
    border-bottom-width: 6px;
  }

  .transfer-hero .brand-title {
    font-size: clamp(24px, 8vw, 32px);
    overflow-wrap: anywhere;
  }

  .transfer-hero .hero-tagline {
    font-size: clamp(10px, 3vw, 13px);
    white-space: normal;
  }

  .transfer-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px 14px 24px;
  }

  .transfer-heading {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .transfer-heading-icon {
    width: 52px;
    height: 50px;
    border-radius: 10px;
  }

  .transfer-heading h1 {
    max-width: 100%;
    font-size: clamp(24px, 8.4vw, 36px);
    line-height: 1.08;
    white-space: normal;
  }

  .transfer-vehicle {
    padding: 12px;
  }

  .transfer-vehicle-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 8px;
    aspect-ratio: auto;
  }

  .transfer-vehicle-photo {
    aspect-ratio: 4 / 3;
  }

  .transfer-vehicle-photo--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .transfer-vehicle-note {
    margin-top: 10px;
    font-size: 11px;
  }

  .transfer-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .transfer-field--wide {
    grid-column: auto;
  }

  .transfer-submit {
    width: 100%;
    white-space: normal;
  }

  .event-airport-mobile-left .event-airline-brand-logo {
    max-width: min(104px, 100%);
    height: 32px;
    padding: 4px 6px;
  }

  .event-airport-mobile-left .event-airline-logo {
    flex-basis: 82px;
    max-width: 82px;
  }

  .event-airport-mobile-left .airline-brand-name {
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  .transfer-hero {
    padding-left: 9px;
  }

  .transfer-hero .brand-mark {
    width: 44px;
    height: 44px;
  }

  .transfer-hero .brand-title {
    font-size: 23px;
  }

  .transfer-content {
    padding-inline: 11px;
  }

  .transfer-vehicle {
    padding: 10px;
  }

  .transfer-vehicle-gallery {
    gap: 6px;
  }

  .transfer-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .transfer-heading-icon {
    width: 44px;
    height: 44px;
  }

  .transfer-heading h1 {
    font-size: 24px;
  }
}

.location-message[hidden] {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.location-warning {
  position: fixed;
  right: auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 2100;
  width: min(720px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  min-height: 48px;
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .52);
  contain: layout paint;
  opacity: 1;
  transition: opacity .18s ease;
}

/* Mobile About / Privacy header and long-title fixes */
@media (max-width: 767px) {
  .about-page .about-hero {
    min-height: 108px;
    padding: 14px 14px;
    align-items: center;
    overflow: visible;
  }

  .about-page .about-brand {
    width: calc(100% - 82px);
    gap: 10px;
    align-items: center;
  }

  .about-page .about-brand > div:last-child {
    min-width: 0;
  }

  .about-page .about-hero .brand-mark {
    width: 52px;
    height: 52px;
    border-width: 2px;
  }

  .about-page .about-hero .brand-mark::before {
    transform: scale(.72);
  }

  .about-page .about-hero .brand-title {
    font-size: clamp(27px, 8.2vw, 36px);
    line-height: .92;
    white-space: normal;
  }

  .about-page .about-hero .hero-tagline {
    margin-top: 5px;
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.15;
    white-space: nowrap;
  }

  .about-page .language-switcher {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
  }

  .about-page .language-toggle {
    min-width: 62px;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .about-page .skyline {
    display: none;
  }

  .about-page .about-content h1 {
    max-width: 100%;
    font-size: clamp(27px, 7.8vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
}

@media (max-width: 390px) {
  .about-page .about-brand {
    width: calc(100% - 72px);
  }

  .about-page .about-hero .brand-mark {
    width: 46px;
    height: 46px;
  }

  .about-page .about-hero .brand-title {
    font-size: 27px;
  }

  .about-page .about-hero .hero-tagline {
    font-size: 11px;
  }

  .privacy-page .about-content h1 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    padding: 0;
    overflow: hidden;
  }

  .mode-tabs button {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 1px;
    gap: 2px;
    font-size: clamp(8.5px, 2.35vw, 10.5px);
  }
}

/* iOS: use live radius text instead of attr() pseudo-element */
@media (max-width: 430px) {
  .unified-map-radius-label {
    font-size: 12px;
  }

  .unified-map-radius-label::after {
    content: none;
    display: none;
  }
}

/* Separate coach stations from regional/coach roadside stops */
.unified-map-major-hub-icon--busstation .unified-map-major-hub-background {
  fill: #6b5544;
}

.unified-map-marker--busstation {
  background: #6b5544;
  color: #fff;
}

/* Phase 1 preparation: old manual map controls are no longer shown.
   Internal radius logic remains intact until viewport-driven loading is implemented. */

.unified-map-radius-label {
  display: none !important;
}

.unified-map-controls {
  grid-template-columns: 44px;
}

.unified-map-controls button[data-map-radius-action] {
  display: none !important;
}

.unified-map-pan-controls {
  display: none !important;
}

.unified-map-toolbar {
  padding: 4px;
}

.unified-map-active-center--busstation {
  background: #6b5544;
  color: #fff;
}

/* Compact archival departure board; intentionally separate from live-row timing semantics. */
.budva-archive {
  min-width: 0;
}

.budva-archive__header {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101a28;
}

.budva-archive__header strong {
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: .04em;
}

.budva-archive__header span,
.budva-archive__warning {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.budva-archive__warning {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 204, 0, .07);
}

.budva-archive__list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.budva-archive-row {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a111c;
}

.budva-archive-row__summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 82px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.budva-archive-row__time {
  color: var(--yellow);
  font-size: 25px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.budva-archive-row__main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.budva-archive-row__destination {
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.budva-archive-row__carrier,
.budva-archive-row__via {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budva-archive-row__chevron {
  font-size: 18px;
  text-align: center;
  transition: transform .15s ease;
}

.budva-archive-row.is-expanded .budva-archive-row__chevron {
  transform: rotate(180deg);
}

.budva-archive-row__details {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px 12px 94px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.budva-archive-row__details strong {
  color: var(--text);
}

@media (max-width: 430px) {
  .budva-archive-row__summary {
    grid-template-columns: 66px minmax(0, 1fr) 14px;
    gap: 8px;
    min-height: 78px;
    padding: 9px 10px;
  }

  .budva-archive-row__time {
    font-size: 23px;
  }

  .budva-archive-row__destination {
    display: -webkit-box;
    font-size: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .budva-archive-row__details {
    padding: 9px 10px 11px 84px;
  }
}


/* TRANSFER-ONLY FOOTER */
.transfer-only-footer {
  padding: 14px;
}

.transfer-footer-card {
  width: min(100%, 620px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.transfer-footer-copy {
  min-width: 0;
  text-align: left;
}

.transfer-footer-title {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

.transfer-footer-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.transfer-footer-action {
  flex: 0 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.transfer-footer-action .service-transfer-icon {
  width: 54px;
  height: 42px;
}

@media (max-width: 560px) {
  .transfer-footer-card {
    align-items: stretch;
    flex-direction: column;
  }

  .transfer-footer-copy {
    text-align: center;
  }

  .transfer-footer-action {
    justify-content: center;
    width: 100%;
  }
}

/* TRANSFER FOOTER CTA — emphasized version */
.transfer-footer-card {
  width: min(100%, 620px);
  margin-inline: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--accent);
  border-radius: 16px;
}

.transfer-footer-copy {
  text-align: left;
}

.transfer-footer-title {
  font-size: clamp(20px, 4.6vw, 27px);
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

.transfer-footer-subtitle {
  margin-top: 5px;
  color: var(--text);
  opacity: .8;
  font-size: 13px;
  font-weight: 700;
}

.transfer-footer-action {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  font-size: clamp(15px, 3.8vw, 19px);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.transfer-footer-action .service-transfer-icon {
  width: 44px;
  height: 34px;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .transfer-footer-card {
    padding: 12px;
  }

  .transfer-footer-copy {
    text-align: left;
  }

  .transfer-footer-action {
    min-height: 62px;
  }
}


/* TRANSFER FOOTER FINAL TUNING */
.transfer-only-footer {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.transfer-footer-card {
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--yellow);
  border-radius: 14px;
  box-sizing: border-box;
}

.transfer-footer-action {
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 10px;
  color: #07101b;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.transfer-footer-action:visited {
  color: #07101b;
}

@media (max-width: 560px) {
  .transfer-footer-card {
    width: calc(100% - 20px);
    max-width: none;
  }

  .transfer-footer-action {
    font-size: 16px;
    white-space: normal;
  }
}


/* START LANDING CARD */
.start-brand-message {
  text-align:center;
  margin:4px 0 22px;
}

.start-location-title {
  margin:0;
  font-size:clamp(24px, 5vw, 38px);
  line-height:1.1;
  font-weight:950;
  letter-spacing:-0.02em;
}

.start-location-subtitle {
  margin:8px 0 0;
  font-size:clamp(14px, 3vw, 18px);
  line-height:1.4;
  font-weight:700;
}

.start-location-guide {
  max-width:680px;
  margin:14px auto 0;
  font-size:14px;
  line-height:1.5;
  opacity:.82;
}

.manual-search-label {
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}

#manualQuery {
  min-height:52px;
  font-size:16px;
}

.near-me-choice {
  margin-top:14px;
}

.near-me-action {
  width:100%;
  min-height:54px;
  font-size:16px;
  font-weight:900;
}

@media (max-width:560px) {
  .start-brand-message {
    margin-bottom:18px;
  }

  .start-location-title {
    font-size:27px;
  }

  .start-location-guide {
    font-size:13px;
  }
}

/* START PAGE NEAR-ME PRIMARY BUTTON */
.near-me-choice {
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  margin-top:24px;
}

#useLocationButton.near-me-action {
  width:calc(100% - 32px);
  max-width:560px;
  min-height:58px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--yellow);
  border:1px solid var(--yellow);
  color:#07101b;
  border-radius:14px;
  font-size:17px;
  font-weight:950;
  text-align:center;
}

#useLocationButton.near-me-action:visited,
#useLocationButton.near-me-action:hover,
#useLocationButton.near-me-action:focus-visible {
  background:var(--yellow);
  color:#07101b;
}

@media(max-width:560px) {
  #useLocationButton.near-me-action {
    width:100%;
    max-width:none;
  }
}

/* Transit Hub contact form */
.contact-section {
  scroll-margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: inherit;
  font: inherit;
  padding: 12px 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 214, 64, .45);
  outline-offset: 1px;
  border-color: rgba(255, 214, 64, .7);
}

.contact-form select option {
  color: #111;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-submit {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: var(--yellow);
  color: #111;
}

.contact-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.contact-status {
  min-height: 1.4em;
  font-size: .95rem;
}

.contact-status.success {
  color: #79d991;
}

.contact-status.error {
  color: #ff9b9b;
}

.contact-note {
  margin: 0;
  opacity: .72;
  font-size: .9rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
  }
}

.privacy-contact-link {
  color: var(--yellow);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-contact-link:hover,
.privacy-contact-link:focus-visible {
  text-decoration-thickness: 2px;
}
