 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            font-family: 'Arial', sans-serif;
            background: #f5f5f5;
        }

        .main-container {
            display: flex;
            height: 100vh;
        }

        /* 좌측 패널 */
        .left-panel-area {
            width: 350px;
            background: #fff;
            border-right: 1px solid #ddd;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
        }

        .left-panel-area.collapsed {
            width: 0;
            overflow: hidden;
        }

        /* 지도 컨테이너 */
        .map-container {
            flex: 1;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* 상단 도구 모음 */
        .top-toolbar {
            background: #fff;
            border-bottom: 1px solid #ddd;
            padding: 10px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .tool-group {
            display: flex;
            gap: 5px;
            align-items: center;
            padding: 5px;
            border-radius: 4px;
            background: #f8f9fa;
        }

        .tool-group label {
            font-size: 12px;
            font-weight: bold;
            color: #666;
            margin-right: 5px;
        }

        .tool-btn {
            padding: 6px 12px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }

        .tool-btn:hover {
            background: #0056b3;
        }

        .tool-btn.active {
            background: #28a745;
        }

        .tool-btn.danger {
            background: #dc3545;
        }

        .tool-btn.secondary {
            background: #6c757d;
        }

        /* 지도 영역 */
        .map-area {
            flex: 1;
            position: relative;
        }

        .map {
            width: 100%;
            height: 100%;
        }

        .map.select-mode {
            cursor: crosshair !important;
        }

        /* 우측 패널 */
        .right-panel-area {
            width: 400px;
            background: #fff;
            border-left: 1px solid #ddd;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
        }

        .right-panel-area.collapsed {
            width: 0;
            overflow: hidden;
        }

        /* 패널 탭 */
        .panel-tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 1px solid #ddd;
        }

        .panel-tab {
            flex: 1;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            font-size: 12px;
            border: none;
            background: transparent;
            transition: background 0.2s;
        }

        .panel-tab:hover {
            background: #e9ecef;
        }

        .panel-tab.active {
            background: #007bff;
            color: white;
        }

        .panel-tab-content {
            display: none;
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }

        .panel-tab-content.active {
            display: block;
        }

        /* 패널 토글 버튼 */
        .panel-toggle {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: #007bff;
            color: white;
            border: none;
            padding: 10px 5px;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .left-panel-toggle {
            left: 350px;
            border-radius: 0 4px 4px 0;
        }

        .left-panel-toggle.collapsed {
            left: 0;
        }

        .right-panel-toggle {
            right: 400px;
            border-radius: 4px 0 0 4px;
        }

        .right-panel-toggle.collapsed {
            right: 0;
        }

        /* 검색 영역 */
        .search-area {
            margin-bottom: 20px;
        }

        .search-box {
            display: flex;
            gap: 5px;
            margin-bottom: 10px;
        }

        .search-box input, .search-box select {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 12px;
        }

        .search-box input {
            flex: 1;
        }

        .search-box button {
            padding: 8px 12px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        /* 결과 영역 */
        .result-area {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .result-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background 0.2s;
        }

        .result-item:hover {
            background: #f8f9fa;
        }

        .result-item:last-child {
            border-bottom: none;
        }

        .result-title {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 13px;
        }

        .result-address {
            font-size: 11px;
            color: #666;
        }

        /* 페이지네이션 */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-top: 10px;
        }

        .pagination button {
            padding: 5px 10px;
            border: 1px solid #ddd;
            background: white;
            cursor: pointer;
            font-size: 11px;
            border-radius: 3px;
        }

        .pagination button:hover {
            background: #f8f9fa;
        }

        .pagination button:disabled {
            background: #007bff;
            color: white;
            border-color: #007bff;
        }

        /* 레이어 목록 */
        .layer-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .layer-item {
            padding: 10px;
            border: 1px solid #eee;
            border-radius: 4px;
            margin-bottom: 5px;
            background: white;
        }

        .layer-title {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 12px;
        }

        .layer-description {
            font-size: 11px;
            color: #666;
            margin-bottom: 8px;
        }

        .layer-actions {
            display: flex;
            gap: 5px;
        }

        .layer-actions button {
            padding: 4px 8px;
            font-size: 10px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        .add-layer-btn {
            background: #28a745;
            color: white;
        }

        .remove-layer-btn {
            background: #dc3545;
            color: white;
        }

        /* 활성 레이어 목록 */
        .active-layer-item {
            padding: 8px;
            border: 1px solid #eee;
            border-radius: 4px;
            margin-bottom: 5px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .layer-name {
            font-size: 12px;
            flex: 1;
        }

        /* 좌표 표시 */
        .coordinate-display {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 11px;
            z-index: 1000;
        }

        .coordinate-display.active {
            display: block;
        }

        /* 투명도 컨트롤 */
        .opacity-control {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 10px;
            display: none;
            z-index: 1000;
        }

        /* 좌표계 변경 모달 */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
        }

        .modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 20px;
            border-radius: 8px;
            width: 300px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .modal-header {
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .modal-body {
            margin-bottom: 15px;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .modal-footer button {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-primary {
            background: #007bff;
            color: white;
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
        }

        /* 분할 모드 */
        .map-container.split-1 .map {
            width: 100%;
            height: 100%;
        }

        .map-container.split-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .map-container.split-4 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
        }

        /* 로딩 스피너 */
        .loading {
            text-align: center;
            padding: 20px;
            color: #666;
        }

        /* 객체 정보 패널 스타일 */
        .object-info-panel {
            display: none;
        }

        .object-info-panel.show {
            display: block;
        }

        .sample-content {
            margin-bottom: 15px;
            padding: 10px;
            border: 1px solid #eee;
            border-radius: 4px;
            background: #f9f9f9;
        }

        .sample-content h4 {
            margin-bottom: 10px;
            color: #333;
            font-size: 14px;
        }

        .sample-content table {
            width: 100%;
            font-size: 11px;
        }

        .sample-content table td {
            padding: 4px;
            border-bottom: 1px solid #eee;
        }