@charset "utf-8";
@import url("normalize.css");
@import url("class_global.css");

/* 영어 */
:lang(en) {
    font-family: "Noto Sans", "Arial", sans-serif;
}

/* 중국어 (간체) */
:lang(zh) {
    font-family: "Noto Sans", "Verdana", "SimSun", sans-serif;
}

/* 일본어 */
:lang(ja) {
    font-family: "Noto Sans", "Arial", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

:root {
    --sidebar-width: 400px;
    --detail-width: 400px;
    --primary-color: #3F9FF6;
    --primary-border: 1px solid #d9d9d9;
    --margin: 15px;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/*test*/
.tt{border:1px solid red;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* scrollbar */
.scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-y: overlay;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-track {
    background-color: #f4f4f4;
}

body,
html {
    height: 100%;
    font-family: 'Noto Sans', Verdana, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: #404040;
    overflow: hidden;
}

a{text-decoration: none; outline: none;}

ul,ol{list-style: none;}

/* layout */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    /*background: #e5e3df;*/
}

/* --- 1. 사이드바 --- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100%;
    /*background-color: white;*/
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    z-index: 105;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    margin-right: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
    padding: 17px 20px 12px;
    /*background: var(--primary-color);*/
}

h1 {
    padding: 0;
    margin: 0;
}

.top-logo {
    display: inline-block;
    width: 140px;
    height: 24px;
    background: url(../../images/common/top_logo.png) no-repeat;
    text-indent: -1000px;
    overflow: hidden;
    padding: 0;
}
.search-input-area {
    padding: 15px 20px;
}

.search-tab ul {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    border-bottom: 1px solid #ccc;
}

.search-tab li {
    flex: 1;
}

.search-tab li a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding: 6px 0 12px;
}

.search-tab li.active a {
    font-weight: bold;
    color: #004380;
    box-shadow: inset 0 -2px 0 0 #004380;
}

.search-box {
    position: relative;
    width: 100%;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 2px solid #3574AE;
    border-radius: 44px;
    background-color: #fff;
    /*overflow: hidden;*/
}

.input-box.input-route{border-radius:10px 10px 0 0; padding-right: 20px;}
.input-box.input-route:nth-child(2n){border-radius: 0 0 10px 10px; margin-top:-2px;}

.btn-change {position: absolute; top:31px; right:1px; width: 25px; height: 24px; background: url(../../images/common/input_icon_change.png) no-repeat; background-size: auto 24px; cursor: pointer;}
.input-route.start::before{content: '';display: inline-block; width: 11px; height: 11px; background: url(../../images/common/route_icon_input.png) 0 0 no-repeat;}
.input-route.end::before{content: '';display: inline-block; width: 11px; height: 11px; background: url(../../images/common/route_icon_input.png) 0 -21px no-repeat;}

.input-box input {
    flex: 1;
    height: 40px;
    padding: 0 0 0 6px;
    font-size: 14px;
    background-color: transparent;
}

.input-box button[class^="btn-"] {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    border: none;
    background-image: url('../../images/common/input_icon.png');
    background-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
}

.btn-search { background-position: center 5px; }
.btn-delete { background-position: center -19px; }

.search-keyword {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
}

.search-keyword ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 8px;
    border: 1px solid #D1D1D1;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-keyword li a {
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.search-keyword li.active a {
    color: #404040;
    background-color: #F5F8FE;
}
.search-keyword .sub_i {
    display: inline-flex;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 2px;
    background-color: currentColor;
    -webkit-text-fill-color: #ffffff;
    margin-right: 6px;
}

