.transport-main {
  padding: 1rem;
  padding-bottom: 5.5rem;
}

.transport-grid {
  display: grid;
  gap: 1rem;
}

.transport-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.transport-footer-spacer {
  height: 1rem;
}

.transport-priority-panel {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.transport-mode-panel {
  padding: 0.85rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.96));
}

.transport-mode-label {
  margin: 0;
  color: #137fec;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.transport-mode-hint {
  margin: 0.2rem 0 0;
  color: rgba(17, 24, 39, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.transport-mode-switch {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.22rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.03));
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.transport-mode-option {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon hint";
  column-gap: 0.55rem;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 0.95rem;
  background: transparent;
  padding: 0.72rem 0.9rem;
  flex: 1 1 0;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.transport-mode-icon {
  display: grid;
  place-items: center;
  grid-area: icon;
  align-self: center;
  justify-self: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(19, 127, 236, 0.08);
  color: rgba(19, 127, 236, 0.92);
  font-size: 1rem;
  line-height: 1;
  overflow: hidden;
  flex: 0 0 1.7rem;
  vertical-align: middle;
  padding: 0;
}

.transport-mode-icon.material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1;
  text-align: center;
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 20;
}

.transport-mode-option strong {
  grid-area: title;
  display: block;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  align-self: end;
}

.transport-mode-meta {
  grid-area: hint;
  display: block;
  margin-top: 0.14rem;
  color: rgba(17, 24, 39, 0.65);
  font-size: 0.69rem;
  line-height: 1.2;
}

.transport-mode-option.is-active {
  background: linear-gradient(180deg, #ffffff, rgba(248, 250, 252, 0.96));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.transport-mode-option.is-active .transport-mode-icon {
  background: linear-gradient(180deg, rgba(19, 127, 236, 0.16), rgba(19, 127, 236, 0.08));
}

.transport-mode-option:not(.is-active) {
  opacity: 0.82;
}

.transport-city-filters {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.transport-city-field {
  display: grid;
  gap: 0.35rem;
}

.transport-city-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.6);
}

.transport-field-icon {
  font-size: 0.95rem;
  color: #137fec;
}

.transport-city-select {
  height: 2.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 0 0.9rem;
  color: #111827;
}

#transportFormPanel {
  padding: 0.95rem;
}

#transportFormPanel p.text-sm {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.transport-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

#transportFormPanel select {
  height: 2.8rem;
  margin-bottom: 0.55rem;
}

#transportFormPanel #search-btn {
  margin-top: 1rem;
  height: 3.1rem;
  font-size: 0.95rem;
}

.transport-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.transport-action-button .material-symbols-outlined {
  font-size: 1.1rem;
}

#transportFormPanel .transport-stop-group + .transport-stop-group {
  margin-top: 0.7rem;
}

.transport-stop-group.hidden {
  display: none;
}

.transport-hero {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at top right, rgba(19, 127, 236, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.95));
  padding: 1rem 1.05rem 1.1rem;
}

.transport-hero p {
  margin: 0;
  max-width: 52rem;
  color: rgba(17, 24, 39, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

.transport-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: rgba(17, 24, 39, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transport-breadcrumbs a {
  color: #0b5cad;
}

.transport-summary {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.transport-intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.transport-intent-chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 127, 236, 0.14);
  background: rgba(19, 127, 236, 0.08);
  color: #0b5cad;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.transport-back-link {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .transport-hero {
    padding: 1.1rem 1.2rem 1.2rem;
  }

  .transport-hero p {
    font-size: 0.94rem;
  }

  .transport-back-link {
    display: none;
  }
}

.transport-panel {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.transport-map-panel {
  position: relative;
  overflow: hidden;
}

.transport-map-canvas-wrap.hidden {
  display: none;
}

.transport-map-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

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

.transport-map-panel #directions-link {
  margin-top: 1rem;
}

.transport-map-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(19, 127, 236, 0.16);
  border-radius: 0.95rem;
  background: rgba(19, 127, 236, 0.08);
  color: #0b5cad;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.transport-map-reveal .material-symbols-outlined {
  font-size: 1.08rem;
}

.transport-map-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.transport-map-pill--from {
  background: rgba(19, 127, 236, 0.12);
  color: #0b5cad;
}

.transport-map-pill--to {
  background: rgba(17, 24, 39, 0.1);
  color: #111827;
}

.transport-content-stack {
  display: grid;
  gap: 1.25rem;
}

