﻿/* ==========================================================================
   Layout / Search bar
   ========================================================================== */
#sub-contents {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: MalgunGothic, '맑은 고딕', 돋움, Dotum, AppleGothic, sans-serif, Arial;
}

#sub-contents * {
    font-family: MalgunGothic, '맑은 고딕', 돋움, Dotum, AppleGothic, sans-serif, Arial;
}

.sub-search {
    display: flex;
    gap: 4px;
    width: 100%;
    padding: 8px;
    background-color: #f4f7fc;
}

.sub-search>span {
    cursor: pointer;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sub-search>span:hover {
    color: #244D70;
}

.sub-search .swap-airports-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    color: #000;
}

.sub-search .swap-airports-icon svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.sub-search .port-info {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #244D70;
}

.sub-search .port-info img {
    width: 32px;
    height: 32px;
}

.sub-search .port-info select {
    width: 140px;
}

.port-info>div {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* ========================================================================== 
   weather_info_wrap - temp card
   ========================================================================== */
.temp_info_wrap {
    display: flex;
    gap: 8px;
    width: 100%;
}

.temp_info_wrap>div {
    width: 50%;
    border: 1px solid #cbd7e6;
    border-radius: 12px;
    overflow: hidden;
}

/* 배경컬러 0722 */
.temp_info_wrap .start-port {
    background-color:#EEF6FF;
}

.temp_info_wrap .arrive-port {
    background-color: #F1F8F4;
}

.temp_info_wrap>div .temp_header {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #cbd7e6;
}

.temp_info_wrap>div .temp_header h3 {
    position: relative;
    width: 60%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
}

.temp_info_wrap>div .temp_header h3 .header-title-text {
    display: inline-block;
    min-width: max-content;
    will-change: transform;
}

.temp_info_wrap>div .temp_header h3.is-overflowing .header-title-text {
    animation: header-title-marquee 9s ease-in-out infinite;
}

/* 헤더 타이틀 마퀴(스크롤) 애니메이션 */
@keyframes header-title-marquee {

    0%,
    18% {
        transform: translateX(0);
    }

    55%,
    75% {
        transform: translateX(calc(-1 * var(--header-title-distance, 0px)));
    }

    100% {
        transform: translateX(0);
    }
}

.temp_info_wrap>div .temp_header .date {
    flex-shrink: 0;
    position: initial !important;
}

.temp_info_wrap>div .temp_header .date a {
    font-size: 14px;
    color: #777677;
}

.temp_info_wrap>div .airport_temp {
    padding: 8px 16px;
}

/* 공통 공항 화면의 반응형 inline-block 배치가 두 공항 카드에 적용되지 않게 한다. */
.temp_info_wrap .tm_inner_top {
    display: flex;
    align-items: center;
    min-height: 120px;
    gap: 12px;
}

.temp_info_wrap .wea_air_temp {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
}

.temp_info_wrap .wea_air_temp .wea_air_text {
    display: block;
    width: auto;
    text-align: left;
    white-space: nowrap;
    font-size: 14px;
}

.temp_info_wrap .wea_air_temp .wea_air_text b {
    font-size: 32px;
}

.temp_info_wrap .wea_air_temp .wea_air_text b sup {
    font-size: 20px;
}

.temp_info_wrap .wea_air_info {
    flex: 1;
    min-width: 0;
    width: auto;
}

.temp_info_wrap .wea_air_info ul li {
    font-size: 14px;
}

/* 현재 날씨 설명이 4글자 이상일 때 마지막 글자가 다음 줄로 밀리지 않게 한다. */
.temp_info_wrap .wea_air_temp .wea_air_wthr {
    margin-right: 6px;
}

.temp_info_wrap .wea_air_temp .wea_air_wthr span[class^='mtph'],
.temp_info_wrap .wea_air_temp .wea_air_wthr span[class*=' mtph'] {
    width: 76px;
    white-space: nowrap;
    text-align: center;
    background-position-x: center;
}

.temp_info_wrap>div .time_temp {
    border-bottom: 1px solid #cbd7e6;
}

.temp_info_wrap>div .time_temp img {
    width: 100%;
}

.temp_info_wrap>div .text_info>div {
    min-height: 85px;
    display: table;
    width: 100%;
    box-sizing: border-box;
}

.temp_info_wrap>div .text_info .HWO {
    border-bottom: 1px solid #cbd7e6;
}

.temp_info_wrap>div .text_info .weather-impact-content {
    white-space: pre-line;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.temp_info_wrap>div .text_info .weather-impact-item {
    margin: 0 0 8px;
    padding-left: 1.15em;
    text-indent: -1.15em;
    white-space: pre-line;
}

.temp_info_wrap>div .text_info .weather-impact-item:last-child {
    margin-bottom: 0;
}

.temp_info_wrap>div .text_info .weather-impact-item strong {
    font-weight: 700;
}

.temp_info_wrap>div .text_info>div>div {
    display: table-cell;
    padding: 8px;
    box-sizing: border-box;
    vertical-align: middle;
}

.bl_tit {
    width: 80px;
    align-content: center;
    text-align: center;
    position: relative;
    font-size: 15px;
}

.bl_tit:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e7e7e7;
}

/* color 설정 00722 */
.temp_header,
.ts-legend li:not(:first-child),
.ts-daily-item > *:not(.ts-daily-head),
.text_info {
    background: #fafafa !important;
}

.temp_info_wrap>div .ts {
    left: 0.5px;
}



/* ==========================================================================
   forecast window (외부 위젯 오버라이드)
   ========================================================================== */
.time_temp .airpor_api {
    margin: 0 !important;
}

.time_temp .airpor_api .ts-chart,
.time_temp .airpor_api .ts-info-weekly,
.time_temp .airpor_api .ts-btn-move {
    display: none !important;
}

.time_temp .airpor_api.forecast-window-ready .ts-body {
    overflow: hidden !important;
}

.ts-body .ts-vrb {
        line-height: initial;
}

.ts-body .ts-vrb .wind-arrow{
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: transform .3s ease;
    color: #FF8130;
    fill: currentColor;
}

/* 시간별 날씨 문구도 글자 단위로 갈라지지 않도록 유지한다. */
.time_temp .airpor_api.forecast-window-ready .ts-wicon.over-text {
    white-space: nowrap;
    letter-spacing: -0.2px;
    background-size: 63px auto;
}

.time_temp .airpor_api.forecast-window-ready .ts-item-wrap {
    left: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    width: 100% !important;
}

.time_temp .airpor_api.forecast-window-ready .ts-daily-item {
    float: none !important;
    position: relative;
    width: 100% !important;
}

.time_temp .airpor_api.forecast-window-ready .ts-hourly-item {
    box-sizing: border-box;
    float: left !important;
    min-width: 0;
}

/* 표출 항목명은 피드백 규격에 맞춰 진하게 표시한다. */
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li>span {
    font-weight: 700;
}

/* 기온, 풍향, 풍속, 시정 항목 셀 정렬 */
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li:nth-child(4)>span,
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li:nth-child(5)>span,
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li:nth-child(6)>span,
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li:nth-child(7)>span,
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li:nth-child(8)>span,
.time_temp .airpor_api.forecast-window-ready .ts-legend.ts-type-daily>ul>li:nth-child(10)>span,
.time_temp .airpor_api.forecast-window-ready .ts-hourly-item>ul>li:nth-child(4),
.time_temp .airpor_api.forecast-window-ready .ts-hourly-item>ul>li:nth-child(5),
.time_temp .airpor_api.forecast-window-ready .ts-hourly-item>ul>li:nth-child(6),
.time_temp .airpor_api.forecast-window-ready .ts-hourly-item>ul>li:nth-child(7),
.time_temp .airpor_api.forecast-window-ready .ts-hourly-item>ul>li:nth-child(8),
.time_temp .airpor_api.forecast-window-ready .ts-hourly-item>ul>li:nth-child(10) {
    align-items: center !important;
    box-sizing: border-box;
    display: flex !important;
    height: 48px !important;
    justify-content: center !important;
    padding: 0 !important;
    text-align: center !important;
}


.ts-legend>ul>li:last-child:after,
.ts-item>ul>li:last-child:after {
    background: none !important;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-head {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 0;
    height: 42px;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    width: 100% !important;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-group {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    min-width: 0;
    white-space: nowrap;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-label {
    align-items: center;
    background: #21649c;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    min-width: 68px;
    padding: 0 12px;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-minmax {
    align-items: center;
    color: #222;
    display: inline-flex;
    font-size: 12px;
    font-weight: 400;
    gap: 2px;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-minmax .minmax-label {
    font-size: 12px !important;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-minmax .min-color {
    color: #1185FE;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-minmax .max-color {
    color: #ff2500;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-group.is-compact-minmax .forecast-date-minmax .minmax-label {
    display: none;
}

.time_temp .airpor_api.forecast-window-ready .forecast-date-group.is-hidden-minmax .forecast-date-minmax {
    display: none;
}

.time_temp .airpor_api.forecast-window-ready .forecast-window-nav {
    display: flex;
    gap: 4px;
    pointer-events: none;
    position: absolute;
    right: 6px;
    top: 13px;
    z-index: 30;
}

.time_temp .airpor_api.forecast-window-ready .forecast-window-nav button {
    background: #fff;
    border: 1px solid #cbd7e6;
    color: #244D70;
    cursor: pointer;
    font-family: Arial, sans-serif !important;
    font-size: 20px;
    font-weight: bold;
    height: 26px;
    line-height: 1;
    pointer-events: auto;
    width: 26px;
}

.time_temp .airpor_api.forecast-window-ready .forecast-window-nav button:disabled {
    color: #aeb8c6;
    cursor: default;
}

.time_temp .airpor_api.forecast-window-ready .forecast-window-enter {
    animation-duration: 260ms;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

.time_temp .airpor_api.forecast-window-ready .forecast-window-forward {
    animation-name: forecast-window-slide-left;
}

.time_temp .airpor_api.forecast-window-ready .forecast-window-backward {
    animation-name: forecast-window-slide-right;
}

@keyframes forecast-window-slide-left {
    from {
        opacity: .35;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes forecast-window-slide-right {
    from {
        opacity: .35;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ts-legend>ul>li:last-child:after {
    background: none;
}


/* ==========================================================================
   table (port-info_wrap)
   ========================================================================== */
.port-info_wrap .table_over {
    height: 500px;
    overflow-y: auto;
    border-top: 1px solid #21649c;
    border-bottom: 1px solid #21649c;
}

.port-info_wrap .table_over table {
    border-top: none;
    border-collapse: separate;
    border-spacing: 0;
}

.port-info_wrap.has-no-data .table_over table {
    height: 100%;
}

.port-info_wrap.is-empty {
    display: block;
}

.port-empty-message {
    min-height: 160px;
    border-top: 1px solid #21649c;
    border-bottom: 1px solid #21649c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.port-empty-message[hidden] {
    display: none;
}

.port-no-data-row td {
    color: #555;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.port-info_wrap.has-no-data .port-no-data-row {
    height: 100%;
}

.table_st1 table thead {
    position: sticky;
    top: 0;
    z-index: 50;
}

#sub-contents .condi {
    display: inline-flex;
    align-items: flex-start;
    height: 20px;
    padding: 0 12px;
    overflow: hidden;
    font-size: 14px;
    vertical-align: middle;
}

#sub-contents .condi-label {
    display: inline-block;
    position: relative;
    top: 1px;
    font-family: 'publishing-badge-fallback';
    font-size: 14px;
    line-height: 18.2px;
    letter-spacing: -0.28px;
}


/* ==========================================================================
   기타
   ========================================================================== */
.travle_weather.sub_cscenter {
    margin: 40px 0 40px !important;
}
