@charset "utf-8";

/* =========================================================
   원광효도마을 노인복지센터 - 교통안내
   2026.03.28 함라지역 시내버스 시간표 HTML화
   ========================================================= */

#ctt header h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ctt_c7_USdt83_ #ctt_con,
.c7-traffic #ctt_con {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.c7-traffic,
.c7-traffic * {
    box-sizing: border-box;
}

.c7-traffic {
    color: #555;
}

.c7-traffic__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 0 90px;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: -0.35px;
    word-break: keep-all;
}

/* 상단 */
.c7-traffic__hero {
    position: relative;
    padding: 8px 0 44px;
    border-bottom: 1px solid #e9ecef;
}

.c7-traffic__eyebrow,
.c7-traffic__section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #39a8d4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.c7-traffic__hero h2 {
    margin: 0;
    padding: 0;
    color: #222;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1.2px;
}

.c7-traffic__hero > p {
    margin: 18px 0 0;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.c7-traffic__hero > p strong {
    color: #333;
}

.c7-traffic__date {
    position: absolute;
    right: 0;
    bottom: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dde2e6;
    border-radius: 8px;
    background: #fafbfc;
}

.c7-traffic__date span {
    color: #888;
    font-size: 12px;
}

.c7-traffic__date strong {
    color: #333;
    font-size: 14px;
}

/* 공통 섹션 */
.c7-traffic__section {
    margin-top: 64px;
}

.c7-traffic__section-head {
    margin-bottom: 22px;
}

.c7-traffic__section-head h3 {
    position: relative;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    color: #2d2f31;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.45;
}

.c7-traffic__section-head h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d7dadc;
}

.c7-traffic__section-head > p {
    margin: 8px 0 0 20px;
    color: #7a7d80;
    font-size: 14px;
}

/* 범례 */
.c7-traffic__legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.c7-traffic__legend-item {
    display: flex;
    align-items: center;
    min-height: 74px;
    padding: 15px 16px;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    background: #fff;
}

.c7-traffic__legend-item p {
    margin: 0 0 0 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.c7-traffic__legend-mark {
    flex: 0 0 auto;
    min-width: 76px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f4f5f6;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.c7-traffic__legend-mark.is-red {
    color: #d94747;
}

.c7-traffic__legend-mark.is-blue {
    color: #164cb9;
    background: #fffbdc;
}

.c7-traffic__legend-mark.is-arrow {
    color: #333;
    font-size: 17px;
}

/* 노선 필터 */
.c7-traffic__route-filter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.c7-traffic__route-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid #dfe4e7;
    border-radius: 8px;
    background: #fff;
    color: #555;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.c7-traffic__route-btn:hover,
.c7-traffic__route-btn:focus-visible {
    border-color: #55aecd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 168, 212, .10);
}

.c7-traffic__route-btn strong {
    color: #25282a;
    font-size: 16px;
    line-height: 1.25;
}

.c7-traffic__route-btn span {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 11px;
    line-height: 1.35;
}

.c7-traffic__route-btn.is-active {
    border-color: #39a8d4;
    background: #f3fbfe;
}

.c7-traffic__route-btn.is-active strong {
    color: #1686b3;
}

/* 시간표 헤드 */
.c7-traffic__schedule-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.c7-traffic__schedule-head > div {
    min-width: 0;
}

.c7-traffic__result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    white-space: nowrap;
}

.c7-traffic__result strong {
    color: #333;
    font-size: 14px;
}

.c7-traffic__result span {
    display: inline-flex;
    min-width: 42px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf7fb;
    color: #1686b3;
    font-size: 12px;
    font-weight: 700;
}

.c7-traffic__schedule-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid #e2e7ea;
    border-radius: 10px;
    background: #fafcfd;
}

.c7-traffic__schedule-intro > p {
    margin: 0;
    color: #686c70;
    font-size: 13px;
}

.c7-traffic__schedule-intro > p strong {
    color: #2d3033;
}

.c7-traffic__direction-key {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #63676a;
    font-size: 12px;
}

.c7-traffic__direction-key span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.c7-traffic__direction-key b,
.c7-traffic__direction-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.c7-traffic__direction-key .is-outbound b,
.c7-traffic__direction-badge.is-outbound {
    background: #e7f6eb;
    color: #287c4b;
}

