:root {
    --mf-brand: #03cea4;
    --mf-brand-hover: #02b891;
    --mf-brand-soft: #e6faf6;
    --mf-brand-border: #b3efe2;
    --mf-surface: #fafaf8;
    --mf-card: #ffffff;
    --mf-muted: #f5f5f2;
    --mf-muted-2: #ebebea;
    --mf-ink: #111110;
    --mf-ink-2: #44443e;
    --mf-ink-3: #7a7a74;
    --mf-ink-4: #adadab;
    --mf-line: #e8e8e3;
    --mf-line-2: #d2d2cd;
    --mf-danger: #e53935;
    --mf-star: #ffc107;
    --mf-radius-sm: 10px;
    --mf-radius: 16px;
    --mf-radius-lg: 24px;
    --mf-shadow: 0 1px 4px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.04);
    --mf-shadow-hover: 0 5px 14px rgba(0,0,0,.08), 0 16px 38px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }
body.mf-home {
    margin: 0;
    padding: 0 0 74px;
    background: var(--mf-surface);
    color: var(--mf-ink);
    font-family: 'Vazirmatn', 'Open Sans', sans-serif !important;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}
.mf-home *, .mf-home *::before, .mf-home *::after { box-sizing: border-box; }
.mf-home a { color: inherit; text-decoration: none; }
.mf-home button, .mf-home input, .mf-home select { font-family: inherit; }
.mf-home button, .mf-home summary { -webkit-tap-highlight-color: transparent; }
.mf-home summary { list-style: none; }
.mf-home summary::-webkit-details-marker { display: none; }
.mf-home img { max-width: 100%; display: block; }
.mf-home [hidden] { display: none !important; }

