/* The phone view of Home (up to 1040px wide): the app's Home screen (imcongo-mobile HomeScreen), section by section.
   Above 1040px nothing here applies: .mHome is hidden and the legacy desktop page is untouched. Sizes are the app's
   text roles (headerTitle 19.2/700, sectionTitle 18/600, buttonText 17/600, fieldText 15/500, bodyText 15/400,
   bottomNavigationText 14/700) at the app's reference width of 432px; --u scales them like the app does. */
/* Inter, the app's font (the files are the ones imcongo-mobile uses), for the phone view only. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Inter_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Inter_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Inter_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Inter_700Bold.ttf") format("truetype"); }

.mHome { display: none; }

/* The phone view is for phones and for tablets held upright; a tablet on its side (900px or wider and 600px tall or more) gets the desktop design. */
@media screen and (max-width: 899px), screen and (max-width: 1040px) and (orientation: portrait), screen and (max-width: 1040px) and (max-height: 599px) {
  .desktopPage .adSkin,
  .desktopPage > .pageLayer > .header,
  .desktopPage .searchOuter,
  .desktopPage .moreEngine,
  .desktopPage .contentCanvas,
  .desktopPage .footer,
  .desktopPage .help { display: none; }
  .desktopPage { background: var(--color-paper); }

  .mHome {
    --u: clamp(0.8px, 0.2315vmin, 1.3px);
    --raised: 0 4px 10px rgba(27, 42, 94, .14);
    display: block; box-sizing: border-box; width: 100%; max-width: 720px; margin: 0 auto;
    padding: max(env(safe-area-inset-top), 8px) 18px calc(112px + env(safe-area-inset-bottom));
    background: var(--color-paper); color: var(--color-ink);
    font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; font-size: calc(15 * var(--u)); line-height: 1.4;
  }
  .mHome *, .mHome *::before, .mHome *::after { box-sizing: border-box; }
  .mHome input, .mHome button, .mHome figure { min-width: 0; }
  .mHome figure { margin: 0; }
  .mHome a, .mHome a:hover, .mHome a:visited { color: inherit; text-decoration: none; }
  .mHome h1, .mHome h2, .mHome h3, .mHome p { margin: 0; }
  :where(.mHome) button { font: inherit; color: inherit; cursor: pointer; }
  .mHome [hidden] { display: none !important; }
  .mHome svg { display: block; flex: none; }

  /* Header: menu, language and bell; then the logo and Publish. */
  .mHeader { display: grid; gap: 4px; margin-bottom: 8px; }
  .mHeaderTop, .mHeaderBottom, .mHeaderRight { display: flex; align-items: center; }
  .mHeaderTop { justify-content: space-between; }
  .mHeaderRight { gap: 8px; }
  .mRound { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-card); color: var(--color-secondary); }
  .mHeaderRight .mRound { width: 42px; height: 42px; }
  .mLang { position: relative; }
  .mLang summary { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-card); color: var(--color-primary); font-size: calc(15 * var(--u)); font-weight: 700; list-style: none; cursor: pointer; }
  .mLang summary::-webkit-details-marker { display: none; }
  .mLang summary svg { color: var(--color-secondary); }
  .mLang form { position: absolute; z-index: 20; top: 48px; right: 0; display: grid; min-width: 150px; padding: 6px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); box-shadow: var(--raised); }
  .mLang form button { padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: calc(15 * var(--u)); }
  .mLang form button[aria-current] { background: var(--color-primary-tint); color: var(--color-primary-dark); font-weight: 700; }
  /* The bottom of the logo's tagline (drawn down to row 70 of its 123px, measured 4px higher than the row maths gives) is level with the bottom of Publier. */
  .mHeaderBottom { align-items: flex-start; justify-content: space-between; margin-top: 9px; }
  /* The building icon (the first 63 of the logo's 329px) is centred under the menu circle: 26px (half of 52) minus half the icon's rendered width. */
  .mLogo { margin-left: calc(26px - 190px * 31.5 / 329); }
  .mLogo img { display: block; width: 190px; height: auto; }
  .mHome .mPublish { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: calc(190px * 71 / 329 - 44px - 4px); padding: 0 12px 0 10px; border-radius: 16px; background: var(--color-secondary); color: #fff; font-size: calc(17 * var(--u)); font-weight: 600; }

  /* Banner */
  /* As in the app, the banners start 32dp under the logo's tagline (the logo image has empty space under it: 8px of the header's margin minus 9.6px leaves the banner 1.6px inside the image box). */
  .mHeader + .mBanners { margin-top: -9.6px; }
  .mBanners { position: relative; margin: 8px 0 24px; overflow: hidden; border-radius: 26px; background: #dfe7e1; }
  .mBannerTrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
  .mBannerTrack::-webkit-scrollbar { display: none; }
  .mBanner { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 2 / 1; }
  .mBanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .mBanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); }
  .mBanner figcaption { position: absolute; z-index: 1; right: 46px; bottom: 30px; left: 46px; display: grid; justify-items: start; gap: 2px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
  .mBanner.align-center figcaption { justify-items: center; text-align: center; }
  .mBanner.align-right figcaption { justify-items: end; text-align: right; }
  .mBanner figcaption strong { font-size: calc(19.2 * var(--u)); font-weight: 700; line-height: 1.3; }
  .mBanner.size-small figcaption strong { font-size: calc(16 * var(--u)); }
  .mBanner.size-large figcaption strong { font-size: calc(23 * var(--u)); }
  .mBannerPlace { font-size: calc(18 * var(--u)); font-weight: 600; }
  .mBannerPrice { margin-top: 4px; padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--color-ink); font-size: calc(19.2 * var(--u)); font-weight: 700; text-shadow: none; }
  .mBannerArrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 34px; height: 44px; margin-top: -16px; padding: 0; border: 0; background: none; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
  .mBannerPrev { left: 4px; } .mBannerNext { right: 4px; }
  .mBannerDots { position: absolute; z-index: 2; right: 0; bottom: 8px; left: 0; display: flex; justify-content: center; gap: 7px; }
  .mBannerDots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
  .mBannerDots span[aria-current="true"] { background: #fff; transform: scale(1.25); }

  /* Search card and its six steps */
  .mSearch { padding: 18px; border-radius: 16px; background: var(--color-secondary-light-tint); }
  .mSearchTitle { margin-bottom: 8px; padding-bottom: 0; font-size: calc(19.2 * var(--u)); font-weight: 700; line-height: 1.4; }
  .mSteps { margin: 4px 0 0 -18px; }
  .mStep { display: flex; gap: 13px; align-items: stretch; padding-bottom: 13px; }
  .mStep.isLast { padding-bottom: 0; }
  .mRail { width: 30px; display: flex; flex-direction: column; align-items: center; flex: none; }
  .mCircle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-secondary-dark); color: #fff; font-size: calc(18 * var(--u)); font-weight: 600; }
  .mLine { flex: 1; width: 2px; margin-top: 2px; background: var(--color-secondary-dark); }
  .mBody { flex: 1; min-width: 0; display: grid; gap: 7px; align-content: start; }
  .mStepTitle { display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; min-height: 30px; }
  .mStepTitle h2 { flex: 0 1 auto; font-size: calc(18 * var(--u)); font-weight: 600; line-height: 1.4; }
  .mHint { font-size: calc(15 * var(--u)); font-weight: 400; }

  .mRaised { border: 0; border-radius: 16px; background: var(--color-card); box-shadow: var(--raised); color: var(--color-ink); }
  .mIntent { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--color-card); box-shadow: var(--raised); }
  .mIntentOption { height: 45px; border: 0; border-radius: 999px; background: none; color: var(--color-ink-soft); font-size: calc(17 * var(--u)); font-weight: 700; }
  .mHome[data-intent="rent"] .mIntentOption.isOn { background: var(--color-tertiary); color: #fff; }
  .mHome[data-intent="sale"] .mIntentOption.isOn { background: var(--color-danger); color: #fff; }

  .mField { display: flex; align-items: center; width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 500; text-align: left; }
  .mField::placeholder { color: var(--color-placeholder); font-weight: 400; }
  .mField:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 1px; }
  .mDropdown { justify-content: space-between; gap: 8px; }
  .mDropdown span { flex: 1; }
  .mField.isInvalid { border-color: var(--color-danger); }

  .mTiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .mTileWrap { display: flex; border-radius: 16px; background: var(--color-card); box-shadow: var(--raised); }
  .mTile { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 12px 4px; border: 0; border-radius: 16px; background: var(--color-card); color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 400; text-align: center; }
  .mTile .mTick { display: none; }
  .mTile.isOn .mTick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
  .mHome[data-intent="rent"] .mTile.isOn { background: var(--color-tertiary); color: #fff; }
  .mHome[data-intent="sale"] .mTile.isOn { background: var(--color-danger); color: #fff; }
  .mHome[data-intent="rent"] .mTile.isOn .mTick { color: var(--color-tertiary); }
  .mHome[data-intent="sale"] .mTile.isOn .mTick { color: var(--color-danger); }
  .mTile span { line-height: 1.3; overflow-wrap: anywhere; }

  .mAllPlaces { padding: 10px 16px; border-radius: 10px; background: var(--color-primary-tint); font-size: calc(15 * var(--u)); }
  .mAddRow { display: flex; align-items: center; gap: 12px; }
  .mAddPlace { flex: 1; min-height: 50px; padding: 0 18px; font-size: calc(17 * var(--u)); font-weight: 600; }
  .mCount { font-size: calc(15 * var(--u)); }
  .mPrices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mChips { display: flex; flex-wrap: wrap; gap: 10px; }
  .mChip { min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--color-card); box-shadow: var(--raised); color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 400; }
  .mChip.isOn { background: var(--color-ink); color: #fff; }
  .mChip.isRound, .mCriteriaChips button.isRound { width: 38px; padding: 0; }
  .mCheck { display: flex; align-items: center; gap: 12px; padding: 4px 0; font-size: calc(15 * var(--u)); }
  .mCheck input { position: absolute; opacity: 0; pointer-events: none; }
  .mBox { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--color-line); border-radius: 50%; background: var(--color-card); }
  .mCheck input:checked + .mBox { border-color: var(--color-secondary); background: var(--color-secondary); }
  .mCheck input:checked + .mBox::after { content: ""; width: 6px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .mCriteria { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; font-size: calc(17 * var(--u)); font-weight: 600; }
  .mButton { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--color-secondary); color: #fff; font-size: calc(17 * var(--u)); font-weight: 600; }
  .mLaunch { width: calc(100% - 36px); margin: 12px 18px 0 0; margin-left: 0; width: 100%; }
  .mSteps .mLaunch { margin: 7px 0 0 18px; width: calc(100% - 18px); }

  .mOr { position: relative; display: grid; place-items: center; margin: 14px 0; }
  .mOr::before { content: ""; position: absolute; right: 0; left: 0; top: 50%; height: 1px; background: var(--color-line); }
  .mOr span { position: relative; padding: 6px 24px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-card); font-size: calc(17 * var(--u)); font-weight: 500; }
  .mReference { display: grid; gap: 7px; padding: 18px; border-radius: 16px; background: var(--color-secondary-tint); }
  .mReference h2 { font-size: calc(19.2 * var(--u)); font-weight: 700; }
  .mReference p { font-size: calc(18 * var(--u)); }
  .mReferenceRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }

  .mFrequent { margin-top: 24px; padding: 14px 16px 6px; border: 1px solid var(--color-secondary); border-radius: 16px; background: var(--color-secondary-light-tint); box-shadow: var(--raised); }
  .mFrequent h2 { margin-bottom: 8px; font-size: calc(18 * var(--u)); font-weight: 600; }
  .mFrequentGrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .mHome .mFrequentCell { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; padding: 6px 0; color: var(--color-secondary-dark); font-size: calc(15 * var(--u)); }

  /* Sections and listing cards */
  .mLatest, .mNews, .mMore { margin-top: 28px; }
  .mSectionHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .mSectionHead h2, .mMore h2 { font-size: calc(19.2 * var(--u)); font-weight: 700; }
  .mHome .mSectionHead a { color: var(--color-secondary-dark); font-size: calc(18 * var(--u)); font-weight: 600; }
  .mGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  /* The search results (partials/search-mobile.blade.php): the app's Recherche tab. */
  .searchDesk { display: none; }
  .mHome .mSearchBar .mRound { color: var(--color-ink); text-decoration: none; }
  .mSearchBar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .mSearchBar .mIntent { flex: 1; }
  .mSearchBar .mIntentOption { display: grid; place-items: center; text-decoration: none; }
  .mHome .mSearchBar .mIntentOption.isOn { color: #fff; }
  .mFilterButton { position: relative; }
  .mFilterBadge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: calc(15 * var(--u)); font-weight: 700; line-height: 1; }
  .mSummary { margin: 0 0 12px; font-size: calc(15 * var(--u)); }
  .mSearchState { display: grid; justify-items: center; gap: 12px; padding: 60px 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); text-align: center; }
  .mSearchState p { margin: 0; }
  .mLoadMore { grid-column: 1 / -1; }
  /* The pages after Home (favourites, messages, account): a bar with back and a title, then the content, then the tabs. */
  .mPage { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; }
  .mPageBar { display: flex; align-items: center; gap: 12px; }
  .mPageBar .mRound { flex: none; width: 40px; height: 40px; color: var(--color-ink); text-decoration: none; }
  .mPageTitle { min-width: 0; }
  .mPageTitle h1 { margin: 0; overflow: hidden; font-size: calc(19.2 * var(--u)); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .mPageTitle p { margin: 0; overflow: hidden; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); text-overflow: ellipsis; white-space: nowrap; }
  .mHome .accountLinks a, .mHome .inboxRow, .mHome .inboxTabs a { font-size: calc(15 * var(--u)); }
  .mHome .inboxMeta, .mHome .chatBubble time, .mHome .chatDay, .mHome .accountLinks a b { font-size: calc(15 * var(--u)); }
  .mHome .chatForm button, .mHome .chatForm textarea, .mHome .chatIntro, .mHome .chatNotice, .mHome .chatBubble { font-size: calc(15 * var(--u)); }
  .mHome .accountOut button { display: grid; place-items: center; width: 100%; min-height: 50px; border: 0; color: var(--color-danger); font-size: calc(17 * var(--u)); font-weight: 600; }
  .mHome .chatForm button { background: var(--color-secondary); }
  .mDrawerNav a b.mDrawerCount { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: calc(15 * var(--u)); font-weight: 700; text-align: center; }
  .mDrawerSignOut { display: block; width: 100%; min-height: 46px; margin-bottom: 8px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-card); color: var(--color-danger); font-size: calc(15 * var(--u)); font-weight: 600; }
  /* One listing (partials/listing-mobile.blade.php): the app's listing page. */
  .mListingPage { display: grid; align-content: start; gap: 16px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .mListingBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mListingRef { flex: 1; overflow: hidden; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .mListingActions { display: flex; gap: 8px; }
  .mListingActions .mRound, .mListingBar .mRound { width: 40px; height: 40px; color: var(--color-ink); text-decoration: none; }
  .mListingSpace { width: 88px; }
  .mGallery { position: relative; margin: 0 -18px; background: var(--color-line-soft); }
  .mGalleryTrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mGalleryTrack::-webkit-scrollbar { display: none; }
  .mGalleryTrack img { flex: none; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; }
  .mGalleryCount { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(16, 24, 40, .65); color: #fff; font-size: calc(15 * var(--u)); }
  .mListingVideo { width: 100%; border-radius: 16px; background: #000; }
  .mListingSummary { display: grid; gap: 8px; }
  .mListingChips { display: flex; flex-wrap: wrap; gap: 8px; }
  .mListingChips span { padding: 3px 12px; border-radius: 999px; background: var(--color-card); border: 1px solid var(--color-line); font-size: calc(15 * var(--u)); }
  .mListingChips .mBadge { position: static; border: 0; background: var(--color-danger); color: #fff; padding: 3px 10px; }
  .mListingSummary h1 { margin: 0; color: var(--color-title); font-size: calc(19.2 * var(--u)); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
  .mListingPrice { margin: 0; color: var(--color-primary-dark); font-size: calc(19.2 * var(--u)); font-weight: 700; }
  .mListingPlace { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }
  .mListingCard { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); }
  .mListingCard h2 { margin: 0; font-size: calc(18 * var(--u)); font-weight: 600; }
  .mFact { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: calc(15 * var(--u)); }
  .mFact span { color: var(--color-ink-soft); }
  .mListingText { margin: 0; font-size: calc(15 * var(--u)); white-space: pre-line; overflow-wrap: anywhere; }
  .mListingBy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }
  .mContactBar { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-line); background: var(--color-card); }
  .mContactBar > * { display: flex; flex: 1 1 45%; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; font-size: calc(15 * var(--u)); font-weight: 600; text-decoration: none; }
  .mContactBar .mRaised { color: var(--color-ink); }
  .mHome .mContactBar .mButton { color: #fff; }
  .mReferenceError { margin: 2px 0 0; color: var(--color-danger); font-size: calc(15 * var(--u)); }
  .mReference input.isInvalid { border-color: var(--color-danger); }
  .mGrid.isLoading { opacity: .6; }
  .mHome .mCard a.mCardLink { color: inherit; text-decoration: none; }
  .mCardLink::after { position: absolute; z-index: 1; inset: 0; content: ""; }
  .mHeart { z-index: 2; }
  .mCard { position: relative; overflow: hidden; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); }
  .mCardPhoto { position: relative; aspect-ratio: 280 / 187; background: var(--color-line-soft); overflow: hidden; }
  .mCardPhoto img { width: 100%; height: 100%; object-fit: cover; }
  .mRibbon { position: absolute; top: 0; left: 0; width: 68px; height: 68px; overflow: hidden; }
  .mRibbon span { position: absolute; top: 12px; left: -22px; width: 100px; padding: 3px 0; transform: rotate(-45deg); color: #fff; font-size: calc(11 * var(--u)); font-weight: 700; text-align: center; }
  .mRibbon.isSale span { background: var(--color-danger); } .mRibbon.isRent span { background: var(--color-tertiary); }
  .mHeart { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--color-ink-soft); }
  .mBadge { position: absolute; bottom: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: calc(13 * var(--u)); font-weight: 500; letter-spacing: .3px; }
  .mCardBody { display: grid; gap: 4px; padding: 10px 10px 12px; }
  .mCardPrice { color: var(--color-primary-dark); font-size: calc(19.2 * var(--u)); font-weight: 700; line-height: 1.3; }
  .mCardTitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-title); font-size: calc(16 * var(--u)); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
  .mCardMeta { display: flex; align-items: center; gap: 4px; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }
  .mCardRooms { color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }
  /* The card's last line: the account type icon on the left, the number of views then the eye on the right. */
  .mCardBottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }
  .mCardAdvertiser, .mCardViews { display: flex; align-items: center; gap: 6px; }
  .mSeeMore { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 16px; font-size: calc(17 * var(--u)); font-weight: 500; text-decoration: none; }

  .mEstimate { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); box-shadow: var(--raised); color: var(--color-ink); text-decoration: none; }
  .mEstimateIcon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--color-secondary); color: #fff; }
  .mEstimateText { flex: 1; display: grid; gap: 2px; }
  .mEstimateText strong { color: var(--color-title); font-size: calc(19.2 * var(--u)); font-weight: 700; }
  .mEstimateText span { font-size: calc(15 * var(--u)); }
  .mEstimateGo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-tertiary); color: #fff; }

  .mNewsItem { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); box-shadow: 0 2px 6px rgba(27,42,94,.08); color: var(--color-ink); text-decoration: none; }
  .mNewsItem img, .mNewsNoPhoto { width: 78px; height: 78px; flex: none; border-radius: 12px; object-fit: cover; background: var(--color-line-soft); }
  .mNewsText { display: grid; gap: 4px; min-width: 0; }
  .mNewsText strong { color: var(--color-title); font-size: calc(16 * var(--u)); font-weight: 700; line-height: 1.35; }
  .mNewsText span { color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }

  .mMore h2 { margin-bottom: 12px; }
  .mMoreGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .mMoreTile { position: relative; display: grid; justify-items: center; gap: 10px; padding: 18px 6px 14px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); box-shadow: var(--raised); color: var(--color-ink); text-align: center; text-decoration: none; }
  .mMoreTile::before { content: ""; position: absolute; top: 0; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 0 0 4px 4px; background: var(--tone); }
  .mMoreIcon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tone-tint); color: var(--tone); }
  .mMoreLabel { font-size: calc(15 * var(--u)); line-height: 1.35; }
  .mMoreGo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tone-tint); color: var(--tone); }
  .tone-danger { --tone: var(--color-danger); --tone-tint: var(--color-accent-tint); }
  .tone-tertiary { --tone: var(--color-tertiary); --tone-tint: var(--color-tertiary-tint); }
  .tone-violet { --tone: #6D4AE0; --tone-tint: #ECE7FB; }

  /* Bottom navigation: four tabs on the app's solid paper band (padding 7 / 18 / 13 around the dark bar), so nothing shows through under it. */
  .mTabs { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; padding: 7px 18px calc(13px + env(safe-area-inset-bottom)); background: var(--color-paper); }
  .mTabsBar { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 684px; margin: 0 auto; padding: 10px 7px; border-radius: 30px; background: #33383D; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
  .mTabs a { display: grid; justify-items: center; gap: 2px; color: #929A95; font-size: calc(14 * var(--u)); font-weight: 700; text-decoration: none; }
  .mTabs i { display: grid; place-items: center; padding: 5px; border-radius: 7px; }
  .mTabs a.isOn { color: #fff; }
  .mTabs a.isOn i { background: var(--color-primary); }

  /* Property types sheet and navigation drawer */
  .mSheet, .mDrawer { position: fixed; z-index: 50; inset: 0; }
  .mSheetBackdrop, .mDrawerBackdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
  .mSheetPanel { position: absolute; right: 0; bottom: 0; left: 0; max-height: 90%; overflow: auto; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--color-card); display: grid; gap: 13px; }
  .mSheetHandle { justify-self: center; width: 40px; height: 4px; border-radius: 999px; background: var(--color-line); }
  .mSheetTitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mSheetTitle h2 { font-size: calc(18 * var(--u)); font-weight: 700; color: var(--color-title); }
  .mSheetTitle button { display: grid; place-items: center; padding: 4px; border: 0; background: none; color: var(--color-ink-soft); }
  .mSheetList { display: grid; }
  .mSheetRow { position: relative; display: flex; align-items: center; gap: 13px; padding: 13px 0; font-size: calc(15 * var(--u)); cursor: pointer; }
  .mSheetRow input { position: absolute; opacity: 0; pointer-events: none; }
  .mSheetRow span { flex: 1; }
  .mSheetCheck { visibility: hidden; }
  .mSheetRow input:checked ~ .mSheetCheck { visibility: visible; }
  .mHome[data-intent="rent"] .mSheetRow input:checked ~ * { color: var(--color-tertiary); }
  .mHome[data-intent="sale"] .mSheetRow input:checked ~ * { color: var(--color-danger); }
  .mDrawer.isClosing .mDrawerPanel { animation: mDrawerOut .21s cubic-bezier(.55,.055,.675,.19) forwards; }
  .mDrawer.isClosing .mDrawerBackdrop { animation: mFadeOut .21s linear forwards; }
  .mDrawerBackdrop { background: rgba(15, 28, 38, .62); animation: mFadeIn .28s ease-out; }
  .mDrawerPanel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: 88%; max-width: 360px; padding: calc(8px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 30px 30px 0; background: var(--color-paper); box-shadow: 12px 0 26px rgba(15, 28, 38, .3); overflow: hidden; animation: mDrawerIn .28s cubic-bezier(.215,.61,.355,1); }
  @keyframes mDrawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  @keyframes mDrawerOut { to { transform: translateX(-100%); } }
  @keyframes mFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mFadeOut { to { opacity: 0; } }
  /* The logo is centred in a 84px header (200 wide, nudged 10px down) with the close button at the right, as in the app. */
  .mDrawerHead { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 84px; margin-bottom: 8px; }
  .mDrawerHead > a { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
  .mDrawerHead img { display: block; width: 200px; height: auto; transform: translateY(10px); }
  .mDrawerHead .mRound { position: relative; width: 40px; height: 40px; color: var(--color-ink); }
  .mDrawerScroll { display: grid; flex: 1; min-height: 0; align-content: start; gap: 16px; overflow: auto; padding-bottom: 16px; scrollbar-width: none; }
  .mDrawerScroll::-webkit-scrollbar { display: none; }
  .mDrawerHero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 174px; padding: 16px; overflow: hidden; border-radius: 26px; background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary)); color: #fff; }
  .mDrawerHero::before, .mDrawerHero::after { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); content: ""; pointer-events: none; }
  .mDrawerHero::before { top: -70px; right: -44px; width: 142px; height: 142px; }
  .mDrawerHero::after { right: 22px; bottom: -38px; width: 72px; height: 72px; }
  .mDrawerHero > * { position: relative; z-index: 1; }
  .mDrawerEyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; margin-bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: calc(15 * var(--u)); line-height: 1.4; }
  .mDrawerEyebrow svg path { fill: rgba(255,255,255,.22); }
  .mDrawerHero h2 { max-width: 92%; font-size: calc(18 * var(--u)); font-weight: 400; line-height: 1.4; }
  .mDrawerHero p { max-width: 92%; margin-top: 8px; color: rgba(255,255,255,.82); font-size: calc(15 * var(--u)); line-height: 1.4; }
  .mDrawerSection { display: grid; gap: 8px; }
  .mDrawerSection > h2 { margin: 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); font-weight: 400; line-height: 1.4; letter-spacing: 1.1px; text-transform: uppercase; }
  .mDrawerNav { display: grid; gap: 4px; }
  .mHome .mDrawerNav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; border-radius: 16px; color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 400; }
  .mDrawerNav a span { flex: 1; }
  .mDrawerNav a > svg { color: var(--color-placeholder); }
  .mDrawerNav a i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); color: var(--color-ink-soft); }
  .mHome .mDrawerNav a.isOn { background: var(--color-primary-tint); color: var(--color-primary-dark); }
  .mDrawerNav a.isOn::before { position: absolute; top: 50%; left: 0; width: 4px; height: 24px; margin-top: -12px; border-radius: 999px; background: var(--color-primary); content: ""; }
  .mDrawerNav a.isOn > svg { color: var(--color-primary-dark); }
  .mDrawerNav a.isOn i { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
  .mDrawerLanguage { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); }
  .mDrawerLanguage summary { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); line-height: 1.4; letter-spacing: 1.1px; text-transform: uppercase; list-style: none; cursor: pointer; }
  .mDrawerLanguage summary::-webkit-details-marker { display: none; }
  .mDrawerLanguageValue { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--color-secondary-tint); color: var(--color-primary); font-weight: 700; letter-spacing: 0; text-transform: none; }
  .mDrawerLanguageValue svg { color: var(--color-secondary-dark); }
  .mDrawerLanguage form { position: absolute; z-index: 2; right: 0; bottom: calc(100% + 6px); display: grid; min-width: 160px; padding: 6px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); box-shadow: var(--raised); }
  .mDrawerLanguage form button { padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: calc(15 * var(--u)); }
  .mDrawerLanguage form button[aria-current] { background: var(--color-primary-tint); color: var(--color-primary-dark); font-weight: 700; }
  .mDrawerFooter { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--color-line); }
  .mHome .mPublishWide { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 12px; border-radius: 16px; background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary)); color: #fff; font-size: calc(17 * var(--u)); }
  .mPublishWide span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--color-primary-dark); }
  .mPublishWide b { flex: 1; font-weight: 600; }
  .mDrawerFooter p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); line-height: 1.4; text-align: center; }
  .mDrawerFooter p svg { color: var(--color-secondary); }

  /* The Home shortcut opens the same filter sheet used by the app's search
     experience: choices stay in a draft until the visitor applies them. */
  .mCriteriaSheet { position: fixed; z-index: 55; inset: 0; }
  .mCriteriaBackdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
  .mCriteriaPanel { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 13px; max-height: 90%; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); overflow: auto; border-radius: 26px 26px 0 0; background: var(--color-card); animation: mCriteriaIn 220ms ease-out; }
  @keyframes mCriteriaIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .mCriteriaBody { display: grid; gap: 24px; }
  .mCriteriaBody section { display: grid; gap: 10px; }
  .mCriteriaBody h3 { margin: 0; font-size: calc(18 * var(--u)); font-weight: 600; }
  .mCriteriaChips { display: flex; flex-wrap: wrap; gap: 10px; }
  .mCriteriaChips button { min-width: 38px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--color-card); box-shadow: var(--raised); color: var(--color-ink); font-size: calc(15 * var(--u)); }
  .mCriteriaChips button.isOn { background: var(--color-ink); color: #fff; }
  .mCriteriaPrices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mCriteriaPrices input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); color: var(--color-ink); font: inherit; }
  .mCriteriaShort { display: flex; align-items: center; gap: 12px; font-size: calc(15 * var(--u)); }
  .mCriteriaShort input { position: absolute; opacity: 0; pointer-events: none; }
  .mCriteriaShort span { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--color-line); border-radius: 50%; background: var(--color-card); }
  .mCriteriaShort input:checked + span { border-color: var(--color-secondary); background: var(--color-secondary); }
  .mCriteriaShort input:checked + span::after { width: 6px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
  .mCriteriaLocation { width: 100%; min-height: 50px; font-size: calc(17 * var(--u)); font-weight: 600; }
  .mCriteriaActions { display: flex; gap: 12px; }
  .mCriteriaActions > * { flex: 1; min-height: 50px; }
  .mCriteriaActions .mRaised { border: 0; color: var(--color-ink); font-size: calc(17 * var(--u)); font-weight: 600; }

  /* Full-screen location flow: the same selection progression as the app's
     SearchLocation screen, kept inside the mobile home experience. */
  .mLocationFlow { position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; background: var(--color-paper); color: var(--color-ink); }
  .mLocationHead { display: flex; align-items: center; gap: 13px; padding: calc(24px + env(safe-area-inset-top)) 18px 18px; border-bottom: 1px solid var(--color-line); background: var(--color-card); }
  .mLocationBack { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-paper); color: var(--color-ink); }
  .mLocationHead h2 { margin: 0; font-size: calc(19.2 * var(--u)); font-weight: 700; }
  .mLocationBody { flex: 1; overflow: auto; padding-bottom: 24px; }
  .mLocationField { display: grid; gap: 7px; margin-top: 24px; padding: 0 18px; color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 500; }
  .mLocationField select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); color: var(--color-ink); font: inherit; font-weight: 500; }
  .mLocationField select:disabled { color: var(--color-placeholder); background: var(--color-line-soft); }
  .mPickButton { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); color: var(--color-ink); font: inherit; font-weight: 500; text-align: left; }
  .mPickButton span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mPickButton.isEmpty { color: var(--color-placeholder); }
  .mPickButton:disabled { background: var(--color-line-soft); }
  .mPickButton svg { flex: none; color: var(--color-ink-soft); }
  .mPickPanel { position: absolute; z-index: 5; inset: 0; }
  .mPickBackdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
  .mPickSheet { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 8px; max-height: 80%; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--color-card); }
  .mPickSheet input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-card); color: var(--color-ink); font: inherit; font-weight: 500; }
  .mPickList { display: grid; overflow: auto; }
  .mPickRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 500; text-align: left; }
  .mPickRow.isOn { background: var(--color-primary-tint); }
  .mPickRow em { flex: none; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); font-style: normal; font-weight: 400; }
  .mLocationPopular { display: grid; gap: 7px; margin-top: 32px; padding: 0 18px; }
  .mLocationPopular h3 { margin: 0; font-size: calc(18 * var(--u)); font-weight: 600; }
  .mLocationPopular > p { margin: 0; font-size: calc(15 * var(--u)); }
  .mLocationPopular [data-location-communes] { display: grid; gap: 8px; margin-top: 5px; }
  .mLocationEmpty, .mLocationError { margin: 8px 0 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); }
  .mLocationError { color: var(--color-danger); }
  .mLocationCommune { overflow: hidden; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); }
  .mLocationCommuneHead, .mLocationQuartier { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 13px; cursor: pointer; }
  .mLocationCommuneHead input, .mLocationQuartier input { width: 20px; height: 20px; accent-color: var(--color-secondary); }
  .mLocationCommuneHead span, .mLocationQuartier span { flex: 1; font-size: calc(15 * var(--u)); }
  .mLocationCommuneHead em, .mLocationQuartier em { color: var(--color-ink-soft); font-size: calc(15 * var(--u)); font-style: normal; }
  .mLocationCommune details { border-top: 1px solid var(--color-line-soft); }
  .mLocationCommune summary { padding: 10px 13px; color: var(--color-secondary-dark); font-size: calc(15 * var(--u)); cursor: pointer; }
  .mLocationQuartiers { padding: 0 0 8px; }
  .mLocationQuartier { min-height: 42px; padding-left: 22px; }
  .mLocationFoot { padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-line); background: var(--color-card); }
  .mLocationFoot .mButton { width: 100%; }
  .mLocationFoot .mButton:disabled { background: var(--color-line); color: var(--color-ink-soft); cursor: not-allowed; }
  .mSelectedLocations { display: grid; gap: 6px; margin: 7px 0; }
  .mSelectedLocations > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--color-primary-tint); font-size: calc(15 * var(--u)); }
  .mSelectedLocations button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-ink-soft); font-size: 22px; line-height: 1; }
}
