Annual report pursuant to Section 13 and 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 $)
12 Months Ended
Dec. 31, 2014
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Unrecognized stock-based compensation expense $ 27,175,000us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
Unrecognized stock-based compensation expenses recognition period 4 years 1 month 24 days
Employee Stock Purchase Plan [Member]  
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
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
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
Expected dividend yield 0.00%us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Forfeiture rate 0.00%mmi_ShareBasedCompensationArrangementByShareBasedPaymentAwardForfeitureRate
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Unrecognized stock-based compensation expense $ 93,000us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
/ us-gaap_AwardTypeAxis
= mmi_EmployeeStockPurchasePlanMember
Unrecognized stock-based compensation expenses recognition period 4 months 13 days