.info-search{background-color: #F5F8FE; padding:10px; margin:10px 20px;}
.info-search p{display: flex; font-size: 13px; line-height: 1.4em; color: #3574AE}
.info-search p::before{content: ''; display: inline-flex; flex-shrink: 0; width: 30px; height: 30px; background: url(../../images/common/info_img.png) 0 0 no-repeat; margin: 3px 10px 0 0; }

.sidebar-nav ul {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    list-style: none;
}

.nav {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 100%;
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
    background: url('../../images/common/top_nav.png') no-repeat;
    z-index: 10;
}

.nav1 {
    background-position: 0 0;
}

.nav2 {
    background-position: -60px 0;
}

.nav3 {
    background-position: -120px 0;
}

.nav4 {
    background-position: -180px 0;
}

.nav5 {
    background-position: -240px 0;
}

.sidebar-nav li.active .nav {
    background-position-y: -56px;
}
.nav::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -22px; /* 버튼 아래쪽에 배치 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
}
.nav:hover::after {
    opacity: 1;
    visibility: visible;
}

button{border:0; background: none; cursor: pointer;}

input {
    width: 100%;
    padding: 10px 5px 10px 15px;
    border:0;
    color: #202020;
}
input:focus {
    outline: none;
}

.result-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding:2px 20px 8px;
    margin-top:-5px;
}

.result-top span a {
    display: inline-block;
    font-size: 12px;
    color: #888;
    padding:3px 0;
}

.result-top span + span::before {
    content: '|';
    display: inline-block;
    margin: 0 10px;
    font-size: 10px;
    color: #ddd;
    vertical-align: middle;
}

.result-top span.active a {
    color: #404040;
    font-weight: 600;
}

/* 콤보박스 컨테이너 */
.combo-box {
    position: relative;
    display: flex;
    font-size: 12px;
    color: #404040;
}

.combo-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 3px 0;
    margin-left:18px;
    border: none;
    cursor: pointer;
    text-align: left;
}

.combo-label::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #aaa; /* 화살표 모양 */
    margin-left:10px;
}

.combo-list {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    opacity: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
}

.combo-box.active .combo-label {
    border-color: #004380;
    color: #004380;
}

.combo-box.active .combo-label::after {
    transform: rotate(180deg);
    border-top-color: currentcolor;
}

.combo-box.active .combo-list {
    max-height: 200px;
    opacity: 1;
    padding: 5px 0;
}

.option-item {
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: none;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.option-item:hover {
    background-color: #f5f9ff;
    color: #004380;
}

.result-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    border-top: 1px solid #d9d9d9;
    overflow-y: auto;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding:12px 10px 8px 20px;
    background-color: #fff;
}

.sidebar-tab span a {
    display: inline-block;
    font-size: 13px;
    color: #888;
    padding:2px 0;
    margin-right:8px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.sidebar-tab span + span::before {
    content: '|';
    display: inline-block;
    margin-right: 8px;
    font-size: 10px;
    color: #ddd;
    vertical-align: middle;
}

.sidebar-tab span.active a {
    color: #404040;
    font-weight: 600;
}

.sidebar-city {
    padding: 20px 20px 0;
}

.title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #202020;
    margin-bottom: 15px;
    /*background-color: #fff;*/
}

.btn-group {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 6px;
}
.g-right{justify-content: flex-end;}
.g-left, .g-right{display: flex; gap:6px;}

.btn-group button[class^="btn-"],
.btn-group button.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-size: 13px;
    color: #404040;
    white-space: nowrap;
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    padding: 0 12px;
    background-color: #fff;
    transition: all 0.2s ease;
}
.btn-group button[class^="btn-"]:hover,
.btn-group button.btn:hover{
    background-color: #e6e6e6;
    border-color: #ccc;
}

.btn-group button[class^="btn-"]::before {
    display: inline-block;
    content: '';
    width: 18px;
    height: 18px;
    background-image: url('../../images/common/icon_button.png');
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.btn-group button[class^="btn-"]:not(:empty)::before {
    margin-right: 4px;
}

.btn-keyword::before {
    background-position: 0 0;
}

.btn-share::before {
    background-position: -30px 0;
}
.search-box .btn-group{margin-top:10px;}
.search-box .btn-group .btn-reset{height: 34px; color: #666; border-color: #ccc;}
.btn-reset::before {
    background-position: -112px 0;
}
.search-box .btn-group .btn-reset:hover{background-color: #fff; color: #3574AE; border-radius: 34px;}

.search-box .btn-group .btn-enter{width: 150px; height: 34px; font-size: 14px; font-weight: 600; color: #3574AE; background-color: #fff; background-image: none;border-color: #ccc; border-radius: 34px; }
.search-box .btn-group .btn-enter::before{width: 0;}
.search-box .btn-group .btn-enter:hover{background-color: #fff;}
.search-box .btn-group .btn-enter.active{color: #fff; background-color: #004380; border:none;}

.list-head {
    position: relative;
    display: flex;
    font-size: 15px;
    font-weight: 600px;
    margin: 20px 20px 0;
}

.list-head::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 100%;
    height: 10px;
    border-bottom: 1px solid #ddd;
    z-index: 1;
}
.list-head.pt{margin-top:20px;}

.list-head > .title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-right: 12px;
    background-color: #fff;
    z-index: 5;
}


.list-thumb ul{display: flex; flex-direction:row; flex-wrap: wrap; padding:0 0 0 20px;}
.list-thumb li{display: flex; flex-direction: column; margin:0 4px 15px 0; cursor: pointer;}
.list-thumb .paging{margin-bottom: 40px;}

.thumb{ display: flex; flex-direction: column; }
.thumb-img{display: block; width: 87px; height: 87px; border-radius: 5px; background-color: gainsboro; overflow: hidden;}
.thumb-img img{width: 100%; height: 100%; object-fit: cover; object-position: center;}
.thumb .place-name{font-size: 13px; font-weight: 600; color: #202020; margin:6px 0 0;
width: 87px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.thumb .spot{display: flex; font-size: 12px; color: #404040; margin: 4px 0 0 0; width: 87px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

.list{}
.list ul{display: flex; flex-direction: column;}
.list li{display: flex; padding:15px 20px; border-bottom: 1px solid #d9d9d9; cursor: pointer;}
.list li:hover,
.list li.active{background-color: #F2F2F7;}

.list-text{display: flex; justify-content: center; font-size: 13px; color: #888; padding:20px;}

.place{display: flex; flex-direction: column; flex: 1; font-size: 13px; letter-spacing: -0.02em; word-break: keep-all;overflow-wrap: break-word; }
.place-name{font-size: 15px; font-weight: 600; color: #202020; margin-bottom: 8px;}
.spot{display: flex; color: #404040; margin-bottom: 8px;}
.spot .spot-icon{margin-right: 5px;}
.add{color: #666; margin-bottom: 5px;}
.call{color: #666;}
.place-img{width: 84px; height: 84px; border-radius: 5px; background-color: gainsboro; margin-left: 10px; overflow: hidden;}
.place-img img{width: 100%; height: 100%;object-fit: cover;
    display: block;}
.info-text{display: block; font-size: 13px; color: #666; letter-spacing: -0.01em; }
.info-text .stop-num{display: inline-block; color: #6A8DA9; margin-right: 5px;}

.info-text .info-walk::before{content: ''; position: absolute; top:1px; left:0; display: inline-flex; width: 12px; height: 14px;  background: url(../../images/common/icon_s_walk.png) -2px 0 no-repeat; margin-right: 4px;}
.info-text .info-walk{position: relative; display: flex; margin-top:4px; padding-left: 15px;}

.route{display: flex; width: 100%; flex-direction: column;}
.route .time,.route .title{font-size: 20px; font-weight: 600; color: #202020; margin-bottom: 6px;}
.route .time sub{font-size:13px; vertical-align: baseline; bottom: 0em; margin:0 4px 0 2px;}

.info-type{display: block; font-size: 13px; color: #666; margin-bottom: 8px}
.info-stn{display: flex; justify-content: flex-start; flex-wrap: wrap; gap:3px; margin-top:5px; margin-bottom: 8px; padding-right: 15px;}
.info-stn a{font-size: 11px; padding:3px 6px; border-radius: 2px; background-color: currentColor; -webkit-text-fill-color: #ffffff; }

/** bus busStop **/
.bus-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.bus-info .info-label{
    display: inline-block;
    padding: 2px 5px;
    border-radius: 2px;
    margin-bottom: 6px;
    font-size: 11px;
    white-space: nowrap;
    color: inherit;
    background-color: currentcolor !important;
    -webkit-text-fill-color: #ffffff;
}

.bus-info.busStop .info-label {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid #6A8DA9;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #6A8DA9;
}
.bus-type-box{display: flex; flex-wrap: wrap; margin-top:10px; gap: 4px;}
.bus-info.busStop .bus-type-box .info-label {
    display: inline-block;
    padding: 2px 5px;
    border: 0;
    margin-bottom: 0;
    font-size: 11px;
    white-space: nowrap;
    color: inherit;
    background-color: currentcolor !important;
    -webkit-text-fill-color: #ffffff;
}

.bus-number {
    display: flex;
    font-size: 20px;
    font-weight: 600;
    color: #202020;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.bus-info ol {
    display: flex;
    flex-direction: column;
}

.bus-info ol li {
    display: flex;
    padding: 0;
    border: 0;
}

.bus-info ol li .head-icon {
    position: relative;
    z-index: 20;
    margin-right: 14px;
    border-right: 2px solid #6A8DA9;
    box-sizing: border-box;
    padding-left: 3px;
    margin-top:5px;
}

.bus-info ol li:last-child .head-icon {
    border-color: transparent;
    margin-top:0;
}

.bus-info ol li .head-icon::before {
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: url(../../images/class/bus_line_start.png) no-repeat;
    border: none;
    border-radius: 0;
}

.bus-info ol li:last-child .head-icon::before {
    background: url(../../images/class/bus_line_end.png);
}

.bus-info ol li .head-info {
    padding-bottom: 0;
}

.bus-info ol li .head-info .title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}
.bus-info ol li:last-child .head-info .title{margin-bottom: 0;}

.bus-text {
    display: flex;
    flex-wrap: wrap;
    margin:8px 0 0 19px;
}

.bus-text span {
    font-size: 13px;
    color: #666;
    word-break: keep-all;
    padding-right: 7px;
}

.bus-text span + span::before {
    content: '|';
    display: inline-block;
    margin: 0 7px 0 0;
    font-size: 10px;
    color: #ccc;
    vertical-align: middle;
}

.road.bus li{padding-left: 10px;}
.road.bus li.return .head-icon::before {
    content: "";
    position: absolute;
    right: -8px;
    top: -2px;
    width: 23px;
    height: 15px;
    background: url(../../images/class/bus_return.png) no-repeat;
    border: none;
    border-radius: 0;
}
.detail-body .road.bus .head-info{margin-left:-2px;}
.road.bus .head-icon{border-right: 2px solid #6A8DA9;}
.road.bus .head-icon::before{border: 2px solid #6A8DA9;}


/* 각 구간 공통 */
.route-timeline {
    display: flex;
    width: 100%;
    height: 19px;
    border-radius: 19px;
    font-family: Arial;
    margin-top:10px;
    overflow: hidden;
}

.segment i.icon{width: 11px; height: 11px; background: url(../../images/common/icon_bar_move.png) no-repeat;}

.segment.walk i.icon{background: none; width: 0;}
.segment.bus i.icon{background-position: -22px 0;}
.segment.subway i.icon{background-position: -40px 0;}
.segment.train i.icon{background-position: -60px 0;}
.segment.airplane i.icon{background-position: -80px 0; }
.segment.ship i.icon{background-position: -99px 0;}
.segment.busH i.icon{background-position: -119px 0;}
.segment.bike i.icon {background-position: -138px 0;}
.segment.taxi i.icon {background-position: -156px 0;}

.segment {
    display: inline-flex;
    align-content: stretch;
    align-items: center;
    padding: 0 5px;
    gap: 4px;
    white-space: nowrap;
    background-color: currentcolor;
}

/* 이동 수단별 색상 (디자인 시스템에 맞춰 수정) */
.segment.walk { background-color: #808080; }
.segment.bike { background-color: #A349D5; }
.segment.taxi { background-color: #6A8DA9; }
.segment.airplane { background-color: #5897c8;}
.segment.ship { background-color: #5897c8;}

.segment .time {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.segment .time sub {
    font-size: 10px;
    font-weight: normal;
    letter-spacing: -0.05em;
}

[class^="icon-"] {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url(../../images/common/icon_bar_move.png);
    background-repeat: no-repeat;
}

.unlink{pointer-events: none; cursor: default;}

.road{}
.road ol{display: flex; flex-direction: column; margin-top:18px; }
.road ol li{display: flex; align-items: stretch; border:0; padding:0; cursor: pointer;}
.road ol li:last-child .head-move span{display: none; }
.road ol li:last-child .head-icon{border-color:transparent; !important;}
.road ol li:last-child .head-info{padding-bottom: 8px;}

.road li .head-icon {
    display: flex;
    position: relative;
    z-index: 20;
    border-right: 2px solid currentcolor;
    box-sizing: border-box;
    padding-left:5px;
    margin-right:14px;
}

.road li .head-icon::before {
    content: "";
    position: absolute;
    right: -6px;
    top:0;
    width: 11px;
    height: 11px;
    border: 2px solid currentcolor;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
}

.road li .head-info {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 19px;
    margin-top: -4px;
}
.road li .head-info .info-label {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 2px;
    margin-bottom: 6px;
    font-size: 11px;
    white-space: inherit;
    word-break: break-all;
    color: inherit;
    background-color: currentcolor !important;
    -webkit-text-fill-color: #ffffff;
}

.head-move{display: flex; flex-direction: column; width: 70px; flex-shrink: 0; justify-content: center; align-items: center; padding-top:15px; margin-right: 10px;}
.road li .head-move .move-img{width: 36px; height: 36px; background: url(../../images/common/icon_move.png) no-repeat;}
.head-move .move-time{font-size:12px; color: #404040; margin-top:3px;}

.road li.walk .head-move .move-img{background-position: 0 0;}
.road li.walk{color: #808080}
.road li.walk .head-icon {border-right: 2px dashed #808080;}
.road li.bus .head-move .move-img{background-position: -46px 0;}
.road li.subway .head-move .move-img{background-position: -92px 0;}
.road li.train .head-move .move-img{background-position: -138px 0;}
.road li.airplane .head-move .move-img{background-position: -184px 0; }
.road li.airplane{color:#5897c8;}
.road li.ship .head-move .move-img{background-position: -230px 0;}
.road li.ship{color:#5897c8;}
.road li.busH .head-move .move-img{background-position: -276px 0;}

.head-info .info-title {
    font-size: 14px; font-weight: 600; line-height: 1.1em; color: #202020;
}
.head-info .info-text{display: flex; flex-direction: column; font-size: 13px; color: #666; margin-top:6px;}
.head-info .info-text span{margin-bottom: 3px;}
.head-info .stop-num{display: block; font-size: 12px; font-weight: normal; color: #6A8DA9; margin-top:4px;}

.road-text .head-info{padding: 15px 20px;}
.road-text .info-text{margin-bottom:15px; margin-top:0;}
.road-text .info-title{margin-top:4px}

.route-tab{display: flex; flex-direction: column; padding:0 20px; border-bottom: 1px solid #d9d9d9; background-color: #fff;}
.route-tab ul{display: flex; margin:5px 0;}
.route-tab li{flex: 1; }
.route-tab li a{display: flex; justify-content: center; align-items: center;}

.route-tab [class^="menu"] {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('../../images/common/route_tab.png');
    background-repeat: no-repeat;
}

.route-tab .menu01 { background-position: 0 0; }
.route-tab .menu02 { background-position: -42px 0; }
.route-tab .menu03 { background-position: -84px 0; }

.route-tab li.active .menu01 { background-position-y: -42px; }
.route-tab li.active .menu02 { background-position-y: -42px; }
.route-tab li.active .menu03 { background-position-y: -42px; }


.tab-sub{display: flex; align-items: center;}
.tab-sub a{display: flex; align-items: center; font-size: 13px; letter-spacing: -0.04em; color: #666; padding: 6px 4px; margin-left:6px;}
.tab-sub a:first-child{margin-left: 0;}
.tab-sub .num{font-size: 12px; margin-left: 3px;}
.tab-sub a.active {color: #3574AE; font-weight: 600; box-shadow: inset 0 -2px 0 0 #3574AE;
}
.tab-sub a:hover:not(.active) {color: #333;}

.tab-sub .combo-label{margin-left:-10px; margin-right: 4px; font-size: 13px;}
.tab-sub ul.combo-list{top:18px; flex-direction: column; left:-12px;}
.tab-sub .combo-label::after{margin-left:6px;}

.input-option{display: flex; flex-direction: column; margin-top:5px;}
.input-option .title{display: block; font-size: 11px; font-weight: 600; color: #666; margin:5px 0}

.tab-selector {
    display: flex;
    align-items: center;
    background-color: #3F9FF6;
    padding: 2px;
    border-radius: 32px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 10px;
    height: 28px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 28px;
    transition: all 0.3s ease;
}

i.bus::before,
i.subway::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('../../images/common/transit_option.png');
    background-repeat: no-repeat;
    margin-right: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

i.bus::before {
    background-position: 0 0;
}

i.subway::before {
    background-position: -25px 0;
}
.active i.bus::before {background-position: 0 -25px;}
.active i.subway::before {background-position: -25px -25px;}

.tab-btn.active {
    background-color: #fff;    /* 배경을 흰색으로 */
    color: #333;               /* 글자색은 어둡게 */
    font-weight: 700;          /* 굵게 강조 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 미세한 그림자 효과 */
}

.tab-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/** table **/
.tab-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    margin-bottom: -5px;
}

.tab-menu ul {
    display: flex;
    height: 36px;
    background-color: #f9f9f9;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-menu li {
    flex: 1;
    display: flex;
}

.tab-menu li + li {
    border-left: 1px solid #d9d9d9;
}

.tab-menu li a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #808080;
    text-decoration: none;
    border-bottom: 1px solid #d9d9d9;
}

.tab-menu li.active a {
    color: #202020;
    font-weight: 600;
    background-color: #fff;
    border-bottom: 0;
}

.timetable-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 13px;
    background-color: currentcolor !important;
    -webkit-text-fill-color: #ffffff;
}
.direction{display: flex; width: 50%; flex-grow: 0; align-items: center;}
.direction a{cursor: pointer; color: #fff;}
.direction .arrow{margin-right: 8px;}
.info-header .direction:last-child{justify-content: flex-end;}
.info-header .direction:last-child .arrow{margin-left:8px; margin-right: 0;}

/* 화살표 미세 조정 */
.arrow {
    font-weight: normal;
    font-size: 1.1em;
    font-weight: 500;
    vertical-align: middle;
}

/* 하단 콘텐츠 영역 */
.info-content {
    display: flex;
}

.column {
    flex: 1;
    padding: 5px 15px;
}

.column:first-child {
    border-right: 1px solid #d9d9d9;
}

/* 각 시간 행 스타일 */
.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 13px;
    letter-spacing: -0.03em;
    color: #666;
    gap: 5px;
}

.row span:first-child {
    flex: 1;
    line-height: 1.2;
}

/* 시간 텍스트 색상 */
.time {
    font-size: 14px;
    color: #2371F1;
    font-weight: 500;
    white-space: nowrap;
}

.info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 제목 스타일 (진하게) */
.info-item strong {
    font-size: 12px;
    color: #404040;
    font-weight: 700;
}

.info-item span {
    font-size: 14px;
    color: #666;
}

.info-item.full-width {
    grid-column: 1 / span 2;
    margin-top: 5px;
}
.info-item:first-child.full-width{margin-top:0;}


.train-schedule-card {
    display: flex;
    max-width: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 좌우 패널 공통 */
.side-panel {
    flex: 1;
}

.left {
    border-right: 1px solid #e0e0e0;
}

.side-header {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #404040;
    border-bottom: 1px solid #e0e0e0;
}

.time-section {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.time-section.no-border {
    border-bottom: none;
}

/* 요일 라벨 스타일 */
.day-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #808080;
}

.day-label.saturday { color: #2B80FF; }
.day-label.sunday { color: #FB4D3F; }

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    padding: 5px 0;
}
.time-row span:first-child {
    word-break: break-all; margin-right: 2px;
}
em.stx{font-size:11px; font-style: normal; white-space: nowrap; margin-left: 2px; color: #4288F0}
.time-row span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #404040;
}

.schedule-container {
    max-width: 500px;
    color: #333;

}

/* 최상단 네비게이션 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.tabs span + span::before {
    content: '|';
    display: inline-block;
    margin: 0 10px;
    font-size: 10px;
    color: #d9d9d9;
    vertical-align: middle;
}
.tab a{font-size: 12px; color: #808080;}
.tab.active a{ color: #202020; font-weight: 600; }

.btn-express {
    border: 1px solid #d9d9d9;
    color: #4288F0;
    background: #fff;
    height: 24px;
    padding: 0 15px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
}
.btn-express.active{background-color: #4288F0; color: #fff; border:0;}

.schedule-card {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.card-header{display: flex;}

.card-header .col{display: flex; align-items: center ;padding:10px; margin:0;}
.card-header .col::before{content: ''; display: inline-flex; width: 20px; height: 20px; background: url(../../images/common/icon_arrow_right.png) -2px 0 no-repeat; vertical-align: middle; margin-right: 5px; flex-shrink: 0;}

.col {
    flex: 1;
    padding: 10px 15px;
}

.col:first-child { border-right: 1px solid #d9d9d9; }

/* 헤더 제목 스타일 */
.card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 13px;
}

/* 시간 블록 구분선 */
.time-block {
    display: flex;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}
.time-block:last-child { border-bottom: none; }

/* 개별 시간 아이템 */
.time-item {
    padding: 6px 0;
    font-size: 14px;
}
.time-item strong { display: block; font-size: 14px; font-weight: 500; color: #404040; }
.time-item span { font-size: 12px; color: #808080; }

.time-item.highlight {
    background-color: #E8F2FF;
    margin: 0 -15px; /* col 패딩 무시하고 꽉 차게 */
    padding: 6px 15px;
}

/*****/

.paging-fix {
    position: sticky;
    bottom: 0;
    left: 0;
    border-top: 1px solid #eee;
    background-color: #fff;
    z-index: 10;
}

.paging {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 45px;
}

.paging a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    margin: 0 2px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.paging a:hover {
    background-color: #e6e6e6;
    color: #404040;
}

.paging a.active {
    font-weight: bold;
    color: var(--primary-color);
}

.paging a.before::before { content: '\003C'; color: #888;} /* < */
.paging a.next::before { content: '\003E'; color: #888;}   /* > */

.paging a.before,
.paging a.next {
    margin: 0 10px;
}

.copyright {display: flex; justify-content: center; font-size: 11px; letter-spacing: 0.03em; color: #808080; margin:20px 0;}
.copyright span{font-weight: 600; color: #404040;}

/* --- 2. 상세정보 레이어 --- */
.detail-layer {
    position: absolute;
    top: var(--margin);
    bottom: var(--margin);
    width: var(--detail-width);
    background: white;
    border-radius: 12px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    left: calc(var(--sidebar-width) + var(--margin));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
    opacity: 0;
    pointer-events: none;
    will-change: left, opacity;
    z-index: 300;
    overflow: hidden;
}
.detail-layer .btn-close{position: absolute; top:6px; right:6px; z-index: 100}
.detail-layer .btn-back{padding:6px 0 0 6px;}

.detail-active .detail-layer {
    opacity: 1;
    pointer-events: auto;
}

.sidebar.collapsed ~ .detail-layer {
    left: calc((var(--detail-width) + var(--margin)) * -1) !important;
}




/*****/


/* 팝업 창 전체 스타일 */
.gallery-wrapper {
    width: 100%;
    min-height: 266px;
    background: url(../../images/common/thumb_kto.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-content{position: relative; width: 100%; height: 100%; z-index: 1;}

.gallery-content button {
    background: none;
    border: none;
    cursor: pointer;
}

.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* 정확한 세로 중앙 정렬 */
}

.btn-nav.prev {
    left: 15px;
    width: 28px; height: 28px;
    background: url(../../images/common/gallery_arrow.png) 0 0 no-repeat;
}

.btn-nav.next {
    right:15px;
    width: 28px; height: 28px;
    background: url(../../images/common/gallery_arrow.png) right 0 no-repeat;
}

.photo-area {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    background: url(../../images/common/thumb_kto.png);
}

.content-area{display: flex; width: 100%; flex-direction: column;}
.detail-body .content-area{padding:15px 20px;}
.content-area .title{display: block; font-size: 20px; font-weight: 600; color: #202020; margin-bottom: 6px;}
.content-area .info-card{padding:0; border:0; line-height: 1.3em;}

/****/

.detail-header {
    padding: 15px 20px;
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-header .bus-info{width: 100%;}
.detail-header .detail-text{margin-top:10px;}

.detail-text ul{display: flex; flex-direction: column; margin-top:5px; padding:0;}
.detail-text li{display: flex; flex-direction: column; margin-bottom: 8px;}
.detail-text li:last-child{margin-bottom: 0}
.detail-text .t1{font-size: 12px; color: #808080; padding-bottom: 4px;}
.detail-text .t2{color: #202020; word-break: keep-all;}

.detail-body {
    flex-grow: 1;
    overflow-y: auto;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.detail-body h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #202020;
}

.detail-body .road{padding:25px 20px 20px;}
.detail-body .road ol{margin-top:4px;}
.detail-body .road li.active .head-info{background-color: #F2F2F7; border-radius: 8px;}
.detail-body .road .head-info{margin-top:-14px; margin-left:-8px; margin-bottom: 16px; padding:10px;}
.detail-body .road li:last-child .head-info .info-label{display: none;}

.btn-close::before{
    content: '';
    display: inline-block;
    width: 30px; height: 30px;
    background: url(../../images/common/icon_close.png);
    background-size: 20px auto;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.back-box{position: relative; width: 100%; height: 42px; z-index: 1; }
.btn-back::before{
    content: '';
    display: inline-block;
    width: 30px; height: 30px;
    background: url(../../images/common/icon_back.png);
    background-size: 20px auto;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;

}

/* --- 3. 통합 토글 버튼 --- */
.toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: white;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 300;
}

.toggle-btn {
    left: var(--sidebar-width);
}

body.detail-active .toggle-btn {
    left: calc(var(--sidebar-width) + var(--margin) + var(--detail-width));
}

.sidebar.collapsed + .toggle-btn {
    left: 0 !important;
}

#mainBody.detail-active #categoryNav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}
.arrow-icon::before {
    content: '◀';
    font-size: 10px;
}

.sidebar.collapsed + .toggle-btn .arrow-icon::before {
    content: '▶';
}

/* --- 3. 상단 카테고리 메뉴 --- */
.category-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    /*calc(var(--sidebar-width) + 20px);*/
    z-index: 5;
    display: flex;
    gap: 10px;
}

.cat-chip {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.cat-chip:hover {
    border-color: #808080;
    color: #202020;
}

.cat-chip.active {
    border-color: #808080;
    color: #202020;
    font-weight: bold;
}

/* --- 4. 우측 하단 컨트롤 버튼 (내 위치, 확대/축소) --- */
.map-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-btn{
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    background-image: url('../../images/common/icon_map.png');
    background-repeat: no-repeat;
    border-radius: 32px;
    box-shadow: var(--shadow);
    position: relative;
}

.control-btn:hover {
    background-color: #f4f4f4;
}

.zoom-group {
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.zoom-group .control-btn {
    border-radius: 0;
    box-shadow: none;
}

.zoom-group .control-btn:first-child {
    border-bottom: var(--primary-border);
}
.btn-my { background-position: 7px 7px; }
.btn-zoomin { background-position: -21px 8px; }
.btn-zoomout { background-position: -48px 5px; }

.btn-area {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    display: flex;
    align-items: center;
    padding: 12px 20px;

    font-size: 0.875rem;
    font-weight: 600;
    color: #3F9FF6;
    background-color: #fff;
    border-radius: 40px;
    box-shadow: var(--shadow);
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-area::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: url(../../images/common/icon_map.png) no-repeat;
    background-position: -75px 0;
    background-size: auto 16px;
    margin-right: 8px;
    transition: filter 0.2s ease;
}
.btn-area:hover {
    background-color: #3F9FF6;
    color: #fff;
}
.btn-area:hover::before {
    background-position: -100px 0;
}

/* --- 4. 지도 영역 --- */
.map-area {
    position: relative;
    display: flex;
    flex-grow: 1;
    height: 100%;
    z-index: 100;
    transform: translate(0%, 0%);
}
.map-content {
    flex-grow: 1;
    display: flex;
    background-color: dimgray;
}

.pin-window {
    position: absolute;
}
.pin-content{
    display: flex;
    flex-direction: column;
    width: 340px;
    min-height: 100px;
    border: 1px solid #aaa;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: var(--shadow);}

.pin-content .thumb {
    position: relative;
    display: flex;
    width: 340px;
    height: 130px;
}
.pin-content .thumb span {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}
.pin-content .place{padding:15px;}
.pin-content .place-name{margin-right: 15px;}
.pin-content .btn-group{margin-top:10px;}
.pin-content .btn-close{position: absolute; top:6px; right:7px; z-index: 10; }
.pin-content .btn-close::before{width:22px; height: 24px; background-size: 16px auto; background-color: rgba(255, 255, 255, 0.4); border-radius: 4px;}

.pin-mouse{
    position: absolute;
    z-index: 2000;
}
.pin-mouse ul {
    display: block;
    width: 150px;
    background-color: #fff;
    box-shadow: var(--shadow);
    border-radius: 5px;
    overflow: hidden;
}
.pin-mouse li{
    padding: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.pin-mouse li:last-child{border-bottom: 0;}
.pin-mouse li a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0em;
    color: #202020;
    padding: 6px 10px;
    border-radius: 3px
}

.pin-mouse li a:hover{background-color: #e6e6e6;}

[class^="i-"] {
    display: inline-block;
    width: 16px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    background-image: url('../../images/common/icon_mouse.png');
    background-repeat: no-repeat;
    background-size: auto 20px;
}

.i-d { background-position: 0 0; }
.i-a { background-position: -26px 0; }

/** page **/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.error-box {
  background-color: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.pageBtn{display: flex; justify-content: center; margin-top:30px;}
.pageBtn button{display: inline-block; padding:16px 20px; background-color: #013564; color: #fff; font-size: 16px; border-radius: 6px;}

/* 아이콘 및 텍스트 꾸미기 */
.error-box .title { font-size: 20px; color: #e74c3c; margin: 0 0 10px 0; }
.error-box p { font-size: 15px; color: #555; margin-bottom: 4px; line-height: 1.5; }

.loading {
    display: block;
    background-color: #fff;
    width: 80px;
    height: 80px;
    background: url(../../images/common/loading.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.pin-list ul{display: flex;
    flex-direction: column;
    width: 210px;
    max-height: 200px;
    border: 1px solid #aaa;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    overflow-y: auto;
    box-shadow: var(--shadow);}

.pin-list li{display: flex; align-items: center; padding:9px 4px 9px 9px; border-bottom: 1px solid #e9e9e9; }
.pin-list li:last-child{border-bottom: 0;}
.pin-list li span.text{flex: 1; font-size:11px; font-weight: 600; color:#202020;}
.pin-list li [class^="pin-spot-"]{display: inline-block; position: relative; margin-right: 6px;  top:24px; left:10px; }
