/* ── 공지 레이어 팝업 (공통) ─────────────────────────────── */
.notice-layers {
    position: fixed;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 51;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: 0s;
    align-content: center;
}

.notice-layers.on {
    pointer-events: all;
    opacity: 1;
}

.notice-layers.on + .visual .swiper-slide::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.notice-layers > .closes {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.notice-layers > .closes a {
    display: flex;
    gap: 4px;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10em;
    padding: 12px 20px;
    font-size: 0.9em;
}

.notice-layers > .closes a:hover {
    background-color: var(--Main-color, var(--main-color, #036eb8));
}

.notice-layers .notice-layer {
    --gap: 12px;
    --cell: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--gap);
    box-sizing: border-box;
    transition: 0.2s;
    padding: var(--padding) var(--padding) 10px var(--padding);
    overflow-y: auto;
    align-content: flex-start;
    width: 70vw;
    align-items: center;
    justify-content: center;
}

.notice-layers .notice-layer:has(li:nth-child(9)) {
    --cell: 5;
}

.notice-layers .notice-layer li {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transform-origin: left top;
    flex-grow: 0;
    flex-shrink: 0;
    width: calc((100% / var(--cell)) - var(--gap) + (var(--gap) / var(--cell)));
    height: fit-content;
    border: 4px solid #eeeeee30;
}

.notice-layers .notice-layer li img {
    width: 100%;
    height: auto;
/*    min-width: 350px;
    min-height: 350px;*/
    object-fit: contain;
    display: block;
    background: var(--Gray-Pale, var(--gray-pale, #f6f7f9));
}

.notice-layers .notice-layer li a {
    display: block;
}

/* 메인일때 */
.main .notice-layers,
.notice-layers.filled {
    padding-top: var(--top-h, 80px);
    padding-bottom: var(--top-h, 80px);
}

.main .notice-layers .notice-layer,
.notice-layers.filled .notice-layer {
    align-items: center;
    justify-content: center;
    height: auto;
    flex-grow: 0;
    max-height: 100%;
}

/* 반응형 */
@media (max-width: 812px) {
    .notice-layers {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .notice-layers > .closes {
        text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
        font-size: 1em;
        font-weight: bold;
        position: static;
        width: 100%;
        margin: 10px 0;
    }

    .notice-layers > .closes a {
        font-size: 0.8em;
    }

    .notice-layers .notice-layer {
        --cell: 1 !important;
        padding: 10px;
        gap: 10px;
        width: 100%;
        align-content: flex-start;
    }
}

/* ── 팝업 카드 공통 ─────────────────────────────── */
.popup-card {
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 0.15em 0.5em rgba(0, 0, 0, 0.5);
    word-break: keep-all;
    font-size: 16px;
    -webkit-user-select: none;
    user-select: none;
}

.popup-card .card-sub {
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 0.2em;
    letter-spacing: -0.02em;
}

.popup-card .card-title {
    font-size: 1.4em;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.3em;
}

.popup-card .card-highlight {
    font-size: 1.1em;
    font-weight: 800;
    line-height: 1.3;
}

.popup-card .card-date {
    font-size: 1em;
    font-weight: 700;
    margin-top: 0.4em;
}

.popup-card .card-desc {
    font-size: 0.65em;
    font-weight: 400;
    margin-top: 0.4em;
    line-height: 1.5;
    opacity: 0.9;
}

.popup-card .red {
    color: #ff3b3b;
}

.popup-card .yellow {
    color: #ffd600;
}

.popup-card .cyan {
    color: #00e5ff;
}

.popup-card .green {
    color: #7cfc00;
}

.popup-card .orange {
    color: #ff9100;
}

.popup-card .card-sub.gray {
    color: #ccc;
}

.popup-card.light {
    background-color: var(--Gray-Pale, var(--gray-pale, #f6f7f9));
    color: #222;
    text-shadow: none;
}

.popup-card.light .card-highlight.green {
    color: #2e7d32;
}

.popup-card.light .card-highlight.red {
    color: #d32f2f;
}

.popup-card.light .card-date.red {
    color: #d32f2f;
}

.popup-card .card-info-box {
    background: rgba(0, 20, 80, 0.6);
    border-radius: 0.8em;
    padding: 8% 6%;
    margin-top: 0.5em;
    width: 100%;
    text-align: center;
}

.popup-card .card-info-box dt {
    font-size: 0.6em;
    font-weight: 700;
    color: #ffd600;
    margin-top: 0.5em;
}

.popup-card .card-info-box dt:first-child {
    margin-top: 0;
}

.popup-card .card-info-box dd {
    font-size: 0.65em;
    font-weight: 400;
    margin: 0.15em 0 0 0;
    line-height: 1.4;
}

/* ── 팝업 타입별 css ─────────────────────────────── */
.type-closed-event .popup-card,
.type-closed-event p {
    align-items: flex-start;
    text-align: left;
}

.type-closed-event .card-title {
    color: #FF8340;
}

.type-closed-event .card-date {
    margin-top: 0;
}

.type-closed-event .card-desc {
    font-size: 0.8em;
}

.type-closed-construction .popup-card {
    justify-content: center;
}

.type-closed-construction .card-date {
    font-size: 2em;
    color: #c8e600;
    margin-bottom: 0.2em;
}

.type-closed-construction .card-title {
    font-size: 1.6em;
}

.type-closed-turf .card-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
}

.type-closed-turf .card-highlight {
    font-size: 1.15em;
}

.type-closed-turf .card-title {
    font-size: 2em;
}

.type-closed-turf .card-date {
    color: #ffe100;
    font-size: 1.3em;
}

.type-closed-snow .card-sub {
    font-size: 1em;
    font-weight: 700;
}

.type-closed-snow .card-highlight {
    color: #ff2020;
    font-size: 1.6em;
    font-weight: 900;
    margin: 0.15em 0;
}

.type-closed-snow .card-date {
    color: #ff9100;
    font-size: 1.2em;
}

.type-closed-snow .card-desc {
    font-size: 0.65em;
}

.type-closed-ice .card-sub {
    font-size: 1em;
    margin-bottom: 0.3em;
}

.type-closed-ice .card-highlight {
    color: #00e5ff;
    font-size: 1.6em;
    font-weight: 900;
    line-height: 1.35;
}

.type-closed-virus .card-highlight {
    color: #ffd600;
    font-size: 1.1em;
    margin-bottom: 0.2em;
}

.type-closed-virus .card-title {
    font-size: 1.35em;
}

.type-closed-virus .card-sub {
    font-size: 0.65em;
    margin-top: 0.6em;
    margin-bottom: 0.1em;
}

.type-closed-virus .card-date {
    color: #ff9100;
    font-size: 0.8em;
}

.type-closed-rain .card-sub {
    font-size: 0.85em;
    font-weight: 800;
    margin-bottom: 0.4em;
}

.type-closed-rain .card-highlight {
    color: #ff2020;
    font-size: 1.45em;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 0.2em;
}

.type-closed-rain .card-date {
    color: #ff9100;
    font-size: 1.15em;
}

.type-system-maintenance .popup-card {
    justify-content: flex-start;
    padding-top: 8%;
}

.type-system-maintenance .card-sub {
    font-size: 0.8em;
    font-weight: 700;
}

.type-system-maintenance .card-highlight {
    color: #00e5ff;
    font-size: 1.1em;
}

.type-system-maintenance .card-title {
    font-size: 1.5em;
    margin-bottom: 0.2em;
}

.type-system-maintenance .card-info-box {
    margin-top: 0.4em;
}

.type-system-maintenance .card-info-box dt {
    font-size: 0.6em;
}

.type-system-maintenance .card-info-box dd {
    font-size: 0.65em;
}

.type-phone-unavailable .popup-card,
.type-phone-unavailable p {
    align-items: flex-start;
    text-align: left;
}

.type-phone-unavailable .card-sub {
    font-size: 1.1em;
    font-weight: 800;
}

.type-phone-unavailable .card-highlight {
    font-size: 1.3em;
    color: #ffd600;
}

.type-phone-unavailable .card-title {
    font-size: 1.6em;
}

@media (max-width: 812px) {
    .popup-card {
        font-size: 1.6em;
    }

    .type-closed-construction .card-date {
        font-size: 2em;
        font-weight: 700;
    }

    .type-closed-construction .card-title {
        font-size: 1.6em;
        font-weight: 900;
    }

    .type-closed-turf .card-sub {
        font-size: 0.8em;
        font-weight: 600;
    }

    .type-closed-turf .card-highlight {
        font-size: 1.15em;
        font-weight: 800;
    }

    .type-closed-turf .card-title {
        font-size: 2em;
        font-weight: 900;
    }

    .type-closed-turf .card-date {
        font-size: 1.3em;
        font-weight: 700;
    }

    .type-closed-snow .card-sub {
        font-size: 1em;
        font-weight: 700;
    }

    .type-closed-snow .card-highlight {
        font-size: 1.6em;
        font-weight: 900;
    }

    .type-closed-snow .card-date {
        font-size: 1.2em;
        font-weight: 700;
    }

    .type-closed-snow .card-desc {
        font-size: 0.65em;
    }

    .type-closed-ice .card-sub {
        font-size: 1em;
        font-weight: 600;
    }

    .type-closed-ice .card-highlight {
        font-size: 1.6em;
        font-weight: 900;
    }

    .type-closed-rain .card-sub {
        font-size: 1em;
        font-weight: 800;
    }

    .type-closed-rain .card-highlight {
        font-size: 1.6em;
        font-weight: bold;
    }

    .type-closed-rain .card-date {
        font-size: 1.3em;
        font-weight: 700;
    }

    .type-phone-unavailable .card-sub {
        font-size: 1.1em;
        font-weight: 800;
    }

    .type-phone-unavailable .card-highlight {
        font-size: 1.3em;
        font-weight: 800;
    }

    .type-phone-unavailable .card-title {
        font-size: 1.6em;
        font-weight: 900;
    }
}

/* ── 상단 헤더 영역 ─────────────────────────────── */
.notice-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 10px;
    width: 100%;
}

.notice-header .logo-img {
    width: auto;
    height: 26px;
    display: block;
}

.notice-header .org-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

@media (max-width: 812px) {
    .notice-header {
        padding: 15px 10px;
        gap: 8px;
        flex-direction: column;
    }

    .notice-header .org-name {
        font-size: 18px;
        text-align: center;
    }
}
