* { margin: 0; padding: 0; box-sizing: border-box; }
        body { background: var(--primary-color); font-family: 'Inter', sans-serif; }
        .map-page { padding: 30px 0; min-height: calc(100vh - 200px); }
        .map-container { background: var(--secondary-color); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative; }
        .map-header { padding: 20px; border-bottom: 1px solid rgba(128,128,128,0.2); }
        .map-header h1 { font-size: 28px; color: var(--text-color); margin-bottom: 5px; }
        .map-header p { color: var(--text-color); font-size: 14px; }
        .legend span { color: var(--text-color); font-size: 14px; }
        .map-page a { color: var(--text-color);}
        .house-popup p { color: var(--text-color);}
        
        .canvas-wrapper { display: flex; justify-content: center; background: #1a1a2e; border-radius: 0 0 20px 20px; overflow: hidden; position: relative; }
        .canvas-map { display: block; cursor: grab; width: 100%; height: auto; background: #1a1a2e; }
        .canvas-map:active { cursor: grabbing; }
        
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 25px; }
        .stat-card { background: var(--secondary-color); border-radius: 16px; padding: 20px; text-align: center; transition: transform 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        .stat-card:hover { transform: translateY(-3px); }
        .stat-icon { font-size: 32px; margin-bottom: 10px; }
        .stat-value { font-size: 28px; font-weight: 700; color: #544dff; }
        .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 5px; }
        
        .filters-panel { background: var(--secondary-color); border-radius: 16px; padding: 20px; margin-bottom: 25px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
        .filter-group { display: flex; align-items: center; gap: 10px; background: rgba(128,128,128,0.1); padding: 8px 15px; border-radius: 12px; }
        .filter-group i { font-size: 18px; color: #544dff; }
        .filter-group select, .filter-group input { background: transparent; border: none; padding: 8px 0; color: var(--text-color); outline: none; }
        .filter-btn { background: linear-gradient(135deg, #002eff, #544dff); border: none; padding: 8px 20px; border-radius: 12px; color: white; cursor: pointer; transition: all 0.3s; }
        .filter-btn:hover { transform: scale(1.02); }
        .reset-btn { background: rgba(128,128,128,0.2); border: none; padding: 8px 20px; border-radius: 12px; color: var(--text-color); cursor: pointer; }
        
        .map-controls { position: absolute; bottom: 20px; left: 20px; background: var(--secondary-color); border-radius: 12px; padding: 8px; display: flex; gap: 8px; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .map-controls button { background: #544dff; border: none; color: white; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 18px; transition: transform 0.2s; }
        .map-controls button:hover { transform: scale(1.05); }
        
        .legend { position: absolute; bottom: 20px; right: 20px; background: var(--secondary-color); padding: 12px 16px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 100; font-size: 12px; }
        .legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
        .legend-color { width: 16px; height: 16px; border-radius: 50%; }
        .legend-color.house-owned { background: #e74c3c; }
        .legend-color.house-free { background: #2ecc71; }
        .legend-color.business-owned { background: #e74c3c; }
        .legend-color.business-free { background: #2ecc71; }
        
        .zoom-indicator { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
        .zoom-indicator.show { opacity: 1; }
        
        .house-popup { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--secondary-color); border-radius: 16px; padding: 20px; min-width: 280px; max-width: 350px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); z-index: 1000; display: none; border-top: 4px solid #544dff; }
        .house-popup.active { display: block; animation: slideUp 0.3s ease; }
        .house-popup .sell-btn { background: linear-gradient(135deg, #e74c3c, #c0392b); border: none; padding: 10px 20px; border-radius: 10px; color: white; cursor: pointer; margin-top: 10px; width: 100%; font-weight: 600; }
        .house-popup .sell-btn:hover { transform: scale(1.02); }
        @keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
        .house-popup h4 { color: #544dff; margin-bottom: 12px; font-size: 18px; }
        .house-popup .price { font-size: 22px; font-weight: 700; color: #f1c40f; margin: 8px 0; }
        .house-popup .owner { padding: 8px; border-radius: 10px; margin: 8px 0; text-align: center; }
        .house-popup .owner.owned { background: rgba(231,76,60,0.2); color: #e74c3c; }
        .house-popup .owner.free { background: rgba(46,204,113,0.2); color: #2ecc71; }
        .house-popup .buy-btn { background: linear-gradient(135deg, #002eff, #544dff); border: none; padding: 10px 20px; border-radius: 10px; color: white; cursor: pointer; margin-top: 10px; width: 100%; font-weight: 600; }
        .house-popup .buy-btn:disabled { background: #95a5a6; cursor: not-allowed; }
        .close-popup { position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 18px; color: var(--text-color); }
        
        @media (max-width: 768px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .filters-panel { flex-direction: column; align-items: stretch; }
        }
        .stats-grid { color: var(--text-color);}