/* 팝업 */
#popParent {
    display: none;

    &.pop-parent {
        z-index: 9999;
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        padding-bottom: 40px;
        background-color: rgba(0, 0, 0, 0.35);

        .pop {
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 500px;

            .btn-toggle {
                width: 40px;
                height: 40px;
                position: relative;
                background-color: black;
                cursor: pointer;

                img {
                    width: auto;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%) rotate(-90deg);
                    transition: all 0.3s;
                }
            }
            .swiper-btn-control {
                width: 8px;
                height: 11px;
                margin-left: 16px;
                position: relative;
                top: 2px;
            }
            .btn-close {
                width: 40px;
                height: 40px;
                background-color: black;

                > i {
                    color: #fff;
                }
            }
        }
        .pop-btns {
            display: flex;
            justify-content: space-between;
            width: 100%;
            height: 40px;
            background-color: #3c3c3c;

            a {
                color: #fff;
                padding: 7px 14px;
            }
            #oneday_check {
                position: absolute;
                clip: rect(0, 0, 0, 0);
            }
            #oneday_check + label {
                display: flex;
                align-items: center;
                padding: 0 10px;
                font-size: 14px;
                color: #fff;
                cursor: pointer;
            }
            #oneday_check + label:before {
                content: "";
                display: inline-block;
                width: 12px;
                height: 12px;
                margin-right: 10px;
                border: 1px solid #fff;
            }
        }
        .popupSwiper {
            background-color: #fff;
        }
        .swiper-pagination {
            pointer-events: none;
            top: 21px;
            left: auto;
            right: 20px;
            width: fit-content;
            display: flex;
            gap: 5px;
        }
        .swiper-pagination-bullet {
            /* flex: 0 0 auto; */
            /* margin: 0 5px; */
            width: 10px;
            height: 10px;
            border-radius: 0;
            border: 1px solid #202020;
            opacity: 0.5;
            background-color: transparent;
        }
        .swiper-pagination-bullet-active {
            background-color: #fff;
            opacity: 1;
        }
        .active {
            right: -400px;

            .btn-toggle {
                transform: rotate(180deg);
            }
        }
        .m-ratioBox-wrap {
            width: 100%;
            padding-top: 100%;
            position: relative;
            overflow: hidden;

            .m-ratioBox {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-size: cover;
                background-position: center;
                background-color: var(--sub_color01);
            }
            img {
                /* display: block; */
                width: 100%;
                height: 100%;
                object-fit: cover;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translateY(-50%) translateX(-50%);
                z-index: 1;
            }
            iframe {
                width: 105%;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translateY(-50%) translateX(-50%);
                z-index: 1;
            }
        }

        /* 1279px 이하 */
        @media screen and (max-width: 1279px) {
            .pop {
                width: calc(100% - 40px);
                max-width: 500px;
            }
            &.active {
                right: calc(- (100% - 40px));
            }
        }

        /* 1023px 이하 */
        @media screen and (max-width: 1023px) {
            .floating-btns-wrap {
                bottom: 16px;
                right: 16px;
            }
        }

        /* 767px 이하 */
        @media screen and (max-width: 767px) {
            top: 50%;
            right: unset;
            left: 50%;
            transform: translate(-50%, -50%);

            .pop-btns {
                width: 100%;
                justify-content: space-between;
            }
            .pop .btn-toggle {
                display: none;
            }
            .pop .btn-close {
                display: block;
            }
        }
    }
}

/* 
=============================================================
-------------------------커스텀스타일------------------------- 
=============================================================
*/