.transport-section-kicker {
  margin: 0;
  color: #137fec;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.transport-section-title {
  margin: 0.35rem 0 0;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.transport-section-lead {
  margin: 0.8rem 0 0;
  color: rgba(17, 24, 39, 0.82);
  font-size: 0.96rem;
  line-height: 1.7;
}

.transport-guide-grid,
.transport-answer-grid,
.transport-links-grid {
  display: grid;
  gap: 0.9rem;
}

.transport-guide-card,
.transport-answer-card,
.transport-link-card,
.transport-route-card,
.transport-faq-card {
  border-radius: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(248, 250, 252, 0.88);
  padding: 1rem;
}

.transport-guide-card h3,
.transport-answer-card h3,
.transport-link-card h3,
.transport-route-card h3,
.transport-faq-card h3,
.transport-routes-title,
.transport-links-title,
.transport-faq-title {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.transport-guide-card p,
.transport-answer-card p,
.transport-link-card p,
.transport-route-card p,
.transport-faq-card p {
  margin: 0.55rem 0 0;
  color: rgba(17, 24, 39, 0.76);
  font-size: 0.9rem;
  line-height: 1.65;
}

.transport-guide-disclosure {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 0.9rem;
}

.transport-guide-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.transport-guide-disclosure summary::-webkit-details-marker {
  display: none;
}

.transport-guide-disclosure summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 127, 236, 0.1);
  color: #137fec;
  font-size: 1rem;
  line-height: 1;
}

.transport-guide-disclosure[open] summary::after {
  content: "−";
}

.transport-guide-disclosure-body {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.95rem;
}

.transport-route-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.transport-route-list li {
  display: grid;
  gap: 0.28rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.transport-route-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.transport-route-list strong {
  color: #111827;
  font-size: 0.9rem;
}

.transport-route-list span {
  color: rgba(17, 24, 39, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.transport-link-card {
  display: block;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transport-link-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.transport-link-card.external::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.35rem;
  color: #137fec;
  font-weight: 700;
}

.transport-trust-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: rgba(19, 127, 236, 0.08);
  color: rgba(17, 24, 39, 0.76);
  font-size: 0.84rem;
  line-height: 1.55;
}

.transport-trust-note .material-symbols-outlined {
  color: #137fec;
  font-size: 1.05rem;
}

.transport-results-list {
  display: grid;
  gap: 0.9rem;
}

.transport-result-card {
  border-radius: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transport-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.transport-stops-toggle {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 0.85rem;
}

.transport-stops-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.transport-stops-toggle summary::-webkit-details-marker {
  display: none;
}

.transport-stops-toggle summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 127, 236, 0.1);
  color: #137fec;
  font-size: 1rem;
  line-height: 1;
}

.transport-stops-toggle[open] summary::after {
  content: "−";
}

.transport-stops-panel {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(19, 127, 236, 0.08);
}

.transport-stops-list {
  display: grid;
  gap: 0.85rem;
}

.transport-stop-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.transport-stop-time {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #137fec;
  padding-top: 0.1rem;
}

.transport-stop-node {
  position: relative;
  padding-left: 1.15rem;
  min-height: 1.7rem;
}

.transport-stop-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.transport-stop-node::after {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 1rem;
  bottom: -1rem;
  width: 1px;
  background: rgba(17, 24, 39, 0.16);
}

.transport-stop-item:last-child .transport-stop-node::after {
  display: none;
}

.transport-stop-node strong {
  display: block;
  color: #111827;
  font-size: 0.92rem;
}

.transport-stop-badge {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(19, 127, 236, 0.12);
  color: #0b5cad;
}

.transport-empty-state {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  color: rgba(17, 24, 39, 0.7);
  background: rgba(255, 255, 255, 0.72);
}

@media (min-width: 1024px) {
  .transport-main {
    padding: 1.5rem 1.5rem 7rem;
  }

  .transport-grid {
    align-items: start;
  }

  .transport-grid > .transport-column:first-child {
    grid-template-rows: auto auto 1fr;
  }

  .transport-grid > .transport-column:last-child {
    padding-top: 0;
    margin-top: 0;
  }

  .transport-mode-panel,
  .transport-map-panel {
    align-self: start;
    margin-top: 0;
  }

  .transport-mode-panel {
    padding: 0.9rem 1rem;
  }

  .transport-mode-switch {
    max-width: 38rem;
  }

  .transport-guide-grid,
  .transport-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .transport-city-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
  }

  .transport-map-panel {
    position: sticky;
    top: 7.5rem;
  }

  .transport-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-footer-spacer {
    height: 2.75rem;
  }
}

@media (max-width: 639px) {
  .transport-main-shell {
    padding-top: 0.65rem;
  }

  .transport-mode-panel {
    padding: 0.8rem;
  }

  .transport-mode-switch {
    flex-direction: column;
    border-radius: 1.1rem;
  }

  .transport-mode-option {
    border-radius: 0.9rem;
  }

  #transportFormPanel {
    padding: 0.85rem;
  }

  .transport-main {
    padding: 1.1rem 0.75rem 5.25rem;
  }

  .transport-summary {
    font-size: 0.95rem;
  }

  .transport-section-title {
    font-size: 1.2rem;
  }

  .transport-panel {
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .transport-result-card:hover {
    transform: none;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  }

  .transport-hero {
    padding: 1rem 1rem 1.05rem;
  }

  .transport-hero p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .transport-map-panel #directions-link {
    margin-top: 0.9rem;
  }
}