.mf-container { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.mf-page-wrap { min-height: 50vh; padding-top: calc(112px + var(--mf-announcement-h, 0px)); }

/* Header */
.mf-site-header {
    position: fixed; inset: 0 0 auto; top: var(--mf-announcement-h, 0px); z-index: 1030;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mf-line);
    transition: box-shadow .2s ease;
}
.mf-site-header.is-scrolled { box-shadow: 0 1px 18px rgba(0,0,0,.08); }
.mf-header-main { background: transparent; }
.mf-header-row { height: 66px; display: flex; align-items: center; gap: 12px; }
.mf-brand { display: inline-flex; align-items: baseline; flex: 0 0 auto; direction: ltr; unicode-bidi: isolate; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.7px; }
.mf-brand-365 { color: var(--mf-brand); }
.mf-brand-food { color: var(--mf-ink); }
.mf-city-picker { position: relative; flex: 0 0 auto; }
.mf-city-picker > summary {
    display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
    border: 1px solid var(--mf-line); border-radius: 12px; background: #fff; color: var(--mf-ink-2); cursor: pointer;
    font-size: 13px; font-weight: 650; transition: .18s ease;
}
.mf-city-picker > summary:hover, .mf-city-picker[open] > summary { border-color: var(--mf-brand-border); background: var(--mf-brand-soft); color: var(--mf-ink); }
.mf-icon--brand, .mf-city-picker > summary > .fa-map-marker { color: var(--mf-brand); }
.mf-city-picker__chevron { color: var(--mf-ink-4); font-size: 12px; }
.mf-city-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 1100; width: 250px; max-height: 330px; overflow: auto;
    padding: 8px; border: 1px solid var(--mf-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.13);
}
.mf-city-menu__title { padding: 8px 10px 10px; color: var(--mf-ink-3); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--mf-line); margin-bottom: 6px; }
.mf-city-menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border-radius: 10px; color: var(--mf-ink-2); font-size: 13px; }
.mf-city-menu a:hover, .mf-city-menu a.is-active { background: var(--mf-brand-soft); color: #018e72; }
.mf-city-menu__empty { margin: 0; padding: 12px 10px; color: var(--mf-ink-3); font-size: 12px; line-height: 1.8; }

.mf-header-search { position: relative; flex: 1 1 auto; min-width: 120px; max-width: 620px; margin-inline: 4px auto; }
.mf-header-search > .fa-search { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--mf-ink-4); z-index: 2; }
.mf-header-search input {
    width: 100%; height: 42px; padding: 0 40px 0 14px; border: 1px solid var(--mf-line); border-radius: 13px; background: var(--mf-muted);
    color: var(--mf-ink); font-size: 13px; outline: none; transition: .18s ease;
}
.mf-header-search input:focus { background: #fff; border-color: var(--mf-brand); box-shadow: 0 0 0 3px rgba(3,206,164,.12); }
.mf-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.mf-icon-button, .mf-account-button, .mf-login-button {
    height: 42px; border-radius: 12px; border: 1px solid transparent; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .18s ease;
}
.mf-icon-button { width: 42px; position: relative; color: var(--mf-ink-2); font-size: 18px; }
.mf-icon-button:hover { background: var(--mf-muted); }
.mf-notification-button.is-active { color: #018e72; background: var(--mf-brand-soft); }
.mf-notification-badge { position: absolute; top: 2px; inset-inline-start: 2px; min-width: 17px; height: 17px; display: grid; place-items: center; padding-inline: 4px; border: 2px solid #fff; border-radius: 999px; background: var(--mf-danger); color: #fff; font-size: 8px; line-height: 1; font-weight: 850; }
.mf-notification-badge[hidden] { display: none !important; }

/* Wallet balance in the header. Unlike the notification badge this is a
   figure, not a count, so it sits beside the icon instead of on top of it
   and the button widens to fit. */
.mf-wallet-button { width: auto; gap: 6px; padding-inline: 10px; font-size: 15px; }
.mf-wallet-button.is-active { color: #018e72; background: var(--mf-brand-soft); }
.mf-wallet-amount { color: var(--mf-ink-2); font-size: 10.5px; font-weight: 850; letter-spacing: -.2px; }
.mf-icon-wallet { width: 1em; height: 1em; display: block; flex: 0 0 auto; }
.mf-wallet-button.is-active .mf-wallet-amount { color: #018e72; }
@media (max-width: 991.98px) {
    .mf-wallet-amount { display: none; }
    .mf-wallet-button { width: 42px; padding-inline: 0; }
}
.mf-cart-button { position: relative; }
.mf-cart-count {
    position: absolute; top: 2px; inset-inline-end: 0; display: grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 4px;
    border-radius: 999px; background: var(--mf-danger); color: #fff; border: 2px solid #fff; font-size: 9px; font-weight: 800; line-height: 1;
}
.mf-login-button { gap: 8px; padding: 0 16px; background: var(--mf-brand); color: #fff !important; font-size: 13px; font-weight: 750; }
.mf-login-button:hover { background: var(--mf-brand-hover); color: #fff; }
.mf-account-menu { position: relative; }
.mf-account-button { gap: 8px; padding: 0 10px; border-color: var(--mf-line); min-width: 126px; color: var(--mf-ink-2); }
.mf-account-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #018e72; background: var(--mf-brand-soft); }
.mf-account-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.mf-account-dropdown { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 210px; padding: 8px; background: #fff; border: 1px solid var(--mf-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.13); }
.mf-account-dropdown a, .mf-account-dropdown button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--mf-ink-2); font-size: 13px; text-align: right; cursor: pointer; }
.mf-account-dropdown a:hover, .mf-account-dropdown button:hover { background: var(--mf-muted); color: var(--mf-ink); }
.mf-account-dropdown i { width: 18px; color: var(--mf-ink-3); text-align: center; }
.mf-category-tabs { height: 46px; border-top: 1px solid rgba(232,232,227,.65); background: #fff; }
.mf-category-tabs__inner { height: 100%; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mf-category-tabs__inner::-webkit-scrollbar { display: none; }
.mf-category-tabs a { position: relative; display: flex; align-items: center; flex: 0 0 auto; padding: 0 15px; color: var(--mf-ink-3); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.mf-category-tabs a::after { content: ''; position: absolute; inset-inline: 13px; bottom: 0; height: 2px; border-radius: 999px 999px 0 0; background: transparent; }
.mf-category-tabs a:hover { color: var(--mf-ink); }
.mf-category-tabs a.is-active { color: #018e72; }
.mf-category-tabs a.is-active::after { background: var(--mf-brand); }

/* Hero */
/* The first screen is a search bar, not a billboard.
   What stood here was a 510px hero: a kicker, a 62px headline, a lead
   paragraph and a stock photo, all above the fold on a phone. None of it
   helped anyone find dinner, and the restaurants began below all of it. */
.mf-searchbar {
    position: sticky;
    /* The site header is position:fixed and 112px tall (66px on a phone), so
       top:0 parked this bar underneath it, out of sight. */
    top: calc(112px + var(--mf-announcement-h, 0px));
    z-index: 40;
    background: rgba(250,250,248,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mf-line);
    padding-block: 12px;
}

/* Address invitation, above the list rather than in front of it. */
.mf-address-prompt { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 11px 14px; border: 1px solid var(--mf-brand-border); border-radius: var(--mf-radius); background: var(--mf-brand-soft); }
.mf-address-prompt > .fa-map-marker { flex: 0 0 auto; color: #018e72; font-size: 17px; }
.mf-address-prompt__text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.mf-address-prompt__text strong { color: var(--mf-ink); font-size: 13px; font-weight: 850; }
.mf-address-prompt__text span { color: var(--mf-ink-2); font-size: 11px; line-height: 1.6; }
.mf-address-prompt__cta { flex: 0 0 auto; min-height: 38px; padding-inline: 16px; font-size: 12px; }

@media (max-width: 767.98px) {
    .mf-address-prompt { flex-wrap: wrap; gap: 9px; padding: 11px 12px; }
    .mf-address-prompt__cta { width: 100%; }
}
.mf-city-required { display: flex; align-items: flex-start; gap: 12px; max-width: 640px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--mf-brand-border); border-radius: 14px; background: rgba(230,250,246,.65); }
.mf-city-required > i { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #018e72; background: #fff; }
.mf-city-required strong, .mf-city-required span { display: block; }
.mf-city-required strong { color: var(--mf-ink); font-size: 13px; margin-bottom: 2px; }
.mf-city-required span { color: var(--mf-ink-3); font-size: 11.5px; line-height: 1.8; }
.mf-hero-search { max-width: 100%; }
.mf-search-row { display: flex; align-items: stretch; min-height: 58px; border: 1px solid var(--mf-line); border-radius: 17px; background: #fff; box-shadow: var(--mf-shadow); }
.mf-city-picker--hero > summary { height: 100%; min-height: 58px; border: 0; border-inline-end: 1px solid var(--mf-line); border-radius: 0 17px 17px 0; padding-inline: 16px; background: #fff; }
.mf-city-picker--hero > summary:hover, .mf-city-picker--hero[open] > summary { background: var(--mf-muted); }
.mf-hero-search__input { position: relative; flex: 1 1 auto; min-width: 0; }
.mf-hero-search__input > .fa-search { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--mf-ink-4); }
.mf-hero-search__input input { width: 100%; height: 100%; min-height: 48px; border: 0; outline: 0; padding: 0 44px 0 14px; background: transparent; color: var(--mf-ink); font-size: 14px; }
.mf-primary-button, .mf-secondary-button { border: 0; border-radius: 12px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; font-size: 13px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.mf-primary-button { background: var(--mf-brand); color: #fff; box-shadow: 0 5px 18px rgba(3,206,164,.20); }
.mf-primary-button:hover { background: var(--mf-brand-hover); color: #fff; transform: translateY(-1px); }
.mf-secondary-button { background: #fff; color: var(--mf-ink-2); border: 1px solid var(--mf-line-2); }
.mf-secondary-button:hover { border-color: var(--mf-brand-border); color: #018e72; background: var(--mf-brand-soft); }
.mf-search-row > .mf-primary-button { margin: 7px; min-width: 96px; border-radius: 12px; }
.mf-search-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mf-service-switch { display: inline-flex; padding: 4px; border: 1px solid var(--mf-line); border-radius: 12px; background: var(--mf-muted); }
.mf-service-switch button { border: 0; background: transparent; color: var(--mf-ink-3); min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.mf-service-switch button.is-active { color: #018e72; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.mf-service-switch i { margin-inline-end: 5px; }
.mf-location-toggle { border: 0; background: transparent; color: var(--mf-ink-3); font-size: 11.5px; cursor: pointer; }
.mf-location-toggle:hover { color: #018e72; }
.mf-location-toggle i { margin-inline-end: 5px; color: var(--mf-brand); }
.mf-current-location { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: var(--mf-muted); color: var(--mf-ink-3); font-size: 11.5px; }
.mf-current-location i { color: var(--mf-brand); }

/* Common sections */
.mf-city-section, .mf-categories-section, .mf-promo-section, .mf-filter-section, .mf-discovery { padding-block: 28px; }
.mf-section-heading { margin-bottom: 18px; }
.mf-section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.mf-section-eyebrow { display: inline-block; margin-bottom: 5px; color: #018e72; font-size: 10.5px; font-weight: 800; letter-spacing: .1px; }
.mf-section-heading h2 { margin: 0; color: var(--mf-ink); font-size: 22px; line-height: 1.5; font-weight: 850; letter-spacing: -.3px; }
.mf-section-heading p { margin: 5px 0 0; color: var(--mf-ink-3); font-size: 12.5px; line-height: 1.8; }
.mf-section-link { display: inline-flex; align-items: center; gap: 6px; color: #018e72 !important; font-size: 12px; font-weight: 750; }

/* Cities */
.mf-city-section { border-top: 1px solid rgba(232,232,227,.75); background: #fff; }
.mf-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.mf-city-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; min-height: 72px; padding: 12px; border: 1px solid var(--mf-line); border-radius: 16px; background: #fff; transition: .18s ease; }
.mf-city-card:hover { border-color: var(--mf-brand-border); box-shadow: var(--mf-shadow); transform: translateY(-1px); }
.mf-city-card__image { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--mf-brand-soft); color: #018e72; }
.mf-city-card__image img { width: 100%; height: 100%; object-fit: cover; }
.mf-city-card strong { font-size: 13px; }
.mf-city-card > i { color: var(--mf-ink-4); }

/* Categories */
.mf-category-rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; }
.mf-category-rail::-webkit-scrollbar { display: none; }
.mf-category-card { flex: 0 0 128px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 10px 11px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; transition: .18s ease; }
.mf-category-card:hover, .mf-category-card.is-active { border-color: var(--mf-brand-border); background: var(--mf-brand-soft); transform: translateY(-2px); }
.mf-category-card__media { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--mf-muted); color: #018e72; font-size: 21px; }
.mf-category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mf-category-card strong { max-width: 100%; color: var(--mf-ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-category-card small { color: var(--mf-ink-4); font-size: 9.5px; }
.mf-category-card.is-active strong { color: #018e72; }

/* Admin banners only */
.mf-promo-section { padding-top: 14px; }
.mf-promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.mf-promo-card { display: block; overflow: hidden; aspect-ratio: 2.7/1; border-radius: 20px; background: var(--mf-muted-2); border: 1px solid var(--mf-line); }
.mf-promo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mf-promo-card:hover img { transform: scale(1.02); }

/* Filters */
.mf-filter-section { padding-block: 12px; }
.mf-filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid var(--mf-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.025); }
.mf-filter-bar > label:not(.mf-check-filter) { min-width: 165px; }
.mf-filter-bar label > span { display: block; margin-bottom: 5px; color: var(--mf-ink-3); font-size: 9.5px; font-weight: 700; }
.mf-filter-bar select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--mf-line); border-radius: 10px; background: var(--mf-muted); color: var(--mf-ink-2); font-size: 11.5px; outline: none; }
.mf-filter-bar select:focus { border-color: var(--mf-brand); background: #fff; }
.mf-check-filter { display: flex; align-items: center; gap: 7px; height: 38px; padding-inline: 9px; border-radius: 10px; background: var(--mf-muted); cursor: pointer; }
.mf-check-filter input { accent-color: var(--mf-brand); }
.mf-check-filter span { margin: 0 !important; color: var(--mf-ink-2) !important; font-size: 11px !important; }
.mf-filter-bar .mf-secondary-button { height: 38px; min-height: 38px; }
.mf-clear-filter { height: 38px; display: inline-flex; align-items: center; color: var(--mf-ink-3) !important; font-size: 11px; padding-inline: 5px; }

/* Restaurant sections/cards */
.mf-discovery { padding-top: 18px; padding-bottom: 56px; }
.mf-restaurant-section + .mf-restaurant-section { margin-top: 48px; }
.mf-restaurant-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
/* Restaurant card — compact horizontal row.
   The old card was a 16:9 photo above a stacked body, which on a phone meant
   roughly one and a half restaurants per screen. The listing is the one place
   a customer compares options, so the card now reads as a single dense row:
   square thumbnail, name, one line of reputation, one line of facts. */
.mf-restaurant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.mf-restaurant-card { position: relative; display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 11px; min-width: 0; padding: 11px; border: 1px solid var(--mf-line); border-radius: 16px; background: #fff; transition: .18s ease; }
.mf-restaurant-card:hover { border-color: var(--mf-line-2); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.mf-restaurant-card__media { position: relative; display: block; width: 84px; height: 84px; overflow: hidden; border-radius: 12px; background: var(--mf-muted-2); }
.mf-restaurant-card__media > img { width: 100%; height: 100%; object-fit: cover; }

/* Closed and out-of-range both dim the card, but only closed dims the photo:
   an out-of-range restaurant is open and worth seeing if they change address. */
.mf-restaurant-card.is-closed .mf-restaurant-card__media > img { opacity: .45; }
.mf-restaurant-card.is-closed .mf-restaurant-card__name a { color: var(--mf-ink-2); }
.mf-restaurant-card__closed-tag { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(50%, -50%); padding: 2px 9px; border-radius: 999px; background: rgba(17,17,16,.78); color: #fff; font-size: 9.5px; font-weight: 800; white-space: nowrap; }

.mf-restaurant-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mf-restaurant-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mf-restaurant-card__name { margin: 0; min-width: 0; font-size: 14px; font-weight: 850; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-restaurant-card__name a { color: var(--mf-ink); }

.mf-restaurant-card__sub,
.mf-restaurant-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0; color: var(--mf-ink-3); font-size: 10px; line-height: 1.5; }
.mf-restaurant-card__sub > span,
.mf-restaurant-card__meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mf-restaurant-card__meta i { color: var(--mf-ink-4); font-size: 10px; }
.mf-restaurant-card__cuisine { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mf-restaurant-card__rating .fa-star { color: var(--mf-star); }
.mf-restaurant-card__rating strong { color: var(--mf-ink-2); font-size: 11px; }
.mf-restaurant-card__rating small { color: var(--mf-ink-4); font-size: 9px; }

/* A separator that costs no markup weight and disappears when a line wraps. */
.mf-dot { width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--mf-ink-4); opacity: .6; }

.mf-restaurant-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.mf-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font-size: 9.5px; font-weight: 800; }
.mf-tag.is-free { color: #018e72; background: var(--mf-brand-soft); }
.mf-tag.is-blocked { color: #b52d2a; background: #fff0ef; }
.mf-tag.is-featured { color: #018e72; background: var(--mf-brand-soft); }
.mf-tag.is-sponsored { color: var(--mf-ink-3); background: var(--mf-muted-2); }

.mf-matched-items { margin-top: 5px; padding: 6px 8px; border-radius: 10px; background: var(--mf-brand-soft); }
.mf-matched-item { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 3px 0; color: var(--mf-ink-2); font-size: 9.5px; }
.mf-matched-item + .mf-matched-item { border-top: 1px solid rgba(3,206,164,.14); }
.mf-matched-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-matched-item strong { flex: 0 0 auto; color: #018e72; font-size: 9px; }

.mf-card-link { display: inline-flex; align-items: center; gap: 5px; color: #018e72 !important; font-size: 10.5px; font-weight: 800; }
.mf-favorite-button { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--mf-ink-4) !important; cursor: pointer; }
.mf-favorite-button:hover { background: #fff5f5; color: var(--mf-danger) !important; }
.mf-favorite-button.is-active { color: var(--mf-danger) !important; }

/* Empty/pagination */
.mf-empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 32px; border: 1px dashed var(--mf-line-2); border-radius: 22px; background: rgba(255,255,255,.72); text-align: center; }
.mf-empty-state--standalone { margin-top: 20px; }
.mf-empty-state > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--mf-brand-soft); color: #018e72; font-size: 22px; }
.mf-empty-state h3 { margin: 14px 0 4px; color: var(--mf-ink); font-size: 16px; font-weight: 850; }
.mf-empty-state p { max-width: 520px; margin: 0; color: var(--mf-ink-3); font-size: 12px; line-height: 1.9; }
.mf-inline-city-picker { position: relative; margin-top: 14px; }
.mf-inline-city-picker > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 11px; background: var(--mf-brand); color: #fff; font-size: 11.5px; font-weight: 800; }
.mf-inline-city-picker > div { position: absolute; top: calc(100% + 8px); inset-inline: 50%; transform: translateX(50%); width: 190px; padding: 7px; border: 1px solid var(--mf-line); border-radius: 13px; background: #fff; box-shadow: var(--mf-shadow-hover); text-align: right; z-index: 10; }
.mf-inline-city-picker a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--mf-ink-2); font-size: 11px; }
.mf-inline-city-picker a:hover { background: var(--mf-brand-soft); color: #018e72; }
.mf-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--mf-line); }
.mf-pagination > :last-child { justify-self: end; }
.mf-pagination a { display: inline-flex; align-items: center; gap: 6px; color: #018e72 !important; font-size: 11.5px; font-weight: 750; }
.mf-pagination strong { color: var(--mf-ink-3); font-size: 10.5px; font-weight: 650; }

/* Suggestions from marketplace-search.js */
.mf-home .marketplace-suggest-host { position: relative; }
.mf-home .marketplace-suggestions { position: absolute; z-index: 1080; top: calc(100% + 7px); inset-inline: 0; overflow: hidden; border: 1px solid var(--mf-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.13); }
.mf-home .marketplace-suggestion { width: 100%; border: 0; border-bottom: 1px solid var(--mf-line); background: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: right; cursor: pointer; }
.mf-home .marketplace-suggestion:last-child { border-bottom: 0; }
.mf-home .marketplace-suggestion:hover { background: var(--mf-muted); }
.mf-home .marketplace-suggestion-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--mf-brand-soft); color: #018e72; }
.mf-home .marketplace-suggestion-text { min-width: 0; flex: 1; }
.mf-home .marketplace-suggestion-text strong, .mf-home .marketplace-suggestion-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-home .marketplace-suggestion-text strong { color: var(--mf-ink-2); font-size: 11.5px; }
.mf-home .marketplace-suggestion-text small { color: var(--mf-ink-4); font-size: 9.5px; margin-top: 2px; }

/* Location modal */
.mf-location-modal .modal-dialog { max-width: 820px; }
.mf-location-modal .modal-content { overflow: hidden; border: 0; border-radius: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.mf-location-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--mf-line); }
.mf-location-modal__header span { color: #018e72; font-size: 10px; font-weight: 800; }
.mf-location-modal__header h3 { margin: 4px 0; color: var(--mf-ink); font-size: 18px; font-weight: 850; }
.mf-location-modal__header p { margin: 0; color: var(--mf-ink-3); font-size: 11px; line-height: 1.8; }
.mf-modal-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--mf-line); border-radius: 11px; background: #fff; color: var(--mf-ink-3); cursor: pointer; }
.mf-location-modal__body { padding: 20px 24px 24px; }
.mf-location-form > label { display: block; margin-bottom: 7px; color: var(--mf-ink-2); font-size: 11px; font-weight: 750; }
.mf-location-input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.mf-location-input-wrap { position: relative; }
.mf-location-input-wrap > i { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--mf-brand); }
.mf-location-input-wrap input { width: 100%; height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--mf-line); border-radius: 12px; background: var(--mf-muted); color: var(--mf-ink); font-size: 12px; outline: none; }
.mf-location-input-wrap input:focus { background: #fff; border-color: var(--mf-brand); box-shadow: 0 0 0 3px rgba(3,206,164,.12); }
.mf-location-map { height: 340px; margin-top: 12px; overflow: hidden; border: 1px solid var(--mf-line); border-radius: 16px; background: var(--mf-muted-2); }
.mf-location-submit { width: 100%; margin-top: 12px; }
.mf-home .neshan-location-suggestions { position: absolute; z-index: 1200; top: calc(100% + 6px); inset-inline: 0; overflow: hidden; border: 1px solid var(--mf-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.13); }
.mf-home .neshan-location-suggestion { width: 100%; border: 0; border-bottom: 1px solid var(--mf-line); background: #fff; padding: 9px 11px; text-align: right; cursor: pointer; }
.mf-home .neshan-location-suggestion strong, .mf-home .neshan-location-suggestion small { display: block; }
.mf-home .neshan-location-suggestion strong { color: var(--mf-ink-2); font-size: 11px; }
.mf-home .neshan-location-suggestion small { margin-top: 3px; color: var(--mf-ink-4); font-size: 9px; }

/* App/footer */
.mf-app-banner { background: #111110; color: #fff; }
.mf-app-banner__inner { min-height: 154px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 28px; }
.mf-app-banner span { color: var(--mf-brand); font-size: 11px; font-weight: 800; }
.mf-app-banner h2 { margin: 4px 0 6px; color: #fff; font-size: 23px; font-weight: 850; }
.mf-app-banner p { margin: 0; color: rgba(255,255,255,.52); font-size: 11.5px; }
.mf-store-button { display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 9px 14px; border-radius: 12px; background: #fff; color: #111 !important; }
.mf-store-button > i { font-size: 22px; color: #111; }
.mf-store-button small, .mf-store-button span { display: block; color: #111; }
.mf-store-button small { font-size: 8px; color: #777; }
.mf-store-button span { font-size: 12px; font-weight: 800; }
.mf-footer { background: #fff; border-top: 1px solid var(--mf-line); }
.mf-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 42px; padding-block: 46px 36px; }
.mf-footer__brand p { max-width: 360px; margin: 16px 0 0; color: var(--mf-ink-3); font-size: 11.5px; line-height: 2; }
.mf-socials { display: flex; gap: 8px; margin-top: 16px; }
.mf-socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--mf-line); border-radius: 10px; color: var(--mf-ink-3); }
.mf-socials a:hover { color: #018e72; border-color: var(--mf-brand-border); background: var(--mf-brand-soft); }
.mf-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.mf-footer__column h3 { margin: 1px 0 7px; color: var(--mf-ink); font-size: 12px; font-weight: 850; }
.mf-footer__column a, .mf-footer__column span { color: var(--mf-ink-3); font-size: 10.5px; }
.mf-footer__column a:hover { color: #018e72; }
.mf-footer__bottom { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--mf-line); color: var(--mf-ink-4); font-size: 9.5px; }
.mf-footer__bottom a { color: var(--mf-ink-3); }

/* Mobile nav */
.mf-mobile-nav { display: none; }

/* Existing cart side panel, visually aligned on this page */
.mf-home .sidenav-cart { z-index: 1200; background: #fff; box-shadow: -16px 0 48px rgba(0,0,0,.14); }
.mf-home .sidenav-cart .offcanvas-menu-inner { background: #fff; }
.mf-home .sidenav-cart .closebtn { color: var(--mf-ink-3); }
.mf-home .sidenav-cart .minicart-heading h4 { color: var(--mf-ink); font-family: inherit; font-weight: 850; }
.mf-home .sidenav-cart .card { box-shadow: none; border: 1px solid var(--mf-line); }
.mf-home .sidenav-cart .btn-primary, .mf-home .sidenav-cart .btn-outline-primary { border-color: var(--mf-brand); }
.mf-home .sidenav-cart .btn-primary { background: var(--mf-brand); }
.mf-home .sidenav-cart .btn-outline-primary { color: #018e72; }

@media (max-width: 1100px) {
    .mf-restaurant-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .mf-header-search { max-width: none; }
    .mf-account-name { display: none; }
    .mf-account-button { min-width: auto; }
}

@media (max-width: 900px) {
    .mf-page-wrap { padding-top: calc(66px + var(--mf-announcement-h, 0px)); }
    .mf-searchbar { top: calc(66px + var(--mf-announcement-h, 0px)); }
    .mf-category-tabs { display: none; }
    .mf-city-picker--header { display: none; }
    .mf-header-search { display: none; }
    .mf-header-row { justify-content: space-between; }
    .mf-header-actions { margin-inline-start: auto; }
    .mf-city-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mf-restaurant-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mf-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .mf-footer__column:last-child { display: none; }
}

@media (max-width: 640px) {
    body.mf-home { padding-bottom: 72px; }
    .mf-container { width: min(100% - 24px, 1280px); }
    .mf-site-header { border-bottom-color: var(--mf-line); }
    .mf-header-row { height: 60px; }
    .mf-page-wrap { padding-top: calc(60px + var(--mf-announcement-h, 0px)); }
    .mf-brand { font-size: 21px; }
    .mf-login-button { width: 40px; height: 40px; padding: 0; }
    .mf-login-button span { display: none; }
    .mf-account-button { width: 40px; height: 40px; padding: 0; min-width: 40px; }
    .mf-account-button > .fa-angle-down { display: none; }
    .mf-account-avatar { width: 28px; height: 28px; }
    .mf-search-row { display: grid; grid-template-columns: auto 1fr; min-height: auto; border-radius: 16px; overflow: visible; }
    .mf-city-picker--hero > summary { min-height: 50px; border-radius: 0 16px 0 0; padding-inline: 12px; max-width: 132px; }
    .mf-city-picker--hero .mf-city-menu { width: min(280px, calc(100vw - 40px)); }
    .mf-hero-search__input input { min-height: 50px; font-size: 12px; }
    .mf-search-row > .mf-primary-button { grid-column: 1 / -1; margin: 8px; min-height: 43px; }
    .mf-search-options { align-items: stretch; flex-direction: column; }
    .mf-service-switch { align-self: flex-start; }
    .mf-location-toggle { text-align: right; padding: 7px 2px; }
    .mf-section-heading h2 { font-size: 18px; }
    .mf-section-heading p { font-size: 11px; }
    .mf-category-card { flex-basis: 108px; border-radius: 15px; }
    .mf-category-card__media { width: 52px; height: 52px; }
    .mf-promo-grid { grid-template-columns: 1fr; }
    .mf-promo-card { aspect-ratio: 2.3/1; border-radius: 16px; }
    .mf-filter-bar { align-items: stretch; }
    .mf-filter-bar > label:not(.mf-check-filter) { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
    .mf-check-filter { flex: 1 1 calc(50% - 5px); }
    .mf-restaurant-grid { grid-template-columns: 1fr; gap: 10px; }
    /* The distance is the first thing to go: on a phone the row has to
       stay on one line, and price and time decide more purchases. */
    .mf-restaurant-card__meta .mf-meta-distance { display: none; }
    .mf-matched-items { display: none; }
    .mf-city-grid { grid-template-columns: 1fr 1fr; }
    .mf-app-banner__inner { flex-direction: column; align-items: flex-start; }
    .mf-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .mf-footer__brand { grid-column: 1 / -1; }
    .mf-footer__bottom { padding-block: 12px; }
    .mf-mobile-nav { position: fixed; z-index: 1150; bottom: 0; inset-inline: 0; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mf-line); background: rgba(255,255,255,.98); box-shadow: 0 -5px 24px rgba(0,0,0,.07); backdrop-filter: blur(14px); }
    .mf-mobile-nav a, .mf-mobile-nav button { position: relative; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mf-ink-3); font-family: inherit; font-size: 9px; cursor: pointer; }
    .mf-mobile-nav i { font-size: 17px; }
    .mf-mobile-nav .is-active { color: #018e72; }
    .mf-mobile-nav b { position: absolute; top: 1px; inset-inline-start: calc(50% + 7px); min-width: 15px; height: 15px; display: grid; place-items: center; padding-inline: 3px; border-radius: 999px; background: var(--mf-danger); color: #fff; font-size: 8px; }
    .mf-location-modal .modal-dialog { margin: 12px; }
    .mf-location-modal .modal-content { border-radius: 18px; }
    .mf-location-modal__header { padding: 16px 16px 12px; }
    .mf-location-modal__body { padding: 14px 16px 16px; }
    .mf-location-input-row { grid-template-columns: 1fr; }
    .mf-location-map { height: 300px; }
}

@media (max-width: 430px) {
    .mf-city-grid { grid-template-columns: 1fr; }
    .mf-restaurant-card { grid-template-columns: 72px minmax(0,1fr); gap: 9px; padding: 10px; }
    .mf-restaurant-card__media { width: 72px; height: 72px; }
    .mf-restaurant-card__name { font-size: 13px; }
    .mf-filter-bar > label:not(.mf-check-filter), .mf-check-filter { min-width: 100%; flex-basis: 100%; }
}

/* Marketplace favorites: AJAX feedback and pending state */
.mf-favorite-button.is-pending,
.mr-icon-action.is-pending {
    opacity: .58;
    cursor: wait;
    pointer-events: none;
}
.mf-restaurant-card.is-removing-favorite {
    opacity: 0;
    transform: scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}
.mf-favorite-toast {
    position: fixed;
    inset-inline-start: 50%;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
    z-index: 120500;
    max-width: min(92vw, 420px);
    padding: 11px 16px;
    border: 1px solid var(--mf-brand-border);
    border-radius: 12px;
    background: #fff;
    color: var(--mf-ink-2);
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.8;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease;
}
.mf-favorite-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.mf-favorite-toast.is-error {
    border-color: #ffd0ca;
    background: #fff7f5;
    color: #b42318;
}
@media (min-width: 768px) {
    .mf-favorite-toast { bottom: 28px; }
}

/* Home location onboarding + restored marketplace experience */
.mf-city-fixed { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-sm); background: var(--mf-card); color: var(--mf-ink-2); font-weight: 800; white-space: nowrap; }
.mf-city-fixed > i { color: var(--mf-brand-hover); }
.mf-city-fixed--header { min-height: 44px; }
.mf-city-fixed--header .mf-icon { flex: 0 0 auto; }

.mf-location-gate { padding: 34px 0 54px; background: var(--mf-surface); }
.mf-location-gate__shell { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.5fr); gap: 28px; padding: 28px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-lg); background: var(--mf-card); box-shadow: var(--mf-shadow); }
.mf-location-gate__intro { align-self: start; padding: 12px 10px; }
.mf-location-gate__intro h2 { margin: 7px 0 10px; color: var(--mf-ink); font-size: clamp(1.55rem,2.2vw,2.25rem); font-weight: 900; line-height: 1.45; }
.mf-location-gate__intro p { margin: 0; color: var(--mf-ink-3); line-height: 2; }
.mf-location-gate__city { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 13px 14px; border-radius: var(--mf-radius); background: var(--mf-brand-soft); color: var(--mf-ink-2); }
.mf-location-gate__city i { grid-row: 1 / span 2; color: var(--mf-brand-hover); font-size: 1.15rem; }
.mf-location-gate__city span { font-size: .72rem; color: var(--mf-ink-3); }
.mf-location-gate__city strong { color: var(--mf-ink); }
.mf-saved-location-panel,.mf-guest-location-panel { min-width: 0; padding: 20px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-surface); }
.mf-location-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.mf-location-panel-heading span { color: var(--mf-brand-hover); font-size: .76rem; font-weight: 800; }
.mf-location-panel-heading h3 { margin: 3px 0 0; color: var(--mf-ink); font-size: 1.1rem; font-weight: 900; }
.mf-saved-location-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.mf-saved-location-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-card); color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mf-saved-location-card:hover { border-color: var(--mf-brand-border); box-shadow: var(--mf-shadow); color: inherit; transform: translateY(-1px); }
.mf-saved-location-card.is-default { border-color: var(--mf-brand-border); }
.mf-saved-location-card__icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: var(--mf-radius-sm); background: var(--mf-brand-soft); color: var(--mf-brand-hover); }
.mf-saved-location-card__body { min-width: 0; display: grid; gap: 5px; }
.mf-saved-location-card__body > span:last-child { color: var(--mf-ink-3); font-size: .78rem; line-height: 1.75; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mf-saved-location-card__title { display: flex; align-items: center; gap: 8px; color: var(--mf-ink); }
.mf-saved-location-card__title small { padding: 3px 7px; border-radius: 999px; background: var(--mf-brand-soft); color: var(--mf-brand-hover); font-size: .65rem; }
.mf-saved-location-card > .fa-angle-left { color: var(--mf-ink-4); }
.mf-no-saved-location { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1px dashed var(--mf-brand-border); border-radius: var(--mf-radius); background: var(--mf-card); }
.mf-no-saved-location > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--mf-radius); background: var(--mf-brand-soft); color: var(--mf-brand-hover); font-size: 1.25rem; }
.mf-no-saved-location strong { color: var(--mf-ink); }
.mf-no-saved-location p { margin: 4px 0 0; color: var(--mf-ink-3); font-size: .8rem; line-height: 1.8; }
.mf-guest-location-panel > label { display: block; margin-bottom: 7px; color: var(--mf-ink-2); font-size: .78rem; font-weight: 800; }
.mf-location-map--gate { height: 210px; margin-top: 12px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-muted); overflow: hidden; }
.mf-location-gate__actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
.mf-location-gate__actions > span { color: var(--mf-ink-3); font-size: .75rem; }
.mf-location-gate__actions > span i { color: var(--mf-brand-hover); }
.mf-home-address-modal .modal-content { overflow: hidden; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-lg); box-shadow: var(--mf-shadow-hover); }
.mf-home-address-modal__body { max-height: min(72vh,760px); overflow-y: auto; padding: 18px; background: var(--mf-surface); }

.mf-campaign-section,.mf-popular-food-section { padding: 18px 0 32px; background: var(--mf-surface); }
.mf-campaign-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
/* Back to the dark surface it always had. The green gradient I tried here
   fought the brand green used for every button on the page. */
.mf-campaign-card {
    position: relative; min-height: 176px;
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px;
    align-items: end; overflow: hidden;
    padding: 22px; border-radius: var(--mf-radius-lg);
    background: var(--mf-ink); color: var(--mf-card);
}
.mf-campaign-card.is-first-order { background: var(--mf-brand-hover); }
.mf-campaign-card__orb { position: absolute; width: 190px; height: 190px; inset: -70px auto auto -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); pointer-events: none; }
.mf-campaign-card__content { position: relative; z-index: 1; max-width: 78%; }
.mf-campaign-card__eyebrow { font-size: .73rem; font-weight: 800; opacity: .8; }
/* The restaurant name is the headline of the card, so it is sized like one. */
.mf-campaign-card h3 { margin: 0 0 6px; color: inherit; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 900; line-height: 1.4; letter-spacing: -.4px; }
.mf-campaign-card p { margin: 0 0 12px; color: inherit; font-size: .8rem; line-height: 1.8; opacity: .82; }
/* The code is the one thing on this card a customer has to carry away, so
   it stops being faint white-on-dark and takes the pink from the palette —
   the only hue here that is neither the brand green nor the danger red. */
.mf-campaign-code { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 11px; border: 1px dashed rgba(255,122,166,.55); border-radius: var(--mf-radius-sm); background: rgba(255,122,166,.12); }
.mf-campaign-code span { font-size: .66rem; opacity: .75; }
.mf-campaign-code strong { color: #ff7aa6; font-size: .95rem; font-weight: 900; letter-spacing: .06em; }
/* Scoped to the card so it outranks `.mf-home a { color: inherit }`, which
   otherwise hands this link the card's white text — white on a white
   button, which is what shipped. */
.mf-campaign-card .mf-campaign-card__action { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border-radius: var(--mf-radius-sm); background: var(--mf-card); color: var(--mf-ink); font-size: .78rem; font-weight: 900; }
.mf-campaign-card .mf-campaign-card__action:hover { color: var(--mf-brand-hover); background: var(--mf-brand-soft); }
.mf-campaign-card__icon { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: var(--mf-radius); background: rgba(255,255,255,.08); font-size: 1.4rem; }

.mf-food-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px,1fr); grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: thin; }
.mf-food-card { min-width: 0; overflow: hidden; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-card); }
.mf-food-card__media { position: relative; display: block; aspect-ratio: 1 / .94; overflow: hidden; background: var(--mf-muted); }
.mf-food-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mf-food-card:hover .mf-food-card__media img { transform: scale(1.025); }
.mf-food-discount { position: absolute; top: 9px; right: 9px; padding: 4px 7px; border-radius: 999px; background: var(--mf-danger); color: var(--mf-card); font-size: .66rem; font-weight: 900; }
.mf-food-card__body { padding: 12px; }
.mf-food-card__body h3 { margin: 0; font-size: .86rem; font-weight: 900; line-height: 1.7; }
.mf-food-card__body h3 a { color: var(--mf-ink); }
.mf-food-card__body > span { display: block; margin-top: 3px; color: var(--mf-ink-3); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-food-card__bottom { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: 10px; }
.mf-food-card__price { display: flex; flex-direction: column; gap: 1px; color: var(--mf-ink); font-size: .78rem; }
.mf-food-card__price del { color: var(--mf-ink-4); font-size: .65rem; }
.mf-food-card__open { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-sm); background: var(--mf-muted); color: var(--mf-ink-3); }
.mf-food-card__open:hover { border-color: var(--mf-brand-border); background: var(--mf-brand-soft); color: var(--mf-brand-hover); }

/* The install invitation sits at the foot of every page; at 224px tall it
   was competing with the content it is meant to follow. */
.mf-app-download { padding: 22px 0 18px; background: var(--mf-surface); }
.mf-app-download__card { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0,1.25fr) auto; gap: 18px; align-items: center; overflow: hidden; padding: 20px 24px; border-radius: var(--mf-radius-lg); background: var(--mf-ink); color: var(--mf-card); }
.mf-app-download__orb { position: absolute; display: block; border-radius: 50%; background: rgba(3,206,164,.08); }
.mf-app-download__orb--one { width: 220px; height: 220px; top: -100px; left: 80px; }
.mf-app-download__orb--two { width: 135px; height: 135px; bottom: -70px; right: 70px; }
.mf-app-download__content { position: relative; z-index: 1; max-width: 590px; }
.mf-app-download__content > span { color: var(--mf-brand); font-size: .78rem; font-weight: 900; }
.mf-app-download__content h2 { margin: 5px 0 5px; color: var(--mf-card); font-size: clamp(1.05rem,1.7vw,1.35rem); font-weight: 900; line-height: 1.5; }
.mf-app-download__content p { margin: 0; color: var(--mf-ink-4); font-size: .84rem; line-height: 1.9; }
.mf-app-download__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.mf-app-download .mf-store-button { min-width: 150px; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px; border: 0; border-radius: var(--mf-radius-sm); background: var(--mf-card); color: var(--mf-ink); cursor: pointer; }
.mf-app-download .mf-store-button i { font-size: 1.3rem; }
.mf-app-download .mf-store-button span { display: grid; text-align: right; font-size: .78rem; font-weight: 900; line-height: 1.25; }
.mf-app-download .mf-store-button small { color: var(--mf-ink-3); font-size: .6rem; font-weight: 700; }
.mf-app-download .mf-store-button:hover { color: var(--mf-brand-hover); transform: translateY(-1px); }
.mf-app-download .mf-store-button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 991.98px) {
    .mf-location-gate__shell { grid-template-columns: 1fr; }
    .mf-location-gate__intro { padding: 2px; }
    .mf-food-rail { grid-template-columns: none; grid-auto-columns: 190px; }
    .mf-app-download__card { grid-template-columns: 1fr; }
    .mf-app-download__actions { justify-content: flex-start; }
}

@media (max-width: 767.98px) {
    .mf-location-gate { padding: 18px 0 30px; }
    .mf-location-gate__shell { padding: 16px; gap: 16px; border-radius: var(--mf-radius); }
    .mf-saved-location-panel,.mf-guest-location-panel { padding: 14px; }
    .mf-location-panel-heading { align-items: flex-start; flex-direction: column; }
    .mf-saved-location-grid { grid-template-columns: 1fr; }
    .mf-no-saved-location { grid-template-columns: auto 1fr; }
    .mf-no-saved-location .mf-primary-button { grid-column: 1 / -1; width: 100%; }
    .mf-location-map--gate { height: 180px; }
    .mf-location-gate__actions { align-items: stretch; flex-direction: column; }
    .mf-location-gate__actions .mf-primary-button { width: 100%; }
    .mf-campaign-grid { grid-template-columns: 1fr; }
    .mf-campaign-card { min-height: 190px; padding: 20px; }
    .mf-campaign-card__content { max-width: 86%; }
    .mf-app-download { padding: 16px 0 14px; }
    .mf-app-download__card { min-height: 0; padding: 16px 14px; gap: 14px; }
    .mf-app-download__actions { display: grid; grid-template-columns: 1fr; }
    .mf-app-download .mf-store-button { width: 100%; }
}

/* Marketplace advertising placements */
.mf-ad-placement {
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-muted);
    box-shadow: var(--mf-shadow);
}
.mf-ad-placement__link { display: block; }
.mf-ad-placement picture,
.mf-ad-placement img { display: block; width: 100%; }
.mf-ad-placement img { aspect-ratio: 4 / 1; object-fit: cover; }
.mf-ad-placement__link:focus-visible { outline: 3px solid var(--mf-brand); outline-offset: -3px; }
@media (max-width: 640px) {
    .mf-ad-placement { margin-bottom: 18px; border-radius: var(--mf-radius); }
    .mf-ad-placement img { aspect-ratio: 2 / 1; }
}

/* Brand mark: an uploaded logo when there is one, the site name otherwise.
   .is-fallback is set server-side when no logo file exists, and by the script
   when the image fails to load in the browser. */
.mf-brand__mark { display: inline-flex; align-items: center; gap: 8px; }
.mf-brand__logo { display: block; max-height: 34px; max-width: 190px; width: auto; object-fit: contain; }
.mf-brand__text { display: none; color: var(--mf-ink); font-size: 24px; font-weight: 800; letter-spacing: -.7px; white-space: nowrap; }
.mf-brand__mark.is-fallback .mf-brand__text { display: inline; }
.mf-brand__mark.is-fallback .mf-brand__logo { display: none; }
@media (max-width: 767.98px) {
    .mf-brand__logo { max-height: 28px; }
    .mf-brand__text { font-size: 19px; }
}

/* Announcement bar. Colours are set inline from Settings; everything that does
   not change lives here. */
.mf-announcement { position: fixed; inset: 0 0 auto; width: 100%; z-index: 10000; font-size: 12.5px; font-weight: 700; line-height: 1.7; }
.mf-announcement__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding-block: 9px; padding-inline: 46px; text-align: center; }
.mf-announcement__close {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
    background: transparent; color: inherit; opacity: .8;
    font-size: 22px; font-weight: 400; line-height: 1; cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease;
}
.mf-announcement__close:hover, .mf-announcement__close:focus-visible { opacity: 1; background: rgba(255,255,255,.2); outline: none; }
.mf-announcement__text { display: inline-block; }
.mf-announcement__link { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.mf-announcement__link:hover { opacity: .85; }
@media (max-width: 767.98px) {
    .mf-announcement { font-size: 11.5px; }
    .mf-announcement__inner { flex-direction: column; gap: 6px; }
}

/* Delivery-address gate — compact.
   It used to open with an eyebrow, a heading and a paragraph above a
   full-height map, which on a phone meant scrolling past the whole thing to
   reach the button that actually shows the restaurants. */
.mf-location-gate { padding-block: 18px 8px; }
.mf-location-gate__intro { margin-bottom: 14px; }
.mf-location-gate__intro h2 { margin: 0 0 4px; font-size: 18px; font-weight: 850; letter-spacing: -.3px; }
.mf-location-gate__intro p { margin: 0; color: var(--mf-ink-3); font-size: 12px; line-height: 1.7; }


@media (max-width: 767.98px) {
    .mf-searchbar { padding-block: 10px; }
    .mf-location-gate { padding-block: 14px 6px; }
    .mf-location-gate__intro h2 { font-size: 16px; }
}

/* Decorative blobs behind the install card: pure cost at this size. */
.mf-app-download__orb { display: none; }

/* ─── Full-screen delivery-point picker ─────────────────────────────────
   The map is the screen, not a panel on it. Everything else floats over
   it: search at the top, locate button above the sheet, and a bottom
   sheet holding saved addresses and the confirm button, all within thumb
   reach on a phone. */
.mf-locpicker { position: relative; }
.mf-locpicker__form { position: relative; display: block; }
.mf-locpicker__map {
    width: 100%;
    /* Fills what is left under the fixed header. dvh so the bar on mobile
       Safari collapsing does not leave a gap under the sheet. */
    height: calc(100dvh - 112px - var(--mf-announcement-h, 0px));
    min-height: 420px;
    background: var(--mf-muted-2);
}

/* Centre pin. The map pans beneath it, so a point is always chosen. */
.mf-locpicker__crosshair {
    position: absolute; top: 50%; inset-inline-start: 50%;
    transform: translate(-50%, -100%);
    z-index: 420; pointer-events: none;
    color: var(--mf-brand); font-size: 34px;
    text-shadow: 0 3px 10px rgba(0,0,0,.28);
}

.mf-locpicker__top {
    position: absolute; top: 14px; inset-inline: 14px; z-index: 430;
    display: flex; align-items: center; gap: 9px;
}
.mf-locpicker__back {
    flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 999px; background: #fff; color: var(--mf-ink) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.14); font-size: 19px;
}
.mf-locpicker__search {
    position: relative; flex: 1 1 auto; min-width: 0; height: 46px;
    display: flex; align-items: center;
    border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.mf-locpicker__search > .fa-search {
    position: absolute; inset-inline-start: 16px; color: var(--mf-ink-4);
}
.mf-locpicker__search input {
    width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
    padding-inline: 44px 16px; border-radius: 999px;
    color: var(--mf-ink); font-size: 13px; font-family: inherit;
}

.mf-locpicker__locate {
    position: absolute; inset-inline-end: 16px; z-index: 430;
    /* Sits just above the sheet rather than at a fixed distance from the
       bottom, so it never ends up underneath it. */
    bottom: calc(var(--mf-locpicker-sheet-h, 220px) + 14px);
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 999px; background: #fff; color: #018e72;
    box-shadow: 0 2px 10px rgba(0,0,0,.16); font-size: 17px; cursor: pointer;
}
.mf-locpicker__locate:hover { background: var(--mf-brand-soft); }

.mf-locpicker__sheet {
    position: absolute; inset-inline: 0; bottom: 0; z-index: 430;
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: var(--mf-radius-lg) var(--mf-radius-lg) 0 0;
    background: #fff; box-shadow: 0 -4px 22px rgba(0,0,0,.10);
}
.mf-locpicker__sheet h2 { margin: 0; font-size: 16px; font-weight: 850; letter-spacing: -.3px; }

.mf-locpicker__saved { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.mf-locpicker__saved::-webkit-scrollbar { display: none; }
.mf-locpicker__saved-chip {
    flex: 0 0 auto; max-width: 230px; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 1px solid var(--mf-line); border-radius: 999px;
    background: #fff; color: var(--mf-ink) !important;
}
.mf-locpicker__saved-chip.is-default { border-color: var(--mf-brand-border); background: var(--mf-brand-soft); }
.mf-locpicker__saved-chip > i { flex: 0 0 auto; color: #018e72; }
.mf-locpicker__saved-chip span { min-width: 0; display: flex; flex-direction: column; }
.mf-locpicker__saved-chip strong { font-size: 12px; font-weight: 800; }
.mf-locpicker__saved-chip small { color: var(--mf-ink-3); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mf-locpicker__hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--mf-ink-3); font-size: 11px; line-height: 1.6; }
.mf-locpicker__hint i { color: var(--mf-ink-4); }

.mf-locpicker__actions { display: flex; align-items: center; gap: 9px; }
.mf-locpicker__confirm { flex: 1 1 auto; min-height: 48px; }

@media (max-width: 767.98px) {
    .mf-locpicker__map { height: calc(100dvh - 66px - var(--mf-announcement-h, 0px)); min-height: 380px; }
    .mf-locpicker__actions { flex-direction: column; align-items: stretch; }
    .mf-locpicker__actions .mf-secondary-button { width: 100%; justify-content: center; }
}

/* Not defined anywhere in the marketplace stylesheet; the picker's field
   label needs it to stay available to screen readers without showing. */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Quick-filter chips, above the listing.
   A horizontal rail rather than a wrapping block: four filters should cost
   one line of height, and on a phone they scroll instead of stacking. */
.mf-quickfilters { padding-top: 14px; }
.mf-quickfilters__row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mf-quickfilters__row::-webkit-scrollbar { display: none; }
.mf-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    min-height: 34px; padding: 0 13px;
    border: 1px solid var(--mf-line); border-radius: 999px;
    background: #fff; color: var(--mf-ink-2) !important;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
    transition: .16s ease;
}
.mf-chip:hover { border-color: var(--mf-line-2); }
.mf-chip i { color: var(--mf-ink-4); font-size: 11px; }
.mf-chip.is-active {
    border-color: var(--mf-brand-border); background: var(--mf-brand-soft);
    color: #018e72 !important; font-weight: 800;
}
.mf-chip.is-active i { color: #018e72; }
.mf-chip--clear { color: var(--mf-danger) !important; }
.mf-chip--clear i { color: var(--mf-danger); }

/* Section title used where the heading is the whole header. */
.mf-section-title--xl { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; letter-spacing: -.6px; line-height: 1.4; }

/* Top-of-home ad slot. One card, full width, clearly labelled — a paid
   position above the organic lists has to announce itself. */
.mf-hero-ad { padding-top: 14px; }
.mf-hero-ad__label { margin-bottom: 7px; }
.mf-restaurant-grid--single { grid-template-columns: 1fr; }
