css_content = """
/* 기본 스타일 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 10px; /* 모바일 여백을 위해 패딩 조정 */
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
}

/* 지도와 테이블 컨테이너 */
.map-container {
    position: relative;
    width: 100%; /* 너비를 100%로 설정 */
    max-width: 900px; /* 최대 너비는 유지 */
    margin: auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px; /* 모바일 여백을 위해 패딩 조정 */
    box-sizing: border-box;
    overflow: hidden;
}

.map-container svg {
    width: 100%;
    height: auto;
}

.shape {
    stroke: #ffffff;
    stroke-width: 1.5px;
    transition: fill 0.3s ease;
    cursor: pointer;
    fill: #dcdcdc; /* 기본 지도 색상 */
}

.shape:hover {
    fill: #fca951;
}

.shape.active {
    fill: #f97300;
}

/* 툴팁 */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 1000;
}

.tooltip h3 {
    margin: 0 0 8px 0;
    padding: 0 0 5px 0;
    font-size: 16px;
    border-bottom: 1px solid #777;
}

/* 모달(팝업) 스타일 */
.modal-overlay {
    position: fixed; /* iframe 안에서도 전체 화면을 덮도록 fixed 사용 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.modal-overlay.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%; /* 모바일에서 꽉 차게 */
    max-width: 800px;
    max-height: 85vh; /* 화면 높이의 85%를 넘지 않도록 */
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal-title {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
}

.modal-body {
    overflow-y: auto; /* 내용이 길면 스크롤 생성 */
}

.modal-table {
    border-collapse: collapse;
    width: 100%;
}

.modal-table th, .modal-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 13px;
}

.modal-table th {
    background-color: #f2f2f2;
}
"""
