/*
 * store.css - the market page (store/index.html).
 *
 *   1. frame        hero, search bar, tabs, rails (featured + categories), campaign note
 *   2. cards        the image-first adspot card, skeletons, the seller card, empty / error states
 *   3. map view     Grid | Map: the map beside a compact list, search, near me, map key, pins and clusters, the pin card, the phone bottom sheet
 *   4. dialogs      filters and seller dialogs (built on .ui-modal)
 *   5. narrow       phones and small tablets
 *
 * Reading order of a card: what it is, where, how popular, what it costs, whether it is free, who sells it (see section 2).
 *
 * Colours, radius, shadows and spacing come from /css/adspot-ui.css (--ui-*). Class names never use ad / ads / banner / promo / sponsor.
 */

.mk svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk [hidden] { display: none !important; }
.mk-wrap { padding-top: 20px; padding-bottom: 72px; }
.mk-sentinel { height: 1px; margin-top: -1px; }
.mk--mapview .mk-sentinel, .mk--sellers .mk-sentinel, .mk--guest .mk-sentinel { margin-top: -1px; }
.mk-page { --mk-ink-glass: rgba(18, 22, 18, .55); --mk-ctl-shadow: 0 1px 2px rgba(24, 34, 24, .08), 0 6px 18px -6px rgba(24, 34, 24, .28); }

/* ================================================================== 1. frame */
/* header: a short headline, one line of copy and two quiet text buttons on a soft wash; the search bar below it sits in normal flow */
.mk { background-image: radial-gradient(880px 300px at 10% -60px, #e4ede1 0%, rgba(228, 237, 225, 0) 72%), radial-gradient(640px 260px at 96% -70px, #e8edf6 0%, rgba(232, 237, 246, 0) 72%); background-repeat: no-repeat; }
.mk-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0; padding: 18px 0 20px; }
.mk-head__text { min-width: 0; flex: 1 1 420px; }
.mk-head__title { max-width: 24ch; margin: 0; font-family: var(--ui-font-head); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: .2px; color: var(--ui-ink); }
.mk-head__sub { max-width: 62ch; margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ui-muted); }
.mk-head__links { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.mk .mk-link { appearance: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ui-text); font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--ui-ease), color var(--ui-ease); }
.mk .mk-link:hover { background: rgba(255, 255, 255, .85); color: var(--ui-ink); }
.mk .mk-link svg { width: 18px; height: 18px; stroke-width: 1.8; color: var(--ui-sage-dark); }
.mk .mk-link--cta { color: var(--ui-sage-dark); }
.mk .mk-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ui-sage-ring); }

/* first visit only: a small chip that points at the button */
.mk-nudge {
    position: static; order: -1; margin-right: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 4px; border-radius: 999px; white-space: nowrap;
    background: #fff; color: var(--ui-ink); border: 1px solid var(--ui-border); box-shadow: 0 10px 24px -10px rgba(20, 34, 18, .4); animation: mk-nudge-in .45s .6s cubic-bezier(.2, .8, .2, 1) both;
}
.mk-nudge__go { appearance: none; padding: 6px 8px 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ui-sage-dark); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mk-nudge__go:hover { color: var(--ui-ink); text-decoration: underline; }
.mk-nudge__x { appearance: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ui-muted); cursor: pointer; }
.mk-nudge__x:hover { background: var(--ui-sage-soft); color: var(--ui-ink); }
.mk-nudge__x svg { width: 14px; height: 14px; stroke-width: 2; }
@media (max-width: 900px) {
    .mk-nudge { position: static; margin-top: 2px; }
    .mk-nudge::before { display: none; }
}
@keyframes mk-nudge-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* the guide (modal) */
.mk-guide { width: min(900px, 100%); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 2px 6px rgba(24, 34, 24, .1), 0 30px 80px rgba(24, 34, 24, .32); }
.mk-guide__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 30px 22px; color: #fff; background: radial-gradient(80% 140% at 0% 0%, rgba(150, 184, 144, .5), rgba(150, 184, 144, 0) 60%), linear-gradient(125deg, #4a6747, #587654 55%, #6a8a66); }
.mk-guide__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.mk-guide__title { margin: 0; font-family: var(--ui-font-head); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: .3px; color: #fff; }
.mk-guide__sub { max-width: 52ch; margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.mk-guide__head .ui-modal__x { margin: -6px -10px 0 0; color: #fff; background: rgba(255, 255, 255, .14); }
.mk-guide__head .ui-modal__x:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.mk-guide__body { flex: 1 1 auto; overflow-y: auto; padding: 24px 30px 8px; background: linear-gradient(180deg, #f6f8f5, #fff 160px); }
.mk-guide__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: gs; }
.mk-gstep { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 18px 20px; border: 1px solid var(--ui-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(24, 34, 24, .04), 0 8px 22px -14px rgba(24, 34, 24, .22); counter-increment: gs; }
/* the number of the step, with a quiet dotted line running on towards the next card (no arrows) */
.mk-gstep__n { order: -1; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 0; line-height: 0; }
.mk-gstep__n::before { content: counter(gs); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ui-sage-dark); color: #fff; font-size: 14px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 4px var(--ui-sage-soft); }
.mk-gstep__n::after { content: ""; flex: 1 1 auto; height: 0; border-top: 2px dotted var(--ui-sage-line); }
.mk-gstep:last-child .mk-gstep__n::after { display: none; }
.mk-gstep__art { align-self: stretch; width: 100%; height: 108px; margin: 0 0 10px; padding: 8px; box-sizing: border-box; border-radius: 12px; background: var(--ui-tint); }
.mk-guide svg { stroke-width: 1.75; }
.mk-gstep__h { font-size: 16.5px; font-weight: 800; line-height: 1.3; color: var(--ui-ink); }
.mk-gstep__t { font-size: 14px; line-height: 1.5; color: var(--ui-muted); }
.mk-guide__h { margin: 26px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ui-muted); }
.mk-gloss { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.mk-gloss__c { grid-column: span 2; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-content: start; padding: 14px 16px; border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; }
.mk-gloss__c:nth-child(n+4) { grid-column: span 3; }
.mk-gloss__ic { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ui-sage-soft); color: var(--ui-sage-dark); }
.mk-gloss__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.mk-gloss dt { align-self: end; font-size: 14.5px; font-weight: 800; color: var(--ui-ink); }
.mk-gloss dd { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ui-muted); }
.mk-guide__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 30px; border-top: 1px solid var(--ui-line); background: #fff; }
.mk-guide__foot .ui-btn { min-height: 46px; border-radius: 999px; padding-inline: 26px; }
.mk-guide__foot .ui-btn:not(.ui-btn--ghost) { box-shadow: 0 8px 18px -8px rgba(60, 90, 56, .7); }

.mk-bar {
    position: sticky;
    top: var(--ui-toolbar-h);
    z-index: 50;
    margin: 0 calc(-1 * var(--ui-gutter)) 6px;
    padding: 8px var(--ui-gutter);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color var(--ui-ease), box-shadow var(--ui-ease);
}
.mk-bar.is-stuck { background: var(--ui-bg); border-bottom-color: var(--ui-line); box-shadow: 0 8px 16px -14px rgba(24, 34, 24, .35); }
.mk-bar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.mk-find { position: relative; display: flex; flex: 1 1 520px; align-items: stretch; min-width: 0; min-height: 58px; border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(24, 34, 24, .06), 0 10px 26px -12px rgba(24, 34, 24, .3); transition: box-shadow var(--ui-ease), border-color var(--ui-ease); }
.mk-find:focus-within { border-color: var(--ui-sage); box-shadow: 0 0 0 4px var(--ui-sage-ring), 0 10px 26px -12px rgba(24, 34, 24, .3); }
.mk-find__seg { position: relative; display: flex; flex: 1 1 0; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 7px 20px; border-radius: 999px; cursor: text; transition: background-color var(--ui-ease); }
.mk-find__seg--where { flex: 1.7 1 0; padding-left: 22px; }
.mk-find__seg--cat, .mk-find__seg--date { cursor: pointer; }
.mk-find__seg + .mk-find__seg::before, .mk-find__near + .mk-find__seg::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--ui-line); }
.mk-find__seg:hover { background: var(--ui-tint); }
.mk-find__seg:focus-within { background: var(--ui-tint); }
.mk-find__seg > svg { flex: none; width: 20px; height: 20px; color: var(--ui-sage-dark); }
.mk-find__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.mk-find__k { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ui-muted); }
.mk .mk-find__in { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; height: 24px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ui-ink); font: inherit; font-size: 15px; font-weight: 600; text-overflow: ellipsis; outline: none; }
.mk .mk-find .mk-find__in:focus, .mk .mk-find .mk-find__in:focus-visible { outline: none !important; box-shadow: none !important; }
.mk .mk-find__in::placeholder { color: #8b928a; font-weight: 500; }
.mk .mk-find__in::-webkit-search-cancel-button { cursor: pointer; }
.mk .mk-find__in:invalid, .mk .mk-find__in[value=""] { color: var(--ui-ink); }
.mk-find__near { appearance: none; position: relative; z-index: 1; flex: none; display: grid; place-items: center; align-self: center; width: 36px; height: 36px; margin: 0 6px 0 -6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ui-sage-dark); cursor: pointer; transition: background-color var(--ui-ease), color var(--ui-ease); }
.mk-find__near svg { width: 19px; height: 19px; }
.mk-find__near:hover { background: var(--ui-sage-soft); }
.mk-find__near.is-on { background: var(--ui-sage-dark); color: #fff; }
.mk-find__near.is-busy { opacity: .6; }
.mk .mk-find__near:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ui-sage-ring); }
.mk-pillbtn { flex: none; min-height: 58px; box-shadow: 0 1px 2px rgba(24, 34, 24, .06), 0 10px 26px -12px rgba(24, 34, 24, .3); border-color: var(--ui-border); background: #fff; padding: 0 22px; border-radius: 999px; font-size: 15px; }
.mk-pillbtn svg { width: 18px; height: 18px; }
.mk-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--ui-sage); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.mk-tabsrow { margin: 6px 0 20px; scroll-margin-top: 150px; }
.mk-tabs { display: inline-flex; max-width: 100%; margin: 0; }
.mk-tabs .ui-tab { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background-color var(--ui-ease), color var(--ui-ease), box-shadow var(--ui-ease); }
.mk-tabs .ui-tab:hover:not(.is-active) { background: var(--ui-tint); color: var(--ui-ink); }
.mk-tabs .ui-tab.is-active, .mk-tabs .ui-tab[aria-selected="true"] { background: var(--ui-ink); color: #fff; font-weight: 700; box-shadow: none; }
.mk-tabs.ui-tabs--pill { gap: 2px; padding: 4px; border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(24, 34, 24, .05); }
.mk--sellers .mk-head, .mk--guest .mk-head { margin-bottom: 10px; }
.mk--sellers .mk-bar, .mk--sellers .mk-feat, .mk--sellers .mk-cats, .mk--geo .mk-feat, .mk--guest .mk-bar, .mk--guest .mk-tabsrow, .mk--guest .mk-cats, .mk--guest .mk-feat, .mk--guest .mk-listhead, .mk--guest .mk-map, .mk--guest .mk-link--cta { display: none; }
.mk--sellers .mk-tabsrow { margin-top: 0; }

.mk-campaign {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; padding: 14px 18px;
    border: 1px solid var(--ui-sage-line); border-radius: 16px; background: var(--ui-sage-soft); font-weight: 600;
}
.mk-campaign > span { flex: 1 1 260px; min-width: 0; }
.mk-campaign .ui-btn { border-radius: 999px; }

/* section heads */
.mk-sec { margin: 0 0 26px; }
.mk-sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0 0 10px; }
.mk-sec__title { margin: 0; font-family: var(--ui-font-head); font-size: 22px; font-weight: 700; letter-spacing: .2px; color: var(--ui-ink); }
.mk-sec__sub { min-width: 0; font-size: 13px; color: var(--ui-muted); }
.mk-rail__nav { display: none; margin-left: auto; gap: 8px; align-self: center; }
.mk-rail__nav .ui-iconbtn { width: 36px; height: 36px; border-radius: 50%; }
.mk-rail__nav svg { width: 18px; height: 18px; }
@media (hover: hover) and (min-width: 900px) { .mk-rail__nav { display: flex; } }

