:root {

    --header-h: 70px;
    --side-width: 80px;
}

/*----------------page-wrapper----------------*/

/* .page-wrapper{
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
} */

.page-wrapper {
    min-height: 100vh;
    padding-top: var(--header-h);
}


header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1111;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-content: center;
    padding-right: 20px;

}

.head-menu {
    font-size: 16px;
    gap: 16px
}

.head-menu li a {}

.head-menu li:last-child a {
    padding: 8px 20px;
    background: var(--dark);
    color: #fff;
    border-radius: 100px;
    ;
}

/*----------------sidebar-wrapper----------------*/

.sidebar-wrapper {
    width: var(--side-width);
    height: calc(100% - var(--header-h));
    max-height: calc(100% - var(--header-h));
    position: fixed;
    top: var(--header-h);
    z-index: 999;
    background: linear-gradient(90deg, rgba(32, 44, 63, 1) 0%, rgba(13, 18, 25, 1) 100%);

}

.sidebar-content {
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.sidebar-logo {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: var(--header-h);
    /* border-right:1px solid rgb(255 255 255 / 20%); */
}

.logo {
    background: url(../../images/stadt/common/logo.svg) no-repeat center/80%;
    width: 100%;
    height: 100%;
}

/*----------------------sidebar-menu-------------------------*/

.sidebar-menu {
    --sidebar-menu-p: 20px;
}

.sidebar-menu .header-tit span {
    font-weight: bold;
    font-size: 0.7rem;
    padding: 15px var(--sidebar-menu-p) 5px var(--sidebar-menu-p);
    display: inline-block;
}

.sidebar-menu ul li {
    position: relative;
    border-bottom: 1px solid rgba(255 255 255 / 10%);
}

.sidebar-menu ul li:hover {
    background: rgba(255 255 255 / 10%);
}

.sidebar-menu ul li a {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    position: relative;
    height: var(--side-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    text-align: center;
    line-height: 1.2;

}

.menu-tit {
    font-size: 14px;
}

.sidebar-menu ul li.on .menu-tit {
    color: var(--primary) !important;
    font-weight: 700;
}

.sidebar-menu ul li.on i {
    color: var(--primary);
}

.sidebar-menu>ul>li.on {
    background: #fff;
    ;
}

.sidebar-menu>ul>li.on::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -1px;
    width: 4px;
    background: var(--primary);
}

.sidebar-menu ul li a i {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
}



.page-wrapper .page-content {
    display: inline-block;
    width: 100%;
    padding-left: 0px;
    padding-top: 20px;
}

.page-wrapper .page-content>div {
    padding: 20px 40px;
}

.page-wrapper .page-content {
    overflow-x: hidden;
}

.sidebar-wrapper .sidebar-menu ul li a {
    color: #818896;
}

.sidebar-menu>ul>li>a {
    font-weight: 500;
}


.header-tit span {
    color: #6c7b88;
}


.copy {
    position: fixed;
    color: #777;
    font-weight: 600;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
}





.con {
    min-height: calc(100vh - var(--header-h));
    margin-left: var(--side-width);
    width: calc(100% - var(--side-width));
    background-color: #eee;
    position: relative;
}

.pannel-wrap {
    --sub-info-w: 20rem;
    max-width: var(--sub-info-w);
}

.pannel-toggle {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    height: calc(100vh - var(--header-h));
    position: relative;
}

.pannel-toggle-btn {
    position: absolute;
    top: 50%;
    right: -2rem;
    background: none;
    border: none;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 4rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    background: rgb(var(--primary-rgb) / 80%);
    z-index: 1;
    box-shadow: 0 0 20px rgb(var(--primary-rgb) / 20%);
}

#pannelToggleText {
    font-size: 12px;
}

#pannelToggleIcon {
    line-height: 1;
    font-size: var(--text-2xl)
}

.pannel-toggle-btn:hover {
    background-color: var(--primary);
}