/* 헤더 */
#header_wrap {
    color: #fff;

    @media screen and (min-width: 1561px) {
        transition: all 0.6s ease;
    }

    /* 헤더 메뉴 버튼 */
    .mobile_btn_wrap {
        position: relative;
        z-index: 200;
        display: none;

        @media screen and (max-width: 1560px) {
            display: flex;
            align-items: center;
            gap: 8px;

            #home_btn {
                display: none;
                width: 40px;
                height: 40px;
                opacity: 0;
                transition: all 0.6s;

                &.active {
                    display: block;
                    opacity: 1;
                }
            }

            #header_menu_btn {
                position: relative;
                width: 24px;
                height: 20px;
                display: block;

                span {
                    position: absolute;
                    left: 50%;
                    display: block;
                    width: 24px;
                    height: 2px;
                    border-radius: 2px;
                    background-color: #fff;
                    opacity: 1;
                    transition: all 0.3s;

                    &:nth-child(1) {
                        top: 0;
                        transform: translateX(-50%);
                    }
                    &:nth-child(2),
                    &:nth-child(3),
                    &:nth-child(4) {
                        top: 50%;
                        transform: translate(-50%, -50%);
                    }
                    &:nth-child(5) {
                        bottom: 0;
                        transform: translateX(-50%);
                    }
                }

                &.click {
                    span {
                        &:nth-child(2) {
                            transform: translate(-50%, -50%) rotate(45deg);
                        }
                        &:nth-child(4) {
                            transform: translate(-50%, -50%) rotate(-45deg);
                        }
                        &:nth-child(1),
                        &:nth-child(3),
                        &:nth-child(5) {
                            opacity: 0;
                        }
                    }
                }

                &.active {
                    span {
                        background-color: #000;
                    }
                }
            }
        }
    }

    /* 헤더 메뉴 */
    #header_menu {
        position: relative;
        z-index: 100;

        @media screen and (min-width: 1561px) {
            > ul {
                display: flex;
                gap: 40px;

                li {
                    position: relative;

                    .header_title,
                    .lang_menu_btn {
                        position: relative;
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        cursor: pointer;
                    }
                    .header_title i {
                        display: none;
                    }
                    .lang_menu_btn i {
                        display: block;
                    }

                    .sub_menu,
                    .lang-menu {
                        position: absolute;
                        top: 100%;
                        left: 50%;
                        transform: translateX(-50%);
                        display: none;
                        padding-top: 50px;

                        ul {
                            width: max-content;
                            padding: 24px;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 24px;
                            background: #fff;
                            border-radius: 10px;
                            box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);

                            li {
                                > button,
                                > a {
                                    color: #000;
                                }
                            }
                        }
                    }

                    &:hover {
                        .sub_menu {
                            display: block;
                        }
                    }
                    &.active {
                        .lang-menu {
                            display: block;
                        }

                        p {
                            i {
                                transform: rotate(180deg);
                            }
                        }
                    }
                }
            }

            .mobile_lang_menu {
                display: none;
            }
        }

        @media screen and (max-width: 1560px) {
            display: none;

            > ul {
                display: flex;
                flex-direction: column;
                gap: 10px;
                padding: 40px 20px 160px;

                li {
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;

                    .header_title {
                        position: relative;
                        height: 48px;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        gap: 8px;
                        cursor: pointer;
                        text-indent: 10px;

                        i {
                            text-indent: 0;
                        }

                        &.active {
                            i {
                                display: block;
                                transform: rotate(180deg);
                            }
                        }
                    }

                    .lang_menu_btn {
                        display: none;
                    }

                    .sub_menu {
                        display: none;
                        background: #1638650a;
                        padding: 10px;
                        border-radius: 10px;

                        ul {
                            display: flex;
                            flex-direction: column;

                            li {
                                > a {
                                    height: 40px;
                                    display: flex;
                                    align-items: center;
                                    text-indent: 10px;
                                }
                            }
                        }

                        &.active {
                            display: block;
                        }
                    }

                    .lang-menu {
                        display: none;
                    }
                }
            }

            .mobile_lang_menu {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 80px;
                padding: 0;
                background-color: #fff;
                z-index: 10;
                display: flex;
                flex-direction: row;
                gap: 0;
                align-items: center;
                justify-content: center;

                li {
                    button {
                        color: #222;
                        padding: 0 24px;
                        font-size: 16px;
                        font-weight: 400;

                        &.active {
                            color: #163865;
                            font-weight: 600;
                        }
                    }

                    &:last-child {
                        border-left: 1px solid #222;
                    }
                }
            }

            &.active {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: absolute;
                top: 56px;
                left: 0;
                width: 100%;
                height: calc(100vh - 56px);
                background-color: #fff;
                overflow-y: scroll;
            }
        }
    }

    &.active {
        background: #fff;
        color: #000;

        #header_menu_btn {
            span {
                background-color: #000;
            }
        }
    }

    @media screen and (min-width: 1561px) {
        &.nav_up {
            transform: translateY(-100%);
        }
        &.nav_down {
            transform: translateY(0);
        }
    }
}

/* 배너 */
.myBanner {
    .swiper-slide {
        transform: scale(1);
        transition: all 0.6s ease 0.3s;

        &.swiper-slide-active {
            transform: scale(1.15);
        }
    }

    .myBanner-pagination {
        position: static;
        display: flex;
        gap: 10px;
        width: fit-content !important;

        .swiper-pagination-bullet {
            width: 40px;
            @media screen and (min-width: 821px) {
                height: 6px;
            }
            @media screen and (max-width: 820px) {
                height: 2px;
            }
            border-radius: 0;
            opacity: 0.4;
            background-color: #fff;
            margin: 0 !important;
        }
        .swiper-pagination-bullet-active {
            opacity: 1;
        }
    }
}