/* featured: big cards in a swipeable row */
.mk-rail {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--ui-gutter)); padding: 4px var(--ui-gutter) 14px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--ui-gutter); scrollbar-width: none;
}
.mk-rail::-webkit-scrollbar { display: none; }
.mk-rail > * { scroll-snap-align: start; }

/* categories: one quiet row of pills (the venue or audience the adspot belongs to) */
.mk-cats {
    display: flex; align-items: center; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 4px calc(-1 * var(--ui-gutter)) 10px; padding: 4px var(--ui-gutter) 8px; scrollbar-width: none;
}
.mk-cats::-webkit-scrollbar { display: none; }
.mk-cats__l { flex: none; margin-right: 2px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ui-muted); }
.mk-cc {
    appearance: none; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; box-sizing: border-box;
    border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; color: var(--ui-text); font: inherit; cursor: pointer;
    transition: background-color var(--ui-ease), border-color var(--ui-ease), color var(--ui-ease), transform var(--ui-ease), box-shadow var(--ui-ease);
}
.mk-cc__ring { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; padding: 0; background: rgba(106, 138, 102, .14); background: color-mix(in srgb, var(--c) 15%, #fff); }
.mk-cc__in { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--c); transition: background-color var(--ui-ease), color var(--ui-ease); }
.mk-cc__in svg { width: 17px; height: 17px; stroke-width: 1.9; }
.mk-cc__label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ui-text); }
.mk-cc:hover { border-color: var(--ui-border-strong); background: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(24, 34, 24, .4); }
.mk-cc.is-active { border-color: var(--ui-ink); background: var(--ui-ink); box-shadow: none; }
.mk-cc.is-active .mk-cc__in { background: var(--c); color: #fff; }
.mk-cc.is-active .mk-cc__label { color: #fff; font-weight: 700; }
.mk .mk-cc:focus, .mk .mk-cc:focus-visible { outline: none !important; }
.mk .mk-cc:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring); }

.mk-list { min-width: 0; }
.mk-listhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 36px; margin: 0 0 14px; }
.mk-summary { flex: 1 1 260px; min-width: 0; font-size: 15px; line-height: 1.4; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.mk-summary strong { font-size: 17px; font-weight: 800; color: var(--ui-ink); }
.mk-count__sub { color: var(--ui-muted); font-size: 13px; }
.mk-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--ui-muted); }
.mk-sort__l { font-weight: 600; }
.mk-sort .ui-select { width: auto; min-width: 168px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ui-ink); }
#mk_saved_btn[aria-pressed="true"] { background: #fdecef; border-color: #e8a5b2; color: #a8324b; }
#mk_saved_btn svg { fill: none; }
#mk_saved_btn[aria-pressed="true"] svg { fill: currentColor; }
.mk-chips { flex: 1 1 100%; order: 3; min-width: 0; align-items: center; }
.mk-chips .ui-chip { gap: 2px; min-height: 30px; padding: 2px 4px 2px 12px; }
.mk-chip__x {
    appearance: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 17px; line-height: 1; cursor: pointer;
}
.mk-chip__x:hover { background: rgba(255, 255, 255, .8); }

/* ================================================================== 2. cards */
/*
 * The card answers one question: what am I buying, and for how much?
 * top    a drawing of the thing (screen / poster / app), availability, save heart, venue type
 * body   what it is (type, shape, slot) / title / where / how popular / price + worked example / seller + Preview
 */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; gap: 20px; }
.mk-grid > * { min-width: 0; }
.mk-grid > .mk-state { grid-column: 1 / -1; }

.mk-skelcard { min-height: 380px; border-radius: 16px; }
.mk-skelfeat { flex: none; width: 300px; min-height: 420px; border-radius: 18px; scroll-snap-align: start; }

