@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-gov.min.css");

.sect-map {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: clamp(17px, 2.4vw, 22px) 0;
    box-sizing: border-box;
    width: calc(100% - 20px);
    max-width: 960px;
    margin: 0 auto 50px;
    background: #fff;
    border-radius: clamp(8px, 2.4vw, 20px);
    border: 1px solid #dfe4eb;
    font-family: "Pretendard GOV Variable", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.sect-map * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media all and (max-width:768px) {
    .sect-map {
        padding-bottom: clamp(30px, 30vw, 120px);
    }
}

/* [특보 선택] */
#warnlist {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1px;
    position: absolute;
    overflow: hidden;
    border-radius: 5px;
    background: #dfe4eb;
    border: 1px solid #dfe4eb;
}

@media all and (min-width:768px) {
    #warnlist {
        top: clamp(20px, 4.2vw, 40px);
        left: clamp(20px, 4.2vw, 40px);
    }
}

@media all and (max-width:768px) {
    #warnlist {
        top: 10px;
        right: 10px;
    }
}

.warnlist-item {
    list-style-type: none;
    position: relative;
    width: 100%;
    line-height:1;
}
.warnlist-item {
    list-style-type: none;
    position: relative;
    width: 100%;
    display:none;
}
.warnlist-item:has(.warnlist-btn.on){
    display:block
}

.warnlist-item:has(.warnlist-btn.active){
    display:block
}
.warnlist-btn {
    display:block;
    width: 100%;
    padding: clamp(8px, 1vw, 12px) 1em;
    background: #fff;
    border: none;
    line-height:1;
    text-align: center;
    font-size: clamp(12px, 1.8vw, 16px);
    color: #999;
    cursor: pointer;
}
.warnlist-btn.on {
    background: #000;
    color: #fff;
}

/* ================================== */
/* ================================== */
/* ================================== */
/* [지도] */
#mapsvg-wrap {
    width: 95%;
    max-width: 594px;
}



/* ================================== */
/* ================================== */
/* ================================== */
/* [특보 범례] */
#warnrange {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    bottom: clamp(20px, 4.2vw, 40px);
    left: clamp(20px, 4.2vw, 40px);
    padding: clamp(14px, 2.4vw, 20px) clamp(16px, 3vw, 28px);
    border-radius: 5px;
    background: #fff;
    border: 1px solid #dfe4eb;
}

.warnrange-title {
    line-height:1;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 800;
    color: #000;
}

.warnrange-list {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    width: 100%;
    margin-top: 10px !important;
}

.warnrange-listitem {
    list-style-type: none;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100%;
    line-height:1;
    font-size: clamp(12px, 1.4vw, 14px);
    color: #333;
}
.warnrange-listitem.off{
    display:none;
}
/* 썸네일 */
.warnrange-thumb {
    --_bg: #ccc;
    --_bdr: #000;
    --_line: #f00;
    position: relative;
    width: 20px;
    aspect-ratio: 1/1;
    background: var(--_bg);
    border-radius: 2px;
    border: 1px solid var(--_bdr);
}

.warnrange-thumb.adv::after {
    content: "";
    display: block;
    position: absolute;
    box-sizing: border-box;
    width: 130%;
    height: 1px;
    background: var(--_line);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

@media all and (min-width:768px) {
    #warnrange {
        bottom: clamp(20px, 4.2vw, 40px);
        left: clamp(20px, 4.2vw, 40px);
    }
}

@media all and (max-width:768px) {
    #warnrange {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }

    .warnrange-list {
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
    }

    .warnrange-listitem {
        width: max-content;
    }
}

/* =================================== */
/* =================================== */
/* =================================== */
/* [기상특보 없을때] */
.notypelbox {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: 0;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}

.notypelbox-title {
    line-height: 1.3;
    text-align: center;
    font-size: clamp(16px, 3vw, 24px);
    font-weight: bold;
    color: #fff;
}

.notypelbox-date {
    line-height:1.3;
    text-align:center;
    font-size: clamp(12px, 2vw, 16px);
    color:#fff;
}