/* Mila Match (/mila-match): Mila's welcome, the preference conversation,
   the swipe deck, the match moment, Why This Home Matches / Ask Mila and
   My Matches. Site palette: deep teal, charcoal, warm paper and gold. */
.mila-match-page { background: #f6f2ea; }
.mm { --search-teal: #063d45; --search-ink: #17383e; --mm-teal: #063d45; --mm-ink: #17383e; --mm-muted: #5d6b6c; --mm-line: #e3ddd0; --mm-paper: #f6f2ea;
  --mm-card: #fff; --mm-gold: #d9b25e; --mm-gold-ink: #8b620b; --mm-shadow: 0 18px 44px -22px rgba(6, 40, 46, .45);
  /* What matches, what partly does and what does not: the ends and middle of the match scale (mila-match-words.js scoreColor). */
  --mm-yes: #3a8356; --mm-yes-tint: #e4efe8; --mm-partial: #886d27; --mm-no: #b5483c;
  display: block; min-height: calc(100vh - 88px); padding: clamp(20px, 4vw, 48px) 16px clamp(36px, 6vw, 72px); color: var(--mm-ink); }
.mm [hidden] { display: none !important; }
/* :where keeps this at element weight, so .mm-act, .mm-chip and the other button classes set their own size. */
:where(.mm) button { font: inherit; }
.mm :focus-visible { outline: 3px solid var(--gold, #d6a84d); outline-offset: 2px; }
.mm h1, .mm h2, .mm h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.01em; color: var(--mm-ink); }
.mm h1:focus, .mm h2:focus { outline: none; }
.mm bdi { unicode-bidi: isolate; }
.mm-view { max-width: 1120px; margin: 0 auto; }

/* ---- Buttons ----------------------------------------------------------- */
.mm-primary, .mm-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.mm-primary { border: 0; background: var(--mm-gold); color: #12262b; }
.mm-primary:hover { background: #e3c27a; }
.mm-secondary { border: 1px solid var(--mm-teal); background: transparent; color: var(--mm-teal); }
.mm-secondary:hover { background: rgba(6, 61, 69, .06); }
.mm-primary--small, .mm-secondary--small { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 8px; }
.mm-primary:disabled, .mm-secondary:disabled { opacity: .5; cursor: default; }
.mm-text-button, .mm-link-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--mm-teal);
  font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: rgba(6, 61, 69, .3); text-underline-offset: 4px; cursor: pointer; }
.mm-text-button:hover, .mm-link-button:hover { color: var(--mm-gold-ink); text-decoration-color: currentColor; }
.mm-link-button--strong { color: var(--mm-ink); }
.mm-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--mm-teal); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.mm-pill-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--mm-line); border-radius: 999px; background: #fff; color: var(--mm-ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.mm-pill-button svg { width: 18px; height: 18px; flex: none; }
.mm-pill-button:hover { border-color: var(--mm-gold); }

/* ---- Mila's avatar ------------------------------------------------------- */
.mm-avatar { display: inline-block; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #e8e1d2; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(217, 178, 94, .65); }
.mm-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mm-avatar--lg { width: 112px; height: 112px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(217, 178, 94, .8), 0 16px 36px -16px rgba(6, 40, 46, .5); }
.mm-avatar--sm { width: 36px; height: 36px; }
.mm-avatar--xs { width: 32px; height: 32px; box-shadow: none; }
.mm-chat .mm-msg--mila { align-items: flex-start; }
.mm-chat .mm-msg--mila .mm-avatar--xs { box-shadow: 0 0 0 2px #fff, 0 6px 14px -8px rgba(6, 40, 46, .6); }

/* ---- Welcome ------------------------------------------------------------- */
.mm-welcome-card { max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px); border: 1px solid var(--mm-line); border-radius: 18px; background: var(--mm-card); box-shadow: var(--mm-shadow); text-align: center; }
.mm-kicker { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0 10px; color: var(--mm-gold-ink); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.mm-new { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--mm-teal); color: #fff; font-size: 10px; letter-spacing: .14em; }
.mm-welcome h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(34px, 5.4vw, 54px); line-height: 1.06; }
.mm-lead { max-width: 52ch; margin: 18px auto 0; color: var(--mm-muted); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }
.mm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: mm-step; }
.mm-steps li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; border-radius: 12px; background: var(--mm-paper); font-size: 14px; font-weight: 600; line-height: 1.35; }
.mm-step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--mm-gold-ink); }
.mm-step-icon svg { width: 22px; height: 22px; }
.mm-welcome-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.mm-welcome-actions .mm-primary { min-width: 240px; }
.mm-fine { margin: 16px 0 0; color: var(--mm-muted); font-size: 13px; }