.c7-traffic__direction-key .is-return b,
.c7-traffic__direction-badge.is-return {
    background: #e8f6fb;
    color: #237fa4;
}

.c7-traffic__direction-block {
    margin-top: 28px;
}

.c7-traffic__direction-block + .c7-traffic__direction-block {
    margin-top: 44px;
}

.c7-traffic__direction-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.c7-traffic__direction-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.c7-traffic__direction-head h4 {
    margin: 0;
    color: #26292b;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.45px;
}

.c7-traffic__direction-head > p {
    margin: 0;
    color: #85898c;
    font-size: 12px;
}

.c7-traffic__scroll-guide {
    display: none;
    margin: 0 0 9px;
    color: #8b8d90;
    font-size: 12px;
}

.c7-traffic__scroll-guide span {
    color: #39a8d4;
    font-weight: 700;
}

/* 분리형 시간표 */
.c7-traffic__table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    border: 1px solid #bfc5c9;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(30, 42, 48, .035);
}

.c7-traffic__table-wrap:focus-visible {
    outline: 3px solid rgba(57, 168, 212, .2);
    outline-offset: 2px;
}

.c7-traffic__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #2f3133;
    font-size: 13px;
    line-height: 1.35;
}

.c7-traffic__table--outbound {
    min-width: 1040px;
}

.c7-traffic__table--return {
    min-width: 1120px;
}

.c7-traffic__table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.c7-traffic__table th,
.c7-traffic__table td {
    height: 46px;
    padding: 7px 6px;
    border-right: 1px solid #ccd2d5;
    border-bottom: 1px solid #ccd2d5;
    background: #fff;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.c7-traffic__table tr > *:last-child {
    border-right: 0;
}

.c7-traffic__table tbody tr:last-child > * {
    border-bottom: 0;
}

.c7-traffic__table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 52px;
    background: #def5f6;
    color: #202325;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.is-outbound-block .c7-traffic__table thead th {
    background: #e5f6e9;
}

.is-return-block .c7-traffic__table thead th {
    background: #def4f8;
}

/* 공통 열 너비 */
.c7-traffic__table th:nth-child(1),
.c7-traffic__table td:nth-child(1) { width: 68px; }
.c7-traffic__table th:nth-child(2),
.c7-traffic__table td:nth-child(2) { width: 52px; }
.c7-traffic__table th:nth-child(3),
.c7-traffic__table td:nth-child(3) { width: 98px; }
.c7-traffic__table th:nth-child(4),
.c7-traffic__table td:nth-child(4) { width: 165px; }

.c7-traffic__table--outbound th:nth-child(n+5):nth-child(-n+11),
.c7-traffic__table--outbound td:nth-child(n+5):nth-child(-n+11) { width: 90px; }
.c7-traffic__table--outbound th:nth-child(12),
.c7-traffic__table--outbound td:nth-child(12) { width: 76px; }

.c7-traffic__table--return th:nth-child(n+5):nth-child(-n+12),
.c7-traffic__table--return td:nth-child(n+5):nth-child(-n+12) { width: 86px; }
.c7-traffic__table--return th:nth-child(13),
.c7-traffic__table--return td:nth-child(13) { width: 76px; }

/* 노선 열 고정 */
.c7-traffic__table tbody th:first-child,
.c7-traffic__table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    box-shadow: 1px 0 0 #bfc5c9;
}

.c7-traffic__table tbody th:first-child {
    background: #f8fafb;
    color: #222;
    font-weight: 700;
}

.c7-traffic__table thead th:first-child {
    z-index: 6;
}

/* 엑셀 원본 의미 유지 */
.c7-traffic__table .is-highlight {
    background: #fffda4;
}

.c7-traffic__table .is-blue {
    color: #164cb9;
    font-weight: 700;
}

.c7-traffic__table .is-pass {
    font-weight: 700;
}

.c7-traffic__table .is-note {
    color: #6f5a00;
    font-size: 11px;
    font-weight: 700;
}

.c7-traffic__table .is-terminal {
    color: #17809f;
    font-weight: 700;
}

.c7-traffic__table tbody tr[hidden] {
    display: none;
}

