body {
  font-family: sans-serif;
  font-size: clamp(16px, 1rem + 0.5vw, 20px);
  background: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 1.5rem;
}

.container {
  max-width: 20rem;
  width: 100%;
  margin: 0 auto;
  font-size: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; margin: 1.8rem 0 0; }

input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 0;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
}

.suggestions {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.suggestions li {
  padding: 6px 8px;
  line-height: 1.4;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.suggestions li:last-child { border-bottom: none; }
.suggestions li:hover { background: #f0f0f0; }

.line-badge {
  display: inline-block;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 0.8em;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
}

.line-ael { background: #00888A; }
.line-tcl { background: #f58220; }
.line-isl { background: #007DC5; }
.line-twl { background: #ED1D24; }
.line-ktl { background: #00a650; }
.line-eal { background: #53B7E8; }
.line-tml { background: #923011; }
.line-tkl { background: #7D499D; }
.line-sil { background: #BAC429; color: #000; }
.line-drl { background: #F173AC; }

#fromBadges, #toBadges {
  display: block;
  margin: 4px 0;
}

#fareResult {
  margin-top: 2.8rem;
  padding: 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  color: #003366;
  background: #e6f2ff;
  border: 2px solid #007DC5;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

#fareResult:hover { background: #dbeeff; }

footer.copyright {
  margin-top: 1em;
  font-size: 0.5rem;
  color: #555;
  text-align: center;
}

footer.copyright a {
  color: #555;
  text-decoration: none;
}

footer.copyright a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .container { max-width: 100%; }
}