XML 87 R66.htm IDEA: XBRL DOCUMENT
v3.25.0.1

ADVANCES TO VENDORS AND DEPOSITS (Details) - USD ($) $ in Thousands | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Advances To Vendors And Deposits |  |
Advances to vendors | $ 121,298 | $ 95,589
Deposits | $ 259,400 | $ 67,000

X
- Definition Advances To Vendors And Deposits + References No definition available. + Details
Name: | mara_DisclosureAdvancesToVendorsAndDepositsAbstract
Namespace Prefix: | mara_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Long-Term advances receivable from a party that is affiliated with the reporting entity by means of direct or indirect ownership. This does not include advances to clients. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 850 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483326/850-10-50-2 + Details
Name: | us-gaap_AdvancesToAffiliate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The carrying amount of the asset transferred to a third party to serve as a deposit, which typically serves as security against failure by the transferor to perform under terms of an agreement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(17)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DepositAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant