@font-face {
    font-family: "Pretendard";
    src: url("../../fonts/Pretendard-SB.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}

#tab4-content .map-contents-box {
    scrollbar-gutter: stable;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    width: 100%;
    padding-bottom: 10px;
    text-align: center;
}

.overlap-2 {
    display: flex;
    border: 1px solid #cccccc;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.direct-input,
.select-input {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    color: #333333;
    height: 40px;
    line-height: normal;
}

.direct-input.active,
.select-input.active {
    background-color: #ffffff;
    color: #0ca678;
    border: 2px solid #0ca678;
    border-radius: 4px;
    font-weight: 600;
    pointer-events: none;
}

.direct-input:not(.active):hover,
.select-input:not(.active):hover {
    background-color: #f0f0f0;
}

.input-fields {
    display: flex;
    flex-direction: column;
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.625rem;
    width: 100%;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-field-row {
    display: flex;
    width: 100%;
}

.input-field-row select:first-child {
    margin-right: 10px;
}

.input-field-full {
    width: 100%;
    margin-top: 10px;
}

.input-field-label {
    margin-bottom: 5px;
    font-size: 15px;
    color: #333333;
    width: 100%;
    font-weight: 600;
}

.input-group {
    display: flex;
    width: 100%;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #cccccc;
}

.input-text {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    color: #333333;
    outline: none;
    border: none;
    height: 40px;
}

.input-search-btn {
    width: 40px;
    height: 40px;
    background-color: #F6F6F6;
    border-left: 1px solid #cccccc;
    cursor: pointer;
    background-image: url('../../img/jeongseon/pathFinder/icon_search.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.input-search-btn:hover {
    background-color: #e0e0e0;
}

.auto-complete-input {
    flex: 1;
    height: 40px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    margin-top: 5px;
    position: relative;
}

.autocomplete-style {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #fff;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 9999;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.input-select {
    height: 40px;
    flex: 1;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 15px;
    color: #333333;
    background-color: #ffffff;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: normal;
    display: block;
    width: 100%;
    background-image: url('../../img/jeongseon/pathFinder/icon_chevronDown.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-reset {
    padding: 10px 10px;
    color: #333333;
}

.btn-reset,
.btn-search {
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #cccccc;
    background-color: #ffffff;
}

.btn-search {
    padding: 10px 20px;
    background-color: #0ca678;
    color: #ffffff;
    border: none;
}

.btn-reset:hover {
    background-color: #f0f0f0;
}

.btn-search:hover {
    background-color: #088f5a;
}

.search-fail-message {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    font-size: 16px;
    margin: 30px 0 60px 0;
    flex-direction: column;
    line-height: 1.5;
}

.search-results {
    margin-top: 20px;
}

.search-message-container {
    width: 100%;
    height: 3.75rem;
    padding: 10px;
    background-color: #edfdf5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-message-text {
    font-size: 15px;
    color: #000000;
    line-height: 1.4;
    word-break: keep-all;
    white-space: normal;
    text-align: center;
}

.all-stops-container {
    width: 100%;
    background-color: #ffffff;
    border-radius: 4px;
    margin-top: 20px;
    max-height: 25rem;
}

.all-stops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333333;
    padding-bottom: 10px;
}

.all-stops-count {
    font-weight: 600;
}

.all-stop-item {
    padding: 10px;
    transition: background-color 0.2s ease-in-out;
}

.all-stop-item:hover {
    background-color: #f9f9f9;
    border-radius: 4px;
}

.all-stop-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-name:hover {
    cursor: pointer;
}

.route-name.active {
    font-weight: bold;
    color: #0ca678;
    font-size: 16px;
}

.comma {
    margin-right: 6px;
}

.route-number {
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-result-type-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-right: 10px;
    object-fit: contain;
}

.search-result-type-icon.address {
    width: 24px;
    height: 30px;
    flex-basis: 24px;
    margin-right: 13px;
}

.search-result-name-wrap {
    min-width: 0;
}

.search-result-type-label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #777777;
}

.text-wrapper-2 {
    font-size: 20px;
    color: #0ca678;
    font-weight: 600;
    margin-right: 0.5rem;
}

.location-name {
    font-size: 16px;
    color: #000000;
    overflow-wrap: anywhere;
}

.route-number-2 {
    display: flex;
}

.route-number-2 button:first-child {
    margin-right: 0.3125rem;
}

.btn-select,
.btn-location {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    color: #333333;
}

.btn-select:hover,
.btn-location:hover {
    background-color: #e0e0e0;
}

.all-stop-address {
    font-size: 13px;
    color: #888888;
    margin-top: 5px;
    text-decoration: none !important;
}

.route-search-results {
    width: 100%;
    max-width: 24.375rem;
    margin-top: 20px;
    padding: 10px 0;
    text-align: left;
}

.route-search-header {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    padding: 5px 10px;
}

.route-search-divider {
    width: 100%;
    height: 1px;
    background-color: #cccccc;
    margin: 5px 0;
}

.route-card {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 10px;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.route-card:hover {
    background-color: #F5F5F5;
}

.route-card.active {
    background-color: #E7F6F1;
}

.route-card-divider {
    width: 100%;
    height: 1px;
    background-color: #e3e2e2;
    margin: 5px 0;
}

.route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
}

.route-time {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

.route-card-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    margin: 0 10px 6px;
    min-width: 0;
    font-size: 13px;
}

.route-summary-label {
    flex: 0 0 auto;
    color: #666666;
}

.route-summary-routes {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #087f5b;
    font-weight: 700;
    flex-wrap: wrap;
}

.route-summary-leg {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.route-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 1px 6px;
    border: 1px solid #9bd8c3;
    border-radius: 10px;
    background: #ffffff;
    color: #087f5b;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.route-summary-arrow {
    color: #888888;
    font-weight: 400;
}

.route-summary-more {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid #9bd8c3;
    border-radius: 9px;
    background-color: #ffffff;
    color: #087f5b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

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

.route-summary-hidden:not([hidden]) {
    display: contents;
}

.route-summary-transfer {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 10px;
    background-color: #e7f6f1;
    color: #087f5b;
    font-weight: 600;
}

.route-duration-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0 10px 7px;
    color: #555555;
    font-size: 12px;
}

.route-duration-title {
    padding: 3px 0;
    border-bottom: 1px solid #dfe7e4;
    color: #666666;
    font-weight: 600;
}

.route-duration-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.route-duration-option + .route-duration-option {
    border-top: 1px solid #edf1ef;
}

.route-duration-option strong,
.route-duration-option .route-link {
    color: #087f5b;
}

.route-duration-minutes {
    white-space: nowrap;
    text-align: right;
    font-weight: 600;
}

.route-walk-summary {
    margin: 2px 10px 8px;
    color: #555555;
    font-size: 13px;
    line-height: 1.45;
}

.route-itinerary-endpoint,
.route-itinerary-walk,
.route-itinerary-bus-leg {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    min-height: 44px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.route-itinerary-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.route-itinerary-icon img {
    display: block;
    width: 32px;
    height: 32px;
}

.route-itinerary-endpoint .route-itinerary-icon img {
    flex: 0 0 43px;
    width: 43px;
    height: 36px;
    max-width: none;
}

.route-itinerary-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    min-width: 0;
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
}

.route-itinerary-content strong {
    min-width: 0;
    color: #222222;
    font-size: 14px;
}

.route-itinerary-content span {
    color: #777777;
}

.route-itinerary-label {
    flex: 0 0 auto;
    padding: 1px 5px;
    border-radius: 8px;
    background: #eef6ff;
    color: #2478c5 !important;
    font-size: 11px;
    font-weight: 700;
}

.route-itinerary-arrival .route-itinerary-label {
    background: #fff0f2;
    color: #d9485f !important;
}

.route-itinerary-endpoint::after,
.route-itinerary-walk::before,
.route-itinerary-bus-leg::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: var(--route-timeline-x);
    width: 2px;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
}

.route-itinerary-departure::after {
    top: 22px;
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        #a7abb2 0 3px,
        transparent 3px 7px
    );
}

.route-itinerary-arrival::after {
    top: 0;
    bottom: 22px;
    background: repeating-linear-gradient(
        to bottom,
        #a7abb2 0 3px,
        transparent 3px 7px
    );
}

.route-itinerary-walk::before {
    background: repeating-linear-gradient(
        to bottom,
        #a7abb2 0 3px,
        transparent 3px 7px
    );
}

.route-itinerary-bus-leg {
    min-height: 44px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.route-itinerary-bus-leg::before {
    background: #0ca678;
}

.route-itinerary-bus-leg:hover,
.route-itinerary-bus-leg:focus-visible,
.route-itinerary-bus-leg.is-expanded {
    background: rgba(12, 166, 120, 0.07);
}

.route-itinerary-bus-leg:focus-visible {
    outline: 2px solid #0ca678;
    outline-offset: -2px;
}

.route-itinerary-bus-leg .route-itinerary-content {
    width: 100%;
}

.route-bus-leg-chevron {
    display: block;
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    margin-left: auto;
    background: url('../../img/jeongseon/pathFinder/icon_dropdownArrow.svg') center / contain no-repeat;
    transition: transform 0.2s ease-in-out;
}

.route-itinerary-bus-leg.is-expanded .route-bus-leg-chevron {
    transform: rotate(180deg);
}

.route-segment-stations {
    position: relative;
    background: rgba(12, 166, 120, 0.04);
}

.route-segment-stations[hidden] {
    display: none;
}

.route-segment-stations::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: var(--route-timeline-x);
    width: 2px;
    transform: translateX(-50%);
    background: #0ca678;
}

.route-segment-station-item,
.route-segment-stations-message {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 10px 5px 52px;
    box-sizing: border-box;
    color: #444444;
    font-size: 12px;
    line-height: 1.35;
}

.route-segment-station-item + .route-segment-station-item {
    border-top: 1px solid rgba(12, 166, 120, 0.1);
}

.route-segment-station-dot {
    position: absolute;
    left: 22px;
    width: 8px;
    height: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #0ca678;
    box-sizing: border-box;
    padding: 0;
    cursor: pointer;
}

.route-segment-station-name {
    min-width: 0;
    overflow: hidden;
    color: #333333;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-segment-station-code {
    flex: 0 0 auto;
    margin-left: 7px;
    color: #888888;
}

.route-segment-station-badge {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 1px 5px;
    border-radius: 8px;
    background: #0d733d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.route-segment-stations-message {
    color: #777777;
}

.route-itinerary-line-dot {
    position: relative;
    z-index: 2;
    width: 8px;
    height: 8px;
    margin-left: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #0ca678;
    box-sizing: border-box;
}

.route-buttons {
    display: flex;
}

.route-buttons button:first-child {
    margin-right: 5px;
}

.route-button-preview,
.route-button-info {
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
    color: #333333;
}

.route-button-preview:hover,
.route-button-info:hover {
    background-color: #f0f0f0;
}

.route-button-preview.active {
    background-color: #ffffff;
    color: #0ca678;
    border: 2px solid #0ca678;
    border-radius: 4px;
    font-weight: 600;
}

.route-stop-container {
    --route-timeline-x: 26px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.route-divider {
    width: 3px;
    background-color: #0ca678;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
}

.route-stop-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.route-stop-wrapper::before {
    content: "";
    position: absolute;
    width: 2px;
    background-color: #0ca678;
    top: 0;
    bottom: 0;
    height: auto;
    left: var(--route-timeline-x);
    transform: translateX(-50%);
}

.route-stop-wrapper.route-first-boarding::before {
    top: 22px;
}

.route-has-address-departure .route-stop-wrapper.route-first-boarding::before {
    top: 0;
    background-color: transparent;
    background-image:
        repeating-linear-gradient(
            to bottom,
            #a7abb2 0 3px,
            transparent 3px 7px
        ),
        linear-gradient(#0ca678, #0ca678);
    background-position: top, 0 22px;
    background-repeat: no-repeat;
    background-size: 2px 22px, 2px calc(100% - 22px);
}

.route-stop-wrapper.route-transfer-boarding::before {
    background-color: transparent;
    background-image:
        repeating-linear-gradient(
            to bottom,
            #f59f00 0 4px,
            transparent 4px 8px
        ),
        linear-gradient(#0ca678, #0ca678);
    background-position: top, 0 22px;
    background-repeat: no-repeat;
    background-size: 2px 22px, 2px calc(100% - 22px);
}

.transfer-stop-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.route-stop-wrapper.route-first-boarding.route-has-details::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 12px;
    height: 12px;
    top: 1rem;
    transform: rotate(0deg);
    background-image: url('../../img/jeongseon/pathFinder/icon_dropdownArrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease-in-out;
}

.route-card.active .route-stop-wrapper.route-first-boarding.route-has-details::after {
    transform: rotate(180deg);
}

.route-stop-wrapper.route-final-alighting::before {
    top: 0;
    bottom: 0;
    background-color: transparent;
    background-image: linear-gradient(#0ca678, #0ca678);
    background-position: top;
    background-repeat: no-repeat;
    background-size: 2px 22px;
}

.route-has-final-destination .route-stop-wrapper.route-final-alighting::before {
    background-image:
        linear-gradient(#0ca678, #0ca678),
        repeating-linear-gradient(
            to bottom,
            #a7abb2 0 3px,
            transparent 3px 7px
        );
    background-position: top, 0 22px;
    background-size: 2px 22px, 2px calc(100% - 22px);
}

.route-stop-extra {
    display: none;
    align-items: center;
    width: 100%;
}

.route-info-text {
    font-size: 14px;
    color: #000000;
    margin-bottom: 10px;
    margin-left: 52px;
}

.route-segment-duration {
    display: inline-block;
    margin-left: 7px;
    color: #087f5b;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.transfer-stop-text {
    font-size: 14px;
    display: flex;
    color: #000000;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    margin-left: 52px;
}

.transfer-stop-name {
    margin-left: 42px;
}

.transfer-stop-text:hover {
    text-decoration: underline;
}

.route-stop-route-info {
    font-size: 14px;
    color: #333333;
    margin-top: 5px;
}

.route-stop-transfer {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-top: 3px;
}

.route-stop-icon-chevron {
    width: 12px;
    height: 12px;
    margin-left: 3px;
    transition: transform 0.3s ease-in-out;
}

.route-stop-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.route-stop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
}

.route-station-icon-button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.route-segment-station-dot.route-station-icon-button {
    border: 2px solid #ffffff;
    background: #0ca678;
}

.route-station-icon-button:hover img,
.route-station-icon-button:focus-visible img {
    transform: scale(1.08);
}

.route-station-icon-button:focus-visible {
    outline: 2px solid #087f5b;
    outline-offset: 2px;
    border-radius: 50%;
}

.route-station-icon-button img {
    transition: transform 0.15s ease-in-out;
}

.route-stop-icon img {
    width: 100%;
    height: auto;
}

.route-stop-info {
    display: flex;
    margin-left: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.route-stop-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
    position: relative;
    width: 100%;
}

.route-stop-name {
    font-size: 15px;
    color: #000000;
}

.route-stop-number {
    font-size: 14px;
    margin-left: 10px;
    color: #888888;
    text-decoration: none !important;
}

.route-station-location {
    margin-left: 8px;
    padding: 3px 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-size: 12px;
    cursor: pointer;
}

.route-station-location:hover {
    background: #f0f0f0;
}

.route-transfer-board-badge,
.route-transfer-alight-badge {
    flex: 0 0 auto;
    margin-left: 7px;
    padding: 2px 6px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
}

.route-transfer-board-badge {
    background-color: #e7f6f1;
    color: #087f5b;
}

.route-transfer-connection {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px;
    margin: 2px 0 6px;
    padding: 7px 10px;
    border-left: 0;
    border-radius: 4px;
    background-color: #fff9db;
    font-size: 12px;
}

.route-transfer-connection::before {
    content: "";
    position: absolute;
    left: var(--route-timeline-x);
    width: 2px;
    transform: translateX(-50%);
    top: -4px;
    bottom: -8px;
    background: repeating-linear-gradient(
        to bottom,
        #f59f00 0 4px,
        transparent 4px 8px
    );
}

.route-transfer-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
}

.route-transfer-icon img {
    width: 32px;
    height: 32px;
}

.route-transfer-point {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
    min-width: 0;
}

.route-transfer-alight-badge {
    margin-left: 0;
    margin-right: 6px;
    background-color: #fff3bf;
    color: #9c6500;
}

.route-transfer-point-name {
    min-width: 0;
    color: #333333;
    font-weight: 600;
}

.route-transfer-point-code {
    flex: 0 0 auto;
    margin-left: 6px;
    color: #888888;
}

.route-transfer-walk-row {
    grid-column: 2;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 6px;
    color: #805b10;
    line-height: 1.4;
}

.route-transfer-walk-arrow {
    flex: 0 0 auto;
    color: #f08c00;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.route-transfer-alight-map-icon {
    background: transparent;
    border: 0;
}

.route-board-map-icon {
    background: transparent;
    border: 0;
}

.route-board-map-pin {
    position: absolute;
    top: 0;
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #087f5b;
    border-radius: 50%;
    background-color: #0ca678;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.route-board-map-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    border-top: 9px solid #087f5b;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    transform: translateX(-50%);
}

.route-transfer-alight-map-pin {
    position: absolute;
    top: 0;
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #cc7600;
    border-radius: 50%;
    background-color: #f08c00;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.route-transfer-alight-map-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    border-top: 9px solid #cc7600;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    transform: translateX(-50%);
}

.route-stop-divider {
    width: 100%;
    height: 1px;
    background-color: #cccccc;
    margin-top: 10px;
}

.transfer-stop-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px;
    font-size: 12px;
    margin-left: 13px;
}

.bus-route-info-container {
    width: 100%;
}

.bus-route-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.bus-route-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.bus-route-info-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333333;
}

.bus-route-tab-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.bus-type {
    font-size: 16px;
}

.tab-buttons {
    display: flex;
}

.bus-route-tab {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    margin-left: 5px;
}


.bus-route-tab.active {
    background-color: #ffffff;
    color: #0ca678;
    border: 2px solid #0ca678;
    font-weight: 600;
    pointer-events: none;
}

.bus-route-tab:not(.active):hover {
    background-color: #f0f0f0;
}

.bus-route-info-section {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.bus-route-info-section img {
    width: 42px;
    height: 42px;
    margin-right: 10px;
}

.station-info p {
    font-size: 15px;
    margin: 5px 0;
}

.station-info span {
    font-size: 13px;
    color: #888888;
    margin-left: 5px;
}

.bus-route-info-box {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.bus-route-info-box:last-child {
    padding: 5px 0 10px 0;
}

.bus-info-label {
    background-color: #f0f0f0;
    padding: 10px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    color: #555555;
    width: 80px;
    min-width: 80px;
    text-align: center;
}

.separator {
    color: #cccccc;
    font-weight: bold;
}

.bus-info-value {
    font-size: 14px;
    color: #333333;
    margin-left: 10px;
}

.radio-container,
.popup-radio-container {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 20px;
}

.popup-radio-container {
    margin-top: 0;
}

.route-select-wrapper {
    flex-shrink: 0;
}

.route-select {
    font-size: 13px;
    padding: 4px 30px 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: url('../../img/jeongseon/pathFinder/icon_chevronDown.svg') no-repeat right 8px center;
    background-size: 14px 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.radio-buttons {
    display: flex;
}

.radio-buttons label {
    margin-left: 16px;
}

.radio-label,
.popup-radio-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

input[name="popup-time-filter"] {
    display: block!important;
}

.radio-custom,
.popup-radio-custom {
    width: 14px;
    height: 14px;
    border: 1px solid #0ca678;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 5px;
    background-color: #ffffff;
}

.radio-label input[type="radio"]:checked + .radio-custom,
.popup-radio-label input[type="radio"]:checked + .popup-radio-custom {
    background-color: #ffffff;
    border: 2px solid #0ca678;
}

.radio-label input[type="radio"]:checked + .radio-custom::after,
.popup-radio-label input[type="radio"]:checked + .popup-radio-custom::after {
    content: "";
    width: 7px;
    height: 7px;
    background-color: #0ca678;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bus-route-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 5px;
}

.bus-route-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.bus-route-table th, .bus-route-table td {
    padding: 8px;
    border-bottom: 1px solid #cccccc;
    font-size: 14px;
}

.bus-route-table th {
    background-color: #f0f0f0;
}

.magnifier-icon {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: text-bottom;
    transition: transform 0.2s ease;
}

.magnifier-icon:hover {
    transform: scale(1.3);
}

.via-detail-dropdown {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.via-dropdown-row {
    background-color: #F9F9F9;
}

.bus-route-table tr.main-row.open td {
    border-bottom: none !important;
}

.via-dropdown-row td {
    border-top: 1px dashed #ccc !important;
}

.via-dropdown-cell {
    padding: 15px 8px !important;
    font-size: 14px !important;
    color: #383838 !important;
    text-align: left;
    line-height: 1.6;
    white-space: normal;
}

.bus-route-info-text {
    font-size: 12px;
    text-align: right;
    margin: 10px 0 15px 0;
}

/* 스피너 */
.results-spinner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;  /* 또는 원하는 높이 */
    padding: 40px 0;
    text-align: center;
}

.results-spinner-container > img {
    animation: rotate 1s linear infinite;
}

.results-spinner {
    margin-bottom: 10px;
}

.results-spinner-text {
    margin-top: 10px;
}

/* ============================== */
.station-custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.leaflet-popup-content {
    margin: 15px;
    max-width: 300px;
}

.station-info-popup {
    min-width: 282px;
}

.station-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.station-popup-title-group {
    display: flex;
    align-items: center;
}

.station-popup-title-group .station-popup-type {
    margin-right: 10px;
}

.station-popup-code {
    margin-left: 7px;
    color: #777777;
    font-size: 12px;
    white-space: nowrap;
}

.leaflet-tooltip.route-map-tooltip {
    padding: 7px 9px !important;
    border: 1px solid #8b929a !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24) !important;
    color: #222222 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

.leaflet-tooltip.route-map-tooltip::before {
    border-top-color: #8b929a !important;
}

.route-map-tooltip-type {
    margin-right: 6px;
    color: #087f5b !important;
    font-weight: 700;
}

.route-map-tooltip-name {
    color: #222222 !important;
    font-weight: 700;
}

.route-map-tooltip-code {
    margin-left: 7px;
    color: #666666 !important;
    font-weight: 500;
}

.route-walk-time-map-icon {
    border: 0 !important;
    background: transparent !important;
}

.route-walk-time-map-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 21px;
    padding: 0 6px;
    border: 1.5px solid #f08c00;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    color: #b85c00;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.route-bus-time-map-icon {
    border: 0 !important;
    background: transparent !important;
}

.route-bus-time-map-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 94px;
    height: 21px;
    padding: 0 6px;
    border: 1.5px solid var(--route-segment-color, #168aad);
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

.route-bus-time-map-label strong {
    max-width: 48px;
    overflow: hidden;
    color: var(--route-segment-color, #168aad);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
}

.route-bus-time-map-label em {
    margin-left: 4px;
    color: #444444;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.bus-stop-popup-code {
    display: block;
    margin-top: 2px;
    color: #777777;
    font-size: 11px;
    font-weight: 500;
}

.station-popup-type {
    color: #fff;
    font-size: 13px;
    padding: 0 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    height: 28px;
    line-height: 1;
    white-space: nowrap;
}

.station-popup-type.station {
    background-color: #0ca678;
}

.station-popup-type.departure {
    background-color: #49B0F9;
}

.station-popup-type.transfer {
    background-color: #888888;
}

.station-popup-type.arrival {
    background-color: #FF6573;
}

.station-popup-name {
    font-size: 18px;
    color: #191919;
    display: flex;
    align-items: center;
    font-weight: 600;
    white-space: nowrap;
}

.station-popup-close {
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    line-height: 1;
    color: #191919;
    padding-bottom: 3px;
}

.popup-route-info-box {
    display: flex;
    align-items: center;
}

.popup-route-label {
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    color: #555555;
    width: 80px;
    text-align: center;
    margin-right: 10px;
    font-family: "Pretendard", sans-serif;
}

.popup-route-values {
    font-size: 14px;
    color: #333333;
    margin-left: 10px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}

.popup-route-name {
    display: inline-block;
    margin-right: 6px;
    white-space: nowrap;
}

.popup-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
}

.popup-radio-buttons {
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 10px 0 5px 0;
}

.popup-radio-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    margin-left: 16px;
}

.popup-radio-label input[type="radio"] {
    display: none;
}

.popup-radio-custom {
    width: 14px;
    height: 14px;
    border: 1px solid #0ca678;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 5px;
    background-color: #ffffff;
}

.popup-radio-label input[type="radio"]:checked + .popup-radio-custom {
    background-color: #ffffff;
    border: 2px solid #0ca678;
}

.popup-radio-label input[type="radio"]:checked + .popup-radio-custom::after {
    content: "";
    width: 7px;
    height: 7px;
    background-color: #0ca678;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-time-table-container {
    width: 100%;
}

.popup-time-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

.popup-time-header-table th {
    background-color: #f0f0f0;
    font-size: 14px;
    padding: 4px 6px;
    border-bottom: 1px solid #ccc;
}

.popup-time-header-table th:last-child {
    padding-right: 6px;
}

.popup-time-body-table td {
    font-size: 14px;
    padding: 4px 6px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.popup-time-table-body-scroll {
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox용 */
    scrollbar-color: #ccc transparent; /* Firefox용 */
}

/* Chrome, Edge, Safari 등 WebKit 브라우저용 */
.popup-time-table-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.popup-time-table-body-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.popup-time-table-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.popup-magnifier-icon {
    width: 16px !important;
    height: 16px !important;
    margin-left: 4px;
    vertical-align: text-bottom;
    cursor: pointer;
}

.fare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.fare-table th, .fare-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.fare-table th {
    background: #f5f5f5;
}

.time-filter {
    margin-bottom: 10px;
}

.time-filter label {
    margin-right: 15px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.departure-time {
    font-weight: bold;
    color: #333;
}

.route-number {
    color: #0ca678;
}

.direction {
    color: #666;
    font-size: 0.9em;
}

.time-group {
    line-height: 1.5;
}

.time-group:last-child {
    margin-bottom: 0;
}

.time-group span {
    color: #333;
    font-size: 14px;
    width: 38px;
    margin-right: -3px;
    display: inline-block;
}

.time-group .separator {
    color: #999;
    margin: 0 1px;
    display: inline;
}

.time-table {
    max-height: 300px;
    overflow-y: auto;
}

.bus-route-table > thead {
    position: sticky;
    top: 0;
}

/* 기존 중복된 스타일 제거하고 하나로 통합 */
.popup-radio-buttons {
    display: flex;
    justify-content: flex-end;
}

.popup-radio-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
}

.popup-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.popup-radio-custom {
    width: 14px;
    height: 14px;
    border: 1px solid #0ca678;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 8px;
    background-color: #ffffff;
}

.popup-radio-label input[type="radio"]:checked + .popup-radio-custom {
    border: 2px solid #0ca678;
}

.popup-radio-label input[type="radio"]:checked + .popup-radio-custom::after {
    content: "";
    width: 7px;
    height: 7px;
    background-color: #0ca678;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-text {
    user-select: none;
}

/* 노선 정류소 모달 스타일 */
.route-stations-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 300px;
    height: 346px;
    max-height: 80vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.route-stations-header {
    height: 48px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
}

.route-stations-title {
    display: flex;
    align-items: center;
    height: 100%;
}

.route-stations-title .route-number {
    font-size: 18px;
    font-weight: 600;
    color: #0ca678;
    margin-right: 8px;
}

.route-stations-title .route-type {
    font-size: 14px;
    color: #666;
    margin-right: 8px;
}

.route-stations-title .route-stations-count {
    font-size: 14px;
    color: #555;
}

.route-stations-title span {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.route-stations-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    padding-bottom: 4px;
}

.route-stations-content {
    padding: 0;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.route-stations-list {
    display: flex;
    flex-direction: column;
}

.route-station-item {
    display: flex;
    padding: 6px 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.route-station-item:last-child {
    border-bottom: none;
}

.route-station-order {
    width: 30px;
    font-weight: 600;
    color: #555;
}

.route-station-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.route-station-id {
    color: #888;
    font-size: 13px;
    margin-left: 10px;
}

.highlighted-station {
    background-color: #e6f8f2;
    border-left: 4px solid #0ca678;
    font-weight: 600;
}

.highlighted-station .route-station-name {
    color: #0ca678;
}
/* ===============================  */


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 1024px) {
    .input-container,
    .route-info-box {
        max-width: 100%;
        margin-top: 1rem;
    }

    .all-stops-container,
    .search-results,
    .bus-route-info-container {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .route-stop-number,
    .all-stop-address {
        text-decoration: none !important;
    }

    .results-spinner-container {
        min-height: 100px;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .station-popup-type.transfer {
        margin: 0 8px 0 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px), 
       (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .time-group {
        display: inline-block;
        margin-right: 5px;
    }
    .time-group::after {
        content: " | ";
        color: #999;
        margin: 0 1px;
        display: inline;
    }
    .time-group:last-child {
        margin-right: 0px;
    }
    .time-group:nth-child(even)::after {
        content: "";
    }
        
}
