@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Montserrat:wght@600;700&display=swap');

body.is-map-open .desktop-container,
body.is-map-open .pagination,
body.is-map-open .dock-container,
body.is-map-open .system-status-bar {
    visibility: hidden;
    pointer-events: none;
}

.map-view {
            position: fixed;
            inset: 0;
            z-index: 1200;
            width: 100%;
            height: 100%;
            overflow-y: auto;
            
            --bg-color: #E9ECEF;
            --text-main: #212529;
            --text-secondary: #6C757D;
            
            --shadow-light: #FFFFFF;
            --shadow-dark: #C1C9D2;
            
            
            --neu-flat: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
            --neu-flat-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
            --neu-pressed: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
            --neu-convex: 
                -8px -8px 16px var(--shadow-light), 
                8px 8px 16px var(--shadow-dark),
                inset -2px -2px 4px var(--shadow-dark), 
                inset 2px 2px 4px var(--shadow-light);
                
            --radius-card: 24px;
            --radius-btn: 16px;
            --radius-circle: 50%;
            
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .map-view * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        .map-view {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Noto Sans SC', -apple-system, sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
        }

        .map-view .eng-title {
            font-family: 'Montserrat', sans-serif;
        }

        
        .map-view .navbar {
            padding: 24px 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 10;
            margin-bottom: 20px;
        }

        .map-view .nav-placeholder, .map-view .nav-actions {
            width: 52px;
            display: flex;
            justify-content: flex-end;
        }

        .map-view .nav-title {
            flex: 1;
            text-align: center;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 4px;
            color: var(--text-main);
            text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
            text-transform: uppercase;
        }

        
        .map-view .view {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            flex: 1;
            padding: 0 32px 40px;
        }

        .map-view .view.active {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }
        
        .map-view #map-viewList {
            flex-direction: column;
            align-items: center;
        }

        
        .map-view .map-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 32px;
            width: 100%;
            max-width: 800px;
        }

        .map-view .map-card {
            background-color: var(--bg-color);
            border-radius: var(--radius-card);
            padding: 32px 24px;
            box-shadow: var(--neu-flat);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            border: 2px solid transparent;
        }

        .map-view .map-card:hover {
            box-shadow: var(--neu-convex);
            transform: translateY(-4px);
        }

        .map-view .map-card:active {
            box-shadow: var(--neu-pressed);
            transform: translateY(0);
        }

        .map-view .map-image {
            width: 100%;
            height: 400px;
            border-radius: 16px;
            object-fit: cover;
            margin-bottom: 20px;
            box-shadow: var(--neu-flat-sm);
            transition: var(--transition);
        }
        
        .map-view .map-card:hover .map-image {
            box-shadow: var(--neu-pressed);
            transform: scale(0.98);
        }

        .map-view .map-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .map-view .map-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        
        .map-view #map-viewDetails {
            flex-direction: row;
            gap: 32px;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            height: calc(100vh - 120px);
        }

        
        .map-view .sidebar {
            width: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
            padding: 24px 0;
            border-radius: var(--radius-card);
            box-shadow: var(--neu-flat);
            background-color: var(--bg-color);
            height: 100%;
        }

        .map-view .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 24px;
            width: 100%;
            align-items: center;
            margin-top: 20px;
        }

        .map-view .icon-btn {
            width: 52px;
            height: 52px;
            border-radius: var(--radius-btn);
            background-color: var(--bg-color);
            border: none;
            box-shadow: var(--neu-flat-sm);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: var(--transition);
            position: relative;
        }
        
        .map-view .icon-btn::after {
            content: attr(data-tooltip);
            position: absolute;
            left: 70px;
            background: var(--bg-color);
            color: var(--text-main);
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            opacity: 0;
            pointer-events: none;
            transition: var(--transition);
            white-space: nowrap;
            font-weight: 600;
            box-shadow: var(--neu-flat);
            z-index: 100;
        }
        
        .map-view .icon-btn:hover::after {
            opacity: 1;
            left: 76px;
        }
        
        .map-view .tooltip-left::after {
            left: auto;
            right: 70px;
        }
        
        .map-view .tooltip-left:hover::after {
            left: auto;
            right: 76px;
        }

        .map-view .icon-btn:hover {
            color: var(--text-main);
            box-shadow: var(--neu-convex);
        }

        .map-view .icon-btn.active {
            box-shadow: var(--neu-pressed);
            color: var(--text-main);
        }
        
        .map-view .icon-btn svg {
            width: 22px;
            height: 22px;
            stroke-width: 2;
        }

        .map-view .btn-back {
            color: var(--text-main);
            border-radius: var(--radius-circle);
            margin-bottom: 12px;
        }

        .map-view .map-detail-preview {
            width: 100%;
            height: 320px;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 32px;
            position: relative;
            box-shadow: var(--neu-inset);
            background: #f2f6fa;
            flex-shrink: 0;
        }
        .map-view .detail-preview-iframe {
            width: 100%;
            height: 100%;
            border: none;
            pointer-events: auto;
        }
        .map-view .detail-preview-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 24px;
            background: linear-gradient(to top, rgba(242, 246, 250, 0.95), transparent);
            pointer-events: none;
        }
        .map-view .detail-preview-overlay h3 {
            margin: 0 0 4px 0;
            font-size: 22px;
            color: var(--text-main);
            text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
        }
        .map-view .detail-preview-overlay p {
            margin: 0;
            color: var(--text-secondary);
            font-size: 14px;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
        }

        
        .map-view .content-area {
            flex: 1;
            background-color: var(--bg-color);
            border-radius: var(--radius-card);
            box-shadow: var(--neu-flat);
            padding: 40px;
            overflow-y: auto;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .map-view .tab-pane {
            display: none;
            animation: map-fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            flex: 1;
        }

        .map-view .tab-pane.active {
            display: block;
        }

        @keyframes map-fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .map-view .content-header {
            display: flex;
            align-items: center;
            margin-bottom: 32px;
            padding-bottom: 20px;
            position: relative;
        }
        
        .map-view .content-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            border-radius: 2px;
            background: var(--text-main);
            box-shadow: 2px 2px 4px var(--shadow-dark);
        }
        
        .map-view .content-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: 1px;
        }
        
        .map-view .content-body {
            color: var(--text-secondary);
            line-height: 1.8;
            font-size: 15px;
            padding-top: 10px;
        }
        
        
        .map-view .neu-list-item {
            padding: 24px;
            border-radius: var(--radius-btn);
            box-shadow: var(--neu-flat-sm);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            transition: var(--transition);
            background-color: var(--bg-color);
        }
        .map-view .item-left { display: flex; align-items: center; gap: 24px; flex: 1; }
        .map-view .item-actions { display: flex; gap: 12px; }
        .map-view .action-btn {
            background: var(--bg-color); border: none; border-radius: 50%;
            width: 36px; height: 36px; display: flex; justify-content: center; align-items: center;
            box-shadow: var(--neu-flat-sm); cursor: pointer; color: var(--text-secondary); transition: var(--transition);
        }
        .map-view .action-btn:hover { color: #0066ff; box-shadow: var(--neu-pressed); }
        .map-view .action-btn.delete:hover { color: #ff4757; }
        
        
        .map-view .visual-edit-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(224, 229, 236, 0.7); backdrop-filter: blur(4px);
            display: none; justify-content: center; align-items: center;
            cursor: pointer; z-index: 10; opacity: 0; transition: opacity 0.3s;
        }
        .map-view .visual-edit-overlay.active { display: flex; opacity: 1; }
        .map-view .edit-overlay-content {
            background: var(--bg-color); padding: 16px 24px; border-radius: 20px;
            box-shadow: var(--neu-flat); color: #0066ff; font-weight: bold;
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            transition: transform 0.2s;
        }
        .map-view .visual-edit-overlay:hover .edit-overlay-content { transform: scale(1.05); }
        
        
        .map-view .category-filter-bar {
            display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; width: 100%;
        }
        .map-view .category-pill {
            padding: 6px 16px;
            border: none;
            border-radius: 20px;
            background: var(--bg-color);
            box-shadow: var(--neu-flat);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        .map-view .category-pill:hover {
            box-shadow: var(--neu-convex);
        }
        .map-view .category-pill.active {
            box-shadow: var(--neu-pressed);
            color: #0066ff;
        }
        .map-view .category-pill.add-btn {
            color: var(--text-secondary);
            font-size: 18px;
            padding: 4px 16px;
            display: flex; align-items: center; justify-content: center;
        }
        
        .map-view .neu-list-item:hover {
            transform: translateX(8px);
            box-shadow: var(--neu-flat);
        }
        
        .map-view .item-icon {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-circle);
            box-shadow: var(--neu-pressed);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            flex-shrink: 0;
        }
        
        .map-view .item-details {
            flex: 1;
        }

        .map-view .item-details h4 {
            font-size: 17px;
            color: var(--text-main);
            margin-bottom: 6px;
            font-weight: 700;
        }

        
        .map-view ::-webkit-scrollbar {
            width: 8px;
        }
        .map-view ::-webkit-scrollbar-track {
            background: transparent;
        }
        .map-view ::-webkit-scrollbar-thumb {
            background-color: var(--shadow-dark);
            border-radius: 10px;
        }

        
        @media (max-width: 768px) {
            .map-view .map-detail-preview { height: 240px; }
            .map-view #map-viewDetails {
                flex-direction: column;
                height: auto;
            }
            .map-view .sidebar {
                width: 100%;
                height: auto;
                flex-direction: row;
                padding: 16px;
                justify-content: center;
                gap: 16px;
                border-radius: 20px;
            }
            .map-view .sidebar-nav {
                flex-direction: row;
                width: auto;
                margin-top: 0;
            }
            .map-view .icon-btn::after {
                display: none; 
            }
            .map-view .btn-back {
                margin-bottom: 0;
            }
            .map-view .content-area {
                padding: 24px;
            }
        }
        
        
        .map-view .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(224, 229, 236, 0.85); 
            backdrop-filter: blur(8px);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .map-view .modal-overlay.active {
            display: flex;
            opacity: 1;
        }
        .map-view .modal-content {
            background: var(--bg-color);
            border-radius: 24px;
            box-shadow: var(--neu-flat);
            width: 90%;
            max-width: 500px;
            padding: 32px;
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            max-height: 90vh;
            overflow-y: auto;
            
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .map-view .modal-content::-webkit-scrollbar {
            display: none;
        }
        .map-view .modal-overlay.active .modal-content {
            transform: translateY(0);
        }
        .map-view .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        .map-view .modal-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-main);
        }
        .map-view .btn-close {
            background: none; border: none; cursor: pointer; color: var(--text-secondary);
        }
        .map-view .modal-preview-box {
            width: 100%; height: 200px;
            border-radius: 16px;
            box-shadow: var(--neu-inset);
            background: #e8f0f6;
            margin-bottom: 20px;
            display: flex; justify-content: center; align-items: center;
            overflow: hidden;
            position: relative;
        }
        .map-view .modal-preview-box img, .map-view .modal-preview-box iframe {
            width: 100%; height: 100%; object-fit: cover; border: none; pointer-events: none;
        }
        .map-view .modal-preview-placeholder {
            color: var(--text-muted);
            font-size: 14px;
        }
        
        .map-view .input-group {
            margin-bottom: 20px;
        }
        .map-view .input-label {
            display: block; font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px;
        }
        .map-view .neu-input {
            width: 100%;
            padding: 12px 16px;
            border: none;
            border-radius: 12px;
            background: var(--bg-color);
            box-shadow: var(--neu-inset);
            color: var(--text-main);
            font-family: inherit;
            outline: none;
            box-sizing: border-box;
        }
        .map-view .flex-row {
            display: flex; gap: 12px; align-items: center;
        }
        .map-view .neu-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 12px;
            background: var(--bg-color);
            box-shadow: var(--neu-flat);
            color: var(--text-main);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .map-view .neu-btn:hover {
            box-shadow: var(--neu-convex);
        }
        .map-view .neu-btn:active {
            box-shadow: var(--neu-pressed);
        }
        .map-view .neu-btn.primary {
            color: #0066ff;
        }
        .map-view .icon-help {
            width: 24px; height: 24px; border-radius: 50%;
            background: var(--bg-color); box-shadow: var(--neu-flat-sm);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; color: var(--text-secondary); font-size: 12px; font-weight: bold;
        }
        .map-view .icon-help:hover { box-shadow: var(--neu-pressed); color: #0066ff; }
        
        .map-view #map-codeImportArea {
            display: none;
            margin-top: 12px;
        }
        .map-view #map-codeImportArea textarea {
            height: 120px;
            resize: vertical;
            background: var(--bg-color);
            border-radius: 12px;
            padding: 16px;
            border: none;
            outline: none;
            color: var(--text-main);
            font-family: monospace;
            font-size: 13px;
            
            box-shadow: inset 4px 4px 8px #bec3c9, inset -4px -4px 8px #ffffff;
        }
