﻿@charset "UTF-8";
.routeplan.container {
  padding: 2rem 0;
  min-height: 70vh;
}

.routeplan__query {
  padding: 0 2rem;
}

.routeplan__intro {
  font-size: 1.6rem;
  line-height: 1.3;
}

.queryroutepath {
  padding: 1rem 0;
}

@media only screen and (min-width: 769px) {
  .queryroutepath {
    width: 50%;
  }
}
.input-group {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.queryroutepath .input-group {
  align-items: stretch;
}

.querystation__wrap {
  flex: 0 0 fit-content;
  background-color: var(--bgcolor-darkblue);
  color: #FFF;
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--bgcolor-darkblue);
  border-radius: 0.5rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.input-text {
  flex: 0 0 fit-content;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 0 1rem;
}

.input-button {
  flex: 0 0 fit-content;
  min-width: 10%;
  margin-left: 1rem;
  padding: 1rem 0;
  -webkit-appearance: none;
  cursor: pointer;
  border: none;
  outline: none;
  background-color: transparent;
}

.query.input-button {
  font-size: 1.4rem;
  background-color: var(--bgcolor-darkblue);
  color: #FFFFFF;
  border-radius: 0.5rem;
}

.stationlist {
  border: 1px solid #333;
  border-radius: 0.5rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

.errMsg__wrap {
  margin: 2rem 0;
}

.errMsg__text {
  color: darkred;
  font-size: 1.8rem;
  font-weight: bold;
}

.routeplan__baseinfo,
.stationapi__baseinfo {
  padding: 0 2rem;
}

.routeplan__baseinfo table,
.stationapi__baseinfo table {
  width: 100%;
  font-size: 1.8rem;
}

.routeplan__baseinfo th, .routeplan__baseinfo td,
.stationapi__baseinfo th, .stationapi__baseinfo td {
  width: 25%;
  padding: 1rem 0;
  text-align: left;
}

.routeplan__baseinfo th.center,
.routeplan__baseinfo td.center,
.stationapi__baseinfo th.center,
.stationapi__baseinfo td.center {
  text-align: center;
}

.routeplan__baseinfo th,
.stationapi__baseinfo th {
  background-color: var(--bgcolor-lightblue);
  font-weight: bold;
}

.summarypath__wrap {
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 0;
}

.summarypath__wrap img {
  height: 4rem;
}

.summarypath__wrap .walk__text {
  padding-left: 3px;
  align-self: flex-end;
}

table.routeplan__detail {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem auto;
}

table.routeplan__detail td {
  padding: 0;
}

.routeplan__detail .stationlabel,
.routeplan__detail .walk {
  width: 15%;
  font-size: 0;
  text-align: center;
  position: relative;
}

@media only screen and (min-width: 769px) {
  table.routeplan__detail {
    width: 60%;
  }
}
.routeplan__detail .stationlabel.pass::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #FFF;
  margin: auto;
}

.routeplan__detail .stationlabel::after,
.routeplan__detail .stationlabel::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: -2;
}

.routeplan__detail .stationlabel.first::after {
  height: 50%;
  top: initial;
  bottom: 0;
}

.routeplan__detail .stationlabel.last::after {
  height: 50%;
  top: 0;
}

.routeplan__detail .Brown.stationlabel::after {
  background-color: var(--color-br);
}

.routeplan__detail .Red.stationlabel::after {
  background-color: var(--color-r);
}

.routeplan__detail .Green.stationlabel::after {
  background-color: var(--color-g);
}

.routeplan__detail .Orange.stationlabel::after {
  background-color: var(--color-o);
}

.routeplan__detail .Blue.stationlabel::after {
  background-color: var(--color-bl);
}

.routeplan__detail .Yellow.stationlabel::after {
  background-color: var(--color-y);
}

.routeplan__detail .stationlabel img {
  background-color: #FFF;
}

@media only screen and (min-width: 769px) {
  .routeplan__detail .stationlabel img {
    width: 70%;
  }
}
.routeplan__detail .stationname {
  width: 70%;
  color: #000;
  font-size: 2.2rem;
  font-weight: bold;
  padding: 1rem 0 1rem 1rem;
}

.routeplan__detail .transferline {
  height: 6rem;
}

.routeplan__detail .transferline .walk::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 5px; /* 虛線寬度 */
  height: 100%;
  background: repeating-linear-gradient(to bottom, grey 0px, grey 4px, transparent 4px, transparent 8px); /* 黑色線條，間隔透明 */
}

.routeplan__detail .transferline .walk::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  background: url(../images/icon_walk.svg), #FFF;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.routeplan__detail .transfertext {
  color: grey;
  font-size: 1.8rem;
}

.routeplan__detail .transfertext span {
  margin-left: 3rem;
  display: inline-block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid grey;
}

.routeplan__detail .routeline {
  width: 100%;
  padding-left: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.routeplan__detail .routeline img {
  max-height: 30px;
}

.routeplan__detail .lineimg {
  flex: 0 0 fit-content;
}

.routeplan__detail .destname {
  flex: 0 0 fit-content;
  padding-left: 0.5rem;
  font-size: 1.8rem;
}

.routeplan__detail .collapsepass {
  padding: 1rem 0 1rem 1rem;
}

.routeplan__detail .collapsepass__text {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  padding: 0.5rem 2.5rem 0.5rem 1.5rem;
  background: #E3E3E3;
  border-radius: 1000px;
  position: relative;
}

.routeplan__detail .collapsepass__text.multi::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 20px;
  height: 100%;
  background-image: url("../images/icon_collapse-open.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.routeplan__detail .collapsepass__text.collapse::before {
  background-image: url("../images/icon_collapse-close.svg");
}

.routeplan__detail .row__pass {
  display: none;
}

.routeplan__detail .row__pass.collapse {
  display: table-row;
}

.routeplan__detail .traintime {
  width: 15%;
  color: gray;
  text-align: right;
  font-size: 1.8rem;
  font-weight: bold;
}

.stationapi__baseinfo table {
  border-collapse: collapse;
}

.stationapi__baseinfo table th,
.stationapi__baseinfo table td {
  border: 1px solid silver;
  padding: 1rem;
}

.stationapi__baseinfo table th {
  color: #000;
  background-color: #efefef;
}

.stationapi__title {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 1rem 0;
}
