John Hancock Municipal Opportunities Fund Average Annual Total Returns - Classes A C I and R6 [Member] |
12 Months Ended | 43 Months Ended | 60 Months Ended | 120 Months Ended |
|---|---|---|---|---|
Dec. 31, 2025 |
Dec. 31, 2025 |
Dec. 31, 2025 |
Dec. 31, 2025 |
|
| Bloomberg Municipal Bond Index (reflects no deduction for fees, expenses, or taxes)[Member] | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 4.25% | 2.97% | 0.80% | 2.34% |
| Class A | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 0.09% | 0.33% | 1.84% | |
| Class A | After Taxes on Distributions | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 0.07% | 0.30% | 1.81% | |
| Class A | After Taxes on Distributions and Sales | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 1.73% | 0.96% | 2.15% | |
| Class C | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 2.54% | 0.40% | 1.50% | |
| Class I | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 4.47% | 1.31% | 2.42% | |
| Class R6 | ||||
| Prospectus [Line Items] | ||||
| Average Annual Return, Percent | 4.55% | 1.35% | 2.42% |