Quarterly report pursuant to Section 13 or 15(d)

Stock-Based Compensation Plans - Employee Stock Purchase Plan - Additional Information (Detail)

v2.4.1.9
Stock-Based Compensation Plans - Employee Stock Purchase Plan - Additional Information (Detail) (USD $)
3 Months Ended
Mar. 31, 2015
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Unrecognized stock-based compensation expense $ 28,221,000us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
Unrecognized stock-based compensation expenses recognition period 3 years 11 months 12 days
Employee Stock Purchase Plan [Member]  
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
ESPP offering period description The offering periods generally start on the first trading day on or after May 15 and November 15 of each year. The first offering period began on May 15, 2014.
Length of purchase intervals 6 months
ESPP discount rate 10.00%us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Expected dividend yield 0.00%us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Forfeiture rate 0.00%mmi_ShareBasedCompensationArrangementByShareBasedPaymentAwardForfeitureRate
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Common stock reserved and available for issuance 366,667us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Common stock shares available for issuance 341,356us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Common stock available for future issuance authorized annual share increase 366,667mmi_ShareBasedCompensationArrangementByShareBasedPaymentAwardAvailableShareIncrease
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Common stock available for future issuance authorized annual percentage increase 1.00%mmi_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfAvailableShareIncrease
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Unrecognized stock-based compensation expense $ 31,000us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Unrecognized stock-based compensation expenses recognition period 1 month 13 days