.mk-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--ui-line); border-radius: 16px; background: var(--ui-card);
    box-shadow: 0 1px 2px rgba(24, 34, 24, .04), 0 4px 14px -8px rgba(24, 34, 24, .12);
    transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease, border-color .22s ease;
    animation: mk-rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes mk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
    .mk-card:hover { transform: translateY(-3px); border-color: var(--ui-sage-line); box-shadow: 0 2px 4px rgba(24, 34, 24, .05), 0 18px 32px -16px rgba(24, 34, 24, .24); }
    .mk-card:hover .mk-photo { transform: scale(1.04); }
}
.mk-card:active { transform: translateY(-1px) scale(.992); transition-duration: .08s; }
.mk-card.is-linked { border-color: var(--ui-sage); box-shadow: var(--ui-shadow); }
.mk-card--feat { flex: none; width: 300px; scroll-snap-align: start; }
.mk-card.is-locked .mk-tile { filter: grayscale(.6); }

/* featured: the reason comes first */
.mk-why {
    display: flex; align-items: center; gap: 8px; height: 32px; box-sizing: border-box; padding: 0 14px; overflow: hidden; white-space: nowrap;
    border-radius: 17px 17px 0 0; background: linear-gradient(90deg, #fbf0dc, #fdf6e8); color: #6b4a07; font-size: 12.5px; line-height: 1.3;
}
.mk-why span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mk-why strong { font-weight: 800; }
.mk-why span { color: #8a6b27; }
.mk-why .mk-ico { width: 14px; height: 14px; }
.mk-why .mk-ico svg { width: 14px; height: 14px; }
.mk-card--feat .mk-card__media { border-radius: 0; }
.mk-card--feat { box-shadow: 0 2px 4px rgba(24, 34, 24, .06), 0 14px 28px -12px rgba(24, 34, 24, .25); }

/* the picture: the seller's photo of the location, full width. No photo yet: a branded placeholder tile */
.mk-card__media { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 15px 15px 0 0; background: var(--ui-tint); }
.mk-card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 26, 20, 0), rgba(20, 26, 20, .46)); opacity: 0; transition: opacity .3s ease; }
.mk-card__media:has(.mk-tile.has-photo)::after { opacity: 1; }
.mk-tile {
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
    background:
        radial-gradient(80% 70% at 22% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 68%),
        linear-gradient(155deg, rgba(var(--mk-rgb, 106, 138, 102), .30), rgba(var(--mk-rgb, 106, 138, 102), .10) 72%),
        #f3f5f2;
}
/* a faint dotted weave behind the drawing, so an empty picture still looks designed */
.mk-tile::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(var(--mk-rgb, 106, 138, 102), .28) 1.2px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.mk-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgb(var(--mk-rgb, 106, 138, 102)); transition: opacity .3s ease; }
.mk-ph::before { content: ""; position: absolute; left: 0; right: 0; top: 58%; bottom: 0; border-radius: 50% 50% 0 0 / 28% 28% 0 0; background: rgba(255, 255, 255, .35); }      /* a hill inside the tile: nothing wider than the tile, so nothing is clipped */
.mk-ph__ic { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: rgba(255, 255, 255, .82); box-shadow: 0 1px 2px rgba(24, 34, 24, .05), 0 12px 22px -10px rgba(24, 34, 24, .26); }
.mk-ph__ic svg { width: 34px; height: 34px; stroke-width: 1.7; }
.mk-ph__t { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .2px; color: rgba(43, 47, 42, .6); }
.mk-tile.has-photo .mk-ph { opacity: 0; }
/* the cover is on its way: a shimmer, never the "no photo" drawing. If the picture fails, the drawing is the fallback. */
.mk-tile.is-loading { background: linear-gradient(90deg, #eceee9 25%, #f6f7f5 37%, #eceee9 63%); background-size: 400% 100%; animation: ui-shimmer 1.4s ease infinite; }
.mk-tile.is-loading::before, .mk-tile.is-loading .mk-ph { opacity: 0; }
.mk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.mk-tile.has-photo .mk-photo { opacity: 1; }
.mk-tile--lg .mk-ph__ic { width: 96px; height: 96px; border-radius: 30px; }
.mk-tile--lg .mk-ph__ic svg { width: 50px; height: 50px; }
.mk-tile--lg .mk-ph__t { font-size: 12.5px; }
.mk-media__br { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); }
.mk-photochip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 999px; background: rgba(20, 26, 20, .62); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.mk-photochip .mk-ico, .mk-photochip .mk-ico svg { width: 13px; height: 13px; }

.mk-avail { position: absolute; top: 10px; left: 10px; z-index: 1; border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 2px 8px rgba(24, 34, 24, .22); font-size: 11.5px; font-weight: 700; backdrop-filter: blur(6px); }
.mk-privtag { position: absolute; top: 42px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px 1px 7px; border-radius: 999px; background: rgba(43, 47, 42, .78); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.7; box-shadow: 0 2px 8px rgba(24, 34, 24, .22); }
.mk-privtag .mk-ico, .mk-privtag .mk-ico svg { width: 12px; height: 12px; }
.mk-savednote { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px 10px 14px; border: 1px solid #e8a5b2; border-radius: 14px; background: #fdecef; color: #7a2236; font-size: 14px; line-height: 1.4; }
.mk-savednote[hidden] { display: none; }
.mk-savednote > svg { flex: none; width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.mk-savednote__t { flex: 1 1 auto; min-width: 0; }
.mk-savednote .ui-btn { flex: none; }
@media (max-width: 520px) { .mk-savednote:not([hidden]) { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 6px 10px; } .mk-savednote > svg { margin-top: 2px; } .mk-savednote .ui-btn { grid-column: 2; justify-self: start; } }
.mk-chips.is-ignored { opacity: .5; }
.mk-cats-tag {
    position: absolute; left: 10px; bottom: 10px; z-index: 1; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ui-ink); font-size: 11.5px; font-weight: 700; line-height: 1.6; box-shadow: 0 1px 4px rgba(24, 34, 24, .18);
}
.mk-heart {
    appearance: none; position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ui-ink); cursor: pointer;
    box-shadow: 0 1px 4px rgba(24, 34, 24, .25); transition: transform var(--ui-ease), background-color var(--ui-ease), color var(--ui-ease);
}
.mk-heart:hover { background: #fff; transform: scale(1.06); }
.mk-heart .mk-ico { display: grid; place-items: center; }
.mk-heart svg { width: 19px; height: 19px; stroke-width: 2; fill: none; transition: fill .18s ease, transform .18s ease; }
.mk-heart.is-on { color: #d2455f; }
.mk-heart.is-on svg { fill: currentColor; }
.mk-heart.is-pop svg { animation: mk-pop .42s cubic-bezier(.2, 1.7, .4, 1); }
.mk-heart:active svg { transform: scale(.88); }
.mk-heart:focus-visible { outline: 3px solid var(--ui-sage-ring, rgba(106, 138, 102, .45)); outline-offset: 2px; }
@keyframes mk-pop { 0% { transform: scale(.7); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.mk-heart--btn { position: static; display: inline-flex; align-items: center; gap: 6px; width: auto; height: 40px; padding: 0 16px; border: 1px solid var(--ui-border); background: #fff; box-shadow: none; font: inherit; font-size: 14px; font-weight: 600; border-radius: var(--ui-radius-sm); }
.mk-heart--btn:hover { transform: none; background: #f4f6f3; }

/* body */
.mk-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 14px; }
/* every row has a fixed height (also when it has nothing to say), so cards in a row are exactly the same height */
.mk-what { display: flex; align-items: center; gap: 0 5px; min-width: 0; height: 19px; margin: 0; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ui-sage-dark); }
.mk-what > span { flex: none; }
.mk-what > span:not(:first-child):not(:last-child) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mk-what > span:first-child:not(:last-child) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mk-what > span:last-child { flex: 0 0 auto; }
.mk-what > span:only-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mk-what > span + span::before { content: "\00b7"; margin-right: 6px; color: var(--ui-border-strong); }
.mk-what .mk-ico { width: 15px; height: 15px; margin-right: 1px; color: var(--ui-sage-dark); }
.mk-what .mk-ico svg { width: 15px; height: 15px; }
.mk-card__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
    height: 43px; margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; color: var(--ui-ink);
}
.mk-card__link { color: inherit; text-decoration: none; }
.mk-card__link:hover { color: inherit; }
.mk-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.mk .mk-card__link:focus-visible { outline: none !important; }
.mk-card__link:focus-visible::after { box-shadow: 0 0 0 3px var(--ui-sage-ring); }
.mk-place { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ui-text); }
.mk-grid .mk-place { height: 20px; }
.mk .mk-grid .mk-place[hidden] { display: flex !important; visibility: hidden; }
.mk-place .adspace_card_location { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mk-place .mk-dist { flex: none; margin-left: 2px; color: var(--ui-muted); white-space: nowrap; }
.mk-dist--chip { padding: 2px 10px; border-radius: 999px; background: rgba(20, 26, 20, .62); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.mk-dist--chip:empty { display: none; }
.mk-place .mk-ico { color: var(--ui-sage-dark); }
.mk-place.is-warn, .mk-place.is-warn .mk-ico { color: var(--ui-warn); }
.mk-pop { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ui-muted); }
.mk-grid .mk-pop { height: 18px; }
.mk-pop.is-empty { visibility: hidden; }
.mk-ico { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; color: inherit; }
.mk-ico svg { width: 14px; height: 14px; }

.mk-price { padding-top: 6px; }
.mk-grid .mk-price { min-height: 58px; }
.mk-price__main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.mk-price__main strong { font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ui-ink); font-variant-numeric: tabular-nums; }
.mk-price__main span { font-size: 13px; font-weight: 600; color: var(--ui-muted); cursor: help; }
.mk-price__eg { height: 17px; margin-top: 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.4; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.mk-price--qv .mk-price__eg, .mk-price--info .mk-price__eg { height: auto; white-space: normal; }
.mk-price--none { font-size: 17px !important; color: var(--ui-muted) !important; }

.mk-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; height: 49px; box-sizing: border-box; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ui-line); }
.mk-card__seller {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ui-text);
    font-size: 13px; font-weight: 600; text-decoration: none;
}
.mk-card__seller:hover { color: var(--ui-ink); }
.mk-card__seller:hover .mk-card__sellername { text-decoration: underline; }
.mk-card__seller--none { font-weight: 500; color: var(--ui-muted); }
.mk-card__seller .ui-avatar { width: 26px; height: 26px; font-size: 10.5px; box-shadow: 0 0 0 1px var(--ui-line); }
.mk-card__sellername { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-qvbtn {
    appearance: none; position: relative; z-index: 2; flex: none; min-height: 30px; padding: 4px 12px; border: 1px solid var(--ui-sage-line); border-radius: 999px;
    background: var(--ui-sage-soft); color: var(--ui-sage-dark); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: background-color var(--ui-ease), color var(--ui-ease);
}
.mk-qvbtn:hover { background: var(--ui-sage-dark); border-color: var(--ui-sage-dark); color: #fff; }

/* opened for a campaign (?cid=): a solid, obvious button under each card */
.mk-card__cta { padding: 0 12px 12px; }
.mk-cta { position: relative; z-index: 2; min-height: 44px; border-radius: 12px; background: var(--ui-sage-dark); font-size: 15px; font-weight: 700; box-shadow: 0 2px 6px rgba(40, 60, 40, .3); }
.mk-cta:hover { background: #4a6447; }

/* avatars: the initial sits under the picture, so a missing picture still looks right */
.mk .ui-avatar > * { grid-area: 1 / 1; }
.mk .ui-avatar > img { position: relative; }

/* preview sheet */
.mk-qv { width: min(820px, 100%); overflow: hidden; }
.mk-qv__x { position: absolute; top: 10px; right: 10px; z-index: 5; background: rgba(255, 255, 255, .92); border-radius: 50%; }
.mk-qv__body { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); min-height: 0; overflow-y: auto; }
.mk-qv__media { position: relative; min-height: 280px; background: var(--ui-tint); }
.mk-qv__media .mk-tile { position: absolute; inset: 0; }
.mk-qv { border-radius: 22px; }
.mk-qv__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 28px 24px; }
.mk-qv__title { margin: 0 36px 0 0; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ui-ink); overflow-wrap: anywhere; }
.mk-qv__place { font-size: 14px; }
.mk-price--qv { margin: 0; padding: 12px 14px; border-radius: var(--ui-radius-sm); background: var(--ui-tint); }
.mk-price--qv .mk-price__main strong { font-size: 28px; }
.mk-price--qv .mk-price__eg { font-size: 13px; }
.mk-facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mk-facts__row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ui-text); }
.mk-facts__row .mk-ico { width: 16px; height: 16px; margin-top: 2px; color: var(--ui-sage-dark); }
.mk-facts__row .mk-ico svg { width: 16px; height: 16px; }
.mk-facts__t strong { color: var(--ui-ink); }
.mk-qv__desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 14px; line-height: 1.55; color: var(--ui-text); white-space: pre-line; overflow-wrap: anywhere; }
.mk-qv__seller { align-self: flex-start; }
.mk-qv__sl { font-weight: 500; color: var(--ui-muted); }
.mk-qv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.mk-qv__actions .ui-btn { flex: 1 1 140px; }
.mk-qv .mk-avail { top: 12px; left: 12px; }

