:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #241f16;
  --muted: #949494;
  --line: #ededed;
  --accent: #ffca00;
  --accent-strong: #dfae00;
  --accent-soft: #fff0ad;
  --blue: #126a8a;
  --warn: #a24f12;
  --good: #177245;
  --shadow: 0 12px 28px rgba(82, 61, 21, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;

}

body,
button,
input {
  font-family: "museo-sans", "proxima-nova", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
.eyebrow,
.section-header,
.results-table th,
.summary-card strong {
  font-family: "museo-sans", "proxima-nova", Arial, Helvetica, sans-serif;
}
gmp-place-autocomplete {
    color-scheme: light;
}
button,
input {
  font: inherit;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #fff8ed;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.app-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.splash-logo {
  width: min(210px, 72vw);
  height: auto;
}

.splash-kicker {
  margin: 0;
  color: #5f5f5f;
  font-weight: 600;
}

.splash-loader {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 18px;
}

.splash-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: splashPulse 0.9s ease-in-out infinite;
}

.splash-loader span:nth-child(2) {
  animation-delay: 0.12s;
}

.splash-loader span:nth-child(3) {
  animation-delay: 0.24s;
}

.splash-enter {
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.splash-enter {
  width: min(260px, 100%);
  padding: 13px 18px;
  background: var(--accent);
  color: #241f16;
}

@keyframes splashPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .app-splash {
    align-items: start;
    padding-top: 34px;
  }

  .splash-inner {
    gap: 14px;
  }

}

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

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 0 4px;
}

.install-strip {
  display: none;
}

.install-strip[hidden] {
  display: none !important;
}

.install-cta,
.install-platform-button {
  border: 1px solid #eadcc3;
  border-radius: 8px;
  background: #fffdf7;
  color: #241f16;
  font-weight: 600;
  cursor: pointer;
}

.install-cta {
  width: 100%;
  padding: 10px 12px;
  background: var(--accent);
  border-color: var(--accent);
}

.install-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.install-platform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.install-platform-button i {
  font-size: 17px;
}

.install-help {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #5f5f5f;
  background: #fffdf7;
  font-size: 13px;
  line-height: 1.3;
}

.eyebrow {
  margin: 10px 0 6px;
  color: #2d2d2d;
  font-size: 16px;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 6px;
  font-size: 21px;
}

h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.route-panel,
.finder-panel,
.controls-panel,
.results-panel {
  padding: 20px;
}

.route-panel {
  border-top: 1px solid var(--line);
}

.route-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.control-row span,
.toggle-row span {
  font-weight: 600;
}

.field input,
.autocomplete-host gmp-place-autocomplete,
#searchInput {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  font-size: 16px;
  background: #fff;
}
.autocomplete-host gmp-place-autocomplete{
  padding:0px;
}
.field input:focus,
#searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 202, 0, 0.28);
}

.autocomplete-host {
  width: 100%;
}

.autocomplete-host gmp-place-autocomplete {
  display: block;
}

.mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.route-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 13px;
}

.mode-button,
.primary-button,
.secondary-button,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  touch-action: manipulation;
}

.mode-button {
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.mode-button i {
  font-size: 25px;
  line-height: 1;
}

.mode-button.active {
  color: #241f16;
  background: var(--accent);
}

.primary-button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: #241f16;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  padding: 0 14px;
  color: #6a4b00;
  background: var(--accent-soft);
}

.maps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: #241f16;
  background: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.maps-button:hover {
  background: var(--accent-strong);
}

.route-combo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.route-sequence {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.route-arrow {
  color: #51615a;
  font-size: 22px;
  line-height: 1;
  padding-top: 1px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.route-step {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 5px;
  min-width: 24px;
}

.route-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}

.route-step > .route-phosphor {
  min-height: 24px;
}

.route-step > .line-badge,
.route-step > .route-icon + .line-badge {
  margin-bottom: 0;
}

.step-time {
  min-height: 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.route-phosphor {
  width: 18px;
  height: 18px;
  color: #1e2824;
  font-size: 20px;
  line-height: 1;
}

.drive-phosphor {
  font-size: 22px;
}

.maps-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #241f16;
  background: var(--accent);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.maps-icon-button i {
  font-size: 20px;
  line-height: 1;
}

.maps-icon-button:hover {
  background: var(--accent-strong);
}

.maps-only-cell {
  display: flex;
  justify-content: flex-end;
}

.maps-only-heading {
  width: 52px;
}

.maps-only-data::before {
  display: none;
}

.rating-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 148px;
  --rating-color: #8f98a8;
}

.rating-score {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--rating-color);
  border-radius: 50%;
  color: var(--rating-color);
  background: transparent;
}

.rating-toggle {
  padding: 0;
  cursor: pointer;
}