.pannel-con {
    transition: all 0.3s ease;
    width: var(--sub-info-w);
    opacity: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    ;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.pannel-con.collapsed {
    margin-left: calc(var(--sub-info-w)*-1);
    overflow: hidden;
}

.pannel-con h2 {
    font-size: var(--text-xl);
    margin-bottom: 20px;
    ;
}


/*툴박스*/
.toolbox {
    position: fixed;
    width: 48px;
    right: 16px;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toolbox button {
    width: 100%;
    font-size: 20px;
    padding: 4px 0;
    height: 48px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.toolbox span {
    font-size: 0.7rem;
    display: block;
    margin-top: 1px;
    color: #595959;
    font-weight: 600;
}

.toolbox button:hover {
    border: 1px solid var(--primary);
}

.toolbox button.on {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    ;
}

.toolbox button.on span {
    color: #fff;
}


.zoom-widget {
    top: auto !important;
    bottom: 60px;
}

.map-con {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}


@media (max-width: 768px) {

    :root {
        --header-h: 56px;
        --side-width: 100%;
        --bottom-nav-h: 64px;
    }

    header {
        padding-right: 12px;
    }

    .sidebar-logo {
        width: 160px;
        padding: 8px 12px;
    }

    .head-menu {
        gap: 8px;
        font-size: 14px;
    }

    .head-menu li:nth-child(2) {
        display: none;
    }

    .sidebar-wrapper {
        width: 100%;
        height: var(--bottom-nav-h);
        top: auto;
        bottom: 0;
        left: 0;
        z-index: 1110;
        background: linear-gradient(180deg, rgba(32, 44, 63, 1) 0%, rgba(13, 18, 25, 1) 100%);
    }

    .sidebar-content {
        overflow: hidden;
    }

    .sidebar-menu ul {
        display: flex;
        flex-direction: row;
        height: var(--bottom-nav-h);
    }

    .sidebar-menu ul li {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(255 255 255 / 10%);
    }

    .sidebar-menu ul li a {
        height: var(--bottom-nav-h);
        padding: 4px 2px;
    }

    .menu-tit {
        font-size: 11px;
    }

    .sidebar-menu ul li a i {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 18px;
    }

    .sidebar-menu>ul>li.on::before {
        top: auto;
        right: -1px;
        left: 0;
        width: auto;
        bottom: 0;
        height: 3px;
        background: var(--primary);
    }

    .con {
        margin-left: 0;
        width: 100%;
        min-height: calc(100vh - var(--header-h));
        padding-bottom: var(--bottom-nav-h);
    }

    .pannel-wrap {
        max-width: 100%;
        width: 100%;
        position: fixed;
        bottom: var(--bottom-nav-h);
        left: 0;
        z-index: 900;
    }

    .pannel-toggle {
        height: auto;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    }

    .pannel-toggle-btn {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: 36px;
        border-radius: 12px 12px 0 0;
        flex-direction: row;
        gap: 6px;
        justify-content: center;
    }

    #pannelToggleIcon {
        font-size: 18px;
        line-height: 1;
    }

    #pannelToggleText {
        font-size: 13px;
    }

    .pannel-con {
        width: 100%;
        height: auto;
        max-height: 50vh;
        overflow-y: auto;
        border-radius: 0;
    }

    .pannel-con.collapsed {
        margin-left: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    .tool-wrap {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .toolbox {
        position: relative;
        right: 10px;
        width: 40px;
        gap: 3px;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        ;
    }

    .toolbox span {
        font-size: 8px;
    }

    .toolbox button {
        height: 40px;
        font-size: 17px;
    }

    .zoom-widget {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        ;
    }

    .copy {
        bottom: calc(var(--bottom-nav-h) + 6px);
        right: 8px;
        font-size: 11px;
    }

    .pannel-con h2 {
        font-size: var(--text-lg);
        margin-bottom: 10px;
    }

    .head-menu li:last-child a {
        padding: 6px 8px;
    }
}