/* seller cards (Sellers tab) */
.mk-seller { appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; height: 100%; font: inherit; text-align: left; color: var(--ui-text); }
.mk-seller__head { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.mk-seller__who { display: grid; gap: 2px; min-width: 0; }
.mk-seller__name { font-size: 16px; color: var(--ui-ink); }
.mk-seller__company { font-size: 13px; color: var(--ui-muted); }
.mk-seller__tag { font-size: 13px; line-height: 1.5; color: var(--ui-muted); }
.mk-seller__count { margin-top: auto; }


.mk-state { box-sizing: border-box; }
.mk .ui-more { padding-top: 28px; }
.mk .ui-more .ui-btn { border-radius: 999px; min-height: 46px; padding-inline: 28px; }

/* ================================================================== 3. map view */
/*
 * Grid view: the list as before, the map is not shown. Map view (.mk--mapview): the hero, help and Featured rows step aside,
 * the list becomes a compact column on the left and the map fills the rest. On phones the list is a bottom sheet over the map.
 * The pins are drawn by store.js (.mm-pin, .mm-cluster); Google only supplies the map underneath.
 */
.mk-body { display: block; }
.mk--nomap .mk-map, .mk--sellers .mk-map { display: none; }
.mk-sheet__h { display: none; }

/* Grid | Map */
.mk-seg { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; box-shadow: var(--ui-shadow-sm); }
.mk-seg__b {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; box-sizing: border-box;
    border: 0; border-radius: 999px; background: transparent; color: var(--ui-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background-color var(--ui-ease), color var(--ui-ease);
}
.mk-seg__b svg { width: 18px; height: 18px; }
.mk-seg__b:hover { background: #eef2ec; }
.mk-seg__b.is-on, .mk-seg__b.is-on:hover { background: var(--ui-ink); color: #fff; }
.mk .mk-seg__b:focus, .mk .mk-seg__b:focus-visible { outline: none !important; }
.mk .mk-seg__b:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring); }
.mk--sellers #mk_view { display: none; }

/* list head extras: Near me, and the strip that says a near-me / map-area filter is on */
.mk-nearbtn { flex: none; border-radius: 999px; }
.mk-nearbtn svg { width: 16px; height: 16px; }
.mk-nearbtn.is-on, .mm-fbtn.is-on { background: var(--ui-sage-dark); border-color: var(--ui-sage-dark); color: #fff; }
.mk-nearbtn.is-on:hover, .mm-fbtn.is-on:hover { background: #4a6447; color: #fff; }
.mk-nearbtn.is-busy, .mm-fbtn.is-busy { opacity: .65; cursor: progress; }
.mk-area {
    flex: 1 1 100%; order: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; box-sizing: border-box; margin: 0; padding: 6px 8px 6px 14px;
    border: 1px solid var(--ui-sage-line); border-radius: 12px; background: var(--ui-sage-soft); font-size: 13.5px; font-weight: 600; color: var(--ui-ink);
}
.mk-area__t { flex: 1 1 140px; min-width: 0; }
.mk-area__km { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ui-muted); }
.mk-area__km .ui-select { width: auto; min-width: 92px; min-height: 34px; padding-top: 4px; padding-bottom: 4px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }

/* the map */
.mk-map {
    position: relative; z-index: 1; isolation: isolate;
    height: clamp(380px, 58vh, 560px);
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: #e9ede7;
    box-shadow: var(--ui-shadow);
}
.mk-map #adspace_map { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; margin: 0 !important; background: #e9ede7; }
.mk-map__placeholder {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px;
    color: var(--ui-text); font-size: 14.5px; line-height: 1.5; text-align: center;
    background: linear-gradient(135deg, #eef1ec 0%, #e3e8e0 100%);
}
.mk-map__placeholder > span { max-width: 38ch; }
.mk-map__fail { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mk-map.is-ready .mk-map__placeholder { display: none; }
.mk-map:not(.is-ready) .mk-map__stack { display: none; }

/* everything that floats over the map: one column at the top, so nothing covers the pins or the Google logo */
/* one tidy control row: search, near me, venue, price, search this area, map key, list only. It wraps onto a second row when the map is narrow */
.mk-map__stack { position: absolute; inset: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; pointer-events: none; }
.mk-map__stack > * { pointer-events: none; max-width: 100%; }
.mk-map__stack button, .mk-map__stack select, .mk-map__stack input, .mk-map__stack .mk-map__bar, .mk-map__stack .mm-radius, .mk-map__stack .mk-inview, .mk-map__stack .mk-legend__body, .mk-map__stack .mm-dd { pointer-events: auto; }
.mk-map__top, .mk-map__filters, .mk-map__status { display: contents; }
.mk-map__bar { order: 1; }
#my_location_butt { order: 2; }
.mm-dd, .mm-sel { order: 3; }
.mm-radius { order: 4; }
#map_area_btn { order: 5; }
.mk-legend { order: 6; }
.mk-map__close { order: 9; }
.mm-regions { order: 10; flex: 1 1 100%; }
.mk-map__bar {
    display: flex; align-items: center; gap: 6px; flex: 0 1 340px; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 3px 3px 3px 6px;
    border-radius: 999px; background: #fff; box-shadow: var(--mk-ctl-shadow);
}
.mk-map__search { flex: 1 1 120px; max-width: none; min-width: 0; }
.mk-map__search .ui-input { min-height: 34px; padding-top: 4px; padding-bottom: 4px; border: 0; background: transparent; box-shadow: none; font-size: 14px; }
.mk-map__search .ui-input:focus { box-shadow: none; }
.mk-map__bar .ui-btn { flex: none; border-radius: 999px; }
.mk-map__close {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; margin-left: auto; width: 40px; height: 40px; padding: 0; box-sizing: border-box;
    border: 0; border-radius: 999px; background: #fff; color: var(--ui-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    box-shadow: var(--mk-ctl-shadow); pointer-events: auto;
}
.mk-map__close span { display: none; }
.mk-map__close svg { width: 16px; height: 16px; }
.mk-map__close:hover { background: #fff; }
.mk .mk-map__close:focus, .mk .mk-map__close:focus-visible { outline: none !important; }
.mk .mk-map__close:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring); }
.mm-fbtn {
    appearance: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; box-sizing: border-box;
    border: 1px solid transparent; border-radius: 999px; background: #fff; color: var(--ui-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    box-shadow: var(--mk-ctl-shadow); transition: background-color var(--ui-ease), color var(--ui-ease), border-color var(--ui-ease);
}
.mm-fbtn svg { width: 16px; height: 16px; }
.mm-fbtn:hover { background: #f4f6f3; }
.mm-fbtn--go, .mm-fbtn--go:hover { border-color: var(--ui-ink); background: var(--ui-ink); color: #fff; }
.mk .mm-fbtn:focus, .mk .mm-fbtn:focus-visible { outline: none !important; }
.mk .mm-fbtn:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring), var(--mk-ctl-shadow); }
.mm-sel { display: inline-flex; align-items: center; }
.mm-sel--type { display: none; }
.mm-sel__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mm-sel .ui-select { width: auto; max-width: 170px; min-height: 40px; padding-top: 5px; padding-bottom: 5px; border-radius: 999px; background-color: #fff; box-shadow: var(--mk-ctl-shadow); font-size: 13.5px; font-weight: 700; color: var(--ui-ink); }
.mm-radius { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; box-sizing: border-box; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--mk-ctl-shadow); font-size: 13px; font-weight: 700; color: var(--ui-ink); }
.mm-radius input[type=range] { width: 120px; accent-color: var(--ui-sage-dark); }
.mm-radius span { min-width: 44px; color: var(--ui-muted); white-space: nowrap; }
.mk-inview { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; min-height: 32px; box-sizing: border-box; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ui-ink); font-size: 13px; font-weight: 700; box-shadow: var(--mk-ctl-shadow); font-variant-numeric: tabular-nums; }
.mk-inview[hidden] { display: none; }

/* venue and price pickers: a button and a styled list instead of the browser's dark menu */
.mm-dd { position: relative; }
.mk .mm-dd__native { display: none !important; }
.mm-dd__btn { max-width: 200px; padding: 0 12px 0 16px; }
.mm-dd__v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-dd__btn svg { flex: none; width: 16px; height: 16px; stroke-width: 2; color: var(--ui-muted); transition: transform var(--ui-ease); }
.mm-dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-dd__btn.is-set { border-color: var(--ui-sage-line); background: var(--ui-sage-soft); color: var(--ui-sage-dark); }
.mm-dd__pop {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; box-sizing: border-box; min-width: 100%; width: max-content; max-width: 260px; max-height: 300px; overflow: auto; overscroll-behavior: contain;
    padding: 6px; border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; box-shadow: var(--ui-shadow-lg);
}
.mm-dd__o {
    appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent;
    color: var(--ui-ink); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.mm-dd__o:hover, .mm-dd__o:focus { background: #f1f4ef; outline: none; }
.mk .mm-dd__o:focus-visible { box-shadow: inset 0 0 0 2px var(--ui-sage-ring); }
.mm-dd__o[aria-selected="true"] { background: var(--ui-sage-soft); font-weight: 800; }
.mm-dd__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-dd__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.mm-dd__dot.is-none { display: none; }
.mm-dd__ck { flex: none; width: 16px; height: 16px; stroke-width: 2.4; color: var(--ui-sage-dark); visibility: hidden; }
.mm-dd__o[aria-selected="true"] .mm-dd__ck { visibility: visible; }

/* nothing to pin: an explanation in the panel (never a pill over the controls) */
.mk-mapnote {
    position: absolute; left: 50%; top: 54%; z-index: 4; display: grid; justify-items: center; gap: 8px; box-sizing: border-box; width: min(430px, calc(100% - 40px));
    padding: 24px 26px 22px; border: 1px solid var(--ui-line); border-radius: 18px; background: #fff; box-shadow: var(--ui-shadow-md); text-align: center; transform: translate(-50%, -50%);
}
.mk-mapnote__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ui-sage-soft); color: var(--ui-sage-dark); }
.mk-mapnote__ic svg { width: 22px; height: 22px; }
.mk-mapnote__t { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ui-ink); }
.mk-mapnote__s { font-size: 14px; line-height: 1.5; color: var(--ui-muted); }
.mk-mapnote .ui-btn { margin-top: 6px; border-radius: 999px; }
.mm-pin.is-full { opacity: .78; }
.mm-pin.is-approx { border-style: dashed; border-color: var(--c, #6a8a66); }

/* map key (a button that opens a small panel) */
.mk-legend { position: relative; }
.mk-legend__body {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; width: 270px; max-width: calc(100vw - 48px); max-height: 52vh; overflow: auto; box-sizing: border-box; padding: 12px 14px;
    border-radius: 14px; background: #fff; box-shadow: var(--ui-shadow-lg); font-size: 13px; color: var(--ui-text);
}
.mk-legend__h { margin: 8px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--ui-muted); }
.mk-legend__h:first-child { margin-top: 0; }
.mk-legend__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mk-legend__list li { display: flex; align-items: center; gap: 9px; }
.mk-legend__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.mk-legend__shape { flex: none; width: 22px; height: 14px; border: 2px solid var(--ui-ink); background: #fff; box-sizing: border-box; }
.mk-legend__shape.is-screen { border-radius: 5px; }
.mk-legend__shape.is-poster { width: 14px; height: 18px; border-radius: 1px; }
.mk-legend__shape.is-app { border-radius: 999px; }
.mk-legend__p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ui-muted); }

/* pins: shape = type, colour = venue, price on the pin */
.mm-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mm-at { position: absolute; width: 0; height: 0; }
.mm-pin {
    appearance: none; position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 32px; box-sizing: border-box; padding: 0 10px 0 0;
    border: 2px solid #fff; background: #fff; color: var(--ui-ink); font: 700 12px/1 var(--ui-font); white-space: nowrap; cursor: pointer;
    transform: translate(-50%, calc(-100% - 7px)); box-shadow: 0 2px 7px rgba(24, 34, 24, .4);
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.mm-pin--screen { border-radius: 11px; }
.mm-pin--poster { border-radius: 3px; }
.mm-pin--app { border-radius: 999px; }
.mm-pin::after {
    content: ""; position: absolute; left: 50%; bottom: -7px; z-index: -1; width: 10px; height: 10px; margin-left: -5px;
    background: inherit; border-radius: 0 0 2px 0; transform: rotate(45deg);
}
.mm-pin__badge { display: grid; place-items: center; align-self: stretch; width: 27px; margin: 0 7px 0 0; background: var(--c, #6a8a66); color: var(--ink, #fff); }
.mm-pin--screen .mm-pin__badge { border-radius: 9px 0 0 9px; }
.mm-pin--poster .mm-pin__badge { border-radius: 1px 0 0 1px; }
.mm-pin--app .mm-pin__badge { border-radius: 999px 0 0 999px; padding-left: 2px; }
.mm-pin__badge svg { width: 15px; height: 15px; stroke-width: 2; }
.mm-pin__price { font-variant-numeric: tabular-nums; }
.mm-at.is-hot, .mm-at.is-active { z-index: 99999 !important; }
.mm-at.is-hot .mm-pin, .mm-at.is-active .mm-pin { border-color: var(--ui-ink); background: var(--ui-ink); color: #fff; transform: translate(-50%, calc(-100% - 7px)) scale(1.1); }
.mk .mm-pin:focus, .mk .mm-pin:focus-visible, .mk .mm-cluster:focus, .mk .mm-cluster:focus-visible { outline: none !important; }
.mk .mm-pin:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring), 0 2px 7px rgba(24, 34, 24, .4); }
.mm-cluster {
    appearance: none; position: absolute; left: 0; top: 0; display: grid; place-items: center; box-sizing: border-box; padding: 0;
    border: 3px solid #fff; border-radius: 50%; background: var(--ui-ink); color: #fff; font: 800 13px/1 var(--ui-font); cursor: pointer;
    transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(39, 44, 41, .22), 0 3px 8px rgba(24, 34, 24, .35);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.mm-cluster.is-sm { width: 38px; height: 38px; }
.mm-cluster.is-md { width: 46px; height: 46px; font-size: 14px; }
.mm-cluster.is-lg { width: 54px; height: 54px; font-size: 15px; }
.mm-at.is-over .mm-cluster { transform: translate(-50%, -50%) scale(1.08); }
.mm-at.is-hot .mm-cluster, .mm-at.is-active .mm-cluster { background: var(--ui-sage-dark); box-shadow: 0 0 0 6px rgba(106, 138, 102, .4), 0 3px 8px rgba(24, 34, 24, .35); transform: translate(-50%, -50%) scale(1.1); }
.mk .mm-cluster:focus-visible { box-shadow: 0 0 0 5px var(--ui-sage-ring), 0 3px 8px rgba(24, 34, 24, .35); }

/* the pin's card (bottom of the map, never over the list) */
.mk-info {
    position: absolute; left: 12px; bottom: 12px; z-index: 7;
    display: none; box-sizing: border-box;
    width: min(400px, calc(100% - 24px)); max-height: calc(100% - 164px); overflow: auto; overscroll-behavior: contain;
    border-radius: var(--ui-radius); background: #fff;
    box-shadow: var(--ui-shadow-lg);
    font-size: 14px; color: var(--ui-text); cursor: default;
}
.mk-info__pic { position: relative; height: 128px; overflow: hidden; background: var(--ui-tint); }
.mk-info__pic .mk-ph__ic { width: 56px; height: 56px; border-radius: 18px; }
.mk-info__pic .mk-ph__ic svg { width: 30px; height: 30px; }
.mk-info__pic .mk-ph__t { font-size: 10.5px; }
.mk-info__body { display: grid; gap: 6px; padding: 12px 16px 14px; }
.mk-info__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ui-ink); overflow-wrap: anywhere; }
.mk-info h4 { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ui-muted); }
.mk-info p { margin: 0; }
.mk-info__here { font-size: 12.5px; color: var(--ui-muted); }
.mk-info__here[hidden] { display: none; }
.mk-price--info { margin: 0; padding: 4px 0 0; }
.mk-price--info .mk-price__main strong { font-size: 26px; }
.mk-info__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--ui-line); }
.mk-info__cat { position: static; flex: none; max-width: 50%; background: var(--ui-sage-soft); color: var(--ui-sage-dark); text-transform: capitalize; }
.mk-info__actions { display: flex; gap: 8px; margin-top: 4px; }
.mk-info__actions .ui-btn { flex: 1 1 0; }
.mk-info__more { align-self: center; font-size: 13px; font-weight: 600; color: var(--ui-sage-dark); text-align: center; }
.mk-info__x {
    appearance: none; position: absolute; top: 8px; right: 8px; z-index: 3;
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ui-ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25); font-size: 22px; line-height: 1; cursor: pointer;
}
.mk-info__x:hover { background: #fff; }
.mk-info .mk-avail { top: 8px; left: 8px; right: auto; bottom: auto; }
.mk-info__alts, .mk-info__multi { display: grid; gap: 6px; }
.mk-info__alts { margin-top: 4px; }
.mk-info .alt_slots {
    appearance: none; display: grid; gap: 1px; padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm);
    background: #fff; color: var(--ui-text); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer;
}
.mk-info .alt_slots:hover { border-color: var(--ui-sage-line); background: var(--ui-sage-soft); }
.alt_slots__name { font-weight: 600; color: var(--ui-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt_slots__meta { font-size: 12px; color: var(--ui-muted); }
.pac-container { z-index: 1200 !important; border-radius: 10px; box-shadow: var(--ui-shadow-lg); font-family: var(--ui-font); }

/* Map view: the screen belongs to the map and a compact list */
.mk--mapview .mk-head, .mk--mapview .mk-help, .mk--mapview .mk-feat, .mk--mapview .mk-cats { display: none; }
.mk--mapview .mk-wrap { padding-top: 6px; padding-bottom: 12px; }
.mk--mapview .mk-tabsrow { margin: 2px 0 10px; }
.mk--mapview .mk-campaign { margin-bottom: 10px; }
.mk--mapview .mk-body { position: relative; display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); gap: 12px; height: var(--mk-h, 640px); }
.mk--mapview .mk-list {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 0 12px 14px;
    border: 1px solid var(--ui-line); border-radius: 18px; background: var(--ui-bg);
}
.mk--mapview .mk-listhead { position: sticky; top: 0; z-index: 4; margin: 0 -12px 10px; padding: 10px 12px; gap: 6px 8px; border-bottom: 1px solid var(--ui-line); background: var(--ui-bg); }
.mk--mapview .mk-summary { flex: 1 1 100%; font-size: 13.5px; }
.mk--mapview .mk-summary strong { font-size: 15px; }
.mk--mapview .mk-sort__l { display: none; }
.mk--mapview .mk-sort { flex: 1 1 auto; margin-left: 0; }
.mk--mapview .mk-sort .ui-select { width: 100%; min-width: 130px; min-height: 34px; font-size: 13px; }
.mk--mapview .mk-nearbtn { order: 2; }
.mk--mapview .mk-sort { order: 3; }
.mk--mapview .mk-map { display: block; height: 100%; margin: 0; border-radius: 18px; }
.mk--mapview .mk-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mk--mapview .mk-skelcard { min-height: 112px; }
.mk--mapview .ui-more { padding-top: 12px; }

/* compact card (same markup as the grid card) */
.mk--mapview .mk-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); cursor: pointer; border-radius: 12px; }
.mk--mapview .mk-card:hover { transform: none; }
.mk--mapview .mk-card.is-linked { border-color: var(--ui-sage); box-shadow: var(--ui-shadow); }
.mk--mapview .mk-card.is-active { border-color: var(--ui-ink); box-shadow: 0 0 0 1px var(--ui-ink), var(--ui-shadow); }
.mk--mapview .mk-card__media { aspect-ratio: auto; min-height: 112px; border-radius: 11px 0 0 11px; }
.mk--mapview .mk-card { animation: none; }
.mk--mapview .mk-ph__ic { width: 40px; height: 40px; border-radius: 13px; }
.mk--mapview .mk-ph__ic svg { width: 22px; height: 22px; }
.mk--mapview .mk-ph__t, .mk--mapview .mk-photochip, .mk--mapview .mk-media__br { display: none; }
.mk--mapview .mk-card__media::after { display: none; }
.mk--mapview .mk-bar { margin-top: 0; }
.mk--mapview .mk-card .mk-avail { top: auto; bottom: 6px; left: 6px; right: 6px; justify-content: center; padding: 2px 4px; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk--mapview .mk-heart { top: 6px; right: 6px; width: 30px; height: 30px; }
.mk--mapview .mk-heart svg { width: 15px; height: 15px; }
.mk--mapview .mk-cats-tag, .mk--mapview .mk-dist--chip, .mk--mapview .mk-pop { display: none; }
.mk--mapview .mk-card__body { gap: 2px; padding: 8px 12px 8px 12px; }
.mk--mapview .mk-what { font-size: 11.5px; }
.mk--mapview .mk-card__title { font-size: 14px; -webkit-line-clamp: 1; }
.mk--mapview .mk-place { font-size: 12px; }
.mk--mapview .mk-price { padding-top: 2px; }
.mk--mapview .mk-price__main strong { font-size: 17px; }
.mk--mapview .mk-price__main span { font-size: 12px; }
.mk--mapview .mk-price__eg { font-size: 11.5px; }
.mk--mapview .mk-card__foot { margin-top: 4px; padding-top: 6px; }
.mk--mapview .mk-card__seller .ui-avatar { width: 20px; height: 20px; font-size: 9px; }
.mk--mapview .mk-card__seller { font-size: 12px; }
.mk--mapview .mk-qvbtn { min-height: 26px; padding: 2px 10px; font-size: 12px; }
.mk--mapview .mk-card__link::after { display: none; }
.mk--mapview .mk-card__link:focus-visible { border-radius: 4px; box-shadow: 0 0 0 3px var(--ui-sage-ring); }
.mk--mapview .mk-card__cta { grid-column: 1 / -1; padding: 0 10px 10px; }
.mk--mapview .mk-cta { min-height: 38px; font-size: 14px; }
.mk--mapview .mk-state { grid-column: 1 / -1; }

/* ================================================================== 4. dialogs */
.filter_box { min-width: 0; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--ui-line); }
.filter_box:first-child { padding-top: 4px; }
.filter_box:last-child { border-bottom: 0; padding-bottom: 0; }
.filter_box legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ui-muted); }
.filter_box legend + * { clear: both; }
.mk-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; }
.mk-price { margin: 0; }
.mk-price .ui-field { margin: 0; }
.mk-price .ui-field--full { grid-column: 1 / -1; margin: 8px 0 0; }
#filter_panel { width: min(640px, 100%); }