/* ---- The conversation ------------------------------------------------------ */
.mm-chat-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "chat" "steps" "photo"; gap: 22px; }
/* The introduction: who Mila is and the three steps, then the photo. */
.mm-intro-head { grid-area: head; }
.mm-intro-kicker { display: inline-block; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--mm-gold); color: var(--mm-gold-ink); font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }
.mm-intro-title { margin: 0; max-width: 14ch; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; }
.mm-intro-lead { margin: 16px 0 0; max-width: 46ch; color: var(--mm-muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.mm-intro-steps { grid-area: steps; margin: 0; padding: 0; list-style: none; }
.mm-intro-steps li { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.mm-intro-steps li + li { border-top: 1px solid var(--mm-line); }
.mm-intro-steps strong { display: block; color: var(--mm-ink); font-size: 17px; font-weight: 700; }
.mm-intro-steps small { display: block; margin-top: 3px; max-width: 40ch; color: var(--mm-muted); font-size: 14px; line-height: 1.45; }
.mm-intro-icon { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, #f1e4c6); color: var(--mm-gold-ink); box-shadow: 0 8px 20px -14px rgba(139, 98, 11, .6); }
.mm-intro-icon svg { width: 26px; height: 26px; }
.mm-intro-photo { grid-area: photo; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px -30px rgba(6, 40, 46, .55); }
/* The questionnaire card. */
.mm-chat-card { grid-area: chat; align-self: start; width: 100%; max-width: 760px; margin: 0 auto; padding: 14px; border: 1px solid #eadfc8; border-top: 2px solid var(--mm-gold); border-radius: 22px; background: linear-gradient(180deg, #fffdf8, #fbf6ec); box-shadow: 0 28px 60px -34px rgba(6, 40, 46, .5); overflow: hidden; }
.mm-chat-head { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 24px); padding: clamp(14px, 2.4vw, 22px) clamp(16px, 2.6vw, 26px); border-radius: 16px; background: linear-gradient(135deg, #0a2f36, #063d45 60%, #0b4a52); color: #fff; box-shadow: 0 14px 30px -20px rgba(6, 40, 46, .8); }
.mm-avatar--head { width: 64px; height: 64px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 0 0 4px rgba(217, 178, 94, .7); }
.mm-chat-who { flex: 1; min-width: 0; }
.mm-chat-head h2 { margin: 0; color: #fff; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; }
.mm-chat-role { margin: 4px 0 0; color: rgba(255, 255, 255, .88); font-size: 15px; }
.mm-progress { margin: 10px 0 0; color: #e7c77f; font-size: 14px; font-weight: 700; }
.mm-progress-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; max-width: 360px; margin-top: 8px; }
.mm-progress-bar:empty { display: none; }
.mm-progress-bar span { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.mm-progress-bar span.is-done { background: var(--mm-gold); }
.mm-thread { display: flex; flex-direction: column; gap: 14px; max-height: min(52vh, 520px); margin: 0; padding: 22px clamp(4px, 1.6vw, 14px); overflow-y: auto; overscroll-behavior: contain; }
.mm-msg { display: flex; align-items: flex-end; gap: 12px; max-width: 92%; }
.mm-msg--you { align-self: flex-end; }
.mm-bubble { padding: 12px 16px; border-radius: 16px; background: var(--mm-paper); font-size: 15px; line-height: 1.55; }
.mm-bubble p { margin: 0; }
.mm-bubble p + p { margin-top: 6px; }
.mm-msg--mila .mm-bubble { border-end-start-radius: 4px; }
.mm-msg--you .mm-bubble { border-end-end-radius: 4px; background: var(--mm-teal); color: #fff; }
.mm-speaker { display: block; margin-bottom: 2px; color: var(--mm-gold-ink); font-size: 12px; font-weight: 800; }
.mm-summary { display: grid; gap: 8px; margin: 12px 0 0; }
.mm-summary-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--mm-line); }
.mm-summary dt { color: var(--mm-muted); font-size: 13px; font-weight: 700; }
.mm-summary dd { margin: 0; font-size: 14px; }
.mm-summary .mm-text-button { min-height: 32px; font-size: 13px; }
.mm-answer { display: grid; gap: 14px; padding: 4px clamp(4px, 1.6vw, 14px) 18px; }
.mm-chip-group { display: grid; gap: 8px; }
.mm-chip-label { margin: 0; color: var(--mm-muted); font-size: 13px; font-weight: 700; }
.mm-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #d7cfbd; border-radius: 999px; background: #fff; color: var(--mm-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.mm-chip:hover { border-color: var(--mm-gold); }
.mm-chip[aria-pressed="true"] { border-color: var(--mm-teal); background: var(--mm-teal); color: #fff; }
.mm-chip[aria-pressed="true"]::before { content: ""; width: 14px; height: 8px; margin-inline-end: 8px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.mm-chip:disabled { opacity: .45; cursor: default; }
/* Price ranges as tiles, each with a house and dollar sign. */
.mm-chip-group--tiles .mm-chip-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.mm-chip-group--tiles .mm-chip { justify-content: flex-start; gap: 8px; min-height: 56px; padding: 6px 12px; line-height: 1.25; text-align: start; border-color: #e8dcc3; border-radius: 12px; background: linear-gradient(180deg, #fffdf8, #f8f0e1); font-size: 15px; box-shadow: 0 6px 14px -12px rgba(6, 40, 46, .5); }
.mm-chip-group--tiles .mm-chip[aria-pressed="true"]::before { display: none; }
.mm-chip-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--mm-gold-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mm-chip[aria-pressed="true"] .mm-chip-icon { stroke: var(--mm-gold); }
.mm-answer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.mm-answer-note { margin: 0; color: var(--mm-muted); font-size: 13px; line-height: 1.5; }
.mm-answer > .mm-primary, .mm-answer > .mm-secondary { justify-self: stretch; }
.mm-answer > .mm-start-over { justify-self: center; margin-top: -6px; }
/* "or", between the answer buttons and the reply box: only while there are answer buttons. */
.mm-or { display: none; align-items: center; gap: 16px; margin: 2px clamp(4px, 1.6vw, 14px) 14px; color: var(--mm-gold-ink); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mm-or::before, .mm-or::after { content: ""; flex: 1; height: 1px; background: #e2d6bd; }
.mm-chat-card:has(.mm-answer .mm-chip) .mm-or { display: flex; }
.mm-compose { display: flex; align-items: center; gap: 12px; margin: 0 clamp(4px, 1.6vw, 14px) 4px; }
.mm-compose-field { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; padding: 5px 6px 5px 4px; border: 1px solid #e2d6bd; border-radius: 14px; background: #fff; box-shadow: inset 0 1px 2px rgba(23, 56, 62, .04); }
.mm-compose-field:focus-within { border-color: var(--mm-gold); }
.mm-compose input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 0; background: transparent; color: var(--mm-ink); font-size: 16px; letter-spacing: 0; text-transform: none; }
.mm-compose input:focus { outline: none; }
.mm-mic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #f6ecd6; color: var(--mm-gold-ink); cursor: pointer; }
.mm-mic svg { width: 20px; height: 20px; }
.mm-mic.is-listening { border-color: var(--mm-gold); background: var(--mm-gold); color: #12262b; animation: mm-pulse 1.4s ease-in-out infinite; }
.mm-mic:disabled { opacity: .4; cursor: not-allowed; }
.mm-send { flex: none; min-height: 58px; padding: 0 clamp(22px, 3vw, 40px); border: 0; border-radius: 12px; background: linear-gradient(135deg, #0a2f36, #063d45); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 12px 24px -16px rgba(6, 40, 46, .9); }
.mm-send:hover { background: #0b4a52; }
.mm-chat-note { display: flex; align-items: center; gap: 14px; margin: 4px clamp(4px, 1.6vw, 14px) 6px; padding: 14px 16px; border-radius: 14px; background: #f5ecdb; color: var(--mm-ink); font-size: 14px; line-height: 1.5; }
.mm-chat-note-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fffaf0; color: var(--mm-gold); }
.mm-chat-note-icon svg { width: 22px; height: 22px; }
.mm-voice-status { min-height: 20px; margin: 6px clamp(4px, 1.6vw, 14px) 10px; color: var(--mm-muted); font-size: 13px; }
.mm-voice-help { margin: 0 clamp(4px, 1.6vw, 14px) 14px; padding: 16px; border: 1px solid var(--mm-line); border-radius: 12px; background: var(--mm-paper); font-size: 14px; line-height: 1.5; }
.mm-voice-help p { margin: 0 0 8px; }
.mm-voice-help-title { font-weight: 800; }
.mm-voice-help-steps { color: var(--mm-muted); }
.mm-voice-help-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mm-voice-help-status { margin: 8px 0 0 !important; overflow-wrap: anywhere; }
/* Mila's wider messages: the Home Profile. */
.mm-msg:has(.mm-bubble--wide) { max-width: 100%; }
.mm-bubble--wide { flex: 1; min-width: 0; }
.mm-swipe-now { margin-inline-end: auto; }
/* The style quiz: example interiors, two to a row. */
.mm-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mm-style { display: grid; gap: 0; padding: 0; border: 2px solid transparent; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #d7cfbd; color: var(--mm-ink); text-align: start; overflow: hidden; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
.mm-style img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mm-style-name { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.mm-style:hover { box-shadow: 0 0 0 1px var(--mm-gold); }
.mm-style[aria-pressed="true"] { border-color: var(--mm-teal); box-shadow: none; }
.mm-style[aria-pressed="true"] .mm-style-name { background: var(--mm-teal); color: #fff; }
.mm-style[aria-pressed="true"] .mm-style-name::before { content: ""; width: 14px; height: 8px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
@media (min-width: 760px) { .mm-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mm-style-note { margin: -4px 0 0; color: var(--mm-muted); font-size: 12px; line-height: 1.5; }
/* The Home Profile Mila shows before the first swipe. */
.mm-profile { display: grid; gap: 10px; margin-top: 4px; }
.mm-profile-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; line-height: 1.2; }
.mm-profile-title svg { width: 22px; height: 22px; flex: none; color: var(--mm-gold-ink); }
.mm-profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mm-profile-tags li { padding: 6px 12px; border: 1px solid rgba(217, 178, 94, .7); border-radius: 999px; background: #fff; color: var(--mm-gold-ink); font-size: 13px; font-weight: 800; }
.mm-bubble .mm-profile-label { margin-top: 4px; color: var(--mm-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mm-bubble .mm-profile-sentence { font-size: 16px; line-height: 1.55; }
.mm-bubble .mm-profile-musts { font-size: 14px; }
.mm-profile-extras { padding: 12px 14px; border-inline-start: 3px solid var(--mm-gold); border-radius: 10px; background: #fff; }
.mm-profile-extras h4 { margin: 0 0 4px; color: var(--mm-ink); font-size: 13px; font-weight: 800; }
.mm-bubble .mm-profile-extras p { font-size: 14px; }
.mm-bubble .mm-profile-ready { color: var(--mm-teal); font-weight: 700; }
.mm-profile-answers { border-top: 1px solid var(--mm-line); }
.mm-profile-answers > summary { display: flex; align-items: center; min-height: 44px; color: var(--mm-teal); font-size: 14px; font-weight: 700; cursor: pointer; }
.mm-profile-answers > summary::marker { color: var(--mm-gold-ink); }
.mm-profile-answers .mm-summary { margin-top: 0; }

/* ---- The deck ---------------------------------------------------------------- */
.mm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; margin: 0 auto 18px; }
.mm-toolbar-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; }
.mm-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-stage { display: grid; justify-content: center; grid-template-columns: minmax(0, 480px); gap: 28px; }
.mm-deck-column { position: relative; z-index: 3; min-width: 0; }
.mm-deck { position: relative; display: grid; isolation: isolate; }
/* Mila's occasional question during swiping sits over the bottom of the card; swiping on is "not now". */
.mm-deck-wrap { position: relative; }
.mm-nudge { position: absolute; z-index: 4; inset-inline: 10px; bottom: 10px; display: grid; gap: 8px; padding: 12px 14px 14px; border: 1px solid rgba(217, 178, 94, .75); border-radius: 14px; background: var(--mm-teal); color: #fff; box-shadow: 0 18px 40px -18px rgba(6, 40, 46, .7); animation: mm-rise .25s ease both; }
.mm-nudge-head { display: flex; align-items: center; gap: 8px; }
.mm-nudge .mm-speaker { margin: 0; color: var(--mm-gold); }
.mm-nudge-close { display: grid; place-items: center; width: 40px; height: 40px; margin-inline-start: auto; margin-block: -6px; margin-inline-end: -6px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.mm-nudge-close:hover { background: rgba(255, 255, 255, .12); }
.mm-nudge-close svg { width: 18px; height: 18px; }
.mm-nudge-text { margin: 0; font-size: 15px; line-height: 1.45; }
.mm-nudge .mm-chip { min-height: 40px; border-color: transparent; }
.mm-deck[data-state="loading"]:empty, .mm-deck[data-state="empty"]:empty, .mm-deck[data-state="error"]:empty, .mm-deck[data-state="unavailable"]:empty { display: none; }
.mm-card { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; border-radius: 18px; background: var(--mm-card); box-shadow: var(--mm-shadow); overflow: hidden;
  transform-origin: 50% 120%; will-change: transform; transition: transform .22s ease, opacity .22s ease; --love: 0; --pass: 0; --lift: 0; }
.mm-card.is-top { z-index: 2; }
.mm-card.is-next { z-index: 1; pointer-events: none; transform: translateY(calc(12px - 12px * var(--lift))) scale(calc(.955 + .045 * var(--lift))); opacity: calc(.75 + .25 * var(--lift)); transition: transform .2s ease, opacity .2s ease; }
.mm-card.is-next .mm-card-body { opacity: var(--lift); transition: opacity .2s ease; }
/* The top card's photo opens its full details on a tap, and still swipes on a drag. */
.mm-card.is-top .mm-card-media { cursor: pointer; }
.mm-card.is-dragging { transition: none !important; cursor: grabbing; }
.mm-card.is-dragging .mm-card-media { cursor: grabbing; }
.mm-card-media { position: relative; aspect-ratio: 4 / 3; background: #1e2c2f; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
.mm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; -webkit-user-drag: none; }
.has-photo > .mm-photo { opacity: 1; }
.mm-nophoto { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: rgba(255, 255, 255, .7); font-size: 14px; text-align: center; }
.has-photo > .mm-nophoto { display: none; }
.mm-stamp { position: absolute; top: 22px; padding: 6px 14px; border: 3px solid currentColor; border-radius: 8px; background: rgba(10, 30, 33, .55); font: 800 26px/1 Manrope, Arial, sans-serif; letter-spacing: .12em; opacity: 0; pointer-events: none; }
.mm-stamp--love { inset-inline-start: 18px; color: #e6c579; transform: rotate(-12deg); opacity: var(--love); }
.mm-stamp--pass { inset-inline-end: 18px; color: #f2f2ee; transform: rotate(12deg); opacity: var(--pass); }
[dir="rtl"] .mm-stamp--love { inset-inline-start: auto; inset-inline-end: 18px; }
[dir="rtl"] .mm-stamp--pass { inset-inline-end: auto; inset-inline-start: 18px; }
.mm-stamp--dream, .mm-stamp--maybe { left: 50%; transform: translateX(-50%); }
.mm-stamp--dream { color: #e6c579; }
.mm-stamp--maybe { color: #f2f2ee; }
.is-leaving--love .mm-stamp--love, .is-leaving--pass .mm-stamp--pass, .is-leaving--dream .mm-stamp--dream, .is-leaving--maybe .mm-stamp--maybe { opacity: 1; }
.mm-score { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 30, 33, .86) 78%, transparent 80% 100%), conic-gradient(var(--mm-fill, var(--mm-gold)) calc(var(--score, 0) * 1%), rgba(255, 255, 255, .25) 0); color: #fff; text-align: center; }
.mm-score strong { display: block; font-size: 16px; line-height: 1; letter-spacing: -.02em; }
.mm-score small { display: block; margin-top: 3px; font-size: 8px; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; opacity: .85; }
.mm-photo-count, .mm-open-house { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 30, 33, .72); color: #fff; font-size: 12px; font-weight: 700; }
.mm-photo-count { inset-inline-end: 12px; }
.mm-open-house { inset-inline-start: 12px; background: rgba(139, 98, 11, .9); }
.mm-card-body { display: grid; gap: 6px; padding: 18px 20px 16px; }
.mm-price { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 30px; line-height: 1.1; color: var(--mm-ink); }
.mm-address { margin: 0; font-size: 15px; font-weight: 600; }
.mm-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--mm-ink); font-size: 14px; font-weight: 600; }
.mm-facts li { display: inline-flex; align-items: center; gap: 6px; }
.mm-facts svg { width: 18px; height: 18px; flex: none; color: var(--mm-gold-ink); }
.mm-why-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--mm-paper); }
.mm-why-line p { margin: 0; font-size: 14px; line-height: 1.5; }
.mm-why-checks { color: var(--mm-gold-ink); font-weight: 700; white-space: nowrap; }
.mm-card-links { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 4px -6px 0; }
.mm-credit { margin: 4px 0 0; color: #616961; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.mm-deck-state { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; border: 1px dashed #d7cfbd; border-radius: 18px; background: #fff; text-align: center; }
.mm-state-title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.mm-state-copy { max-width: 40ch; margin: 0; color: var(--mm-muted); font-size: 15px; line-height: 1.55; }
.mm-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.mm-state-spinner { width: 36px; height: 36px; border: 3px solid var(--mm-line); border-top-color: var(--mm-gold); border-radius: 50%; animation: mm-spin .9s linear infinite; }
/* Undo, Pass, Maybe, Save, Love and Request Tour (Ekin, 15 October 2026); the word sits under each circle. */
/* Ekin's action bar (28 October 2026): three wide buttons in one row, the word beside its icon. Pass white with a red
   cross, Maybe a soft teal with a bookmark, Match gold with a heart. */
.mm-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; padding-bottom: 8px; }
.mm-act { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; height: 54px; padding: 0 12px; border: 1px solid var(--mm-line); border-radius: 14px; background: #fff; color: var(--mm-ink);
  font-size: 17px; font-weight: 800; box-shadow: 0 10px 22px -16px rgba(6, 40, 46, .55); cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.mm-act svg { flex: none; width: 24px; height: 24px; }
.mm-act span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-act:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--mm-gold); }
.mm-act:active:not(:disabled) { transform: scale(.98); }
.mm-act:disabled { opacity: .4; cursor: default; box-shadow: none; }
.mm-act--pass svg { color: #8b3a33; }
.mm-act--maybe { border-color: #a9cbc5; background: #e8f3f0; color: var(--mm-teal); }
.mm-act--maybe:hover:not(:disabled) { background: #dcede9; }
.mm-act--love { border-color: #d4ad5c; background: linear-gradient(180deg, #ecd393, var(--mm-gold)); color: #12262b; box-shadow: 0 12px 24px -14px rgba(139, 98, 11, .75); }
.mm-act--love:hover:not(:disabled) { background: linear-gradient(180deg, #f0da9f, #dfba68); }
.mm-hint { max-width: 46ch; margin: 6px auto 0; color: var(--mm-muted); font-size: 13px; line-height: 1.5; text-align: center; }

/* ---- Why This Home Matches / Ask Mila ---------------------------------------- */
.mm-panel { position: fixed; z-index: 60; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; max-height: min(82vh, 720px); border-radius: 18px 18px 0 0; background: #fff;
  box-shadow: 0 -18px 40px -20px rgba(6, 40, 46, .5); visibility: hidden; transform: translateY(102%); transition: transform .3s cubic-bezier(.2, .8, .3, 1), visibility 0s linear .3s; }
.mm-panel.is-open { visibility: visible; transform: none; transition: transform .3s cubic-bezier(.2, .8, .3, 1); }
.mm-panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0 16px; border-bottom: 1px solid var(--mm-line); }
.mm-panel-tabs { display: flex; flex: 1; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mm-panel-tabs::-webkit-scrollbar { display: none; }
.mm-panel-tabs button { flex: none; min-height: 48px; padding: 0 10px; white-space: nowrap; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--mm-muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.mm-panel-tabs button[aria-selected="true"] { border-bottom-color: var(--mm-gold); color: var(--mm-ink); }
/* On a phone the three tabs share the row, each word in view, instead of scrolling. */
@media (max-width: 480px) { .mm-panel-tabs button { flex: 1 1 0; min-width: 0; padding: 6px 4px; white-space: normal; font-size: 13px; line-height: 1.2; text-align: center; } }
.mm-panel-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--mm-ink); cursor: pointer; }
.mm-panel-close svg { width: 22px; height: 22px; }
.mm-panel-close:hover { background: var(--mm-paper); }
.mm-panel-body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.mm-why-head { display: flex; align-items: center; gap: 14px; }
.mm-why-head .mm-score { position: static; flex: none; width: 70px; height: 70px; }
.mm-why-price { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.mm-why-address { margin: 2px 0 0; color: var(--mm-muted); font-size: 14px; }
.mm-why-empty { color: var(--mm-muted); font-size: 14px; }
.mm-bars { display: grid; gap: 10px; margin: 18px 0 0; }
.mm-bar-row { display: grid; grid-template-columns: minmax(100px, 36%) 1fr; align-items: center; gap: 12px; }
.mm-bar-row dt { font-size: 14px; font-weight: 700; }
.mm-bar-row dd { display: flex; align-items: center; gap: 10px; margin: 0; }
.mm-bar { position: relative; flex: 1; height: 8px; border-radius: 4px; background: #ece6da; overflow: hidden; }
.mm-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--value, 0) * 1%); border-radius: 4px; background: var(--mm-fill, var(--mm-teal)); }
.mm-bar-value { min-width: 3.2em; color: var(--mm-tone, inherit); font-size: 13px; font-weight: 800; text-align: end; }
.mm-bar-none { color: var(--mm-muted); font-size: 13px; }
.mm-why-heading { margin: 20px 0 8px; font-family: Manrope, Arial, sans-serif !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--mm-muted) !important; }
.mm-why-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.mm-why-list li { position: relative; padding-inline-start: 24px; }
.mm-why-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--mm-gold); }
.mm-why-list--yes li::before { top: .3em; width: 10px; height: 5px; border-radius: 0; background: none; border-inline-start: 2px solid var(--mm-teal); border-bottom: 2px solid var(--mm-teal); transform: rotate(-45deg); }
.mm-why-list--check li::before { background: none; border: 2px solid var(--mm-gold-ink); }
.mm-why-details { margin-top: 16px; font-size: 14px; }
.mm-why-details summary { min-height: 44px; display: flex; align-items: center; color: var(--mm-teal); font-weight: 700; cursor: pointer; }
.mm-panel-note { margin: 18px 0 0; color: var(--mm-muted); font-size: 12px; line-height: 1.5; }
.mm-ask-thread { display: grid; gap: 10px; }
.mm-ask-thread:empty { display: none; }
.mm-ask-you { justify-self: end; max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--mm-teal); color: #fff; font-size: 14px; }
.mm-ask-mila { max-width: 92%; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--mm-paper); font-size: 14px; line-height: 1.5; }
.mm-ask-mila p { margin: 0; }
.mm-answer-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; color: var(--mm-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mm-ask-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.mm-ask-suggestions .mm-chip { min-height: 40px; font-size: 13px; }
.mm-ask-form { display: flex; gap: 8px; padding: 6px; border: 1px solid #d7cfbd; border-radius: 12px; }
.mm-ask-form:focus-within { border-color: var(--mm-gold); }
.mm-ask-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 0; color: var(--mm-ink); font-size: 16px; letter-spacing: 0; text-transform: none; }
.mm-ask-form input:focus { outline: none; }
.mm-sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(10, 25, 28, .45); }

/* ---- My Matches ---------------------------------------------------------------- */
.mm-matches-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.mm-matches-head h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.mm-tabs { display: flex; gap: 6px; margin: 20px 0 0; border-bottom: 1px solid var(--mm-line); overflow-x: auto; scrollbar-width: none; }
.mm-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--mm-muted); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; }
.mm-tabs button[aria-selected="true"] { border-bottom-color: var(--mm-gold); color: var(--mm-ink); }
.mm-device-note { margin: 12px 0 18px; color: var(--mm-muted); font-size: 13px; }
.mm-match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.mm-match { display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: var(--mm-shadow); overflow: hidden; }
.mm-match-media { position: relative; aspect-ratio: 4 / 3; background: #1e2c2f; }
.mm-match-media .mm-score { width: 56px; height: 56px; }
.mm-match-media .mm-score strong { font-size: 14px; }
.mm-kind { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 30, 33, .78); color: #fff; font-size: 12px; font-weight: 700; }
.mm-kind svg { width: 14px; height: 14px; }
.mm-kind--dream, .mm-kind--love { color: #f0d595; }
.mm-match-body { display: grid; gap: 6px; padding: 16px 18px; }
.mm-match .mm-price { font-size: 26px; }
.mm-move { display: flex; margin-top: 8px; border: 1px solid var(--mm-line); border-radius: 10px; overflow: hidden; }
.mm-move-button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 6px; border: 0; background: #fff; color: var(--mm-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.mm-move-button + .mm-move-button { border-inline-start: 1px solid var(--mm-line); }
.mm-move-button svg { width: 15px; height: 15px; flex: none; }
.mm-move-button[aria-pressed="true"] { background: var(--mm-teal); color: #fff; }
.mm-match-body .mm-match-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-top: 8px; }
.mm-match-body .mm-match-actions .mm-primary, .mm-match-body .mm-match-actions .mm-match-tour { grid-column: 1 / -1; }
.mm-match-tour svg { width: 18px; height: 18px; flex: none; }
.mm-compare-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mm-ink); cursor: pointer; }
.mm-compare-check input { width: 20px; min-height: 0; height: 20px; padding: 0; accent-color: var(--mm-teal); }
.mm-matches-empty { display: grid; justify-items: center; gap: 14px; grid-column: 1 / -1; padding: 48px 20px; border: 1px dashed #d7cfbd; border-radius: 16px; background: #fff; text-align: center; }
.mm-compare-bar { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 560px; margin: 24px auto 0; padding: 10px 14px;
  border-radius: 14px; background: var(--mm-teal); color: #fff; box-shadow: var(--mm-shadow); font-weight: 700; font-size: 14px; }
.mm-compare-bar .mm-text-button { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }

/* My Matches dashboard (Ekin's design, 14 October 2026): Mila's welcome and
   Refine Your Matches side by side, then the list and its tools. */
.mm-view.mm-matches { max-width: 1280px; }
.mm-dash-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(20px, 3vw, 36px); align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.mm-dash-intro { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 36px); }
.mm-dash-avatar { flex: none; width: clamp(96px, 13vw, 168px); aspect-ratio: 1; padding: 5px; border: 2px solid var(--mm-gold); border-radius: 50%; background: #fff; box-shadow: 0 18px 40px -24px rgba(6, 40, 46, .55); }
.mm-dash-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mm-dash-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 7px 14px; border: 1px solid rgba(217, 178, 94, .75); border-radius: 999px; background: #fffaf0; color: var(--mm-gold-ink); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mm-dash-kicker svg { width: 16px; height: 16px; color: var(--mm-gold); }
.mm .mm-dash-copy h2 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); font-weight: 600; line-height: 1.04; }
.mm-dash-lede { max-width: 54ch; margin: 14px 0 0; color: var(--mm-muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; }
.mm-dash-continue { margin-top: 18px; }
.mm-dash-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(22px, 3vw, 32px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--mm-line); list-style: none; }
.mm-dash-features li { display: flex; align-items: flex-start; gap: 14px; padding: 0 clamp(10px, 1.6vw, 22px); }
.mm-dash-features li:first-child { padding-inline-start: 0; }
.mm-dash-features li + li { border-inline-start: 1px solid var(--mm-line); }
.mm-dash-features strong { display: block; color: var(--mm-ink); font-size: 16px; font-weight: 700; }
.mm-dash-features small { display: block; margin-top: 4px; color: var(--mm-muted); font-size: 14px; line-height: 1.45; }
.mm-dash-feature-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, #f1e4c6); color: var(--mm-gold-ink); }
.mm-dash-feature-icon svg { width: 24px; height: 24px; }

.mm-refine { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--mm-line); border-radius: 18px; background: #fff; box-shadow: var(--mm-shadow); }
.mm-refine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--mm-line); }
.mm .mm-refine-head h3 { position: relative; margin: 0; font-size: clamp(22px, 2.2vw, 27px); font-weight: 600; }
.mm-refine-head h3::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -13px; width: 52px; height: 2px; background: var(--mm-gold); }
.mm-refine-reset { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--mm-ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.mm-refine-reset svg { width: 20px; height: 20px; }
.mm-refine-reset:hover { color: var(--mm-gold-ink); }
.mm-range { margin: 0; padding: 0; border: 0; min-width: 0; }
.mm-range legend, .mm-refine-grid label > span { margin-bottom: 8px; padding: 0; color: var(--mm-ink); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.mm-range-track { position: relative; height: 36px; --lo: 0%; --hi: 100%; }
.mm-range-track::before, .mm-range-track::after { content: ""; position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; pointer-events: none; }
.mm-range-track::before { inset-inline: 11px; background: #ece5d6; }
.mm-range-track::after { left: calc(11px + (100% - 22px) * var(--lo) / 100%); right: calc(11px + (100% - 22px) * (100% - var(--hi)) / 100%); background: var(--mm-gold); }
[dir="rtl"] .mm-range-track::after { left: calc(11px + (100% - 22px) * (100% - var(--hi)) / 100%); right: calc(11px + (100% - 22px) * var(--lo) / 100%); }
.mm-range-track input { position: absolute; inset: 0; width: 100%; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.mm-range-track input::-webkit-slider-runnable-track { height: 36px; background: none; }
.mm-range-track input::-moz-range-track { height: 36px; background: none; }
.mm-range-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 7px; border: 3px solid #fff; border-radius: 50%; background: var(--mm-gold); box-shadow: 0 2px 8px rgba(6, 40, 46, .35); pointer-events: auto; cursor: pointer; }
.mm-range-track input::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--mm-gold); box-shadow: 0 2px 8px rgba(6, 40, 46, .35); pointer-events: auto; cursor: pointer; }
.mm-range-track input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--mm-teal); outline-offset: 2px; }
.mm-range-track input:focus-visible::-moz-range-thumb { outline: 3px solid var(--mm-teal); outline-offset: 2px; }
.mm-range-values { display: flex; justify-content: space-between; margin: 2px 0 0; color: var(--mm-ink); font-size: 16px; }
.mm-refine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.mm-refine-grid label { display: grid; min-width: 0; margin: 0; }
.mm-refine-grid select, .mm-sort select { width: 100%; min-height: 48px; padding: 0 36px 0 14px; border: 1px solid #d7cfbd; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317383e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; color: var(--mm-ink); font-size: 16px; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; cursor: pointer; }
[dir="rtl"] .mm-refine-grid select, [dir="rtl"] .mm-sort select { padding: 0 14px 0 36px; background-position: left 12px center; }
.mm-refine-grid select:focus-visible, .mm-sort select:focus-visible { outline: 3px solid rgba(217, 178, 94, .55); outline-offset: 1px; border-color: var(--mm-gold); }
.mm .mm-refine-submit { justify-content: center; width: 100%; min-height: 52px; border-radius: 10px; font-size: 16px; }
.mm-refine-status { min-height: 1.2em; margin: -6px 0 0; color: var(--mm-teal); font-size: 14px; font-weight: 600; text-align: center; }
.mm-refine-status:empty { display: none; }

.mm-matches .mm-matches-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px clamp(12px, 1.8vw, 28px); border-bottom: 1px solid var(--mm-line); }
.mm .mm-list-title { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; white-space: nowrap; }
.mm-count--big { min-width: 46px; height: 46px; border-radius: 23px; font-family: Manrope, Arial, sans-serif; font-size: 18px; }
.mm-matches .mm-tabs { margin: 0; border-bottom: 0; }
.mm-matches .mm-tabs button { min-height: 56px; padding: 0 10px; font-size: 15px; }
.mm-list-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-bottom: 10px; }
.mm-tool { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; color: var(--mm-ink); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.mm-tool > svg { width: 20px; height: 20px; flex: none; }
.mm-tool:hover { border-color: var(--mm-gold); }
.mm-tool[aria-expanded="true"], .mm-tool[aria-pressed="true"] { border-color: var(--mm-teal); background: var(--mm-teal); color: #fff; }
.mm-tool[aria-pressed="true"] .mm-count, .mm-tool[aria-expanded="true"] .mm-count { background: var(--mm-gold); color: #12262b; }
.mm-sort { padding: 0 0 0 14px; }
.mm-sort select { width: auto; max-width: 10.5em; min-height: 46px; padding-inline-start: 4px; border: 0; background-color: transparent; font-size: 15px; font-weight: 600; }
.mm-more-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--mm-line); border-radius: 14px; background: #fff; }
.mm-filter-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 14px; border: 1px solid #d7cfbd; border-radius: 999px; color: var(--mm-ink); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.mm-filter-check input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--mm-teal); }
.mm-filter-check:has(input:checked) { border-color: var(--mm-teal); background: #edf3f2; }
.mm-map { margin: 0 0 20px; border: 1px solid var(--mm-line); border-radius: 16px; background: #fff; overflow: hidden; }
.mm-map-surface { position: relative; height: clamp(300px, 42vw, 440px); background: #e9e4d8; }
.mm-map-status { margin: 0; padding: 10px 16px; color: var(--mm-muted); font-size: 13px; }
.mm-map-status:empty { display: none; }
.mm-map .map-pin { position: absolute; transform: translate(-50%, -100%); padding: 5px 10px; border: 1px solid var(--mm-teal); border-radius: 14px; background: #fff; color: var(--mm-ink); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 6px #00000026; }
.mm-map .map-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--mm-teal); }
.mm-map .map-pin[data-selected="true"] { background: var(--mm-teal); color: #fff; }

.mm-matches .mm-match-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.mm-matches .mm-match { border: 1px solid #efe8da; border-radius: 18px; transition: box-shadow .2s ease, border-color .2s ease; }
.mm-match.is-picked { border-color: var(--mm-gold); box-shadow: 0 0 0 3px rgba(217, 178, 94, .45), var(--mm-shadow); }
.mm-matches .mm-match-media { margin: 8px 8px 0; border-radius: 12px; overflow: hidden; }
.mm-matches .mm-match-media .mm-photo { object-fit: cover; }
.mm-matches .mm-match-media .mm-score { inset-inline-start: 12px; inset-inline-end: auto; width: 74px; height: 74px; border: 3px solid var(--mm-gold); background: rgba(6, 50, 58, .9); }
.mm-matches .mm-match-media .mm-score strong { font-size: 20px; }
.mm-matches .mm-match-media .mm-score small { font-size: 9px; }
.mm-heart-button { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--mm-gold); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); cursor: pointer; }
.mm-heart-button svg { width: 24px; height: 24px; }
.mm-heart-button:hover { transform: scale(1.05); }
.mm-matches .mm-match-body { gap: 8px; padding: 14px 16px 18px; }
.mm-matches .mm-price { font-size: clamp(26px, 2.4vw, 32px); font-weight: 600; }
.mm-matches .mm-address { color: var(--mm-ink); font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.mm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.mm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #f3efe6; color: var(--mm-ink); font-size: 13px; font-weight: 600; }
.mm-tag--gold { background: #f8eedb; color: var(--mm-gold-ink); }
.mm-tag--off { background: #f4e6e3; color: #8a3324; }
.mm-tag svg { width: 15px; height: 15px; }
.mm-matches .mm-move { gap: 8px; margin-top: 6px; border: 0; border-radius: 0; overflow: visible; }
.mm-matches .mm-move-button { gap: 5px; min-height: 46px; padding: 0 4px; border: 1px solid var(--mm-line); border-radius: 8px; color: var(--mm-ink); font-size: 14px; line-height: 1.15; }
.mm-matches .mm-move-button + .mm-move-button { border-inline-start: 1px solid var(--mm-line); }
.mm-matches .mm-move-button svg { width: 18px; height: 18px; }
.mm-matches .mm-move-button[aria-pressed="true"] { border-color: var(--mm-teal); background: var(--mm-teal); color: #fff; }
.mm-matches .mm-match-actions .mm-primary, .mm-matches .mm-match-actions .mm-match-tour { justify-content: center; min-height: 50px; border-radius: 8px; font-size: 16px; }

@media (max-width: 1100px) { .mm-dash-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1240px) {
  .mm-matches .mm-matches-head { grid-template-columns: minmax(0, 1fr) auto; }
  .mm-matches .mm-tabs { grid-column: 1 / -1; grid-row: 2; }
  .mm-list-tools { grid-column: 2; grid-row: 1; align-self: center; padding-bottom: 0; }
}
@media (max-width: 760px) {
  .mm-dash-features { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mm-dash-features li, .mm-dash-features li:first-child { padding: 0; }
  .mm-dash-features li + li { border-inline-start: 0; }
  .mm-matches .mm-matches-head { grid-template-columns: minmax(0, 1fr); }
  .mm-list-tools { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .mm-matches .mm-tabs { grid-row: 3; }
}
@media (max-width: 520px) {
  .mm-dash-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mm-dash-avatar { width: 96px; }
  .mm-tool { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .mm-sort { flex-basis: 100%; }
  .mm-refine-grid { gap: 12px; }
}

/* ---- The listings' source (as under Search Homes results) ------------------------ */
.mm-attribution { max-width: 900px; margin: 36px auto 0; }
.mm-attribution .idx-source-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid #dce2dc; font-size: 10px; line-height: 1.35; color: #506064; }
.mm-attribution .idx-source-copy { min-width: 0; }
.mm-attribution .idx-source-strip p { margin: 0; }
.mm-attribution .idx-source-strip p + p { margin-top: 2px; }
.mm-attribution .idx-logo { position: relative; display: block; flex: none; padding: 4px; border-radius: 2px; background: var(--search-teal); }
.mm-attribution .idx-logo::after { content: ""; position: absolute; top: 1px; bottom: 1px; right: -9px; width: 1px; background: #d6dcd8; }
.mm-attribution .idx-logo img { display: block; width: 56px; height: auto; }
.mm-attribution .idx-disclosure-toggle { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; min-height: 36px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: var(--search-ink);
  font: 700 10px/1.2 Manrope, Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
.mm-attribution .idx-disclosure-toggle span { display: inline-block; font-size: 15px; text-decoration: none; transition: transform .18s ease; }
.mm-attribution .idx-disclosure-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.mm-attribution .idx-disclosure-toggle:hover { color: #8b620b; }
.mm-attribution .idx-legal--page { margin: 0; padding: 12px 0 4px; border-top: 1px solid #e4e6e0; }
.mm-attribution .idx-legal-eyebrow { margin: 0 0 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #5c6660; }
.mm-attribution .idx-legal-text { margin: 0; }
.mm-attribution .idx-legal-paragraph { margin: 0 0 8px; max-width: 74ch; font-size: 12px; line-height: 1.55; color: #5c6660; }
.mm-attribution .idx-legal-paragraph:last-child { margin-bottom: 0; }
.mm-attribution .idx-legal-links { margin: 10px 0 0; font-size: 12px; }
.mm-attribution .idx-legal-links a { color: #5c6660; text-decoration: underline; text-underline-offset: 2px; }
.mm-score-note { max-width: 900px; margin: 10px auto 0; color: var(--mm-muted); font-size: 12px; line-height: 1.5; }

/* ---- It's a Match / Compare ------------------------------------------------------- */
.mm-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8, 24, 27, .72); }
.mm-match-dialog { position: relative; width: min(100%, 440px); padding: 34px 26px 26px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); text-align: center; animation: mm-rise .32s cubic-bezier(.2, .8, .3, 1); }
.mm-heart { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(217, 178, 94, .16); color: var(--mm-gold); animation: mm-beat 1.1s ease-in-out 2; }
.mm-heart svg { width: 34px; height: 34px; }
.mm-match-dialog h2 { margin: 14px 0 4px; font-size: 34px; }
.mm-match-note { margin: 0; color: var(--mm-muted); font-size: 15px; }
.mm-match-home { margin: 20px 0; }
.mm-mini { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--mm-line); border-radius: 14px; text-align: start; }
.mm-mini-media { position: relative; flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; background: #1e2c2f; overflow: hidden; }
.mm-mini-media .mm-nophoto { font-size: 11px; }
.mm-mini-copy { min-width: 0; }
.mm-mini-copy p { margin: 0; }
.mm-mini-price { font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.mm-mini-address { color: var(--mm-muted); font-size: 13px; overflow-wrap: anywhere; }
.mm-mini-score { margin-top: 4px !important; color: var(--mm-gold-ink); font-size: 13px; font-weight: 700; }
.mm-match-actions { display: grid; gap: 10px; }
.mm-leave-avatar { width: 72px; height: 72px; }
.mm-leave-dialog h2 { font-size: 30px; }
.mm-leave-dialog .mm-match-note { margin-bottom: 22px; line-height: 1.5; }

/* ---- The card: gallery, Best Match, facts, Mila's line (Ekin's design, 15 October 2026) */
.mm-best { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #f3dc9c, var(--mm-gold) 55%, #b98a32); color: #2a1d05; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 18px -10px rgba(60, 40, 0, .8); pointer-events: none; }
.mm-best svg { width: 15px; height: 15px; }
.mm-best[hidden] { display: none; }
.mm-gallery-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--mm-ink);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55); cursor: pointer; opacity: .92; transition: opacity .15s ease, transform .15s ease; }
.mm-gallery-nav:hover { opacity: 1; transform: scale(1.05); }
.mm-gallery-nav svg { width: 20px; height: 20px; }
.mm-gallery-nav--prev { inset-inline-start: 10px; }
.mm-gallery-nav--next { inset-inline-end: 10px; }
[dir="rtl"] .mm-gallery-nav svg { transform: scaleX(-1); }
.mm-photo-count { display: inline-flex; align-items: center; gap: 6px; }
.mm-photo-count svg { width: 14px; height: 14px; }
.is-loading-photo > .mm-photo { opacity: .55; }
.mm-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 8px 10px 0; background: var(--mm-card); }
.mm-thumbs[hidden] { display: none; }
.mm-thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #1e2c2f; overflow: hidden; cursor: pointer; }
.mm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-thumb[aria-current="true"] { border-color: var(--mm-gold); }
.mm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mm-card-title { min-width: 0; }
.mm-icon-button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--mm-line); border-radius: 50%; background: #fff; color: var(--mm-teal); cursor: pointer; }
.mm-icon-button:hover { border-color: var(--mm-gold); color: var(--mm-gold-ink); }
.mm-icon-button svg { width: 20px; height: 20px; }
.mm-insight { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 10px 12px; border-inline-start: 3px solid var(--mm-gold); border-radius: 12px; background: var(--mm-paper); }
.mm-insight .mm-avatar { flex: none; width: 30px; height: 30px; }
.mm-insight-copy { min-width: 0; }
.mm-insight-copy p { margin: 0; font-size: 14px; line-height: 1.5; }
.mm-insight-look { min-height: 32px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--mm-teal); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mm-insight-look:hover { color: var(--mm-gold-ink); }
.mm-card-links { align-items: center; gap: 6px 14px; margin: 8px 0 0; }
.mm-details-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--mm-teal); border-radius: 999px; color: var(--mm-teal); font-size: 14px; font-weight: 800; text-decoration: none; }
.mm-details-button:hover { background: var(--mm-teal); color: #fff; }

/* ---- Match Analysis panel ------------------------------------------------------- */
.mm-panel-body > section + section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--mm-line); }
.mm-analysis-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 19px !important; }
.mm-analysis-title svg { width: 20px; height: 20px; color: var(--mm-gold-ink); }
.mm-overview-title { margin: 0; font-size: 24px !important; color: var(--mm-teal) !important; }
.mm-overview-text { margin: 8px 0 0; color: var(--mm-tone, inherit); font-size: 16px; font-weight: 800; line-height: 1.55; }
.mm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.mm-badges li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--mm-yes-tint); color: var(--mm-teal); font-size: 12px; font-weight: 700; line-height: 1.3; }
.mm-badges svg { width: 13px; height: 13px; flex: none; color: var(--mm-yes); }
.mm-breakdown .mm-bars { margin: 0; }
.mm-bar-row dt { display: flex; align-items: center; gap: 8px; }
.mm-bar-row dt svg { width: 18px; height: 18px; flex: none; color: var(--mm-gold-ink); }
.mm-breakdown-toggle { margin-top: 6px; padding-inline: 0; font-size: 14px; font-weight: 700; }
.mm-breakdown-details { display: grid; gap: 12px; margin-top: 4px; }
.mm-breakdown-details[hidden] { display: none; }
.mm-detail-group h4, .mm-consider h4, .mm-learned h4, .mm-assumptions h4 { margin: 0 0 6px; color: var(--mm-muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mm-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.mm-check { display: flex; align-items: flex-start; gap: 8px; }
.mm-check svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.mm-check--yes svg { color: var(--mm-yes); }
.mm-check--no svg { color: var(--mm-no); }
.mm-check--partial svg { color: var(--mm-partial); }
/* Not in the listing: neither a match nor a miss. */
.mm-check--unknown svg { color: var(--mm-muted); }
.mm-checks--yes { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 14px; }
.mm-consider { padding: 16px !important; border: 0 !important; border-radius: 14px; background: linear-gradient(180deg, #f8f1e1, #f3e9d3); }
.mm-panel-body > section + .mm-consider { margin-top: 18px; }
.mm-consider h4 + .mm-consider-list { margin-bottom: 10px; }
.mm-consider-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.mm-consider-list li { position: relative; padding-inline-start: 18px; }
.mm-consider-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--mm-gold); }
.mm-consider-list .mm-consider--no::before { background: var(--mm-no); }
.mm-consider-list .mm-consider--partial::before { background: var(--mm-partial); }
.mm-consider-list .mm-consider--unknown::before { background: var(--mm-muted); }
.mm-costs { position: relative; }
.mm-cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-cost { display: grid; align-content: start; gap: 2px; padding: 10px 12px; border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; }
.mm-cost p { margin: 0; }
.mm-cost-label { color: var(--mm-muted); font-size: 12px; font-weight: 700; }
.mm-cost-value { font-family: "Playfair Display", Georgia, serif; font-size: 19px; color: var(--mm-ink); }
.mm-cost-value.is-unavailable, .mm-cost-table .is-unavailable { color: var(--mm-muted); font-family: Manrope, Arial, sans-serif; font-size: 14px; font-style: italic; }
.mm-cost-note { color: var(--mm-muted); font-size: 11px; line-height: 1.35; }
.mm-cost--total { border-color: var(--mm-teal); background: var(--mm-teal); }
.mm-cost--total .mm-cost-label, .mm-cost--total .mm-cost-note, .mm-cost--total .mm-cost-value, .mm-cost--total .mm-cost-value.is-unavailable { color: #fff; }
.mm-cost--total .mm-cost-label { color: var(--mm-gold); }
.mm-info { display: inline-block; margin-inline-start: auto; }
.mm-info summary { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--mm-line); border-radius: 50%; color: var(--mm-teal); font: italic 700 13px/1 Georgia, serif; list-style: none; cursor: pointer; }
.mm-info summary::-webkit-details-marker { display: none; }
.mm-info[open] summary { border-color: var(--mm-gold); background: #fff8e8; }
.mm-info p { position: absolute; z-index: 5; inset-inline: 0; top: 36px; margin: 0; padding: 12px 14px; border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; color: var(--mm-ink); font: 400 13px/1.5 Manrope, Arial, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: var(--mm-shadow); }
.mm-costs-disclaimer { margin: 10px 0 0; color: var(--mm-muted); font-size: 12px; line-height: 1.5; }
.mm-costs-more { margin-top: 2px; padding-inline: 0; font-size: 14px; font-weight: 700; }
.mm-mila-insight-body { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--mm-paper); }
.mm-mila-insight-body .mm-avatar { flex: none; width: 40px; height: 40px; }
.mm-mila-insight-body p { margin: 0; font-size: 14px; line-height: 1.55; }
.mm-similar { margin-top: 10px; }
.mm-learned-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.mm-learned-list li { display: inline-flex; align-items: center; gap: 2px; padding-inline-start: 12px; border: 1px solid var(--mm-line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.mm-learned-forget { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mm-muted); cursor: pointer; }
.mm-learned-forget:hover { color: #9a3b2e; background: var(--mm-paper); }
.mm-learned-forget svg { width: 14px; height: 14px; }
.mm-learned-note { margin: 0 0 6px; color: var(--mm-muted); font-size: 12px; line-height: 1.5; }
.mm-learned .mm-text-button { padding-inline: 0; font-size: 14px; }
.mm-profile .mm-learned { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mm-line); }
.mm-profile .mm-learned .mm-analysis-title { font-size: 16px !important; }
/* The Estimated Costs tab */
.mm-costs-head .mm-analysis-title { margin-bottom: 8px; }
.mm-cost-table { display: grid; margin: 0; }
.mm-cost-table > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--mm-line); }
.mm-cost-table > div:last-child { border-bottom: 0; font-weight: 800; }
.mm-cost-table dt { font-size: 14px; }
.mm-cost-table dd { margin: 0; font-size: 14px; font-weight: 700; text-align: end; }
.mm-cost-table dd small { display: block; color: var(--mm-muted); font-size: 11px; font-weight: 500; }
.mm-costs-fit { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fbeee9; color: #7a3326; font-size: 13px; font-weight: 700; }
.mm-costs-fit.is-within { background: #e7f0ee; color: var(--mm-teal); }
.mm-assumptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--mm-paper); }
.mm-assumptions h4, .mm-assumptions .mm-assumption-actions, .mm-assumptions .mm-costs-disclaimer { grid-column: 1 / -1; }
.mm-assumption { position: relative; display: grid; gap: 4px; color: var(--mm-ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.mm-assumption input { min-height: 44px; padding: 0 44px 0 10px; border: 1px solid #d7cfbd; border-radius: 10px; background: #fff; color: var(--mm-ink); font-size: 16px; }
.mm-assumption input:focus { border-color: var(--mm-gold); }
.mm-assumption small { position: absolute; inset-inline-end: 10px; bottom: 13px; color: var(--mm-muted); font-size: 12px; font-weight: 600; }
.mm-assumption-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---- Few or no homes: what each change would bring ------------------------------ */
.mm-limits-slot { margin-top: 16px; }
.mm-limits-slot[hidden] { display: none; }
.mm-limits { padding: 16px; border: 1px dashed rgba(139, 98, 11, .45); border-radius: 16px; background: #fffaf0; }
.mm-limits-title { margin: 0; font-size: 19px !important; }
.mm-limits-copy { margin: 6px 0 10px; color: var(--mm-muted); font-size: 14px; line-height: 1.5; }
.mm-limits-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mm-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; color: var(--mm-ink); font-size: 14px; font-weight: 700; text-align: start; cursor: pointer; }
.mm-limit:hover, .mm-limit[aria-expanded="true"] { border-color: var(--mm-gold); }
.mm-limit small { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--mm-teal); color: #fff; font-size: 12px; font-weight: 700; }
.mm-limit-confirm { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -16px rgba(6, 40, 46, .5); }
.mm-limit-confirm p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.mm-limit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-limits-actions { margin-top: 12px; }

/* ---- The conversation: answer chips, amounts, notes, the four profile sections --- */
.mm-msg--chips { justify-content: flex-end; }
.mm-answer-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mm-answer-chips li { padding: 6px 12px; border-radius: 999px; background: var(--mm-teal); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; }
.mm-chip-group--firm { margin-bottom: 10px; }
.mm-chip-group--firm .mm-chip { min-height: 40px; }
.mm-amount { display: flex; align-items: center; gap: 8px; max-width: 320px; margin-top: 10px; padding: 4px 4px 4px 12px; border: 1px solid #d7cfbd; border-radius: 12px; background: #fff; }
.mm-amount:focus-within { border-color: var(--mm-gold); }
.mm-amount-prefix { color: var(--mm-muted); font-weight: 700; }
.mm-amount input { flex: 1; min-width: 0; min-height: 40px; padding: 0 4px; border: 0; color: var(--mm-ink); font-size: 16px; letter-spacing: 0; text-transform: none; }
.mm-amount input:focus { outline: none; }
.mm-step-note { margin: 8px 0 0; color: var(--mm-muted); font-size: 13px; line-height: 1.5; }
.mm-profile-sections { display: grid; gap: 10px; margin-top: 14px; }
.mm-profile-section { padding: 10px 12px; border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; }
.mm-profile-section h4 { margin: 0 0 4px; color: var(--mm-gold-ink); font-family: Manrope, Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mm-profile-section .mm-summary { margin: 0; }

/* ---- It's a Match! Every Love (Ekin, 15 October 2026) ---------------------------- */
.mm-celebrate-overlay { align-items: center; overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 30%, rgba(10, 60, 66, .78), rgba(4, 22, 25, .9)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mm-celebrate { position: relative; width: min(100%, 520px); max-height: calc(100svh - 32px); margin: auto; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 22px; border: 1px solid rgba(217, 178, 94, .65); border-radius: 26px;
  background: radial-gradient(circle at 50% 0, #fff8e6 0, transparent 45%), linear-gradient(180deg, #fffdf8, #f8f1e2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 6px rgba(217, 178, 94, .12); text-align: center; animation: mm-pop .45s cubic-bezier(.2, .9, .3, 1.2) both;
  display: flex; flex-direction: column; }
/* The whole window fits the screen (Ekin, 28 October 2026): the photo takes the room that is left
   and gives way first; on shorter screens the art and spacing tighten. It scrolls only on the
   smallest phones. */
.mm-celebrate > * { flex: none; }
.mm-celebrate-close { position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--mm-ink); cursor: pointer; }
.mm-celebrate-close:hover { background: #fff; color: var(--mm-gold-ink); }
.mm-celebrate-close svg { width: 22px; height: 22px; }
.mm-celebrate-art { position: relative; height: 104px; margin: 0 auto 2px; width: 260px; transform: scale(.9); transform-origin: 50% 0; }
.mm-celebrate-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 220, 147, .75), rgba(246, 220, 147, 0) 65%); animation: mm-glow 2.4s ease-in-out 2; }
.mm-celebrate-heart { position: absolute; left: 50%; top: 10px; width: 92px; height: 92px; margin-left: -70px; filter: drop-shadow(0 10px 14px rgba(139, 98, 11, .45)); animation: mm-heart-in .6s cubic-bezier(.2, .9, .3, 1.3) both, mm-beat 1.2s ease-in-out .7s 2; }
.mm-celebrate-heart svg { width: 100%; height: 100%; display: block; }
.mm-keys { position: absolute; left: 50%; top: 0; width: 150px; height: auto; margin-left: -8px; overflow: visible; filter: drop-shadow(0 8px 10px rgba(80, 55, 5, .35)); }
.mm-keys-swing { transform-box: view-box; transform-origin: 78px 30px; animation: mm-swing 1.8s ease-in-out .3s 2 both; }
[dir="rtl"] .mm-celebrate-heart { margin-left: -22px; }
[dir="rtl"] .mm-keys { margin-left: -142px; }
.mm-confetti { position: absolute; inset: 0; pointer-events: none; }
.mm-confetti i { position: absolute; left: 50%; top: 52%; width: 7px; height: 11px; border-radius: 2px; background: var(--mm-gold); opacity: 0; animation: mm-confetti 1.7s cubic-bezier(.15, .7, .3, 1) .15s both; }
.mm-confetti i:nth-child(3n) { background: var(--mm-teal); }
.mm-confetti i:nth-child(4n) { background: #f1dfb0; width: 6px; height: 6px; border-radius: 50%; }
.mm-confetti i:nth-child(1) { --x: -120px; --y: -70px; --r: -160deg; }
.mm-confetti i:nth-child(2) { --x: 118px; --y: -64px; --r: 180deg; }
.mm-confetti i:nth-child(3) { --x: -150px; --y: 6px; --r: 220deg; }
.mm-confetti i:nth-child(4) { --x: 146px; --y: 14px; --r: -200deg; }
.mm-confetti i:nth-child(5) { --x: -80px; --y: -96px; --r: 120deg; }
.mm-confetti i:nth-child(6) { --x: 84px; --y: -100px; --r: -140deg; }
.mm-confetti i:nth-child(7) { --x: -176px; --y: -38px; --r: 260deg; }
.mm-confetti i:nth-child(8) { --x: 172px; --y: -30px; --r: -240deg; }
.mm-confetti i:nth-child(9) { --x: -40px; --y: -112px; --r: 90deg; }
.mm-confetti i:nth-child(10) { --x: 36px; --y: -116px; --r: -100deg; }
.mm-confetti i:nth-child(11) { --x: -110px; --y: 40px; --r: 150deg; }
.mm-confetti i:nth-child(12) { --x: 112px; --y: 46px; --r: -170deg; }
.mm-confetti i:nth-child(13) { --x: -196px; --y: 24px; --r: 300deg; }
.mm-confetti i:nth-child(14) { --x: 194px; --y: 30px; --r: -280deg; }
.mm-celebrate h2 { margin: 6px 0 4px; color: var(--mm-teal); font-size: clamp(30px, 6vw, 40px); line-height: 1.05; }
.mm-celebrate-note { margin: 0 auto; max-width: 36ch; color: var(--mm-muted); font-size: 15px; line-height: 1.5; }
.mm-celebrate { --mm-photo-min: 110px; --mm-copy-h: 104px; }
.mm-celebrate-home { flex: 1 1 auto; display: flex; flex-direction: column; min-height: calc(var(--mm-photo-min) + var(--mm-copy-h)); margin: 14px 0 0; }
.mm-celebrate-card { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--mm-line); border-radius: 18px; background: #fff; text-align: start; box-shadow: 0 18px 36px -26px rgba(6, 40, 46, .55); }
/* The photo gives way on short screens, so the buttons and the account line stay in view. */
.mm-celebrate-media { position: relative; flex: 1 1 auto; height: 280px; min-height: var(--mm-photo-min); background: #1e2c2f; }
.mm-celebrate-media .mm-photo { object-fit: cover; }
.mm-celebrate-copy { flex: none; display: grid; gap: 4px; padding: 12px 16px 14px; }
.mm-celebrate-copy .mm-price { font-size: 26px; }
.mm-celebrate-copy .mm-address { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* The photo count sits bottom-left, clear of the match score when the photo is short. */
.mm-celebrate-media .mm-photo-count { inset-inline-end: auto; inset-inline-start: 12px; bottom: 10px; }
.mm-celebrate-mila { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: var(--mm-paper); text-align: start; }
.mm-celebrate-mila .mm-avatar { flex: none; width: 46px; height: 46px; border: 2px solid var(--mm-gold); }
.mm-celebrate-mila p { margin: 0; font-size: 14px; line-height: 1.45; }
.mm-celebrate-mila-name { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 2px !important; color: var(--mm-gold-ink); font-size: 13px !important; font-weight: 800; }
.mm-celebrate-mila-name svg { width: 14px; height: 14px; color: var(--mm-gold); }
.mm-celebrate-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.mm-celebrate-tour { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; background: var(--mm-teal) !important; color: #fff !important; font-size: 16px; }
.mm-celebrate-tour:hover { background: #0a4f59 !important; }
.mm-celebrate-tour svg { width: 20px; height: 20px; }
.mm-celebrate-details, .mm-celebrate-keep { min-height: 46px; padding-inline: 10px; white-space: nowrap; text-decoration: none; }
.mm-celebrate-account { margin: 10px 0 0; color: var(--mm-muted); font-size: 13px; line-height: 1.5; }
/* Create account reads as a link in the sentence, so the line keeps its height. */
.mm-celebrate-account .mm-text-button { min-height: 24px; padding: 0 2px; font-size: 13px; font-weight: 800; line-height: inherit; vertical-align: baseline; }
@media (min-width: 601px) and (max-height: 820px) {
  .mm-celebrate { padding-block: 16px; }
  .mm-celebrate-art { height: 70px; transform: scale(.62); }
  .mm-celebrate h2 { margin-top: 2px; font-size: 32px; }
  .mm-celebrate-home { margin-top: 12px; }
  .mm-celebrate-mila { margin-top: 10px; }
  .mm-celebrate-actions { margin-top: 12px; }
}
.mm-celebrate-overlay.is-still .mm-confetti { display: none; }

@keyframes mm-pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes mm-heart-in { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes mm-glow { 50% { opacity: .55; transform: scale(1.08); } }
@keyframes mm-swing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(6deg); } }
@keyframes mm-confetti { 0% { opacity: 0; transform: translate(-50%, 0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), calc(var(--y, 0px) + 30px)) rotate(var(--r, 0deg)); } }

@media (max-width: 600px) {
  .mm-thumbs { display: none; }
  .mm-gallery-nav { width: 36px; height: 36px; margin-top: -18px; }
  .mm-insight-copy p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .mm-details-button { flex: 1 1 auto; }
  .mm-cost-value { font-size: 17px; }
  .mm-assumptions { grid-template-columns: 1fr; }
  .mm-celebrate-overlay { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .mm-celebrate { max-height: calc(100svh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 16px 16px 18px; border-radius: 22px; }
  .mm-celebrate-art { height: 96px; transform: scale(.84); transform-origin: 50% 0; margin-bottom: -12px; }
  .mm-celebrate { --mm-photo-min: 96px; --mm-copy-h: 123px; }
  .mm-celebrate-media { height: 230px; }
  .mm-celebrate-copy .mm-price { font-size: 22px; }
  .mm-celebrate-mila .mm-avatar { width: 42px; height: 42px; }
  .mm-celebrate-details, .mm-celebrate-keep { font-size: 14px; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .mm-celebrate { --mm-photo-min: 80px; padding-block: 12px; }
  .mm-celebrate-art { height: 52px; transform: scale(.45); margin-bottom: -2px; }
  .mm-celebrate h2 { margin-top: 0; font-size: 28px; }
  .mm-celebrate-note { font-size: 14px; }
  /* 8px, not 10: with the site's own fonts (Playfair, DM Sans) the photo came out 79px on a 375x667 phone, under its
     80px floor (30 October 2026). */
  .mm-celebrate-home, .mm-celebrate-actions, .mm-celebrate-mila { margin-top: 8px; }
  .mm-celebrate-mila { padding: 8px 12px; }
  .mm-celebrate-mila .mm-avatar { width: 36px; height: 36px; }
  .mm-celebrate-mila p { font-size: 13px; line-height: 1.4; }
  .mm-celebrate-tour { min-height: 46px; }
  .mm-celebrate-details, .mm-celebrate-keep { min-height: 42px; }
  .mm-celebrate-account, .mm-celebrate-account .mm-text-button { font-size: 12px; line-height: 1.45; }
}
/* The shortest phones (an iPhone SE with Safari's bars, about 550px): the title alone celebrates. */
@media (max-width: 600px) and (max-height: 650px) {
  .mm-celebrate-art { display: none; }
  .mm-celebrate h2 { padding-inline: 44px; }
  .mm-celebrate-mila .mm-avatar { width: 32px; height: 32px; }
}
@media (max-width: 340px) {
  .mm-celebrate-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-confetti { display: none; }
  .mm-celebrate { animation: none !important; }
}

/* ---- Toast ------------------------------------------------------------------------- */
.mm-toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: #12262b; color: #fff; font-size: 14px; box-shadow: var(--mm-shadow); transform: translateX(-50%); }
.mm-toast-undo { min-height: 36px; padding: 0 8px; border: 0; background: none; color: var(--mm-gold); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.mm-locked { overflow: hidden; }

@keyframes mm-spin { to { transform: rotate(360deg); } }
@keyframes mm-pulse { 50% { box-shadow: 0 0 0 8px rgba(217, 178, 94, .25); } }
@keyframes mm-beat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } }
@keyframes mm-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---- Computers: Mila on the left, the introduction on the right (Ekin, 14 October 2026) */
@media (min-width: 1024px) {
  .mm-chat-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "chat head" "chat steps" "chat photo"; column-gap: clamp(32px, 4vw, 56px); row-gap: 18px; }
  .mm-intro-photo { align-self: end; margin-top: 8px; }
  .mm-avatar--head { width: 104px; height: 104px; }
  .mm-chat .mm-avatar--xs { width: 52px; height: 52px; }
  .mm[data-view="deck"] { padding-top: 22px; }
  .mm[data-view="deck"] .mm-toolbar { margin-bottom: 12px; }
  .mm-card-media { aspect-ratio: 3 / 2; }
  .mm-stage { grid-template-columns: minmax(0, 480px) minmax(340px, 440px); align-items: start; }
  .mm-panel { position: sticky; top: 24px; inset: auto; z-index: auto; max-height: calc(100vh - 48px); border: 1px solid var(--mm-line); border-radius: 18px; box-shadow: var(--mm-shadow); visibility: visible; transform: none; transition: none; }
  .mm-panel-close { display: none; }
  .mm-sheet-backdrop { display: none !important; }
  .mm-card-links .mm-link-button:not(.mm-link-button--strong) { display: none; }
}
/* ---- Computers 1280px and wider: the homes Mila matched on a map beside the breakdown (Ekin, 28 October 2026).
   The card and Why This Home Matches keep their sizes; the page widens for a third column. Narrower screens never show it. */
.mm-deck-map { display: none; }
@media (min-width: 1280px) {
  .mm-deck-view { max-width: 1440px; }
  .mm-deck-view .mm-toolbar { max-width: none; }
  .mm-stage { grid-template-columns: minmax(380px, 480px) minmax(340px, 440px) minmax(300px, 1fr); }
  .mm-deck-map { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--mm-line); border-radius: 18px; background: #fff; box-shadow: var(--mm-shadow); }
}
.mm-deck-map-head h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.mm-deck-map-count { margin: 4px 0 0; color: var(--mm-muted); font-size: 15px; }
.mm-deck-map-frame { position: relative; overflow: hidden; border: 1px solid var(--mm-line); border-radius: 14px; background: #e9e4d8; }
.mm-deck-map-surface { position: relative; height: clamp(360px, 52vh, 560px); }
.mm-deck-map-status { position: absolute; inset-inline: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: var(--mm-muted); font-size: 13px; }
.mm-deck-map-status:empty { display: none; }
.mm-deck-map-type { position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px; display: flex; overflow: hidden; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -10px rgba(6, 40, 46, .5); }
.mm-deck-map-type button { padding: 8px 14px; border: 0; background: #fff; color: var(--mm-ink); font: 700 13px/1.2 Manrope, Arial, sans-serif; cursor: pointer; }
.mm-deck-map-type button + button { border-inline-start: 1px solid var(--mm-line); }
.mm-deck-map-type button[aria-pressed="true"] { background: var(--mm-teal); color: #fff; }
.mm-deck-map-type button:focus-visible { outline: 2px solid var(--mm-gold); outline-offset: -2px; }
.mm-deck-map .map-pin { position: absolute; pointer-events: none; }
/* The home on top of the deck: YOUR MATCH over a teal house in a soft gold halo, the price in gold under it.
   The pin itself is a point on the home's spot; the house is centred on it. */
.mm-deck-map .map-pin.mm-pin-current { z-index: 1; width: 0; height: 0; color: #12262b; }
/* The marker opens the current match's details, as View Full Details does. */
.mm-pin-current :is(.mm-pin-label, .mm-pin-house, .mm-pin-price) { pointer-events: auto; cursor: pointer; }
.mm-pin-house { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mm-teal); color: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 20px rgba(217, 178, 94, .3), 0 0 0 21px rgba(217, 178, 94, .6); }
.mm-pin-house svg { width: 20px; height: 20px; }
.mm-pin-label { position: absolute; left: 0; bottom: 52px; padding: 7px 12px; border-radius: 10px; background: var(--mm-teal); color: #fff; font: 800 11px/1 Manrope, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 8px 18px -8px rgba(6, 40, 46, .55); }
.mm-pin-label::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--mm-teal); border-bottom: 0; transform: translateX(-50%); }
.mm-pin-price { position: absolute; left: 0; top: 22px; padding: 7px 16px; border-radius: 999px; background: linear-gradient(180deg, #ecd49a, var(--mm-gold)); color: #12262b; font-size: 16px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 0 0 2px #fff, 0 10px 22px -8px rgba(6, 40, 46, .6); }
.mm-deck-map-home { display: grid; grid-template-columns: 112px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--mm-line); border-radius: 14px; color: var(--mm-ink); text-decoration: none; }
.mm-deck-map-home:hover { border-color: var(--mm-gold); }
.mm-deck-map-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e9e4d8; }
.mm-deck-map-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mm-deck-map-home-text { display: grid; gap: 4px; min-width: 0; }
.mm-deck-map-home-text strong { overflow: hidden; font-family: "Playfair Display", Georgia, serif; font-size: 17px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mm-deck-map-home-meta { color: var(--mm-yes); font-size: 14px; font-weight: 700; }
.mm-deck-map-home svg { width: 20px; height: 20px; color: var(--mm-muted); }
[dir="rtl"] .mm-deck-map-home svg { transform: scaleX(-1); }
/* A narrow map column (about 1280px screens): a smaller title and photo, and the address on up to two lines. */
.mm-deck-map { container-type: inline-size; }
@container (max-width: 360px) {
  .mm-deck-map-head h3 { font-size: 23px; }
  .mm-deck-map-count { font-size: 14px; }
  .mm-deck-map-home { grid-template-columns: 76px minmax(0, 1fr) 16px; gap: 10px; padding: 8px; }
  .mm-deck-map-home-text strong { display: -webkit-box; font-size: 15px; line-height: 1.25; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mm-deck-map-home-meta { font-size: 13px; }
  .mm-deck-map-home svg { width: 16px; height: 16px; }
}
@media (max-width: 900px) {
  .mm { min-height: auto; padding-top: 18px; }
  .mm-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mm-compare-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mm-panel { max-height: calc(100svh - 70px); }
}
@media (max-width: 600px) {
  .mm { padding-inline: 12px; }
  .mm-welcome-card, .mm-chat-card { border-radius: 16px; }
  .mm-chat-card { padding: 8px; }
  .mm-chat-head { border-radius: 12px; }
  .mm-intro-steps li { gap: 12px; padding: 10px 0; }
  .mm-intro-icon { width: 46px; height: 46px; }
  .mm-intro-icon svg { width: 22px; height: 22px; }
  .mm-intro-photo { border-radius: 16px; }
  .mm-chip-group--tiles .mm-chip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mm-chip-group--tiles .mm-chip { min-height: 50px; padding: 0 10px; font-size: 14px; }
  .mm-send { min-height: 52px; padding: 0 18px; font-size: 15px; }
  .mm-compose { gap: 8px; }
  .mm-steps { grid-template-columns: 1fr; gap: 8px; }
  .mm-steps li { flex-direction: row; padding: 10px 12px; text-align: start; }
  .mm-step-icon { width: 38px; height: 38px; }
  .mm-welcome-actions .mm-primary { width: 100%; min-width: 0; }
  .mm-thread { max-height: none; }
  .mm-compose { scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .mm-msg { max-width: 94%; }
  .mm-toolbar { flex-wrap: nowrap; margin-bottom: 12px; }
  .mm-toolbar-title > span[data-i18n] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mm-toolbar-actions { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; gap: 6px; }
  .mm-pill-button { min-width: 0; gap: 6px; padding: 0 12px; font-size: 13px; }
  .mm-pill-button > span[data-i18n] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mm-why-line p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mm-card-body { padding: 14px 16px 12px; }
  .mm-price { font-size: 26px; }
  /* Phones: the icon over its word, so the longest words (Vielleicht, Возможно) fit a third of the row. */
  .mm-actions { gap: 8px; margin-top: 26px; }
  .mm-act { flex-direction: column; gap: 3px; height: 60px; padding: 0 6px; font-size: 14px; }
  .mm-act svg { width: 21px; height: 21px; }
  .mm-summary-row { grid-template-columns: 1fr; gap: 2px; }
  .mm-style-grid { gap: 8px; }
  .mm-style-name { padding: 6px 10px; font-size: 13px; }
  .mm-nudge { inset-inline: 6px; bottom: 6px; padding: 10px 12px 12px; }
  .mm-nudge .mm-chip { padding: 0 12px; font-size: 13px; }
  .mm-attribution .idx-source-strip { grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; padding: 9px 0; }
  .mm-attribution .idx-logo img { width: 48px; }
  .mm-attribution .idx-logo::after { right: -8px; }
  .mm-attribution .idx-disclosure-toggle { grid-column: 1 / -1; justify-self: end; min-height: 32px; padding: 2px 0; }
}
@media (max-width: 360px) {
  .mm-actions { gap: 6px; }
  .mm-act { height: 56px; padding: 0 4px; font-size: 13px; }
  .mm-act svg { width: 19px; height: 19px; }
}
/* Narrow phones: Preferences becomes its sliders icon (the name stays for screen readers), so both buttons keep one row. */
@media (max-width: 420px) {
  .mm-toolbar [data-mm-edit] { flex: none; justify-content: center; width: 44px; padding: 0; }
  .mm-toolbar [data-mm-edit] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: none) { .mm-hint { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .mm *, .mm *::before, .mm *::after { animation: none !important; transition-duration: .01ms !important; }
  .mm-card.is-next { transform: none; }
}

/* Ask Mila in conversation (mila-ask-ui.js): Google Maps places, notes and what to ask next. */
.mm-ask-mila .mila-wait { color: #5c6b6e; font-style: italic; }
.mm-ask-mila .mila-places { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.mm-ask-mila .mila-places li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.mm-ask-mila .mila-place { color: var(--mm-teal); font-weight: 700; text-decoration: underline; overflow-wrap: break-word; }
@media (max-width: 560px) { .mm-ask-mila .mila-places li { grid-template-columns: minmax(0, 1fr); } }
.mm-ask-mila .mila-place-miles { color: var(--mm-gold-ink); font-weight: 700; white-space: nowrap; }
.mm-ask-mila .mila-place-address { grid-column: 1 / -1; font-size: 13px; color: #5c6b6e; }
.mm-ask-mila .mila-note { margin-top: 6px; font-size: 12.5px; color: #5c6b6e; }
.mm-ask-mila .mila-source { margin-top: 6px; font-family: Roboto, Arial, sans-serif; font-size: 12px; color: #5e5e5e; text-align: end; }
.mm-ask-mila .mila-research { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.mm-ask-mila .mila-research-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--mm-teal); }
.mm-ask-mila .mila-research ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mm-ask-mila .mila-research a { color: var(--mm-teal); font-weight: 600; text-decoration: underline; overflow-wrap: break-word; }
.mm-ask-mila .mila-research a[target="_blank"]::after { content: " \2197"; }
.mm-ask-mila .mila-next { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