/* 트리거 */
.trigger {
    display: flex;
    justify-content: center;
    background: #000;
    z-index: 30;

    .card-wrap {
        position: relative;

        .card {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: bold;
            color: #fff;
            box-shadow: 0 -20px 20px rgba(17, 37, 75, 0.3);
            background: var(--color-blue-500);

            &.card1 {
                z-index: 1;
            }

            &.card2 {
                z-index: 2;
            }

            &.card3 {
                z-index: 3;
            }
        }
    }

    @media screen and (min-width: 1561px) {
        height: 100vh;
        min-height: 1260px;
        padding-top: 140px;

        .card-wrap {
            width: calc(100% - 200px);
            max-width: 1720px;
            height: 700px;

            .card {
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                border-radius: 40px;
            }
        }
    }
    @media screen and (max-width: 1560px) {
        height: auto;

        .card-wrap {
            width: calc(100% - 40px);
            height: auto;

            .card {
                height: auto;
                position: relative;
                margin-bottom: 20px;
                border-radius: 20px;

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
}

/* Location 지도 이벤트 */
#location-content-wrap {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1440px;
    margin: 0 auto;

    /* 지도 영역 */
    .location-map-list {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
        background-color: #f5f5f5;

        .list-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;

            &:first-child {
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
            }

            .root_daum_roughmap {
                width: 100% !important;
                height: 100% !important;

                /* 지도 테두리 제거 */
                .map_border {
                    display: none !important;
                }

                /* 하단 정보 영역 제거 */
                .wrap_conts {
                    display: none !important;
                }

                /* 지도 영역만 꽉 차게 */
                .wrap_map {
                    height: 100% !important;
                }
            }
        }
    }

    /* 정보 영역 */
    .location-info-list {
        overflow: hidden;
        background: #ffffffe5;
        z-index: 10;

        .list-item {
            display: none;

            &:first-child {
                display: block;
            }

            .info-box {
                display: flex;
                flex-direction: column;
            }
        }
    }

    @media screen and (min-width: 1281px) {
        /* 메뉴 영역 */
        .location-nav-wrap {
            position: absolute;
            bottom: 32px;
            left: 32px;
            padding: 8px;
            border-radius: 35px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.08);
            z-index: 10;

            .menu-wrap {
                position: relative;
                width: 100%;

                .highlight-bar {
                    position: absolute;
                    top: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    width: 100%;
                    height: 52px;
                    border-radius: 100px;
                    transition: all 0.4s ease;
                    z-index: 0;
                }
                .gradient-bg {
                    background-color: var(--color-blue-500);
                }

                .menu-list {
                    position: relative;
                    z-index: 1;

                    .list-item {
                        a {
                            width: 100%;
                            height: 52px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            transition: all 0.6s ease-in-out;
                            padding: 0 20px;
                        }

                        &:hover a,
                        &.active-highlight a {
                            color: #fff;
                        }
                    }
                }
            }
        }

        /* 모바일 메뉴 영역 */
        .mobile-location-nav-wrap {
            display: none;
        }

        /* 지도 영역 */
        .location-map-list {
            height: 600px;
            border-radius: 24px;
            margin-bottom: 24px;
        }

        /* 정보 영역 */
        .location-info-list {
            position: absolute;
            bottom: 32px;
            right: 32px;
            width: 555px;
            padding: 24px 32px;
            border-radius: 24px;

            .list-item {
                .info-box {
                    gap: 16px;
                }
            }
        }
    }

    @media screen and (max-width: 1280px) {
        /* 메뉴 영역 */
        .location-nav-wrap {
            display: none;
        }

        /* 모바일 메뉴 영역 */
        .mobile-location-nav-wrap {
            position: relative;
            width: 100%;
            margin-bottom: 24px;
            background: #f5f5f5;

            .customSelectBtn {
                position: relative;
                width: 100%;
                height: 52px;
                padding: 0 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-radius: 4px;
                background: var(--color-blue-500);
                color: #fff;
            }
            .customSelectMenu {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                margin-top: 16px;
                border-radius: 4px;
                box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.08);
                background: #fff;
                z-index: 20;

                .menu-item {
                    width: 100%;
                    height: 52px;
                    padding: 0 16px;
                    display: flex;
                    align-items: center;
                    cursor: pointer;

                    &:hover {
                        background: #f5f5f5;
                    }
                }
            }
        }

        /* 지도 영역 */
        .location-map-list {
            height: 420px;
            border-radius: 10px;
            margin-bottom: 24px;
        }

        /* 정보 영역 */
        .location-info-list {
            position: relative;
            width: 100%;
            height: auto;

            .list-item {
                .info-box {
                    gap: 14px;
                }
            }
        }
    }
}

/* 스티키 네비게이션 */
.sticky_nav {
    display: flex;
    flex-direction: column;

    a {
        padding: 16px 24px;
        border-radius: 10px;
        color: #22222266;

        &:hover {
            color: #222222;
        }
        &.active {
            background-color: var(--color-blue-500);
            color: #fff;
        }
    }
}
