:root
{
    --color-blue:#20498E ;
    --color-green:#76B72A; 
    --color-red: #C71517;
    --color-yellow: #FAD53D;
    --color-dark-text: #2E383C;

    --background-firsttrain: #EBF6FF;
    --background-auxiliarytrain: #005B96;

    --map-background-color : white;
    --map-station-basic-width: 10px;
    --map-station-point-width: 19px;
    --map-line-color-yl:#FAD53D;
    --map-line-color-pk:#D76886;
    --map-line-color-gr:#7AB420;
    --map-line-color-gw:#00807D;
    --map-line-color-gold:#a88b34;
    --map-line-color-white:#ffffff;
}

*{
    box-sizing: border-box;
    color: var(--color-dark-text);
}
.ttfq-container
{
    padding-top: 168px;
    width: 100%;
    height: 100%;
    user-select: none;
}
.main-content
{
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;

    padding-bottom: 60px;
}
.main-content .head-title
{
    width: 100%;
    text-align: center;
}
.main-content .head-title h1
{
    color: var(--color-dark-text);
    font-size: 24px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}
.main-content .head-title h1::before
{
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 4px;
    border-radius: 100px;
    background: var(--color-yellow);
}

.main-top
{
    margin-top: 50px;
}
.main-top .search-station
{
    display: grid;
    grid-template-columns: 240px 280px 1fr;
    height: 40px;
    gap: 15px;
    align-items: center;
}
.main-top .search-station select
{
    width: 100%;
    height: 100%;
}
.main-top .search-station input
{
    width: 240px;
    height: 100%;
}
.main-top .search-station input, .main-top .search-station select
{
    outline: none;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
}
.main-top .search-station .right
{
    display: flex;
    align-items: center;
    justify-content: end;
}
.main-top .search-station .right span
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-top .search-station .right span img
{
    position: absolute;
    right: 10px;
    width: 18px;
    height: auto;
}
.main-top .search-station .right span input
{
    transition: .1s ease-in-out;
}
.main-top .search-station .right span input::placeholder
{
    color: #BCBCBC;
    font-size: 13px;
}
.main-top .search-station .right span .result-bar
{
    position: absolute;
    top: 100%;
    width: 100%;
    height: 0px;
    /* padding: 8px 10px; */
    z-index: 2;
    transition: .1s ease-in-out;
    overflow-y: auto;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0px 1px 12px rgba(0, 0, 0, 0.15);
}