.c7-traffic__table tbody tr:hover > * {
    box-shadow: inset 0 0 0 999px rgba(57, 168, 212, .035);
}

/* 참고사항 */
.c7-traffic__notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.c7-traffic__notes > div {
    min-height: 126px;
    padding: 17px 18px;
    border: 1px solid #e0e4e7;
    border-radius: 10px;
    background: #fafbfb;
}

.c7-traffic__notes span {
    display: inline-block;
    margin-bottom: 9px;
    color: #1686b3;
    font-size: 13px;
    font-weight: 700;
}

.c7-traffic__notes p {
    margin: 0;
    color: #5f6265;
    font-size: 13px;
    line-height: 1.75;
}

.c7-traffic__notes b {
    color: #333;
}

.c7-traffic__source-note {
    margin: 18px 0 0;
    padding: 13px 15px;
    border-left: 3px solid #cfd7db;
    background: #f7f8f8;
    color: #777;
    font-size: 12px;
}

.onlyadmin {
    position: absolute;
    right: 5px;
    bottom: 5px;
}

@media (max-width: 1180px) {
    .c7-traffic__inner {
        padding-left: 28px;
        padding-right: 28px;
    }

    .c7-traffic__route-filter {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .c7-traffic__inner {
        padding-bottom: 65px;
    }

    .c7-traffic__hero {
        padding-bottom: 34px;
    }

    .c7-traffic__hero h2 {
        font-size: 29px;
    }

    .c7-traffic__hero > p {
        font-size: 15px;
    }

    .c7-traffic__date {
        position: static;
        display: inline-flex;
        margin-top: 18px;
    }

    .c7-traffic__section {
        margin-top: 52px;
    }

    .c7-traffic__legend {
        grid-template-columns: 1fr;
    }

    .c7-traffic__legend-item {
        min-height: 64px;
    }

    .c7-traffic__route-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .c7-traffic__schedule-head {
        align-items: flex-start;
    }

    .c7-traffic__schedule-intro {
        display: block;
    }

    .c7-traffic__direction-key {
        margin-top: 10px;
    }

    .c7-traffic__direction-head {
        align-items: flex-start;
    }

    .c7-traffic__scroll-guide {
        display: block;
    }
}

@media (max-width: 600px) {
    .c7-traffic__inner {
        padding: 6px 15px 55px;
        font-size: 14px;
    }

    .c7-traffic__desktop-br {
        display: none;
    }

    .c7-traffic__hero h2 {
        font-size: 26px;
    }

    .c7-traffic__section-head h3 {
        font-size: 18px !important;
    }

    .c7-traffic__route-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c7-traffic__route-btn {
        min-height: 58px;
        padding: 9px 10px;
    }

    .c7-traffic__route-btn strong {
        font-size: 15px;
    }

    .c7-traffic__schedule-head {
        display: block;
    }

    .c7-traffic__result {
        margin-top: 12px !important;
    }

    .c7-traffic__direction-head {
        display: block;
    }

    .c7-traffic__direction-head > p {
        margin-top: 6px;
    }

    .c7-traffic__direction-head h4 {
        font-size: 16px;
    }

    .c7-traffic__notes {
        grid-template-columns: 1fr;
    }

    .c7-traffic__notes > div {
        min-height: 0;
    }

    .c7-traffic__table {
        font-size: 11px;
    }
}

@media print {
    .c7-traffic__route-filter,
    .c7-traffic__scroll-guide,
    .onlyadmin {
        display: none !important;
    }

    .c7-traffic__inner {
        max-width: none;
        padding: 0;
    }

    .c7-traffic__table-wrap {
        overflow: visible;
        border: 0;
    }

    .c7-traffic__table {
        width: 100%;
        min-width: 0;
        font-size: 7px;
    }

    .c7-traffic__table th,
    .c7-traffic__table td {
        height: auto;
        padding: 2px;
    }
}

/* v1.3: '왕/복' 대신 목적지 기준 운행방향을 직접 표시 */
.c7-traffic__direction-key strong {
    color: #34383b;
    font-weight: 700;
}

.c7-traffic__direction-key .is-outbound strong {
    color: #287c4b;
}

.c7-traffic__direction-key .is-return strong {
    color: #237fa4;
}