.rating-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rating-box.low {
  --rating-color: #c43b2f;
}

.rating-box.mid {
  --rating-color: #ffca00;
}

.rating-box.high {
  --rating-color: #19964a;
}

.rating-score strong {
  font-size: 14px;
  line-height: 1;
}

.rating-main {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(36, 31, 22, 0.08);
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.rating-star {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--rating-color);
}

.rating-star-outline,
.rating-star-fill i {
  position: absolute;
  inset: 0;
  font-size: 20px;
  line-height: 1;
}

.rating-star-outline {
  color: #7c7c7c;
}

.rating-star-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--rating-color);
  transition: width 0.12s ease;
}

.rating-stars.previewing .rating-star-fill {
  color: #ffca00;
}

.rating-hit {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rating-hit.left {
  left: 0;
}

.rating-hit.right {
  right: 0;
}

.rating-hit:disabled {
  cursor: not-allowed;
}

.rating-box.disabled {
  opacity: 0.72;
}

.rating-tooltip {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(260px, 80vw);
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
  background: #241f16;
  box-shadow: 0 8px 18px rgba(36, 31, 22, 0.18);
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.rating-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #241f16;
  transform: translate(-50%, -4px) rotate(45deg);
}

.rating-box.disabled:hover .rating-tooltip,
.rating-box.disabled:focus-within .rating-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-button {
  width: 42px;
  font-size: 28px;
  color: var(--muted);
  background: #fff0ad;
}

.icon-button i {
  font-size: 22px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.status-pill.ready {
  color: var(--good);
  background: #e7f4ed;
}

.status-pill.warn {
  color: #6a4b00;
  background: var(--accent-soft);
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-bottom: 18px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
}

.suggestion {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.suggestion:hover {
  background: #fff3bf;
}

.suggestion strong {
  display: block;
  margin-bottom: 3px;
}

.suggestion span {
  color: var(--muted);
  font-size: 13px;
}

.selected-wrap {
  margin-top: 22px;
}

.selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 42px;
}

.selected-list.empty,
.results.empty {
  display: block;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 38px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf6;
}

.tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #fff0ad;
  cursor: pointer;
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-row,
.control-row {
  display: grid;
  gap: 8px;
}

.toggle-row {
  grid-template-columns: 20px 1fr;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.priority-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.priority-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  font-weight: 600;
}

.priority-button[hidden] {
  display: none;
}

.priority-button.active {
  color: #241f16;
  background: var(--accent);
}

.priority-button i {
  font-size: 25px;
  line-height: 1;
}

.priority-button span {
  font-size: 13px;
}

.admin-panel {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #efd47a;
  border-radius: 8px;
  color: #6a4b00;
  background: #fff7d1;
}

.app-footer {
  padding: 22px 0 0;
  text-align: center;
}

.app-footer a {
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 600;
}

.privacy-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.privacy-page h1 {
  margin-bottom: 18px;
}

.privacy-page section {
  margin: 22px 0;
}

.privacy-page li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.privacy-page a {
  color: #6a4b00;
  font-weight: 600;
}


.results.empty {
  min-height: 92px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.results-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  background: #fffaf0;
}

.rank {
  width: 42px;
  color: #8a6400;
  font-weight: 600;
}

.results-table th:nth-child(6),
.results-table td:nth-child(6) {
  width: auto;
}

.results-table td[data-label="Ruta"] {
  width: 36%;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 4px 0px 0;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.line-badge {
  color: var(--line-fg, #fff);
  background: var(--line-bg, #c8102e);
}

.line-badge.metro-l1,
.line-badge.bus {
  background: #c8102e;
}

.line-badge.horizontal-bus {
  background: #0057b8;
}

.line-badge.express-bus {
  color: #fff;
  background: #36b536;
}

.line-badge.metro-l2 {
  background: #7b1fa2;
}

.line-badge.metro-l3 {
  background: #1f8f3a;
}

.line-badge.metro-l4 {
  color: #17201c;
  background: #ffd200;
}

.line-badge.metro-l5 {
  background: #0067b1;
}

.line-badge.metro-l6 {
  background: #6f3fa0;
}

.line-badge.metro-l7 {
  background: #8b5a2b;
}

.line-badge.metro-l8 {
  background: #e98a15;
}

.line-badge.metro-l9,
.line-badge.metro-l10 {
  background: #f28c00;
}

.line-badge.metro-l11 {
  color: #17201c;
  background: #8bc53f;
}

.line-badge.metro-l12 {
  background: #b8c400;
  color: #17201c;
}

.line-badge.tram {
  background: #009fe3;
}

.line-badge.rail {
  background: #0f7a3a;
}

.route-text,
.reason {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.route-text {
  display: inline-block;
  margin-top: 6px;
}

.muted-text {
  color: var(--muted);
}

.parking-meter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 142px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffaf0;
}

.parking-heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.parking-inline-info {
  position: relative;
  display: none;
  align-items: center;
}

.parking-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #6a4b00;
  background: var(--accent-soft);
  cursor: pointer;
}

.parking-info-button i {
  font-size: 17px;
}

.parking-info-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, 80vw);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.parking-info-button:focus + .parking-info-popover,
.parking-info-button:hover + .parking-info-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.parking-number {
  color: var(--parking-color, #ffca00);
  font-size: 17px;
  line-height: 1;
}

.parking-bar {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 31, 22, 0.12);
}

.parking-bar span {
  width: var(--parking-percent, 0%);
  border-radius: inherit;
  background: var(--parking-color, #ffca00);
}

h1,
h2,
h3,
.eyebrow,
.field span,
.control-row span,
.toggle-row span,
.mode-button,
.primary-button,
.secondary-button,
.icon-button,
.priority-button,
.results-table th,
.rank,
.line-badge,
.step-time,
.maps-button,
.maps-icon-button,
.tag,
.parking-meter strong {
  font-weight: 600;
}

.loading-row {
  opacity: 0.72;
}

@media (min-width: 861px) {
  .route-combo {
    justify-content: space-between;
    gap: 22px;
    width: 100%;
  }

  .route-sequence {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
  }

  .results-table td[data-label="Ruta"] {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .maps-icon-button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .maps-icon-button i {
    font-size: 18px;
  }
}

@media (max-width: 860px) {
  .logo{
  display: flex;
    flex-direction: column;
    align-items: center;
}
.logo img{
  width:40%
}
  .app-shell {
    width: min(100% - 20px, 680px);
    padding: 16px 0 28px;
  }

  .hero,
  .section-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .install-strip {
    display: grid;
    gap: 7px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .finder-panel .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
  }

  .finder-panel .section-header .icon-button {
    width: 44px;
    min-height: 44px;
    align-self: start;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 19px;
  }

  p {
    font-size: 15px;
  }

  .route-panel,
  .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .route-panel,
  .finder-panel,
  .controls-panel,
  .results-panel {
    padding: 16px;
  }

  .mode-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .mode-button,
  .primary-button,
  .secondary-button {
    min-height: 48px;
    width: 100%;
  }


  .status-pill {
    width: 100%;
    text-align: center;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table thead {
    display: none;
  }

  .results-table tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 6px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .results-table td {
    padding: 5px 0;
    border-bottom: 0;
  }

  .results-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .results-table .rank {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #241f16;
    background: #edf0f2;
    font-size: 18px;
  }

  .results-table .rank::before {
    display: none;
  }

  .results-table td[data-label="EBM"] {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 40px;
    padding: 2px 0 17px 55px;
    border-bottom: 1px solid var(--line);
  }

  .results-table td[data-label="EBM"] strong {
    display: block;
    margin-top: 0px;
    font-size: 20px;
    line-height: 1.15;
  }

  .results-table td[data-label="EBM"]::before {
    display: block;
  }

  .results-table td[data-label="Valoració"] {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    text-align: right;
    padding: 0 0 20px 10px;
    border-bottom: 1px solid var(--line);
  }

  .results-table td[data-label="Valoració"] .rating-box {
    min-width: 0;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 4px;
    width: max-content;
    margin-left: auto;
  }

  .results-table td[data-label="Valoració"] .rating-main {
    display: none;
    margin-left: 0;
    margin-right: 0;
    min-height: 24px;
    padding: 6px 8px;
  }

  .results-table td[data-label="Valoració"] .rating-box.open .rating-main {
    display: inline-flex;
  }

  .results-table td[data-label="Valoració"] .rating-score {
    width: 40px;
    height: 40px;
  }

  .results-table td[data-label="Valoració"] .rating-star {
    width: 28px;
    height: 28px;
  }

  .results-table td[data-label="Valoració"] .rating-star-outline,
  .results-table td[data-label="Valoració"] .rating-star-fill i {
    font-size: 26px;
  }

  .results-table td[data-label="Valoració"] .rating-hit {
    top: -6px;
    bottom: -6px;
  }

  .results-table td[data-label="Valoració"]::before {
    display: none;
  }

  .results-table td[data-label="Temps"],
  .results-table td[data-label="Distància"],
  .results-table td[data-label="Transbords"] {
    display: inline-block;
    width: calc((100% - 8px) / 3);
    margin-top: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    background: #fffaf0;
    vertical-align: top;
  }

  .results-table tr.mode-driving {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-table td[data-label="Temps"] + td[data-label="Distància"],
  .results-table td[data-label="Distància"] + td[data-label="Transbords"] {
    margin-left: 4px;
  }

  .results-table td[data-label="Ruta"] {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .route-combo {
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .route-sequence {
    flex: 1 1 auto;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    max-width: calc(100% - 56px);
    padding: 2px 2px 4px;
  }

  .route-step {
    flex: 0 0 auto;
  }

  .route-arrow {
    flex: 0 0 auto;
  }

  .maps-icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .results-table td[data-label="Temps"],
  .results-table td[data-label="Distància"],
  .results-table td[data-label="Transbords"] {
    display: inline-flex;
    flex-direction: column;
    width: auto;
    min-height: 74px;
    margin-top: 12px;
    padding: 10px 8px;
    vertical-align: top;
  }

  .results-table td[data-label="Temps"] {
    grid-column: 1;
    grid-row: 2;
  }

  .results-table td[data-label="Distància"] {
    grid-column: 2;
    grid-row: 2;
  }

  .results-table td[data-label="Transbords"] {
    grid-column: 3;
    grid-row: 2;
  }

  .results-table td[data-label="Temps"] + td[data-label="Distància"],
  .results-table td[data-label="Distància"] + td[data-label="Transbords"] {
    margin-left: 0;
  }

  .results-table td[data-label="Ruta"] {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
  }

  .results-table td[data-label="Aparcar a prop"] {
    grid-column: 1 / -1;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .results-table td[data-label="Ruta"] .route-combo {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .results-table td[data-label="Ruta"] .route-sequence {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: calc(100% - 56px);
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
}

@media (max-width: 420px) {
  .route-panel > *,
.search-grid > *,
.field,
.autocomplete-host,
.mode-row,
.search-box {
  min-width: 0;
  max-width: 100%;
}

.field input,
.autocomplete-host input,
.autogmp,
#originInput,
#searchInput {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mode-row {
  width: 100%;
  max-width: 100%;
}
  .app-shell {
    width: min(calc(100% - 14px), 680px);
    padding-top: 10px;
  }

  h1 {
    font-size: 28px;
  }

  .route-panel,
  .finder-panel,
  .controls-panel,
  .results-panel {
    padding: 14px;
  }

  .finder-panel .section-header {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

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

  .results-table tr {
    padding: 12px;
  }

  .results-table .rank {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .results-table td[data-label="EBM"] {
    padding-left: 50px;
  }

  .results-table td[data-label="Tiempo"],
  .results-table td[data-label="Distancia"],
  .results-table td[data-label="Transbordos"] {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .results-table td[data-label="Tiempo"] + td[data-label="Distancia"],
  .results-table td[data-label="Distancia"] + td[data-label="Transbordos"] {
    margin-left: 0;
  }

  .route-sequence {
    gap: 6px;
    max-width: 100%;
  }

  .route-combo {
    align-items: flex-start;
    flex-direction: column;
  }

  .maps-icon-button {
    align-self: flex-end;
  }

  .results-table td[data-label="Tiempo"],
  .results-table td[data-label="Distancia"],
  .results-table td[data-label="Transbordos"] {
    width: calc((100% - 12px) / 3);
    margin-top: 8px;
    padding: 8px 5px;
    min-height: 66px;
    font-size: 14px;
  }

  .results-table td[data-label="Tiempo"] + td[data-label="Distancia"],
  .results-table td[data-label="Distancia"] + td[data-label="Transbordos"] {
    margin-left: 6px;
  }

  .results-table td[data-label="Ruta"] .route-combo {
    flex-direction: row;
    align-items: center;
  }

  .results-table td[data-label="Ruta"] .route-sequence {
    max-width: calc(100% - 52px);
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .results-table td[data-label="Ruta"] .maps-icon-button {
    align-self: center;
  }

  .results-table tr.mode-driving {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 52px;
  }

  .results-table tr.mode-driving td[data-label="Aparcar a prop"] {
    grid-column: 1 / 3;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .results-table tr.mode-driving .maps-only-data {
    grid-column: 3;
    align-self: end;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .results-table tr.mode-driving .maps-only-cell {
    justify-content: flex-end;
  }

  .parking-inline-info {
    display: inline-flex;
  }

  .parking-meter {
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .line-badge {
    min-height: 23px;
    padding: 0 8px;
  }

  .results-table td[data-label="Tiempo"],
  .results-table td[data-label="Distancia"],
  .results-table td[data-label="Transbordos"] {
    width: calc((100% - 8px) / 3);
    margin-top: 8px;
    padding: 9px 6px;
    font-size: 15px;
  }

  .results-table td[data-label="Tiempo"] + td[data-label="Distancia"],
  .results-table td[data-label="Distancia"] + td[data-label="Transbordos"] {
    margin-left: 4px;
  }

  .results-table td::before {
    font-size: 11px;
  }
}