#result-bar .loading
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
#result-bar .loading div
{
    width: 5px;
    height: 5px;
    background: #2E383C;
    border-radius: 50%;
    box-shadow: 10px 0 #2E383C22,-10px 0 #2E383C;
    animation:d5 1s infinite linear alternate; 
}
@keyframes d5 {
    0% {box-shadow: 10px 0 #2E383C,-10px 0 #2E383C22;background: #2E383C}
    33%{box-shadow: 10px 0 #2E383C,-10px 0 #2E383C22;background: #2E383C22}
    66%{box-shadow: 10px 0 #2E383C22,-10px 0 #2E383C;background: #2E383C22}
}

#result-bar::-webkit-scrollbar
{
    display: none;
}
#result-bar li
{
    list-style: none;
    cursor: pointer;
    min-height: 40px;
    padding: 8px 10px;
}
#result-bar li.failed
{
    font-size: 14px;
    text-align: center;
}

#ddsearch-station-item
{
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;

    font-size: 12px;
    color: var(--color-dark-text);
    border-bottom: 1px solid #F2F2F2;
}
#ddsearch-station-item .iconst
{
    width: 24px;
    height: 24px;
    border-radius: 100px;
    font-size: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}
#ddsearch-station-item .st-name
{
    font-size: 13px;
}
#ddsearch-station-item:hover
{
    background-color: #00000005;
}

.timefreq-card
{
    position: relative;
    width: 100%;
    min-height: 350px;
    height: 100%;

    margin-top: 1rem;
    background: #FFFFFF;
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    transition: .1s ease-in-out;

    /* padding: 20px 25px; */
}

.timefreq-card .ovl
{
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    transition: .1s ease-in-out;
    background: #00000090;
    border-radius: 8px;

    color: white;
    display: none;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
}

.timefreq-card .head-wrap
{
    display: grid;
    grid-template-columns: 1fr 100px;
    padding: 20px 25px 0 25px;
}
.timefreq-card .head-wrap .right
{
    display: grid;
    grid-template-columns: 35px 35px;
    align-items: center;
    justify-content: end;
    gap: 10px;
}
.timefreq-card .head-wrap .right img
{
    width: 100%;
    height: auto;
}
.timefreq-card .head-wrap .right .st-symbol
{
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    /* border: 3px solid var(--color-yellow); */
    border-radius: 100px;
}

.timefreq-card .head-wrap .st-name
{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}
.timefreq-card .head-wrap .line-badge
{
    display: inline-block;
    padding: 2px 15px;
    border-radius: 100px;
    /* background: var(--color-yellow); */
    font-size: 12px;
}
/* Time Table */
.timefreq-card .timetable-wrap
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    background: #F6F6F6;
    margin: 18px 0;
    padding: 15px 25px;
}
.timefreq-card .timetable-wrap .left
{
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
}
.timefreq-card .timetable-wrap .left p
{
   font-size: 15px; 
   font-weight: 500;
   margin-bottom: 8px;
}
.timefreq-card .timetable-wrap .left div
{
    display: grid;
    grid-template-columns: 20px 1fr;
    justify-content: flex-start;
}
.timefreq-card .timetable-wrap .left div > img
{
    width: 100%;
    height: auto;
}
.timefreq-card .timetable-wrap .left p#timetable
{
    font-size: 13px;
    font-weight: 200;
    color: #979797;
    margin-left: 3px;
}
.timefreq-card .timetable-wrap .right
{
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.timefreq-card .timetable-wrap .right > button
{
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
    background: var(--background-auxiliarytrain);
    outline: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
}
.timefreq-card .timetable-wrap .right > button > span
{
    font-size: 13px;
    font-weight: 500;
    color: white;
}
.timefreq-card .timetable-wrap .right > button > img
{
    width: 100%;
    height: auto;
}

.firstlasttraininfo-wrap
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-top: 20px;
    gap: 50px;

    padding: 0 25px 35px 25px;
}
.firstlasttraininfo-wrap .left
{
    display: grid;
    grid-template-columns: 1fr;
    justify-content: start;
}
.firstlasttraininfo-wrap .left > .title-wrap, .firstlasttraininfo-wrap .right > .title-wrap
{
    margin-bottom: 20px; 
}
.firstlasttraininfo-wrap .left > .title-wrap h3, .firstlasttraininfo-wrap .right > .title-wrap h3
{
    font-size: 19px;
    font-weight: 500;
}
.firstlasttraininfo-wrap .left > .title-wrap p, .firstlasttraininfo-wrap .right > .title-wrap p
{
    font-size: 14px;
    font-weight: 300;
}

.firstlasttraininfo-wrap .right
{
    display: grid;
    grid-template-columns: 1fr;
    justify-content: end;
}

.card-items-wrap
{
    display: grid;
    grid-template-columns: 200px 200px;
    gap: 13px;
}
.card-items-wrap .card-item
{
    display: block;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    width: 100%;
    display: grid;
    grid-template-rows: 1fr 37px;
}
.card-items-wrap .card-item[data-type="first"] .top
{
    background: var(--background-firsttrain);
}
.card-items-wrap .card-item[data-type="last"] .top
{
    background: var(--color-dark-text);
}
.card-items-wrap .card-item[data-type="sup"] .top
{
    background: var(--background-auxiliarytrain);
}
.card-items-wrap .card-item[data-type="last"] > .top .title h5, .card-items-wrap .card-item[data-type="last"] > .top .title p,
.card-items-wrap .card-item[data-type="last"] > .top .main-time span,
.card-items-wrap .card-item[data-type="sup"] > .top .title h5, .card-items-wrap .card-item[data-type="sup"] > .top .title p,
.card-items-wrap .card-item[data-type="sup"] > .top .main-time span
{
    color: white !important;
}
.card-items-wrap .card-item .top
{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px 12px;
}
.card-items-wrap .card-item .top .title 
{
    margin-bottom: 15px;
    position: relative;
}
.card-items-wrap .card-item .top .title > h5
{
    font-size: 15px;
    font-weight: 500;
}
.card-items-wrap .card-item .top .title > p
{
    font-size: 13px;
    font-weight: 300;
}
.card-items-wrap .card-item .top .title > p.auxtrain
{
    position: absolute;
    top: 0;
    right: 0;
}
.card-items-wrap .card-item .top .main-time 
{

}
.card-items-wrap .card-item .top .main-time span:first-child
{
    font-size: 30px;
    font-weight: 500;
}
.card-items-wrap .card-item .top .main-time span:last-child
{
    font-size: 13px;
    font-weight: 200;
    margin-left: 10px;
}
.card-items-wrap .card-item .under
{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: white;

    padding: 10px 12px;
}
.card-items-wrap .card-item .under p
{
    font-size: 14px;
}










/* Responsing */
@media screen and (max-width: 1180px)
{
    .main-content 
    {
        padding-left: 20px;
        padding-right: 20px; 
    }
    .ttfq-container
    {
        padding-top: 300px;
    }
}
@media screen and (max-width: 960px)
{
    .firstlasttraininfo-wrap {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 850px)
{
    .main-top .search-station {
        grid-template-columns: 240px 280px;
        height: auto;
    }
    .main-top .search-station .left
    {
        grid-area: 2 / 1;
    }
    .main-top .search-station .center
    {
        grid-area: 2 / 2;
    }
    .main-top .search-station .right
    {
        grid-area: 1 / 1;
    }
    .card-items-wrap {
        grid-template-columns: 200px 200px 200px;
    }
}
@media screen and (max-width: 710px)
{
    .card-items-wrap {
        grid-template-columns: 200px 200px;
    }
}
@media screen and (max-width: 570px)
{
    .main-top .search-station {
        grid-template-columns: 1fr 1fr;
    }
    .main-top .search-station .right {
        justify-content: start;
    }
    .timetable-wrap
    {
        overflow: auto !important;
    }
    .timetable-wrap::-webkit-scrollbar
    {
        display: none;
    }
    .timetable-wrap table
    {
        width: 555px !important;
    }
}
@media screen and (max-width: 495px)
{
    .main-content .head-title h1 {
        font-size: 23px;
    } 
    .card-items-wrap {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 470px)
{
    .main-top .search-station {
        grid-template-columns: 1fr;
    } 
    .main-top .search-station .left
    {
        grid-area: 2 / 1;
    }
    .main-top .search-station .center
    {
        grid-area: 3 / 1;
    }
    .main-top .search-station .right
    {
        grid-area: 1 / 1;
    }
    .main-top .search-station .right span {
        width: 100%;
        justify-content: start;
    }
    .main-top .search-station .right span input 
    {
        width: 100%;
    }
    .timefreq-card .timetable-wrap {
        grid-template-columns: 1fr;
    }
    .timefreq-card .timetable-wrap .right {
        justify-content: flex-start;
        margin-top: 10px;
    }
    .firstlasttraininfo-wrap {
        gap: 30px;
    }
}
@media screen and (max-width: 430px)
{
    .main-content .head-title h1 {
        font-size: 21px;
    }
    .timefreq-card .head-wrap .st-name {
        font-size: 18px;
    }
    /* .timefreq-card .head-wrap .right {
        grid-template-columns: 30px 30px;
    } */
    /* .timefreq-card .head-wrap .right .st-symbol
    {
        width: 30px;
        height: 30px;
    } */
    .firstlasttraininfo-wrap .left > .title-wrap h3, .firstlasttraininfo-wrap .right > .title-wrap h3 {
        font-size: 17px;
    }
    .card-items-wrap .card-item .top .main-time span:first-child {
        font-size: 25px;
    }
    .card-items-wrap .card-item .top .title > h5 {
        font-size: 14px;
    }
    .card-items-wrap .card-item .top .title > p {
        font-size: 12px;
    }
    .card-items-wrap .card-item .under p {
        font-size: 13px;
    }
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .main-content {
        padding-bottom: 40px;
    }
    .main-top .search-station
    {
        gap: 10px;
    }
    .timefreq-card .head-wrap {
        padding: 15px 15px 0 15px;
    }
    .timefreq-card .timetable-wrap {
        padding: 15px 15px;
    }
    .firstlasttraininfo-wrap {
        padding: 0 15px 25px 15px;
    }
    .card-items-wrap .card-item .top .main-time span:first-child {
        font-size: 21px;
    }
    .card-items-wrap .card-item .top .title > p.auxtrain
    {
        position: relative;
    }
    .time-frequency-wrapper .head-wrap h2 {
        font-size: 17px !important;
    }
    .workingweek-wrap .title h3, .weekend-wrap .title h3 {
        font-size: 20px !important;
    }
    .sec-remark-wrap ul {
        padding-left: 25px !important;
    }
    .sec-remark-wrap .text-under {
        padding-left: 5px;
        margin-top: 15px !important;
    }
}
@media screen and (max-width: 320px)
{
    .card-items-wrap {
        grid-template-columns: 1fr;
    }
    .card-items-wrap .card-item .top .title > p.auxtrain
    {
        position: absolute;
    }
}

/* Time Frequency */
.time-frequency-wrapper
{
    display: none;
    margin-top: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 1rem;
    background: #FFFFFF;
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    transition: .1s ease-in-out;
    padding-bottom: 10px;
}
.time-frequency-wrapper .head-wrap{
    padding: 20px 0 10px 0;
    margin: 0 25px;
    border-bottom: 1px solid #E8E8E8;
}
.time-frequency-wrapper .head-wrap h2
{
    font-size: 18px;
    font-weight: 500;
}
.time-frequency-wrapper .head-wrap p
{
    font-size: 14px;
    font-weight: 300;
}
.workingweek-wrap
{
    margin-top: 16px;
    padding: 0 25px;
}
.workingweek-wrap .title
{
    position: relative;
    padding-left: 12px;
    margin-bottom: 15px;
}
.workingweek-wrap .title::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 100px;
    background: var(--background-auxiliarytrain);
}
.workingweek-wrap .title h3
{
    font-size: 23px;
}
.workingweek-wrap .title p
{
    font-size: 14px;
    font-weight: 300;
}
.workingweek-wrap table 
{
    border-collapse: collapse;
    width: 100%;
}
.workingweek-wrap table td
{
    border: 1px solid #E8E8E8;
    /* border-radius: 8px; */
    padding: 8px 15px 8px 20px;
}
.workingweek-wrap table thead > tr > td > p:nth-child(1)
{
    font-size: 14px;
    font-weight: 500;
}
.workingweek-wrap table thead > tr > td > p:nth-child(2)
{
    font-size: 13px;
    font-weight: 300;
}
.workingweek-wrap table tbody td
{
    font-size: 15px;
    color: #030303;
}
.workingweek-wrap table thead > tr > td:first-child
{
    width: 180px;
}
.workingweek-wrap table tbody tr:nth-child(odd)
{
    background: #F8F8F8;
}

.weekend-wrap
{
    margin-top: 25px;
    padding: 0 25px;
}
.weekend-wrap .title
{
    position: relative;
    padding-left: 12px;
    margin-bottom: 15px;
}
.weekend-wrap .title::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 100px;
    background: var(--background-auxiliarytrain);
}
.weekend-wrap .title h3
{
    font-size: 23px;
}
.weekend-wrap .title p
{
    font-size: 14px;
    font-weight: 300;
}
.weekend-wrap table 
{
    border-collapse: collapse;
    width: 100%;
}
.weekend-wrap table td
{
    border: 1px solid #E8E8E8;
    /* border-radius: 8px; */
    padding: 8px 15px 8px 20px;
}
.weekend-wrap table thead > tr > td > p:nth-child(1)
{
    font-size: 14px;
    font-weight: 500;
}
.weekend-wrap table thead > tr > td > p:nth-child(2)
{
    font-size: 13px;
    font-weight: 300;
}
.weekend-wrap table tbody td
{
    font-size: 15px;
    color: #030303;
}
.weekend-wrap table thead > tr > td:first-child
{
    width: 180px;
}
.weekend-wrap table tbody tr:nth-child(odd)
{
    background: #F8F8F8;
}

/* Remark (1) */
.first-remark-wrap
{
    padding: 15px 20px;
    margin: 20px 25px;
    background: #F8F8F8;
    font-size: 13px;
}
/* Remark (2) */
.sec-remark-wrap
{
    margin-top: 20px;
    padding: 15px 0;
    margin: 20px 25px;
}
.sec-remark-wrap .title
{
    font-weight: 500;
    font-size: 16px;
}
.sec-remark-wrap li.important
{
    list-style: none;
    color: #FF0006;
}
.sec-remark-wrap ul
{
    margin-top: 6px;
    padding-left: 45px;
}
.sec-remark-wrap ul li
{
    font-size: 13px;
}
.sec-remark-wrap .text-under
{
    font-size: 13px;
    font-weight: 600;
    padding-left: 25px;
    margin-top: 20px;
}
#tb-td {
    background: #FAD53D50;
}
.pk-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
}
@media screen and (max-width: 425px) {
    .pk-group {
        display: grid;
        grid-template-columns: 1fr;
    }
}
.pk-img , .pk-img2  {
    margin-top: 20px;
    width: 100%;
    height: auto;
}