@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&subset=latin,cyrillic&display=swap");
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&subset=latin,cyrillic&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&subset=latin,cyrillic&display=swap");
/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: rotateX(0);
      --tw-rotate-y: rotateY(0);
      --tw-rotate-z: rotateZ(0);
      --tw-skew-x: skewX(0);
      --tw-skew-y: skewY(0);
      --tw-border-style: solid;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-font-feature-settings: var(--font-sans--font-feature-settings);
    --default-font-variation-settings: var(--font-sans--font-variation-settings);
    --default-mono-font-family: var(--font-mono);
    --default-mono-font-feature-settings: var(--font-mono--font-feature-settings);
    --default-mono-font-variation-settings: var(--font-mono--font-variation-settings);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  body {
    line-height: inherit;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
    color: currentColor;
  }

  @supports (color: color-mix(in lab, red, red)) {
    ::placeholder {
      color: color-mix(in oklab, currentColor 50%, transparent);
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    border-color: var(--border);
    outline-color: var(--ring);
  }

  @supports (color: color-mix(in lab, red, red)) {
    * {
      outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  * {
    border-color: var(--border);
    outline-color: var(--ring);
  }

  @supports (color: color-mix(in lab, red, red)) {
    * {
      outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) p {
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) label, :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) button {
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) input {
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
  }
}

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .\!container {
    width: 100% !important;
  }

  @media (width >= 40rem) {
    .\!container {
      max-width: 40rem !important;
    }
  }

  @media (width >= 48rem) {
    .\!container {
      max-width: 48rem !important;
    }
  }

  @media (width >= 64rem) {
    .\!container {
      max-width: 64rem !important;
    }
  }

  @media (width >= 80rem) {
    .\!container {
      max-width: 80rem !important;
    }
  }

  @media (width >= 96rem) {
    .\!container {
      max-width: 96rem !important;
    }
  }

  .container {
    width: 100%;
  }

  @media (width >= 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (width >= 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (width >= 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (width >= 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (width >= 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .shrink {
    flex-shrink: 1;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y);
  }

  .resize {
    resize: both;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .underline {
    text-decoration-line: underline;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .drop-shadow {
    --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, #0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color, #0000000f));
    --tw-drop-shadow: drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .\!filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ) !important;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }

  .fade-in {
    --tw-enter-opacity: 0;
  }

  .fade-out {
    --tw-exit-opacity: 0;
  }
}




:root {
  --font-size: 16px;
  --background: #fff;
  --foreground: oklch(.145 0 0);
  --card: #fff;
  --card-foreground: oklch(.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(.95 .0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #fff;
  --border: #0000001a;
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(.708 0 0);
  --chart-1: oklch(.646 .222 41.116);
  --chart-2: oklch(.6 .118 184.704);
  --chart-3: oklch(.398 .07 227.392);
  --chart-4: oklch(.828 .189 84.429);
  --chart-5: oklch(.769 .188 70.08);
  --radius: .625rem;
  --sidebar: oklch(.985 0 0);
  --sidebar-foreground: oklch(.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(.985 0 0);
  --sidebar-accent: oklch(.97 0 0);
  --sidebar-accent-foreground: oklch(.205 0 0);
  --sidebar-border: oklch(.922 0 0);
  --sidebar-ring: oklch(.708 0 0);
}

.dark {
  --background: oklch(.145 0 0);
  --foreground: oklch(.985 0 0);
  --card: oklch(.145 0 0);
  --card-foreground: oklch(.985 0 0);
  --popover: oklch(.145 0 0);
  --popover-foreground: oklch(.985 0 0);
  --primary: oklch(.985 0 0);
  --primary-foreground: oklch(.205 0 0);
  --secondary: oklch(.269 0 0);
  --secondary-foreground: oklch(.985 0 0);
  --muted: oklch(.269 0 0);
  --muted-foreground: oklch(.708 0 0);
  --accent: oklch(.269 0 0);
  --accent-foreground: oklch(.985 0 0);
  --destructive: oklch(.396 .141 25.723);
  --destructive-foreground: oklch(.637 .237 25.331);
  --border: oklch(.269 0 0);
  --input: oklch(.269 0 0);
  --ring: oklch(.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(.488 .243 264.376);
  --chart-2: oklch(.696 .17 162.48);
  --chart-3: oklch(.769 .188 70.08);
  --chart-4: oklch(.627 .265 303.9);
  --chart-5: oklch(.645 .246 16.439);
  --sidebar: oklch(.205 0 0);
  --sidebar-foreground: oklch(.985 0 0);
  --sidebar-primary: oklch(.488 .243 264.376);
  --sidebar-primary-foreground: oklch(.985 0 0);
  --sidebar-accent: oklch(.269 0 0);
  --sidebar-accent-foreground: oklch(.985 0 0);
  --sidebar-border: oklch(.269 0 0);
  --sidebar-ring: oklch(.439 0 0);
}

html {
  font-size: var(--font-size);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #000050;
}

body {
  color: #fff;
  background: #000050;
  min-height: 100vh;
  font-family: Barlow, Inter, PT Sans, Bahnschrift, DB Screen Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body[data-language="uk"] .btn, body[data-language="uk"] .status-text, body[data-language="uk"] .transport-option, body[data-language="uk"] .language-option, body[data-language="uk"] .transport-reset, body[data-language="uk"] .platform-info, body[data-language="uk"] .delay-info, body[data-language="uk"] .in-minutes, body[data-language="uk"] .journey-info-label, body[data-language="uk"] .journey-stop-time, body[data-language="uk"] .occupancy-text, body[data-language="uk"] .last-update, body[data-language="uk"] .copyright-footer, body[data-language="uk"] .error-message, body[data-language="uk"] .error-title, body[data-language="uk"] .loading-message, body[data-language="uk"] .loading-title, body[data-language="uk"] .no-departures-message, body[data-language="uk"] .no-departures-filter-message, body[data-language="uk"] .recent-searches-header, body[data-language="uk"] .suggestion-item {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 200 !important;
}

body[data-language="uk"] .journey-route-title {
  font-weight: 500 !important;
}

body[data-language="uk"] .journey-refresh, body[data-language="uk"] .station-search-input, body[data-language="uk"] .journey-stop-name, body[data-language="uk"] .journey-info-value, body[data-language="uk"] .collapsed-station-name, body[data-language="uk"] .station-suggestion-item {
  font-weight: 400 !important;
}

body[data-language="uk"] .destination, body[data-language="uk"] .departure-time, body[data-language="uk"] .journey-destination {
  font-weight: 300 !important;
}

body[data-language="uk"] .line-badge, body[data-language="uk"] .journey-line-badge {
  font-variation-settings: "wght" 700 !important;
  font-weight: 700 !important;
}

.container {
  flex-direction: column;
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  display: flex;
  position: relative;
}

.header {
  z-index: 100;
  background: #000050;
  border-bottom: 1px solid #ffffff40;
  flex-shrink: 0;
  padding: 20px 30px;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: sticky;
  top: 0;
}

.header.collapsed {
  cursor: pointer;
  border-bottom: 1px solid #ffffff40;
  align-items: center;
  min-height: 36px;
  padding: 4px 20px;
  display: flex;
  box-shadow: 0 2px 20px #0000004d;
}

.header.collapsed:hover {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #000050f2;
}

.time-display {
  opacity: 1;
  z-index: 1;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: absolute;
  top: 32px;
  left: 30px;
  transform: scale(1);
}

.header.collapsed .time-display {
  display: none !important;
}

.collapsed-station-container {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.collapsed-station-name {
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 1.1rem;
  font-weight: 400;
  overflow: hidden;
}

.language-selector {
  z-index: 1;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: absolute;
  top: 20px;
  right: 22px;
}

.header.collapsed .language-selector {
  display: none !important;
}

.language-button {
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  font-family: Barlow, Inter, PT Sans, Bahnschrift, DB Screen Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
  transition: all .3s;
  display: flex;
  position: relative;
  outline: none !important;
}

.language-button:focus, .language-button:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

.language-button:active {
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.language-button:hover {
  box-shadow: none;
  transform: none;
}

.language-button.active {
  box-shadow: none;
  border-width: 2px;
}

.language-button-inner {
  background: none;
  border: 2px solid #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  transition: all .3s;
  display: flex;
  overflow: hidden;
}

.language-button.active .language-button-inner {
  border-width: 3px;
}

.language-flag {
  filter: drop-shadow(0 0 1px #0000004d);
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  display: flex;
  transform: scale(1.1);
}

.language-flag-small {
  font-size: 16px;
  line-height: 1;
}

.language-dropdown-top {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  background: #fffffff2;
  border: 1px solid #fff3;
  border-radius: 8px;
  min-width: 180px;
  margin-top: 8px;
  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 0 8px 32px #0000004d;
}

.language-option {
  color: #1a237e;
  cursor: pointer;
  border-bottom: 1px solid #1a237e1a;
  outline: none;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-weight: 400;
  transition: all .2s;
  display: flex;
}

.language-option:focus-visible {
  outline-offset: -2px;
  background: #1a237e26;
  outline: 2px solid #1a237e;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: #1a237e1a;
}

.language-radio {
  border: 2px solid #1a237e;
  border-radius: 50%;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
}

.language-radio.checked {
  background: #000050;
  border-color: #000050;
}

.language-radio.checked:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.transport-filter {
  position: relative;
}

.transport-dropdown {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  background: #fffffff2;
  border: 1px solid #fff3;
  border-radius: 8px;
  min-width: 220px;
  margin-top: 8px;
  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 0 8px 32px #0000004d;
}

.transport-filter-status .transport-dropdown {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  background: #fffffff2;
  border: 1px solid #fff3;
  border-radius: 8px;
  min-width: 220px;
  margin-top: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0 8px 32px #0000004d;
}

.transport-option {
  color: #1a237e;
  cursor: pointer;
  border-bottom: 1px solid #1a237e1a;
  outline: none;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-weight: 400;
  transition: all .2s;
  display: flex;
}

.transport-option:focus-visible {
  outline-offset: -2px;
  background: #1a237e26;
  outline: 2px solid #1a237e;
}

.transport-option:last-child {
  border-bottom: none;
}

.transport-option:hover {
  background: #1a237e1a;
}

.transport-checkbox {
  border: 2px solid #1a237e;
  border-radius: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
}

.transport-checkbox.checked {
  background: #000050;
}

.transport-checkbox.checked:after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: -2px;
  left: 2px;
}

.transport-reset {
  color: #dc143c;
  cursor: pointer;
  text-align: center;
  border-top: 1px solid #1a237e1a;
  outline: none;
  padding: 16px;
  font-weight: 500;
  transition: all .2s;
}

.transport-reset:focus-visible {
  outline-offset: -2px;
  background: #dc143c26;
  outline: 2px solid #dc143c;
}

.transport-reset:hover {
  background: #dc143c1a;
}

.station-search-container {
  opacity: 1;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  transform: translateY(0);
}

.header.collapsed .station-search-container {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  transform: translateY(-20px);
}

.station-search-input {
  letter-spacing: -2%;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 700px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  contain: layout style;
  will-change: font-size, letter-spacing;
  background: #ffffff1a;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 20px 24px;
  font-family: Barlow, Inter, PT Sans, Bahnschrift, DB Screen Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  transition: all .3s, font-size .15s ease-out, letter-spacing .15s ease-out;
  overflow: hidden;
  outline: 0 !important;
}

.station-search-input:focus {
  background: #ffffff26;
  border-color: #fff;
  transform: scale(1.02);
  box-shadow: none !important;
  outline: 0 !important;
}

.station-search-input:active, .station-search-input:focus-visible {
  box-shadow: none !important;
  outline: 0 !important;
}

.station-search-input.keyboard-focus:focus, .station-search-input.keyboard-focus:focus-visible {
  outline-offset: 2px !important;
  outline: 3px solid #ffffffe6 !important;
}

.station-search-input::placeholder {
  color: #fff9;
}

.station-suggestions {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  background: #fffffff2;
  border: 1px solid #fff3;
  border-radius: 8px;
  width: 100%;
  max-width: 700px;
  max-height: 60vh;
  margin: 8px auto 0;
  transition: transform .3s;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow-y: auto;
  transform: scale(1);
  box-shadow: 0 8px 32px #0000004d;
}

.station-search-input:focus + .station-suggestions, .station-search-input:focus ~ .station-suggestions {
  transform: scale(1.02);
}

.station-suggestion-item {
  color: #1a237e;
  cursor: pointer;
  border-bottom: 1px solid #1a237e1a;
  outline: none;
  margin: 0;
  padding: 16px;
  font-weight: 400;
  transition: all .2s;
  position: relative;
}

.station-suggestion-item:before {
  content: "";
  pointer-events: none;
  background: none;
  transition: background .2s;
  position: absolute;
  inset: 0 -100px;
}

.station-suggestion-item:hover:before {
  background: #1a237e1a;
}

.station-suggestion-item:focus-visible:before {
  background: #1a237e26;
}

.station-suggestion-item:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #1a237e;
}

.station-suggestion-item:last-child {
  border-bottom: none;
}

.station-suggestion-item:hover {
  transform: translateX(4px);
}

.recent-searches-header {
  color: #1a237ecc;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #1a237e0d;
  border-bottom: 1px solid #1a237e1a;
  padding: 12px 16px 8px;
  font-size: .9rem;
  font-weight: 600;
}

.recent-search-item {
  opacity: .9;
  font-style: italic;
}

.recent-search-item:hover {
  opacity: 1;
}

.btn {
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #ffffff26;
  border: 1px solid #ffffff4d;
  border-radius: 4px;
  outline: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  transition: all .2s;
  display: flex;
}

.btn:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #fffc;
}

.btn:hover {
  background: #ffffff40;
}

.btn:active {
  transform: translateY(1px);
}

.btn.active {
  background: #fff6;
}

.icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.status {
  z-index: 98;
  background: #000050;
  border-bottom: 1px solid #ffffff40;
  flex-shrink: 0;
  padding: 12px 30px;
  font-size: 1.2rem;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: sticky;
  top: 0;
}

.status.error-hidden {
  display: none;
}

.header.collapsed + .status {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0 30px;
  overflow: hidden;
  transform: translateY(-100%);
}

.status-content {
  align-items: center;
  gap: 12px;
  display: flex;
}

.status-controls {
  flex-shrink: 0;
  order: -1;
  align-items: center;
  gap: 12px;
  display: flex;
}

.status-btn {
  color: #fff;
  cursor: pointer;
  background: #ffffff1a;
  border: 1px solid #fff3;
  border-radius: 50%;
  outline: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 12px;
  transition: all .2s;
  display: flex;
}

.status-btn:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #fffc;
}

.status-btn:hover {
  background: #fff3;
  border-color: #fff6;
}

.status-btn:active {
  transform: translateY(1px);
}

.status-btn.active {
  background: #ffffff40;
  border-color: #ffffff80;
}

.status-btn.filter-issue {
  color: #ffc107;
  background: #ffc10733;
  border-color: #ffc10766;
}

.status-btn.filter-issue:hover {
  background: #ffc1074d;
  border-color: #ffc10799;
}

.transport-filter-status {
  position: relative;
}

.status-icon {
  flex-shrink: 0;
}

.loading-icon {
  color: #fffc;
  animation: 1.5s linear infinite spin;
}

.success-icon {
  color: #4caf50;
}

.error-icon {
  color: #ff5722;
}

.status-text {
  flex: 1;
}

.transport-modes-icons {
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding-left: 16px;
  display: flex;
}

.transport-mode-icon {
  color: #fff;
  justify-content: center;
  align-items: center;
  transition: opacity .2s;
  display: flex;
}

.transport-mode-icon.clickable {
  cursor: pointer;
  border-radius: 4px;
  padding: 4px;
  transition: all .2s;
}

.transport-mode-icon.clickable:hover {
  background: #ffffff26;
  transform: scale(1.1);
}

.transport-mode-icon.clickable:active {
  transform: scale(.95);
}

.transport-letter-icon {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-family: Bahnschrift, Barlow, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.s-bahn-icon {
  color: #fff;
  background-color: green;
}

.u-bahn-icon {
  color: #fff;
  background-color: #005aab;
}

.db-regional-icon {
  color: #fff;
  letter-spacing: -.5px;
  box-sizing: border-box;
  background-color: #ec0016;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 20px;
  padding: 0;
  font-family: Barlow, Bahnschrift, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.tram-icon {
  color: #fff;
  background-color: #e91e63;
}

.bus-icon {
  color: #fff;
  background-color: #9c27b0;
}

.ferry-icon {
  color: #fff;
  background-color: #4585ad;
}

.collapsed-header-content {
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  transform: translateY(10px);
}

.header.collapsed .collapsed-header-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.collapsed-station-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  max-width: 60%;
  font-size: 1.2rem;
  font-weight: 400;
  overflow: hidden;
}

.collapsed-expand-hint {
  opacity: .5;
  align-items: center;
  gap: 3px;
  font-size: .7rem;
  transition: opacity .2s;
  display: flex;
  position: absolute;
  right: 0;
}

.collapsed-header-content:hover .collapsed-expand-hint {
  opacity: .8;
}

.collapsed-header-content:hover {
  background: #ffffff0d;
  border-radius: 6px;
}

@keyframes collapsedContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.digital-clock {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #0000004d;
  border: 2px solid #fff;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: fit-content;
  padding: 4px 10px;
  font-family: Bahnschrift, Barlow, Inter, PT Sans, monospace;
  transition: all .3s;
  box-shadow: 0 2px 8px #0000004d;
}

.digital-clock:hover {
  background: #0006;
  border-color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 16px #fff3;
}

.time-segments {
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 86px;
  font-weight: 500;
  display: flex;
}

.time-hours, .time-minutes {
  color: #fff;
  text-shadow: 0 1px 2px #00000080;
  text-align: center;
  width: 26px;
  font-size: 1.35rem;
  transition: all .2s;
}

.time-seconds {
  color: #ffffffb3;
  text-shadow: 0 1px 2px #00000080;
  text-align: center;
  width: 26px;
  font-size: 1.35rem;
  transition: all .3s cubic-bezier(.25, .46, .45, .94);
  animation: 1s ease-in-out infinite secondsPulse;
}

.time-separator-first {
  color: #fffc;
  text-align: center;
  width: 10px;
  font-size: 1.35rem;
  font-weight: 400;
}

.time-separator-second {
  color: #fffc;
  text-align: center;
  width: 10px;
  font-size: 1.35rem;
  font-weight: 400;
  transition: opacity .1s ease-in-out;
}

@keyframes secondsPulse {
  0%, 50% {
    text-shadow: 0 1px 2px #00000080;
    transform: scale(1);
  }

  25% {
    text-shadow: 0 2px 6px #fff6;
    transform: scale(1.05);
  }
}

.loading {
  border: 3px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: 1s ease-in-out infinite spin;
  display: inline-block;
}

.departures-container {
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  background: #000050;
  flex: 1;
  position: relative;
  overflow-y: auto;
}

.departure-item {
  cursor: pointer;
  border-bottom: 1px solid #ffffff40;
  outline: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 70px;
  padding: 18px 30px;
  transition: background .2s;
  display: grid;
}

.departure-item:focus-visible {
  outline-offset: -2px;
  background: #ffffff1a;
  outline: 2px solid #fffc;
}

.departure-item:hover {
  background: #ffffff0d;
}

.departure-item.cancelled {
  opacity: .9;
  background: #dc143c1a;
}

.departure-item.cancelled:hover {
  background: #dc143c26;
}

.line-info {
  align-items: center;
  gap: 15px;
  min-width: 0;
  display: flex;
}

.line-badge {
  color: #fff;
  text-align: center;
  letter-spacing: .5px;
  background: #dc143c;
  border-radius: 20px;
  flex-shrink: 0;
  min-width: 55px;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 700;
}

.line-badge.s-bahn {
  background: #009639;
}

.line-badge.regional {
  background: #2196f3;
}

.line-badge.flx {
  color: #0d4f00;
  background: #73d700;
}

.line-badge.metro {
  background: #1976d2;
}

.line-badge.tram {
  background: #e91e63;
}

.line-badge.bus {
  background: #9c27b0;
}

.line-badge.ferry {
  background: #4585ad;
}

.line-badge.cancelled {
  background: #666;
}

.airport-icon {
  color: #fff;
  vertical-align: baseline;
  width: 28px;
  height: 28px;
  margin-left: 12px;
  display: inline-block;
  position: relative;
  top: 1px;
}

.destination-info {
  min-width: 0;
}

.destination {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 2.2rem;
  font-weight: 300;
  overflow: hidden;
}

.destination.cancelled {
  opacity: .8;
  text-decoration: line-through;
}

.platform-info {
  opacity: .8;
  margin-top: 5px;
  font-size: 1.2rem;
}

.occupancy-info {
  opacity: .9;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: .9rem;
  transition: opacity .2s;
  display: flex;
}

.occupancy-icon {
  filter: drop-shadow(0 1px 2px #0000004d);
  font-size: .8rem;
}

.occupancy-text {
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: .75rem;
  font-weight: 500;
}

.occupancy-info.occupancy-low {
  color: #4caf50;
}

.occupancy-info.occupancy-medium {
  color: #ffc107;
}

.occupancy-info.occupancy-high {
  color: #ff9800;
}

.occupancy-info.occupancy-very-high {
  color: #f44336;
}

.departure-item:hover .occupancy-info {
  opacity: 1;
}

.time-info {
  text-align: right;
  flex-shrink: 0;
}

.departure-time {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
}

.departure-time.cancelled {
  opacity: .8;
  text-decoration: line-through;
}

.time-suffix {
  opacity: .8;
  margin-left: 8px;
  font-size: 1.4rem;
}

.delay-info {
  margin-top: 2px;
  font-size: 1.2rem;
}

.delay-info.on-time {
  color: #4caf50;
}

.delay-info.delayed {
  color: #ff5722;
  font-weight: 500;
}

.delay-info.cancelled {
  color: #dc143c;
  font-weight: 600;
}

.in-minutes {
  opacity: .9;
  margin-top: -2px;
  font-size: 1.8rem;
}

.from-origin {
  opacity: .8;
  margin-top: 5px;
  font-size: 1.1rem;
}

.no-data {
  text-align: center;
  opacity: .7;
  padding: 80px 30px;
  font-size: 1.5rem;
}

.last-update {
  text-align: center;
  opacity: .6;
  background: #000050;
  border-top: 1px solid #ffffff40;
  flex-shrink: 0;
  padding: 16px;
  font-size: .9rem;
}

.copyright-footer {
  text-align: center;
  color: #ffffff80;
  letter-spacing: .3px;
  background: #000050;
  border-top: 1px solid #ffffff1a;
  flex-shrink: 0;
  padding: 16px;
  font-size: .8rem;
  font-weight: 300;
}

.error-container {
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 40px 30px;
  display: flex;
}

.error-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  animation: .6s ease-out contentFadeIn;
}

.error-icon {
  color: #ff5722;
  opacity: .9;
  filter: drop-shadow(0 4px 8px #ff57224d);
  margin: 0 auto 20px;
  display: block;
}

.error-icon-muted {
  color: #fff6;
  filter: drop-shadow(0 4px 8px #ffffff1a);
  margin: 0 auto 20px;
  display: block;
}

.error-title {
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 4px #0000004d;
  margin-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 500;
}

.error-title-muted {
  color: #ffffffb3;
  letter-spacing: .5px;
  text-shadow: 0 2px 4px #0000004d;
  margin-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 500;
}

.error-message {
  color: #ffffffd9;
  max-width: 400px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.error-message-muted {
  color: #ffffffa6;
  max-width: 400px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.error-retry-btn {
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffff26;
  border: 2px solid #ffffff4d;
  border-radius: 8px;
  outline: none;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: inline-flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px #0003;
}

.error-retry-btn:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #ffffffe6;
}

.error-retry-btn:before {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffff1a, #0000);
  width: 100%;
  height: 100%;
  transition: left .5s;
  position: absolute;
  top: 0;
  left: -100%;
}

.error-retry-btn:hover:before {
  left: 100%;
}

.error-retry-btn:hover {
  background: #ffffff40;
  border-color: #ffffff80;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #0000004d;
}

.error-retry-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0006;
}

.error-suggestions {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  display: flex;
}

.suggestion-item {
  color: #fff9;
  border-bottom: 1px solid #ffffff1a;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 1rem;
  transition: color .2s;
  display: flex;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  color: #fffc;
}

.no-departures-message {
  color: #fffc;
  text-align: center;
  max-width: 480px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.3rem;
  line-height: 1.6;
}

.no-departures-filter-message {
  color: #ffa500e6;
  text-align: center;
  background: #ffa5001a;
  border: 1px solid #ffa50033;
  border-radius: 8px;
  max-width: 400px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.loading-container {
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 60px 30px;
  display: flex;
}

.loading-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.loading-spinner {
  border: 4px solid #fff3;
  border-top-color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  animation: 1s ease-in-out infinite spin;
}

.loading-title {
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: 16px;
  font-size: 1.8rem;
  font-weight: 500;
}

.loading-message {
  color: #ffffffb3;
  font-size: 1.1rem;
  line-height: 1.6;
}

.skeleton {
  background: linear-gradient(90deg, #ffffff14 0%, #ffffff26 50%, #ffffff14 100%) 0 0 / 200% 100%;
  border-radius: 4px;
  animation: 1.8s ease-in-out infinite skeletonShimmer;
  position: relative;
  overflow: hidden;
}

.skeleton-text {
  height: 1em;
  margin: 2px 0;
}

.skeleton-text-xs {
  width: 60px;
  height: .8em;
}

.skeleton-text-sm {
  width: 80px;
  height: .9em;
}

.skeleton-text-md {
  width: 120px;
  height: 1em;
}

.skeleton-text-lg {
  width: 180px;
  height: 1.1em;
}

.skeleton-button {
  border-radius: 6px;
  width: 120px;
  height: 36px;
}

.skeleton-stop {
  opacity: .6;
}

.skeleton-stop.current {
  opacity: .8;
}

.skeleton-refresh-container {
  justify-content: center;
  margin-top: 30px;
  padding-bottom: 20px;
  display: flex;
}

.skeleton-stop:first-child .skeleton {
  animation-delay: 0s;
}

.skeleton-stop:nth-child(2) .skeleton {
  animation-delay: .1s;
}

.skeleton-stop:nth-child(3) .skeleton {
  animation-delay: .2s;
}

.skeleton-stop:nth-child(4) .skeleton {
  animation-delay: .3s;
}

.skeleton-stop:nth-child(5) .skeleton {
  animation-delay: .4s;
}

.skeleton-departures-container {
  opacity: .8;
}

.skeleton-departure {
  pointer-events: none;
  cursor: default;
}

.skeleton-departure:hover {
  background: none;
}

.skeleton-line-badge {
  border-radius: 20px;
  width: 55px;
  height: 32px;
}

.skeleton-destination {
  width: 280px;
  height: 2.2rem;
  margin-bottom: 5px;
}

.skeleton-platform {
  width: 80px;
  height: 1.2rem;
}

.skeleton-time {
  width: 120px;
  height: 2.8rem;
  margin-bottom: 5px;
}

.skeleton-delay {
  width: 90px;
  height: 1.2rem;
  margin-bottom: 0;
}

.skeleton-minutes {
  width: 100px;
  height: 1.8rem;
}

.skeleton-departure:first-child .skeleton {
  animation-delay: 0s;
}

.skeleton-departure:nth-child(2) .skeleton {
  animation-delay: .1s;
}

.skeleton-departure:nth-child(3) .skeleton {
  animation-delay: .2s;
}

.skeleton-departure:nth-child(4) .skeleton {
  animation-delay: .3s;
}

.skeleton-departure:nth-child(5) .skeleton {
  animation-delay: .4s;
}

.skeleton-departure:nth-child(6) .skeleton {
  animation-delay: .5s;
}

.skeleton-departure:nth-child(7) .skeleton {
  animation-delay: .6s;
}

.skeleton-departure:nth-child(8) .skeleton {
  animation-delay: .7s;
}

.container.popup-open {
  filter: blur(3px);
  pointer-events: none;
  transition: filter .2s cubic-bezier(.25, .46, .45, .94);
}

body.popup-open {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

.journey-overlay {
  -webkit-backdrop-filter: blur();
  backdrop-filter: blur();
  z-index: 10000;
  opacity: 0;
  overscroll-behavior: contain;
  touch-action: none;
  background: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.journey-popup {
  opacity: 0;
  background: #000050;
  border: 2px solid #ffffff4d;
  border-radius: 12px;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  height: clamp(500px, 85vh, 100vh - 40px);
  min-height: 500px;
  max-height: calc(100vh - 40px);
  display: flex;
  position: relative;
  transform: scale(.95)translateY(10px);
  box-shadow: 0 20px 60px #00000080;
}

.journey-header {
  background: none;
  border-bottom: 1px solid #fff3;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px;
  display: flex;
}

.journey-title {
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.journey-line-badge {
  color: #fff;
  text-align: center;
  opacity: 1;
  background: #dc143c;
  border-radius: 16px;
  min-width: 40px;
  padding: 4px 10px;
  font-size: .9rem;
  font-weight: 700;
}

.journey-line-badge.s-bahn {
  background: #009639;
}

.journey-line-badge.regional {
  background: #2196f3;
}

.journey-line-badge.flx {
  color: #0d4f00;
  background: #73d700;
}

.journey-line-badge.metro {
  background: #1976d2;
}

.journey-line-badge.tram {
  background: #e91e63;
}

.journey-line-badge.bus {
  background: #9c27b0;
}

.journey-destination {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 1.5rem;
  font-weight: 300;
  overflow: hidden;
}

.journey-header-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.journey-view-toggle {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffff1a;
  border: 1px solid #fff3;
  border-radius: 50%;
  outline: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  display: flex;
}

.journey-view-toggle:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #ffffffe6;
}

.journey-view-toggle:hover {
  background: #fff3;
  border-color: #fff6;
  transform: scale(1.1);
  box-shadow: 0 4px 12px #ffffff1a;
}

.journey-view-toggle:active {
  transform: scale(.95);
}

.journey-close {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffff1a;
  border: 1px solid #fff3;
  border-radius: 50%;
  outline: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  font-family: monospace;
  font-size: 18px;
  line-height: 1;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
}

.journey-close:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #ffffffe6;
}

.journey-close:hover {
  background: #fff3;
  border-color: #fff6;
  transform: scale(1.1);
  box-shadow: 0 4px 12px #ffffff1a;
}

.journey-close:active {
  transform: scale(.95);
}

.journey-content-wrapper {
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 380px;
  transition: opacity .3s;
  position: relative;
  overflow-y: auto;
}

.journey-content {
  padding: 16px;
}

.journey-content.journey-map-view {
  flex-direction: column;
  height: 100%;
  padding: 0;
  display: flex;
}

.journey-content-fade-out {
  opacity: .3 !important;
  transition: opacity .2s ease-out !important;
}

.journey-content-fade-in {
  opacity: 1 !important;
  transition: opacity .3s ease-in !important;
}

.journey-info {
  background: #ffffff0d;
  border-radius: 8px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding: 24px 16px;
  list-style: none;
  display: grid;
}

.journey-info * {
  list-style: none !important;
}

.journey-info-item {
  text-align: left;
  list-style: none;
}

.journey-info-label {
  opacity: .8;
  margin-bottom: 5px;
  font-size: .9rem;
}

.journey-info-value {
  font-size: 1.2rem;
  font-weight: 400;
  list-style: none;
  display: block;
}

.journey-info-value.on-time {
  color: #4caf50;
}

.journey-info-value.delayed {
  color: #ff5722;
}

.journey-info-value.early {
  color: #4caf50;
}

.journey-info-value.journey-next-stop-clickable {
  cursor: pointer;
  border-radius: 4px;
  margin: -2px -4px;
  padding: 2px 4px;
  transition: all .2s;
}

.journey-info-value.journey-next-stop-clickable:hover {
  background: #ffffff1a;
  transform: translateX(2px);
}

.journey-info-value.journey-next-stop-clickable:active {
  transform: translateX(1px);
}

.journey-route {
  min-height: 320px;
  margin-top: 20px;
}

.journey-route-title {
  opacity: .9;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.journey-stops-container {
  position: relative;
}

.journey-stops {
  list-style: none;
  position: relative;
}

.journey-stops:before {
  content: "";
  opacity: .3;
  background: #fff;
  width: 6px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
}

.journey-train-indicator {
  pointer-events: none;
  z-index: 10;
  will-change: transform;
  width: 0;
  height: 0;
  transition: transform 1s linear;
  position: absolute;
  top: 0;
  left: 16px;
}

.journey-train-indicator:before {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  animation: 2s ease-out infinite trainHaloPulse;
  position: absolute;
  top: 0;
  left: 0;
}

.journey-train-indicator:after {
  content: "";
  background: #fff;
  border-radius: 4.5px;
  width: 9px;
  height: 18px;
  margin-top: -9px;
  margin-left: -4.5px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 8px #fffc;
}

@keyframes trainHaloPulse {
  0% {
    opacity: .9;
    transform: scale(.5);
  }

  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.journey-stop {
  padding: 16px 0 16px 40px;
  transition: all .2s;
  position: relative;
}

.journey-stop:before {
  content: "";
  opacity: 1;
  background: #fff;
  border: 2px solid #000050;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.journey-stop.current {
  background: #ffffff1a;
  border-radius: 8px;
  margin: 0 -9px;
  padding: 16px 10px 16px 50px;
}

.journey-stop.current:before {
  opacity: 1;
  box-shadow: none;
  background: #fff;
  border-color: #000050;
  width: 8px;
  height: 8px;
  left: 21px;
}

.journey-stop.passed {
  opacity: 1;
}

.journey-stop.passed .journey-stop-name, .journey-stop.passed .journey-stop-time {
  opacity: .6;
}

.journey-stop.passed .journey-stop-delay {
  opacity: 1;
}

.journey-stop.passed:before {
  opacity: 1;
  background: #666;
}

.journey-stop-name {
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 400;
}

.journey-stop-time {
  opacity: .8;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  display: flex;
}

.journey-stop-delay {
  border-radius: 10px;
  padding: 2px 6px;
  font-size: .75rem;
  font-weight: 500;
}

.journey-stop-delay.early, .journey-stop-delay.on-time {
  color: #4caf50;
  background: #4caf5033;
}

.journey-stop-delay.delayed {
  color: #ff5722;
  background: #ff572233;
}

.journey-stop.current .journey-stop-name {
  color: #fff;
  font-weight: 500;
}

.journey-info .skeleton {
  animation-delay: 50ms;
}

.journey-error {
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  padding: 40px 20px;
  display: flex;
}

.journey-error .error-icon {
  color: #ff5722;
  opacity: .9;
  filter: drop-shadow(0 4px 8px #ff57224d);
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.journey-error .error-title {
  color: #fff;
  letter-spacing: .3px;
  text-shadow: 0 2px 4px #0000004d;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.journey-error .error-message {
  color: #fffc;
  max-width: 320px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.journey-refresh {
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffff26;
  border: 2px solid #ffffff4d;
  border-radius: 50px;
  outline: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: inline-flex;
  box-shadow: 0 4px 20px #0003;
}

.journey-refresh.updating {
  cursor: not-allowed;
  opacity: .8;
  background: #ffffff1a;
  border-color: #fff3;
}

.journey-refresh.updating:hover {
  background: #ffffff1a;
  border-color: #fff3;
  transform: none;
  box-shadow: 0 4px 20px #0003;
}

.journey-refresh-spinner {
  animation: 1s linear infinite spin;
}

.journey-refresh:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #ffffffe6;
}

.journey-refresh:hover {
  background: #ffffff40;
  border-color: #ffffff80;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px #0000004d;
}

.journey-refresh:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px #0006;
}

.journey-info-remarks {
  border-top: 1px solid #ffffff40;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 6px;
  margin-top: 8px;
  padding-top: 16px;
  display: flex;
}

.journey-remark-text {
  opacity: .8;
  font-size: .9rem;
  line-height: 1.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    -webkit-backdrop-filter: blur();
    backdrop-filter: blur();
    background: none;
  }

  to {
    opacity: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #000c;
  }
}

@keyframes overlayFadeOut {
  0% {
    opacity: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #000c;
  }

  40% {
    opacity: .7;
    -webkit-backdrop-filter: blur();
    backdrop-filter: blur();
    background: #00000080;
  }

  100% {
    opacity: 0;
    -webkit-backdrop-filter: blur();
    backdrop-filter: blur();
    background: none;
  }
}

@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: scale(.95)translateY(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1)translateY(0);
  }
}

@keyframes popupSlideOut {
  0% {
    opacity: 1;
    transform: scale(1)translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(.96)translateY(-8px);
  }
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes journeyStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journey-step-animated {
  opacity: 0;
  animation: .15s cubic-bezier(.25, .46, .45, .94) forwards journeyStepFadeIn;
}

.journey-step-animated:first-child {
  animation-delay: 20ms;
}

.journey-step-animated:nth-child(2) {
  animation-delay: 40ms;
}

.journey-step-animated:nth-child(3) {
  animation-delay: 60ms;
}

.journey-step-animated:nth-child(4) {
  animation-delay: 80ms;
}

.journey-step-animated:nth-child(5) {
  animation-delay: .1s;
}

.journey-step-animated:nth-child(6) {
  animation-delay: .12s;
}

.journey-step-animated:nth-child(7) {
  animation-delay: .14s;
}

.journey-step-animated:nth-child(8) {
  animation-delay: .16s;
}

.journey-step-animated:nth-child(9) {
  animation-delay: .18s;
}

.journey-step-animated:nth-child(10) {
  animation-delay: .2s;
}

.journey-step-animated:nth-child(11) {
  animation-delay: .22s;
}

.journey-step-animated:nth-child(12) {
  animation-delay: .24s;
}

.journey-step-animated:nth-child(13) {
  animation-delay: .26s;
}

.journey-step-animated:nth-child(14) {
  animation-delay: .28s;
}

.journey-step-animated:nth-child(15) {
  animation-delay: .3s;
}

.journey-step-animated:nth-child(n+16) {
  animation-delay: .32s;
}

@keyframes departureItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quickFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: .3;
  }
}

@keyframes quickFadeIn {
  from {
    opacity: .3;
  }

  to {
    opacity: 1;
  }
}

.departure-item {
  opacity: 0;
  animation: .4s cubic-bezier(.25, .46, .45, .94) forwards departureItemFadeIn;
}

.departures-auto-refresh-fade-out {
  animation: .15s ease-out forwards quickFadeOut;
}

.departures-auto-refresh-fade-in {
  animation: .2s ease-out forwards quickFadeIn;
}

.departure-item:first-child {
  animation-delay: 50ms;
}

.departure-item:nth-child(2) {
  animation-delay: .1s;
}

.departure-item:nth-child(3) {
  animation-delay: .15s;
}

.departure-item:nth-child(4) {
  animation-delay: .2s;
}

.departure-item:nth-child(5) {
  animation-delay: .25s;
}

.departure-item:nth-child(6) {
  animation-delay: .3s;
}

.departure-item:nth-child(7) {
  animation-delay: .35s;
}

.departure-item:nth-child(8) {
  animation-delay: .4s;
}

.departure-item:nth-child(9) {
  animation-delay: .45s;
}

.departure-item:nth-child(10) {
  animation-delay: .5s;
}

.departure-item:nth-child(11) {
  animation-delay: .55s;
}

.departure-item:nth-child(12) {
  animation-delay: .6s;
}

.departure-item:nth-child(13) {
  animation-delay: .65s;
}

.departure-item:nth-child(14) {
  animation-delay: .7s;
}

.departure-item:nth-child(15) {
  animation-delay: .75s;
}

.departure-item:nth-child(n+16) {
  animation-delay: .8s;
}

@keyframes currentStopPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px #ffffff4d;
  }

  50% {
    box-shadow: 0 0 0 6px #ffffff80;
  }
}

.btn-text-full {
  display: inline;
}

.btn-text-short {
  display: none;
}

@media (width <= 999px) {
  .header {
    padding: 12px 20px;
  }

  .header.collapsed {
    min-height: 28px;
    padding: 2px 12px;
  }

  .time-display {
    margin: 0;
    position: absolute;
    top: 20px;
    left: 20px;
  }

  .digital-clock {
    padding: 3px 7px;
  }

  .time-segments {
    width: 78px;
  }

  .time-hours, .time-minutes, .time-seconds {
    width: 24px;
    font-size: 1.15rem;
  }

  .time-separator-first, .time-separator-second {
    width: 9px;
    font-size: 1.15rem;
  }

  .header.collapsed .time-display {
    display: none !important;
  }

  .language-selector {
    margin: 0;
    position: absolute;
    top: 16px;
    right: 20px;
  }

  .header.collapsed .language-selector {
    display: none !important;
  }

  .language-button {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .language-button-inner {
    border-width: 2px;
    width: 32px;
    height: 32px;
  }

  .language-flag {
    width: 32px;
    height: 32px;
    font-size: 24px;
    transform: scale(1);
  }

  .language-dropdown-top {
    min-width: 160px;
  }

  .collapsed-station-name {
    max-width: 70%;
    font-size: .9rem;
  }

  .collapsed-expand-hint {
    font-size: .5rem;
  }

  .station-search-container {
    margin-top: 50px;
    padding-bottom: 10px;
  }

  .station-search-input {
    letter-spacing: -2%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 2.4rem;
    transition: all .3s, font-size .15s ease-out, letter-spacing .15s ease-out;
  }

  .station-suggestions {
    max-width: 100%;
  }

  .btn {
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: .8rem;
  }

  .transport-dropdown {
    min-width: 200px;
    max-width: calc(100vw - 16px);
    left: auto;
    right: 0;
    transform: none;
  }

  .transport-modes-icons {
    display: none;
  }

  .icon {
    stroke-width: 2px;
    width: 16px;
    height: 16px;
  }

  .status {
    padding: 10px 16px;
    font-size: .9rem;
  }

  .status-content {
    gap: 8px;
  }

  .status-icon {
    width: 14px;
    height: 14px;
  }

  .status-controls {
    gap: 10px;
  }

  .status-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 10px;
  }

  .departure-item {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 65px;
    padding: 10px 15px;
  }

  .line-badge {
    border-radius: 15px;
    min-width: 40px;
    padding: 4px 8px;
    font-size: .8rem;
  }

  .line-info {
    gap: 8px;
  }

  .destination {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .platform-info {
    margin-top: 2px;
    font-size: .8rem;
  }

  .occupancy-info {
    gap: 4px;
    margin-top: 4px;
    font-size: .75rem;
  }

  .occupancy-text {
    font-size: .65rem;
  }

  .occupancy-icon {
    font-size: .7rem;
  }

  .departure-time {
    font-size: 1.4rem;
    line-height: 1;
  }

  .time-suffix {
    margin-left: 3px;
    font-size: .8rem;
  }

  .delay-info {
    margin-top: 2px;
    font-size: .8rem;
  }

  .in-minutes {
    margin-top: -2px;
    font-size: .9rem;
  }

  .last-update {
    padding: 16px;
    font-size: .8rem;
  }

  .copyright-footer {
    padding: 16px;
    font-size: .7rem;
  }

  .no-data {
    padding: 40px 20px;
    font-size: 1.2rem;
  }

  .journey-overlay {
    align-items: flex-start;
    padding: 0;
  }

  .journey-popup {
    border: none;
    border-radius: 0;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0;
    display: flex;
    transform: scale(1)translateY(0);
  }

  .journey-loading {
    min-height: 200px;
    padding: 60px 20px;
  }

  @keyframes popupSlideIn {
    0% {
      opacity: 0;
      transform: translateY(3%);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes popupSlideOut {
    0% {
      opacity: 1;
      transform: translateY(0);
    }

    100% {
      opacity: 0;
      transform: translateY(2%);
    }
  }

  .journey-header {
    gap: 8px;
    min-height: 56px;
    padding: 16px;
  }

  .journey-destination {
    font-size: 1.2rem;
  }

  .journey-content-wrapper {
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 280px;
    overflow-y: auto;
  }

  .journey-content {
    padding: 16px;
  }

  .journey-close {
    background: #ffffff26;
    border: 2px solid #ffffff4d;
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 20px;
  }

  .journey-view-toggle {
    background: #ffffff26;
    border: 2px solid #ffffff4d;
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .journey-view-toggle svg {
    width: 20px;
    height: 20px;
  }

  .journey-info {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .journey-error {
    min-height: 280px;
    padding: 32px 16px;
  }

  .journey-error .error-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .journey-error .error-title {
    margin-bottom: 14px;
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .journey-error .error-message {
    max-width: 280px;
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .journey-refresh {
    gap: 8px;
    min-width: 140px;
    margin-bottom: 32px;
    padding: 12px 24px;
    font-size: .95rem;
  }

  .error-container {
    min-height: 250px;
    padding: 30px 20px;
  }

  .error-title, .error-title-muted, .loading-title {
    font-size: 1.8rem;
  }

  .error-message, .error-message-muted, .loading-message {
    font-size: 1.1rem;
  }

  .error-retry-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .loading-spinner {
    border-width: 3px;
    width: 40px;
    height: 40px;
  }

  .error-suggestions {
    flex-direction: column;
    align-items: stretch;
  }

  .suggestion-item {
    justify-content: center;
    font-size: .9rem;
  }

  .no-departures-message {
    margin-bottom: 14px;
    font-size: 1.1rem;
  }

  .no-departures-filter-message {
    margin-bottom: 24px;
    padding: 10px 16px;
    font-size: 1rem;
  }

  .skeleton-destination {
    width: 200px;
    height: 1.3rem;
  }

  .skeleton-platform {
    width: 60px;
    height: .9rem;
  }

  .skeleton-time {
    width: 80px;
    height: 1.6rem;
  }

  .skeleton-delay {
    width: 60px;
    height: .9rem;
  }

  .skeleton-minutes {
    width: 70px;
    height: 1rem;
  }

  .skeleton-line-badge {
    border-radius: 15px;
    width: 40px;
    height: 24px;
  }

  .airport-icon {
    width: 18px;
    height: 18px;
    margin-left: 10px;
  }
}

@media (width <= 480px) {
  .header {
    padding: 8px 12px;
  }

  .header.collapsed {
    min-height: 24px;
    padding: 1px 10px;
  }

  .time-display {
    margin: 0;
    position: absolute;
    top: 16px;
    left: 12px;
  }

  .digital-clock {
    padding: 2px 6px;
  }

  .time-segments {
    width: 70px;
  }

  .time-hours, .time-minutes, .time-seconds {
    width: 22px;
    font-size: 1.05rem;
  }

  .time-separator-first, .time-separator-second {
    width: 8px;
    font-size: 1.05rem;
  }

  .language-selector {
    margin: 0;
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .language-button {
    width: 36px;
    height: 36px;
    padding: 9px;
  }

  .language-button-inner {
    border-width: 2px;
    width: 30px;
    height: 30px;
  }

  .language-flag {
    width: 30px;
    height: 30px;
    font-size: 22px;
    transform: scale(.9);
  }

  .language-dropdown-top {
    min-width: 140px;
  }

  .station-search-container {
    margin-top: 45px;
    padding-bottom: 10px;
  }

  .station-search-input {
    letter-spacing: -1%;
    padding: 8px 10px;
    font-size: 2rem;
    transition: all .3s, font-size .15s ease-out, letter-spacing .15s ease-out;
  }

  .btn {
    white-space: nowrap;
    flex: 1;
    gap: 3px;
    padding: 8px;
    font-size: .7rem;
  }

  .icon {
    width: 14px;
    height: 14px;
  }

  .status {
    padding: 8px 12px;
    font-size: .8rem;
  }

  .status-content {
    gap: 6px;
  }

  .status-controls {
    gap: 8px;
  }

  .status-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
  }

  .transport-dropdown {
    min-width: 160px;
    max-width: calc(100vw - 16px);
    left: auto;
    right: 0;
    transform: none;
  }

  .departure-item {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    min-height: 60px;
    padding: 16px;
  }

  .airport-icon {
    width: 14px;
    height: 14px;
    margin-left: 8px;
  }
}

@media (width <= 360px) {
  .header {
    padding: 6px 8px;
  }

  .header.collapsed {
    min-height: 20px;
    padding: 1px 8px;
  }

  .time-display {
    margin: 0;
    position: absolute;
    top: 14px;
    left: 8px;
  }

  .digital-clock {
    padding: 1px 5px;
  }

  .time-segments {
    width: 62px;
  }

  .time-hours, .time-minutes, .time-seconds {
    width: 20px;
    font-size: .95rem;
  }

  .time-separator-first, .time-separator-second {
    width: 7px;
    font-size: .95rem;
  }

  .language-selector {
    margin: 0;
    position: absolute;
    top: 10px;
    right: 8px;
  }

  .language-button {
    width: 32px;
    height: 32px;
    padding: 8px;
  }

  .language-button-inner {
    border-width: 2px;
    width: 28px;
    height: 28px;
  }

  .language-flag {
    width: 28px;
    height: 28px;
    font-size: 20px;
    transform: scale(.8);
  }

  .language-dropdown-top {
    min-width: 130px;
  }

  .collapsed-station-name {
    max-width: 75%;
    font-size: .8rem;
  }

  .collapsed-expand-hint {
    font-size: .4rem;
  }

  .station-search-container {
    margin-top: 40px;
    padding-bottom: 10px;
  }

  .station-search-input {
    letter-spacing: -1%;
    padding: 6px 8px;
    font-size: 1.8rem;
    transition: all .3s, font-size .15s ease-out, letter-spacing .15s ease-out;
  }

  .btn {
    letter-spacing: .1px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 4px 6px;
    font-size: .65rem;
  }

  .icon {
    stroke-width: 2px;
    width: 12px;
    height: 12px;
  }

  .status {
    padding: 6px 8px;
    font-size: .75rem;
  }

  .status-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
  }

  .transport-dropdown {
    min-width: 140px;
    max-width: calc(100vw - 16px);
    left: auto;
    right: 0;
    transform: none;
  }

  .departure-item {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    min-height: 55px;
    padding: 12px 16px;
  }

  .btn-compact {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline !important;
  }

  .skeleton-destination {
    width: 160px;
    height: 1.2rem;
  }

  .skeleton-platform {
    width: 50px;
    height: .8rem;
  }

  .skeleton-time {
    width: 70px;
    height: 1.4rem;
  }

  .skeleton-delay {
    width: 50px;
    height: .8rem;
  }

  .skeleton-minutes {
    width: 60px;
    height: .9rem;
  }

  .journey-header {
    gap: 6px;
    min-height: 48px;
    padding: 12px;
  }

  .journey-close {
    background: #fff3;
    border: 2px solid #fff6;
    flex-shrink: 0;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    font-size: 18px;
  }

  .journey-destination {
    font-size: 1.1rem;
  }

  .journey-content-wrapper {
    min-height: 200px;
  }

  .journey-content {
    padding: 12px;
  }

  .journey-error {
    min-height: 220px;
    padding: 24px 12px;
  }

  .journey-error .error-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .journey-error .error-title {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .journey-error .error-message {
    max-width: 260px;
    margin-bottom: 24px;
    font-size: .95rem;
    line-height: 1.4;
  }

  .journey-refresh {
    gap: 6px;
    min-width: 120px;
    margin-bottom: 28px;
    padding: 10px 22px;
    font-size: .9rem;
  }

  .journey-overlay {
    align-items: flex-start;
    padding: 0;
  }

  .journey-popup {
    border: none;
    border-radius: 0;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }

  .no-departures-message {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .no-departures-filter-message {
    margin-bottom: 20px;
    padding: 8px 14px;
    font-size: .95rem;
  }

  .airport-icon {
    width: 12px;
    height: 12px;
    margin-left: 6px;
  }
}

@media (width <= 320px) {
  .transport-dropdown {
    min-width: 110px;
    max-width: calc(100vw - 8px);
    left: auto;
    right: 0;
    transform: none;
  }
}

@media (width <= 260px) {
  .status-controls {
    position: relative;
  }

  .transport-dropdown {
    z-index: 1001;
    min-width: 100px;
    max-width: calc(100vw - 16px);
    position: fixed;
    inset: auto 8px 8px auto;
    transform: none;
  }

  .station-search-input {
    letter-spacing: -1%;
    padding: 5px 6px;
    font-size: 1.6rem;
  }

  .collapsed-station-name {
    max-width: 80%;
    font-size: .7rem;
  }

  .status {
    padding: 2px 6px;
    font-size: .7rem;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
  initial-value: rotateX(0);
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
  initial-value: rotateY(0);
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
  initial-value: rotateZ(0);
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false;
  initial-value: skewX(0);
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false;
  initial-value: skewY(0);
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}
