* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-y: hidden
}

.smartmap-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 400px;
    max-height: 100vh;
    background-color: #2c3e50;
    padding: 30px 25px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

/* Sidebar Header */
.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    display: flex;
    justify-content: center;
}

.title-smartmap {
    color: #bdc3c7;
    font-weight: 700;
    font-family: 'NanumGothicExtraBold';
    font-size: 1.6rem;
    margin-top: 10px;;
}

/* Sidebar Info */
.sidebar-info {
    margin-bottom: 25px;
    padding: 12px;
    background-color: #34495e;
    border-radius: 6px;
}

.sidebar-info p {
    font-size: 0.95rem;
    color: #ecf0f1;
    line-height: 1.5;
}

/* Categories */
.categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category {
    margin-bottom: 5px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.category-icon {
    color: #2ecc71;
    font-size: 0.7rem;
    line-height: 1;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    background-color: #34495e;
    border: 1px solid #4a5f7a;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
}

.category-btn:hover {
    background-color: #2ecc71;
    color: #ffffff;
    border-color: #2ecc71;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}

.category-btn:active {
    transform: translateY(0);
}

.category-btn.on {
    background-color: #2ecc71;
    color: #ffffff;
    border-color: #2ecc71;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.copyright {
    font-size: 0.75rem;
    color: #95a5a6;
    text-align: center;
    line-height: 1.4;
}

#contents{
    margin-left:0px;
    padding:0px;
    flex:1;
}

iframe {
    width: 100%;
    height: 100vh;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 100%;
    }

    .sidebar-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }

    .title-sb {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .category-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 20px 15px;
    }

    .sidebar-title {
        font-size: 1.1rem;
    }

    .category-buttons {
        gap: 6px;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}


/* 팝업 모달 스타일 */
.popup-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: 'NanumGothic', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
}

.popup-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.popup-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.popup-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0;
}

.popup-body {
    margin-bottom: 25px;
}

.popup-intro {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.popup-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-icon {
    color: #7b2cbf;
    font-size: 1.1rem;
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
    margin-top: 15px;
    font-size: 0.9rem;
}

.popup-table thead {
    background-color: #f5f5f5;
}

.popup-table th,
.popup-table td {
    border: 1px solid #000;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.popup-table th {
    font-weight: 700;
    background-color: #f0f0f0;
    text-align: center;
}

.popup-table th:first-child,
.popup-table td:first-child {
    width: 15%;
    text-align: center;
    font-weight: 600;
}

.popup-table th:nth-child(2),
.popup-table td:nth-child(2) {
    width: 45%;
}

.popup-table th:nth-child(3),
.popup-table td:nth-child(3) {
    width: 40%;
}

.popup-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.popup-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #333;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'NanumGothic', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
}

.popup-btn:hover {
    background-color: #333;
    color: #ffffff;
}

.popup-btn-confirm {
    border-color: #333;
}

.popup-btn-hide {
    border-color: #999;
    color: #666;
}

.popup-btn-hide:hover {
    background-color: #666;
    color: #ffffff;
    border-color: #666;
}

/* 반응형 */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        width: 95%;
    }

    .popup-title {
        font-size: 1.1rem;
    }

    .popup-table {
        font-size: 0.8rem;
    }

    .popup-table th,
    .popup-table td {
        padding: 8px;
    }

    .popup-footer {
        flex-direction: column;
    }

    .popup-btn {
        width: 100%;
    }
}