/* CercaníasYa. | Theme and layout */
:root {
  /* Brand */
  --color-primary: #f60003;
  --color-primary-dark: #b80016;
  --color-primary-light: #ffffff;

  /* Text */
  --color-text: #26332f;
  --color-text-strong: #26332f;
  --color-text-muted: #7c8882;
  --color-text-subtle: #8b9890;

  /* Surfaces and borders */
--color-background: #f7f7f7;
  --color-surface: #ffffff;
  --color-surface-muted: #f2f2f2;
  --color-border: #e5e5e5;
  --color-border-light: #eeeeee;
  /* Feedback */
  --color-warning: #906c40;
  --color-warning-background: #fff4e5;
  --color-danger: #c84944;

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  font-synthesis: none;
}

/* Base */
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }

/* Layout and header */
.wrap { max-width: 740px; margin: 0 auto; padding: 26px 20px 85px; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.logo { text-decoration: none; color: var(--color-primary); font-weight: 850; letter-spacing: -.055em; font-size: clamp(36px, 5vw, 46px); }
.logo span { color: var(--color-primary); }
.header-right { font-size: 12px; color: #65716d; display: flex; align-items: center; gap: 5px; }
.pulse { height: 8px; width: 8px; background: var(--color-primary); border-radius: 50%; }
.intro { margin-bottom: 43px; }
h1 { font-size: clamp(36px, 7vw, 58px); letter-spacing: -.065em; line-height: 1.03; margin: 0 0 15px; font-weight: 780; }
h1 em { font-style: normal; color: var(--color-text-muted); }
.intro p { font-size: 15px; color: var(--color-text-muted); line-height: 1.55; max-width: 390px; margin: 0; }
h2 { font-size: 22px; font-weight: 750; letter-spacing: -.035em; line-height: 1.2; margin: 0; color: var(--color-text); }
.topline { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.text-btn { border: 0; background: transparent; color: var(--color-primary); font-size: 13px; font-weight: 650; }

/* Favourite route cards */
.favourites { display: grid; gap: 12px; }
.fav { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; padding: 18px 19px; box-shadow: 0 2px 10px #162d2106; }
.fav-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.route { background: none; border: 0; padding: 0; text-align: left; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--color-text); font-weight: 720; font-size: 16px; }
.route .arrow { color: #a1aba6; }
.remove { border: 0; background: transparent; color: #abb6ae; font-size: 23px; line-height: 1; padding: 0 3px; }
.remove:hover { color: var(--color-danger); }
.fav-bottom { display: block; }

/* Three upcoming departures per favourite */
.fav-trains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: 100%; }
.fav-train { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px 8px 10px; border-radius: 8px; background: var(--color-surface-muted); }
.fav-train-time { display: block; text-align: center; font-size: clamp(21px, 5vw, 28px); font-weight: 750; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--color-text-strong); }
.fav-train-time .revised-time { font-size: inherit; color: var(--color-text-strong); }
.fav-train-original { min-height: 17px; margin-top: 4px; font-size: 10px; color: var(--color-text-muted); text-align: center; white-space: nowrap; }
.fav-platform { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin-top: 7px; padding: 9px 3px 8px; border-radius: 9px; background: var(--color-primary-light); color: var(--color-primary-dark); }
.fav-platform small { font-size: 9px; letter-spacing: .045em; font-weight: 700; line-height: 1.2; color: var(--color-primary-dark); }
.fav-platform strong { font-size: clamp(21px, 5vw, 28px); line-height: 1.1; font-weight: 800; color: var(--color-primary-dark); }
.fav-train-line { margin-top: 9px; color: var(--color-text-muted); font-size: 11px; text-align: center; white-space: nowrap; }
.usual-platform { display: block; margin: 9px 16px 0; font-size: 12px; line-height: 1.4; color: var(--color-text); text-align: left; white-space: normal; }

/* Departure and arrival times */
.time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; font-size: 31px; font-weight: 760; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--color-text-strong); }
.scheduled-time { font-size: .65em; font-weight: 500; color: var(--color-text-muted); text-decoration: none; letter-spacing: -.03em; }
.revised-time { color: var(--color-text-strong); }
.arrival-detail { margin-top: 4px; font-size: 11px; color: var(--color-text-muted); }
.muted { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }

/* Platform badges and feedback */
.platform { text-align: center; background: var(--color-surface-muted); padding: 9px 14px; border-radius: 8px; min-width: 79px; }
.platform small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .09em; color: var(--color-primary-dark); }
.platform strong { font-size: 27px; line-height: 1.15; color: var(--color-primary-dark); }
.notice { color: var(--color-warning); background: var(--color-warning-background); padding: 10px 12px; border-radius: 9px; font-size: 12px; }
.empty, .loading { padding: 17px; border: 1px dashed var(--color-border); border-radius: 12px; font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* Route search */
.add { display: block; margin: 13px 0 13px; padding: 12px 0; background: none; border: 0; color: var(--color-primary); font-size: 14px; font-weight: 680; }
.search { border-top: 1px solid var(--color-border); padding-top: 25px; }
.search h2 { margin-bottom: 15px; }
.fields { display: flex; align-items: end; gap: 9px; }
.fields label { display: block; flex: 1; min-width: 0; color: var(--color-text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fields select { margin-top: 8px; width: 100%; border: 1px solid var(--color-border); border-radius: 10px; height: 48px; padding: 0 11px; color: var(--color-text); background: var(--color-surface); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.fields #swap { height: 48px; width: 42px; flex-shrink: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; font-size: 23px; color: var(--color-primary-dark); }
.actions { display: flex; gap: 9px; margin-top: 13px; }
.primary, .secondary { border-radius: 10px; padding: 13px 19px; font-size: 13px; font-weight: 700; }
.primary { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.secondary { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }

/* Full search results */
.results { margin-top: 32px; }
.hidden { display: none; }
.updated { font-size: 11px; color: var(--color-text-subtle); }
.result-row { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 15px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 2px 10px #162d2106; }
#results { display: grid; gap: 10px; }
.result-main { min-width: 0; }
.result-was { margin-top: 5px; color: var(--color-text-muted); font-size: 11px; }
.result-info { margin-top: 14px; color: var(--color-text-muted); font-size: 12px; font-weight: 600; }
.result-arrival { margin-top: 5px; color: var(--color-text-muted); font-size: 12px; }
.result-row .platform { flex: 0 0 79px; }
.result-times { color: var(--color-text-strong); font-size: 32px; font-weight: 760; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }

/* Footer */
.undo-removal { position: fixed; z-index: 100; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 24px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--color-text-strong); color: white; font-size: 13px; box-shadow: 0 4px 20px #0003; }
.undo-removal button { border: 0; background: transparent; color: white; font-weight: 750; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
footer { border-top: 1px solid var(--color-border); margin-top: 50px; padding-top: 16px; color: var(--color-text-subtle); font-size: 11px; line-height: 1.6; }
footer div + div { margin-top: 8px; }
footer a { color: var(--color-primary); }
.timetable-key-section { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.timetable-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.timetable-key > div { margin: 0; }
.timetable-key dt { display: flex; align-items: center; gap: 3px; font-weight: 650; color: var(--color-text-muted); }
.timetable-key dt.updated-departure-label { color: var(--color-primary-dark); }
.timetable-key dd { margin: 5px 0 0; }

/* Small screens */
@media (max-width: 480px) {
  header { margin-bottom: 34px; }
  .wrap { padding: 20px 16px 75px; }
  .route { font-size: 14px; }
  .fav { padding: 16px; }
  .time { font-size: 28px; }
  .fields { gap: 6px; }
  .fields select { font-size: 12px; padding: 0 6px; }
  .actions > * { flex: 1; padding: 13px 8px; }
}
@media (max-width: 380px) {
  .fav-trains { gap: 6px; }
  .fav-train { padding: 10px 5px; }
  .fav-platform small { font-size: 8px; }
  .fav-train-time { font-size: 21px; }
}


/* Network map link */

.network-map {
  margin: 16px 0 32px;
  text-align: center;
}

.network-map a {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.network-map a:hover {
  text-decoration: underline;
}

/* Favourite sorting mode */
#order-favourites { margin-left: auto; color: var(--color-text-muted)}
.topline:has(#order-favourites) { gap: 12px; }
.fav-handle { display: none; border: 0; background: transparent; color: #abb6ae; font-size: 23px; line-height: 1; padding: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.favourites.is-ordering .fav-handle { display: block; touch-action: pan-y; }
.favourites.is-ordering .remove { display: none; }
.favourites.is-ordering .fav-bottom { display: none; }
.favourites.is-ordering .fav-top { margin-bottom: 0; }
.favourites.is-ordering .route { pointer-events: none; }
.favourites.is-ordering .fav {
  padding-bottom: 11px;
  transition: background-color .15s ease;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.favourites.is-ordering .fav-trains { pointer-events: none; }
.favourites.is-ordering .fav:not(.sortable-chosen):not(.sortable-ghost):not(.sortable-drag):not(.sortable-fallback) {
  animation: reorder-jiggle .3s ease-in-out infinite alternate;
}
.favourites.is-ordering .fav:nth-child(even) { animation-delay: -.15s; }
.favourites.is-ordering .fav.sortable-chosen { cursor: grabbing; }
@keyframes reorder-jiggle {
  from { rotate: -.35deg; }
  to { rotate: .35deg; }
}
@media (prefers-reduced-motion: reduce) {
  .favourites.is-ordering .fav { animation: none !important; }
}


.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}


.fav {
  padding: 15px 0;
}

.fav-top {
  margin-bottom: 11px;
  align-items: flex-start;
  padding-left: 16px;
  padding-right: 13px;
}

.route { row-gap: 3px; }
.fav-top .remove, .fav-top .fav-handle { width: 26px; height: 23px; flex: 0 0 26px; padding: 0 3px; text-align: center; transform: translate(4px, -4px); }

.fav-train {
  padding: 10px 7px 9px;
}

.fav-platform {
  margin-top: 5px;
  padding: 6px 3px;
  flex-direction: row;
  gap: 5px;
}

.fav-train-line {
  margin-top: 7px;
}

.favourites {
  gap: 10px;
}



.sortable-chosen {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sortable-ghost {
  opacity: 0.25;
}

.sortable-drag {
  opacity: 1;
  background: #fff;
}

.sortable-fallback {
  opacity: 1 !important;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  cursor: grabbing;
}
/* Original scheduled time beside the current departure time */
.fav-train-time, .result-times {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}
.result-times { justify-content: flex-start; }
.fav-train-time .scheduled-time { font-size: .55em; }
.result-times .scheduled-time { font-size: .6em; }


/* Favourite departure times */

.fav-train-time {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fav-train-time .revised-time {
  font-size: inherit;
  line-height: 1.1;
}

.fav-train-time .scheduled-time {
  display: block;
  flex-shrink: 0;
  height: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-text-muted);
  text-decoration: none;
}

/* Search result departure times */

.result-times {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.result-times .revised-time {
  font-size: inherit;
  line-height: 1.1;
}

.result-times .scheduled-time {
  display: block;
  height: 18px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.scheduled-time {
  position: relative;
  text-decoration: none;
}

.fav-train-time .scheduled-time, .result-times .scheduled-time { text-decoration: none; }
.scheduled-time:not(:empty)::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: rotate(-18deg);
  opacity: .45;
  pointer-events: none;
}

.scheduled-time:not(:empty) {
  color: var(--color-text-muted);
}

/* On time label */

.on-time {
  display: block;
  height: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: normal;
}

/* CercaníasYa unified departures board */
.site-header { align-items: baseline; margin-bottom: 22px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.city { color: var(--color-text-muted); font-size: 13px; font-weight: 600; }
.logo-dot { display: inline-block; font-size: 13px; width: 1cap; height: 1cap; margin-left: 3px; border-radius: 50%; background: currentColor; animation: logo-dot-pulse 2s ease-in-out infinite; }
@keyframes logo-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-dot { animation: none; }
}
.map-link { display: block; position: relative; padding-left: 25px; flex-shrink: 0; transform: translateY(-7px); color: var(--color-primary); font-size: 13px; font-weight: 650; text-decoration: none; }
.map-link svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-primary); }
.search { border: 0; padding: 14px 20px 20px; border-radius: 17px; background: var(--color-primary); }
.search h2 { color: white; margin-bottom: 10px; }
.search .fields label { color: #ffe3e3; }
.search .fields select { border-color: transparent; }
.search .fields #swap { border-color: transparent; color: var(--color-primary); }
.search .actions { margin-top: 13px; }
.search .primary { width: 100%; color: var(--color-primary); background: white; border-color: white; }
.journeys-section { margin-top: 28px; }
.journeys-section .topline { gap: 10px; }
.board-actions { display: flex; align-items: center; gap: 14px; }
.board-actions .text-btn { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; padding: 5px 0; }
.board-actions .text-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
#refresh[aria-busy="true"] { opacity: 1; cursor: progress; }
.refresh-icon { display: inline-block; animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .refresh-icon { animation: none; }
}
#order-favourites { margin-left: 0; color: var(--color-primary); width: 92px; height: 32px; line-height: 16px; justify-content: center; padding: 7px 12px; }
#order-favourites[aria-pressed="true"] { background: var(--color-primary); color: #fff; border-radius: 8px; padding: 7px 12px; }
.fav-top .route { cursor: default; }
.fav-bottom { min-width: 0; }
/* Two full tiles and half of the third invite horizontal swiping. */
.fav-trains { display: flex; overflow-x: auto; overflow-y: hidden; gap: 9px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.fav-trains::-webkit-scrollbar { display: none; }
.fav-trains::after { content: ''; flex: 0 0 7px; }
.fav-train { flex: 0 0 calc((100% - 18px) / 2.5); scroll-snap-align: start; }
.fav-train { scroll-margin-left: 16px; }
.fav-train-time { width: 100%; }
.fav-train-status { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 16px; flex: 0 0 16px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: normal; line-height: 16px; color: var(--color-text-muted); white-space: nowrap; }
.live-signal { flex: 0 0 14px; color: var(--color-primary-dark); }
.fav-train-status > [role="img"] { display: inline-flex; align-items: center; }
.live-signal { animation: live-signal-pulse 2s ease-in-out infinite; }
@keyframes live-signal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .live-signal { animation: none; }
}
.scheduled-clock { flex: 0 0 14px; color: var(--color-text-muted); }
.updated-departure-label { color: var(--color-primary-dark); }
.fav-train-line { font-size: 10px; }
.empty-state { text-align: center; max-width: 520px; margin: 52px auto 0; min-height: 330px; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; margin: 0 auto 20px; background: #ffe9e9; color: var(--color-primary); border-radius: 50%; }
.empty-state h2 { font-size: clamp(25px, 5vw, 34px); line-height: 1.15; margin-bottom: 17px; }
.empty-state p { margin: 0 auto 15px; max-width: 470px; font-size: 15px; line-height: 1.5; color: var(--color-text-muted); }
.hidden { display: none !important; }
@media (max-width: 480px) {
 .site-header { margin-bottom: 20px; }
 .map-link { transform: translateY(-4px); }
 .logo { font-size: clamp(30px, 8.5vw, 39px); }
 .search { padding: 12px 15px 17px; }
 .search .fields { gap: 6px; }
 .search .fields select { padding: 0 6px; }
 .search .fields #swap { width: 39px; }
 .search .actions > * { flex: none; }
 .journeys-section { margin-top: 24px; }
 .journeys-section h2 { font-size: 20px; }
 .board-actions { gap: 10px; }
 .board-actions .text-btn, .map-link { font-size: 12px; }
 .fav-train { padding: 10px 4px 9px; }
 .fav-train-time { font-size: clamp(19px, 5.5vw, 25px); }
 .fav-train-line { font-size: 9px; }
 .empty-state { margin-top: 48px; min-height: 350px; }
 .empty-state p { font-size: 14px; }
}

/* Keep horizontally scrollable departures inside the viewport. */
.wrap, .journeys-section, .favourites, .fav, .fav-bottom { min-width: 0; }
.favourites { grid-template-columns: minmax(0, 1fr); }
.fav { max-width: 100%; overflow: hidden; }
.fav-trains { min-width: 0; max-width: 100%; padding-left: 16px; }
.fav-bottom > .muted, .fav-bottom > .notice { display: block; margin-left: 16px; margin-right: 16px; line-height: 1.5; }

/* Coloured Cercanías line pills */
.fav-train-line { display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; width: 100%; white-space: nowrap; }
.line-pill { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 19px; padding: 2px 5px; border-radius: 999px; background: #68716e; color: #fff; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.arrival-label { font-size: 10px; white-space: nowrap; }
.line-c1 { background: #65b5e2; }
.line-c2 { background: #009c59; }
.line-c3 { background: #843681; }
.line-c4a, .line-c4b { background: #28377d; }
.line-c5 { background: #f4c331; color: #3e4140; }
.line-c7 { background: #e72c36; }
.line-c8a, .line-c8b { background: #7b807d; }
.line-c9 { background: #81583f; }
.line-c10 { background: #a0c83b; color: #39413c; }
.line-civis { background: #cc4e90; }
/* Subtle line colours help distinguish departures without overpowering the times. */
.fav-train:has(.line-c1) { background: #eff7fc; }
.fav-train:has(.line-c2) { background: #eaf7f1; }
.fav-train:has(.line-c3) { background: #f5eff5; }
.fav-train:has(.line-c4a, .line-c4b) { background: #eef0f7; }
.fav-train:has(.line-c5) { background: #fdf8e9; }
.fav-train:has(.line-c7) { background: #fceff0; }
.fav-train:has(.line-c8a, .line-c8b) { background: #f1f2f1; }
.fav-train:has(.line-c9) { background: #f5f1ed; }
.fav-train:has(.line-c10) { background: #f5f9eb; }
.fav-train:has(.line-civis) { background: #faeff5; }
@media (max-width: 480px) {
  .line-pill { font-size: 9px; padding: 2px 4px; min-height: 18px; }
  .arrival-label { font-size: 9px; }
}

/* Arrival and line displayed in separate, centred rows */
.fav-trains { align-items: stretch; }
.fav-train-arrival {
  width: 100%;
  margin-top: auto;
  padding-top: 5px;
  text-align: center;
  min-height: 26px;
}
.fav-train-arrival .arrival-label {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.fav-train-arrival .arrival-label strong {
  color: var(--color-text-strong);
  font-weight: 750;
  font-size: 14px;
}
.fav-train-line {
  margin-top: 3px;
  min-height: 20px;
  justify-content: center;
}
@media (max-width: 480px) {
  .fav-train-arrival .arrival-label, .fav-train-status { font-size: 11px; }
  .fav-train-arrival .arrival-label strong { font-size: 13px; }
}

/* Line and final train destination: one row, truncated to tile width */
.fav-train-line { overflow: hidden; padding: 0 2px; }
.train-destination-arrow { flex: 0 0 auto; font-size: 11px; color: var(--color-text-muted); }
.train-destination { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; color: var(--color-text-strong); }
@media (max-width: 480px) { .train-destination { font-size: 9px; } }

.search-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.search .search-heading h2 { margin-bottom: 0; }
.destination-hint { margin: 0; color: #fff; font-size: 11px; line-height: 1.4; }
.destination-hint:empty { display: none; }
