: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 */
.mf-hero { position: relative; overflow: hidden; background: var(--mf-surface); }
.mf-hero__glow { position: absolute; top: -120px; inset-inline-end: -60px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(3,206,164,.10), rgba(3,206,164,0) 68%); pointer-events: none; }
.mf-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 56px; align-items: center; min-height: 510px; padding-block: 60px 52px; }
.mf-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--mf-brand-border); border-radius: 999px; background: var(--mf-brand-soft); color: #018e72; font-size: 12px; font-weight: 800; }
.mf-kicker .fa-circle { font-size: 7px; color: var(--mf-brand); }
.mf-hero h1 { margin: 20px 0 12px; color: var(--mf-ink); font-size: clamp(38px, 4.4vw, 62px); line-height: 1.24; letter-spacing: -1.7px; font-weight: 900; }
.mf-hero h1 span { display: block; color: var(--mf-brand); }
.mf-hero__lead { max-width: 650px; margin: 0 0 24px; color: var(--mf-ink-3); font-size: 16px; line-height: 2; }
.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: 720px; }
.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: 56px; 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); }
.mf-trust-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--mf-ink-3); font-size: 11.5px; }
.mf-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.mf-trust-row i { color: var(--mf-brand); }
.mf-hero__visual { position: relative; max-width: 540px; width: 100%; justify-self: end; }
.mf-hero-photo { aspect-ratio: 4/3; overflow: hidden; border-radius: 30px; background: var(--mf-muted-2); box-shadow: 0 18px 48px rgba(0,0,0,.10); }
.mf-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.mf-hero-float-card { position: absolute; inset-inline-start: 18px; bottom: -18px; min-width: 235px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid rgba(232,232,227,.75); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 12px 32px rgba(0,0,0,.12); backdrop-filter: blur(10px); }
.mf-hero-float-card img { width: 40px; height: 40px; object-fit: cover; border-radius: 11px; border: 1px solid var(--mf-line); }
.mf-hero-float-card span { min-width: 0; flex: 1; }
.mf-hero-float-card small, .mf-hero-float-card strong { display: block; }
.mf-hero-float-card small { color: var(--mf-ink-4); font-size: 9.5px; margin-bottom: 2px; }
.mf-hero-float-card strong { color: var(--mf-ink); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-hero-float-card > i { color: var(--mf-brand); }
.mf-hero-placeholder { min-height: 360px; display: grid; place-content: center; text-align: center; border: 1px solid var(--mf-line); border-radius: 30px; background: linear-gradient(135deg, #fff, var(--mf-brand-soft)); }
.mf-hero-placeholder .mf-brand { margin-inline: auto; font-size: 38px; }
.mf-hero-placeholder p { max-width: 280px; margin: 14px auto 0; color: var(--mf-ink-3); font-size: 13px; line-height: 1.9; }

/* 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; }
.mf-restaurant-card { min-width: 0; overflow: hidden; border: 1px solid var(--mf-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.02); transition: .22s ease; }
.mf-restaurant-card:hover { border-color: var(--mf-line-2); box-shadow: var(--mf-shadow-hover); transform: translateY(-2px); }
.mf-restaurant-card__media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--mf-muted-2); }
.mf-restaurant-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mf-restaurant-card:hover .mf-restaurant-card__media > img { transform: scale(1.035); }
.mf-restaurant-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.16), transparent 55%); pointer-events: none; }
.mf-restaurant-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mf-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 9.5px; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.mf-badge--featured { color: #018e72; background: rgba(255,255,255,.94); }
.mf-badge--open { color: #0b7d52; background: #e9fbf3; }
.mf-badge--closed { color: #b52d2a; background: #fff0ef; }
.mf-restaurant-card__body { padding: 12px 13px 13px; }
.mf-restaurant-card__top { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.mf-restaurant-card__logo { width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--mf-line); border-radius: 12px; background: #fff; }
.mf-restaurant-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.mf-restaurant-card__identity { min-width: 0; }
.mf-restaurant-card__identity h3 { margin: 0 0 4px; font-size: 13px; font-weight: 850; line-height: 1.45; }
.mf-restaurant-card__identity h3 a { color: var(--mf-ink); }
.mf-restaurant-card__identity p { margin: 0; color: var(--mf-ink-3); font-size: 10px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-restaurant-card__rating { min-width: 54px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; color: var(--mf-ink-2); font-size: 10px; direction: rtl; }
.mf-restaurant-card__rating .fa-star { color: var(--mf-star); }
.mf-restaurant-card__rating strong { font-size: 11px; }
.mf-restaurant-card__rating small { color: var(--mf-ink-4); font-size: 8.5px; }
.mf-restaurant-card__rating > span { color: var(--mf-ink-4); font-size: 8.5px; white-space: nowrap; }
.mf-matched-items { margin-top: 11px; padding: 7px 8px; border-radius: 10px; background: var(--mf-brand-soft); }
.mf-matched-item { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 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-restaurant-card__meta { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; min-height: 43px; }
.mf-restaurant-card__meta > span { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 5px; color: var(--mf-ink-3); font-size: 9.5px; }
.mf-restaurant-card__meta i { color: var(--mf-ink-4); text-align: center; }
.mf-restaurant-card__meta strong { min-width: 0; text-align: left; color: var(--mf-ink-2); font-size: 9.5px; font-weight: 700; }
.mf-restaurant-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--mf-line); }
.mf-card-link { display: inline-flex; align-items: center; gap: 5px; color: #018e72 !important; font-size: 10.5px; font-weight: 800; }
.mf-favorite-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--mf-line); border-radius: 10px; background: #fff; color: var(--mf-ink-3) !important; cursor: pointer; }
.mf-favorite-button:hover { border-color: #ffd2d0; background: #fff5f5; color: var(--mf-danger) !important; }
.mf-favorite-button.is-active { color: var(--mf-danger) !important; background: #fff5f5; border-color: #ffd2d0; }

/* 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-hero__grid { gap: 34px; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); }
    .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-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-hero__grid { grid-template-columns: 1fr; min-height: auto; padding-block: 38px 50px; }
    .mf-hero__visual { max-width: 600px; justify-self: center; order: 2; }
    .mf-hero__content { order: 1; }
    .mf-hero h1 { font-size: clamp(38px, 8vw, 54px); }
    .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-hero__grid { padding-block: 26px 36px; gap: 30px; }
    .mf-kicker { font-size: 10px; }
    .mf-hero h1 { margin-top: 14px; font-size: 35px; letter-spacing: -1px; }
    .mf-hero__lead { font-size: 13px; line-height: 1.9; margin-bottom: 18px; }
    .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-trust-row { gap: 11px 14px; font-size: 10px; }
    .mf-hero-photo { border-radius: 22px; }
    .mf-hero-float-card { inset-inline-start: 12px; bottom: -14px; min-width: 210px; }
    .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: 13px; }
    .mf-restaurant-card { display: grid; grid-template-columns: 126px minmax(0,1fr); border-radius: 16px; }
    .mf-restaurant-card__media { aspect-ratio: auto; height: 100%; min-height: 185px; }
    .mf-restaurant-card__body { padding: 10px; }
    .mf-restaurant-card__top { grid-template-columns: 38px minmax(0,1fr); }
    .mf-restaurant-card__logo { width: 38px; height: 38px; }
    .mf-restaurant-card__rating { grid-column: 2; justify-self: start; margin-top: 3px; }
    .mf-restaurant-card__meta { margin-top: 8px; }
    .mf-restaurant-card__meta > span:nth-child(n+3) { display: none; }
    .mf-restaurant-card__footer { margin-top: 8px; }
    .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: 112px minmax(0,1fr); }
    .mf-restaurant-card__media { min-height: 176px; }
    .mf-restaurant-card__identity h3 { font-size: 12px; }
    .mf-restaurant-card__meta strong { font-size: 8.5px; }
    .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: 360px; 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; }
.mf-campaign-card { position: relative; min-height: 206px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; overflow: hidden; padding: 24px; 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: 150px; height: 150px; inset: -45px auto auto 36px; border-radius: 50%; background: rgba(255,255,255,.09); }
.mf-campaign-card__content { position: relative; z-index: 1; max-width: 78%; }
.mf-campaign-card__eyebrow { font-size: .73rem; font-weight: 800; opacity: .8; }
.mf-campaign-card h3 { margin: 7px 0 7px; color: inherit; font-size: 1.25rem; font-weight: 900; line-height: 1.55; }
.mf-campaign-card p { margin: 0 0 12px; color: inherit; font-size: .8rem; line-height: 1.8; opacity: .82; }
.mf-campaign-code { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 9px; border: 1px dashed rgba(255,255,255,.42); border-radius: var(--mf-radius-sm); }
.mf-campaign-code span { font-size: .66rem; opacity: .75; }
.mf-campaign-code strong { font-size: .78rem; letter-spacing: .04em; }
.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__action:hover { color: var(--mf-brand-hover); }
.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); }

.mf-app-download { padding: 46px 0 28px; background: var(--mf-surface); }
.mf-app-download__card { position: relative; min-height: 224px; display: grid; grid-template-columns: minmax(0,1.25fr) auto; gap: 30px; align-items: center; overflow: hidden; padding: 34px 42px; 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: 9px 0 8px; color: var(--mf-card); font-size: clamp(1.45rem,2.4vw,2rem); font-weight: 900; line-height: 1.55; }
.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: 300px; }
    .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: 30px 0 20px; }
    .mf-app-download__card { min-height: 0; padding: 26px 20px; gap: 22px; }
    .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; }
}