.mk-sellerhead { align-items: center; }
.mk-sellerhead__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mk-sellerhead__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 24px 0; }
#seller_modal .ui-modal__dialog { min-height: 320px; }
.mk-grid--modal { align-content: start; padding-top: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ================================================================== 5. narrower screens */
@media (max-width: 1100px) {
    .mk-grid { gap: 16px; }
}
@media (max-width: 900px) {
    .mk-guide__steps { grid-template-columns: minmax(0, 1fr); }
    .mk-gstep { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: center; }
    .mk-gstep__n::after { display: none; }
    .mk-gstep__n { margin: 0 0 6px; }
    .mk-gstep__art { grid-row: 1 / span 3; height: 84px; margin: 0; }
    .mk-gstep > :not(.mk-gstep__art) { grid-column: 2; }
    .mk-gloss { grid-template-columns: minmax(0, 1fr); }
    .mk-gloss__c, .mk-gloss__c:nth-child(n+4) { grid-column: auto; }
    .mk-qv__body { grid-template-columns: minmax(0, 1fr); }
    .mk-qv__media { min-height: 0; aspect-ratio: 16 / 8; }
    .mk-qv__main { padding: 18px 18px 20px; }
}
@media (max-width: 900px) {
    /* Map view on a phone or small tablet: the map fills the area, the list is a bottom sheet (half / full / just the handle) */
    .mk--mapview .mk-body { display: block; }
    .mk--mapview .mk-map { position: absolute; inset: 0; height: auto; border-radius: 16px; }
    .mk--mapview .mk-list {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 54%; padding: 0 10px 12px; border-radius: 18px 18px 0 0;
        border-bottom: 0; box-shadow: 0 -10px 28px rgba(24, 34, 24, .22); transition: height .22s ease; background: var(--ui-bg);
    }
    .mk--mapview .mk-body[data-sheet="full"] .mk-list { height: 100%; border-radius: 16px; }
    .mk--mapview .mk-body[data-sheet="peek"] .mk-list { height: 52px; overflow: hidden; padding-bottom: 0; }
    .mk--mapview .mk-body.has-info .mk-list { display: none; }
    .mk--mapview .mk-sheet__h {
        appearance: none; position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 4px; width: calc(100% + 20px); margin: 0 -10px;
        padding: 8px 0 8px; border: 0; background: var(--ui-bg); color: var(--ui-ink); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
    }
    .mk-sheet__bar { display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--ui-border-strong); }
    .mk .mk-sheet__h:focus, .mk .mk-sheet__h:focus-visible { outline: none !important; }
    .mk .mk-sheet__h:focus-visible .mk-sheet__bar { box-shadow: 0 0 0 3px var(--ui-sage-ring); }
    .mk--mapview .mk-listhead { position: static; margin: 0 -10px 8px; padding: 6px 10px 8px; }
    .mk--mapview .mk-sort { flex: 1 1 auto; width: auto; }
    .mk--mapview .mk-nearbtn { flex: none; }
    .mk-map__stack { top: 8px; left: 8px; right: 8px; gap: 6px; }
    .mk-map__bar { flex: 1 1 auto; }
    .mk-map__close span { display: none; }
    .mk-map__close { width: 40px; padding: 0; justify-content: center; }
    .mm-sel .ui-select { max-width: 132px; }
    .mk-info { left: 8px; bottom: 8px; width: calc(100% - 16px); max-height: calc(100% - 16px); }
    .mk-info__pic { height: 104px; }
    .mk--mapview .mk-map__placeholder { padding-bottom: 58%; }
    .mm-sel--type { display: inline-flex; }
    .mk--mapview .mk-bar { position: static; margin: 0 0 4px; padding: 0; }
}
@media (max-width: 760px) {
    .mk-bar { position: static; margin: 0 0 4px; padding: 0; }
    .mk-bar__tools { flex-wrap: wrap; }
    .mk-find { flex: 1 1 100%; flex-direction: column; border-radius: 20px; min-height: 0; }
    .mk-find__seg, .mk-find__seg--where { flex: none; border-radius: 20px; padding: 9px 16px; }
    .mk-find__seg + .mk-find__seg::before, .mk-find__near + .mk-find__seg::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
    .mk-find__near { position: absolute; right: 8px; top: 8px; margin: 0; }
    .mk-pillbtn { flex: 1 1 0; justify-content: center; min-height: 46px; padding: 0 12px; }
    .mk-head { padding: 12px 0 14px; }
    .mk-head__title { font-size: 26px; }
    .mk-head__sub { font-size: 14.5px; }
    .mk-head__links { margin-left: -12px; }
    .mk-nudge { margin-left: 12px; margin-bottom: 4px; }
    .mk-sort { margin-left: 0; flex: 1 1 100%; }
    .mk-sort .ui-select { flex: 1 1 auto; }
    .mk-seg { flex: 1 1 100%; }
    .mk-seg__b { flex: 1 1 0; }
    .mk-nearbtn { flex: 1 1 auto; justify-content: center; }

}
@media (max-width: 560px) {
    .mk-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .mk-grid--modal { grid-template-columns: minmax(0, 1fr); }
    .mk-card__media { aspect-ratio: 4 / 3; }
    .mk-skelcard { min-height: 380px; }
    .mk-card__cta { padding: 0 12px 12px; }
    .mk-card--feat, .mk-skelfeat { width: min(84vw, 320px); }
    .mk-rail { gap: 12px; }
    .mk-sec__sub { display: none; }
    .mk-guide__head { padding: 20px 18px 18px; }
    .mk-guide__title { font-size: 26px; }
    .mk-guide__body { padding: 18px 16px 4px; }
    .mk-guide__foot { padding: 12px 16px; }
    .mk-guide__foot .ui-btn { flex: 1 1 0; padding-inline: 12px; }
}
@media (max-width: 520px) {
    .mk-tabsrow { margin-bottom: 14px; }
    .mk-tabs { display: flex; width: 100%; box-sizing: border-box; gap: 2px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
    .mk-tabs .ui-tab { flex: 1 0 auto; justify-content: center; padding: 8px 4px; font-size: 13px; white-space: nowrap; }
    .mk-campaign { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .mk-card, .mk-heart { transition: none; animation: none; }
    .mk-heart.is-pop svg, .mk-tile.is-loading { animation: none; }
    .mk-card:hover, .mk-card:active { transform: none; }
    .mk-card:hover .mk-photo { transform: none; }
    .mk-nudge { animation: none; }
}

/* ================================================================== map regions, phone list/map switch, "map unavailable", nothing-found alternatives */
.mk-map__ptitle { max-width: 34ch; font-size: 17px; font-weight: 800; color: var(--ui-ink); }
.mm-regions {
    display: flex; flex-wrap: nowrap; gap: 6px; max-width: 100%; box-sizing: border-box; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px;
    pointer-events: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mm-regions::-webkit-scrollbar { display: none; }
.mm-regions[hidden] { display: none; }
.mm-reg {
    appearance: none; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 6px 0 13px; box-sizing: border-box;
    border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; color: var(--ui-ink); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
    box-shadow: var(--mk-ctl-shadow); transition: background-color var(--ui-ease), color var(--ui-ease), border-color var(--ui-ease);
}
.mm-reg:hover { background: #f4f6f3; }
.mm-reg__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--ui-sage-soft); color: var(--ui-sage-dark); font-size: 12px; font-weight: 800; }
.mm-reg.is-on, .mm-reg.is-on:hover { border-color: var(--ui-ink); background: var(--ui-ink); color: #fff; }
.mm-reg.is-on .mm-reg__n { background: rgba(255, 255, 255, .2); color: #fff; }
.mk .mm-reg:focus, .mk .mm-reg:focus-visible { outline: none !important; }
.mk .mm-reg:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring), var(--mk-ctl-shadow); }

.mm-swap { display: none; }
@media (max-width: 900px) {
    .mk--mapview .mk-body:not(.has-info)[data-sheet="peek"] .mm-swap,
    .mk--mapview .mk-body:not(.has-info)[data-sheet="full"] .mm-swap {
        appearance: none; position: absolute; left: 50%; bottom: 16px; z-index: 8; transform: translateX(-50%);
        display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; box-sizing: border-box;
        border: 0; border-radius: 999px; background: var(--ui-ink); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
        box-shadow: 0 6px 20px rgba(24, 34, 24, .35);
    }
    .mk--mapview .mk-body[data-sheet="peek"] .mm-swap { bottom: 70px; }
    .mm-swap svg { width: 18px; height: 18px; }
    .mk .mm-swap:focus, .mk .mm-swap:focus-visible { outline: none !important; }
    .mk .mm-swap:focus-visible { box-shadow: 0 0 0 3px var(--ui-sage-ring), 0 6px 20px rgba(24, 34, 24, .35); }
    .mm-reg { min-height: 32px; font-size: 12.5px; }
    /* the venue / price / type pickers live in the Filters dialog on a phone: more map, less clutter over it */
    .mk--mapview .mm-sel, .mk--mapview .mm-sel--type { display: none; }
}

/* nothing matched: the closest things, then the two ways on */
.mk-alts { grid-column: 1 / -1; display: grid; gap: 22px; margin-top: 8px; }
.mk-alts__note { margin: 0; padding: 10px 14px; border-radius: var(--ui-radius-sm); background: var(--ui-sage-soft); color: var(--ui-sage-dark); font-size: 13.5px; font-weight: 600; }
.mk-alts__g { display: grid; gap: 6px; }
.mk-alts__h { margin: 0; font-size: 18px; font-weight: 800; color: var(--ui-ink); }
.mk-alts__sub { margin: 0 0 6px; font-size: 13.5px; color: var(--ui-muted); }
.mk-alts__grid { margin: 0; }
.mk-alts__cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mk-alts__ctab { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 16px 18px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: #fff; }
.mk-alts__ctab strong { font-size: 15.5px; color: var(--ui-ink); }
.mk-alts__ctab p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ui-text); }
.mk--mapview .mk-alts { gap: 16px; }
.mk--mapview .mk-alts__h { font-size: 16px; }
.mk--mapview .mk-alts__cta { grid-template-columns: minmax(0, 1fr); }

/* ================================================================== 6. polish: compact list cards, narrow map controls */
.mk--mapview .mk-card__title { height: auto; }
.mk--mapview .mk-grid .mk-place { height: auto; }
.mk--mapview .mk-grid .mk-place[hidden] { display: none !important; }
.mk--mapview .mk-pop.is-empty { display: none; }
.mk--mapview .mk-grid .mk-price { min-height: 0; }
.mk--mapview .mk-price__eg { height: auto; }
.mk--mapview .mk-card__foot { height: auto; }
.mk--mapview .mk-what { height: auto; }
.mk--mapview .mk-card__media { aspect-ratio: auto; }
.mk-info .mk-what { height: auto; }
.mk-info .mk-place { height: auto; }
@media (max-width: 1380px) {
    /* the search takes the first row with the list-only button; the pickers sit under it */
    .mk-map__bar { flex: 1 1 calc(100% - 48px); max-width: none; }
    .mk-map__close { order: 2; margin-left: 0; }
}
@media (max-width: 900px) {
    .mm-dd { display: none; }
    .mk-mapnote { top: 32%; padding: 16px 18px 14px; gap: 6px; }
    .mk-mapnote__s { font-size: 13px; }
    .mk-mapnote .ui-btn { display: none; }
    .mk-inview { display: none; }
}
@media (hover: hover) {
    .mm-fbtn:not(.is-on):not(.mm-fbtn--go):hover { transform: translateY(-1px); }
}
