/* The Cards directory sheet: /terkep, /kedvencek, the partner card, the map
 * popup and the favourites page.
 *
 * UniMap's own since D155. It started as a copy of the unimap-cards plugin
 * (`npm run copy:build` used to regenerate it); it is edited in place now.
 * Colours, corners and shadows come from the shared tokens in
 * web/app/globals.css (`--color-*`, `--radius-*`, `--shadow-*`). Never add
 * a local palette or a literal brand colour: the seam test refuses both.
 *
 * The markup is web/src/discounts/*.tsx (ud-*, udm-*, umt-*, ump-*, ufav-*
 * class names). The bottom bar has its own sheet, public/bottom-nav.css,
 * because it is drawn on pages that do not link this one.
 */
/* ==== the shimmer, shared site-wide — unimap-cards/includes/class-unimap-pwa.php ==== */

@keyframes unimap-skel-shimmer {
0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.unimap-skel {
    background-image: linear-gradient(
        90deg,
        rgba(0,0,0,0.06) 0%,
        rgba(0,0,0,0.20) 50%,
        rgba(0,0,0,0.06) 100%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: unimap-skel-shimmer 1.5s linear infinite;
    border-radius: 8px;
}
.unimap-skel--light {
    background-image: linear-gradient(
        90deg,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.32) 50%,
        rgba(255,255,255,0.10) 100%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: unimap-skel-shimmer 1.5s linear infinite;
}

/* Respect prefers-reduced-motion for the shimmer (WCAG 2.3.3). Users
   who've asked their OS to reduce motion get a static tint instead. */
@media (prefers-reduced-motion: reduce) {
    .unimap-skel,
    .unimap-skel--light {
        animation: none;
    }
}

/* ==== the directory, and the map popup it splices in — unimap-cards/includes/class-unimap-partners-directory.php ==== */

body.unimap-partners-page { background: var(--color-ground) !important; }
body.unimap-partners-page header.site-header { border-bottom: none !important; box-shadow: none !important; }

.unimap-partners-directory {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--color-ground); color: var(--color-body); line-height: 1.5;
    /* The bottom tab bar is fixed, and /partners is one of its card routes
       (Unimap_Bottom_Nav::CARD_ROUTES), so the last in-flow block here -- the
       "more places, more discounts" note -- was ending up under the frosted
       bar. --ump-bottom-nav-h is set on <body> by Unimap_Bottom_Nav and
       ALREADY folds in env(safe-area-inset-bottom), so it must not be added a
       second time; the var's fallback carries the bare inset for the pages
       and viewports where no bar exists (desktop, logged-out), keeping the
       previous 72px there exactly. */
    padding: 36px 0 0;
    padding-bottom: calc(var(--ump-bottom-nav-h, env(safe-area-inset-bottom, 0px)) + 72px);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    /* Full width by being a block in the full-width body. (The plugin broke
       out of a theme column with `width: 100vw; margin-left: -50vw`, which
       counts the scrollbar and scrolled 7.5px sideways on desktop.) */
    display: block; position: relative;
}
/* /terkep has no desktop layout: hidden from the first paint until
   DesktopRedirect sends the reader to /partners. */
@media (min-width: 961px) {
    .unimap-partners-directory.is-map-route { display: none; }
}
.unimap-partners-directory,
.unimap-partners-directory *,
.unimap-partners-directory *::before,
.unimap-partners-directory *::after { box-sizing: border-box; }
.unimap-partners-directory a { text-decoration: none; color: inherit; }
.unimap-partners-directory .is-hidden { display: none !important; }
.unimap-partners-directory .ud-shell { max-width: 1500px; margin: 0 auto; padding: 0 28px; }

.unimap-partners-directory .ud-hero { margin-bottom: 18px; text-align: center; }
.unimap-partners-directory .ud-hero__title { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; color: var(--color-body); }
.unimap-partners-directory .ud-hero__lede { margin: 0; color: var(--color-soft); font-size: 14.5px; line-height: 1.5; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.unimap-partners-directory .ud-hero__count { color: var(--color-body); font-weight: 600; }
.unimap-partners-directory .ud-hero__sep { color: var(--color-faint-text); }

/* Floating filter bar. Sticky via position:sticky with an IntersectionObserver sentinel to detect the stuck state. */
.unimap-partners-directory .ud-filterbar-sentinel { height: 1px; margin-bottom: 22px; }
.unimap-partners-directory .ud-filterbar { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 30; display: flex; flex-direction: column; gap: 14px; width: 100%; margin-bottom: 28px; transition: top 240ms cubic-bezier(0.32, 0.72, 0, 1); }
.unimap-partners-directory .ud-filterbar.is-stuck { top: calc(12px + env(safe-area-inset-top, 0px)); }
/* Row 1: utility bar (Kerületek / Rendezés / search) — thin, muted, right-aligned. */
.unimap-partners-directory .ud-filterbar__utility { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.unimap-partners-directory .ud-filterbar__utility .ud-fbtn { padding: 5px 10px; font-size: 12.5px; opacity: .82; transition: opacity 150ms ease, background 150ms ease, color 150ms ease; }
.unimap-partners-directory .ud-filterbar__utility .ud-fbtn:hover,
.unimap-partners-directory .ud-filterbar__utility .ud-fbtn.is-active { opacity: 1; }
/* Search icon-btn in the utility row matches the .ud-fbtn pill
   visual weight: transparent bg, muted text, teal-soft hover. Icon
   sized to feel like a peer to Kerületek/Rendezés, not a heavy CTA. */
.unimap-partners-directory .ud-filterbar__utility .ud-icon-btn { width: 32px; height: 32px; background: transparent; color: var(--color-soft); }
.unimap-partners-directory .ud-filterbar__utility .ud-icon-btn:hover { background: var(--color-teal-wash); color: var(--color-body); }
.unimap-partners-directory .ud-filterbar__utility .ud-icon-btn.is-active { background: var(--color-teal-soft); color: var(--color-body); }
.unimap-partners-directory .ud-filterbar__utility .ud-icon-btn .ud-icon { width: 18px; height: 18px; }
/* Filters (Districts) trigger icon: text-only on desktop (icon hidden),
   icon-only on phone (see the <=960 block, which flips these). */
.unimap-partners-directory .ud-districts__ficon { display: none; }
/* Row 2: category chips — full width pill, same visual weight the combined bar used to have. */
.unimap-partners-directory .ud-filterbar__chips { display: inline-flex; align-items: center; gap: 6px; background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-pill); padding: 6px 8px; box-shadow: var(--shadow-bar); max-width: 100%; width: 100%; transition: padding 200ms ease, background 200ms ease, backdrop-filter 200ms ease; }
.unimap-partners-directory .ud-filterbar.is-stuck .ud-filterbar__chips { background: rgba(38,38,38,.85); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); padding: 4px 6px; }
/* Containing-block fix: backdrop-filter on this ancestor creates a new
   containing block for position:fixed descendants (same gotcha as transform/
   filter). While a bottom sheet is open, drop the frosted effect so the sheet
   anchors to the viewport, not to the sticky bar. */
.unimap-partners-directory.has-open-dropdown .ud-filterbar.is-stuck .ud-filterbar__chips {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--color-surface);
}
/* Edge fades when the chip row overflows. JS toggles .is-fade-left / .is-fade-right
   from scroll position so the first chip isn't faded at rest. */
.unimap-partners-directory .ud-catseg.is-fade-right { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%); }
.unimap-partners-directory .ud-catseg.is-fade-left { mask-image: linear-gradient(to right, transparent 0, #000 36px); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px); }
.unimap-partners-directory .ud-catseg.is-fade-left.is-fade-right { mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }

/* Segmented category control. Desktop: chips wrap and center inside
   the pill so short category lists sit visually balanced under the
   utility bar. Mobile hides .ud-filterbar__chips entirely (categories
   move to the Szűrők sheet), so these rules never apply there. */
.unimap-partners-directory .ud-catseg { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 2px; border-radius: var(--radius-pill); flex-wrap: wrap; min-width: 0; }
.unimap-partners-directory .ud-catseg::-webkit-scrollbar { display: none; }
.unimap-partners-directory .ud-catseg__btn { appearance: none; border: 0; background: transparent; color: var(--color-soft); font-family: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1; white-space: nowrap; flex-shrink: 0; scroll-snap-align: start; transition: background 150ms ease, color 150ms ease; }
.unimap-partners-directory .ud-catseg__btn:hover { background: var(--color-teal-wash); color: var(--color-body); }
.unimap-partners-directory .ud-catseg__btn.is-active { background: var(--color-teal); color: #FFFFFF; }
.unimap-partners-directory .ud-catseg__count { font-size: 11.5px; font-weight: 600; opacity: .78; }
.unimap-partners-directory .ud-catseg__btn.is-active .ud-catseg__count { opacity: 1; }
/* Sub-row under the category pills: result count + (mobile) inline sort.
   Hidden on desktop -- desktop keeps the top-bar sort dropdown and the
   footer count; on phones the sort moves here (out of the filters
   off-canvas) and the count sits alongside it. */
.unimap-partners-directory .ud-subbar { display: none; }
.unimap-partners-directory .ud-resultcount { font-size: 13px; font-weight: 500; color: var(--color-soft); }

/* Generic filter button. */
.unimap-partners-directory .ud-fbtn { appearance: none; border: 0; background: transparent; color: var(--color-soft); font-family: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1; white-space: nowrap; transition: background 150ms ease, color 150ms ease; }
.unimap-partners-directory .ud-fbtn:hover { background: var(--color-teal-wash); color: var(--color-body); }
.unimap-partners-directory .ud-fbtn.is-active { background: var(--color-teal-soft); color: var(--color-body); }
.unimap-partners-directory .ud-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--color-teal); color: #FFFFFF; font-size: 11px; font-weight: 600; border-radius: 999px; line-height: 1; }
.unimap-partners-directory .ud-chevron { display: inline-flex; transition: transform .15s ease; opacity: .7; }
.unimap-partners-directory .ud-districts[data-open="true"] .ud-chevron,
.unimap-partners-directory .ud-sort[data-open="true"] .ud-chevron { transform: rotate(180deg); }

/* Icon-only button (search). Bigger + brighter so the affordance reads at a glance. */
.unimap-partners-directory .ud-icon-btn { position: relative; appearance: none; border: 0; padding: 0; background: var(--color-raised); color: var(--color-body); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 150ms ease, color 150ms ease, transform .12s ease; flex-shrink: 0; }
.unimap-partners-directory .ud-icon-btn:hover { background: var(--color-teal-soft); color: var(--color-body); }
.unimap-partners-directory .ud-icon-btn.is-active { background: var(--color-teal); color: #FFFFFF; }
/* SVG default display:inline leaves a text baseline gap that pulls the
   icon a hair off vertical center even with align-items:center on the
   flex parent. display:block strips the baseline and lets flex center
   the icon's box exactly. Same reason padding:0 above — UA button
   padding in Chrome is 2px top / 3px bottom, which offsets vertical
   centering by 0.5px inside a 36px circle. Both fixes together make
   the icon land on the button's true optical center. */
.unimap-partners-directory .ud-icon-btn .ud-icon { width: 22px; height: 22px; display: block; }
.unimap-partners-directory .ud-searchpop__dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-teal-light); box-shadow: 0 0 0 2px var(--color-surface); }
.unimap-partners-directory .ud-filterbar.is-stuck .ud-searchpop__dot { box-shadow: 0 0 0 2px rgba(38,38,38,.85); }

/* Map toggle pill. */
.unimap-partners-directory .ud-map-toggle { appearance: none; border: 1.5px solid var(--color-teal); background: transparent; color: var(--color-body); font-family: inherit; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1; white-space: nowrap; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.unimap-partners-directory .ud-map-toggle:hover { background: var(--color-teal-wash); }
.unimap-partners-directory .ud-map-toggle.is-active { background: var(--color-teal); color: #FFFFFF; }

/* Dropdown panels. */
.unimap-partners-directory .ud-districts,
.unimap-partners-directory .ud-sort,
.unimap-partners-directory .ud-searchpop { position: relative; flex-shrink: 0; }
.unimap-partners-directory .ud-districts__panel,
.unimap-partners-directory .ud-sort__panel,
.unimap-partners-directory .ud-searchpop__panel { position: absolute; top: calc(100% + 10px); background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-card); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 8px 20px rgba(0,0,0,.3); z-index: 50; animation: ud-fade-down .15s ease both; }
@keyframes ud-fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.unimap-partners-directory .ud-districts__panel { left: 0; transform: none; width: 360px; padding: 16px; }
.unimap-partners-directory .ud-districts__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.unimap-partners-directory .ud-districts__head-title { font-size: 13px; font-weight: 600; color: var(--color-soft); }
.unimap-partners-directory .ud-districts__clear { appearance: none; border: 0; background: transparent; color: var(--color-teal-light); font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.unimap-partners-directory .ud-districts__clear:hover { color: var(--color-body); }
.unimap-partners-directory .ud-districts__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.unimap-partners-directory .ud-district { position: relative; cursor: pointer; user-select: none; }
.unimap-partners-directory .ud-district input { position: absolute; opacity: 0; pointer-events: none; }
.unimap-partners-directory .ud-district span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 6px; background: var(--color-raised); border: 1px solid var(--color-line); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--color-soft); letter-spacing: .01em; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.unimap-partners-directory .ud-district:hover span { border-color: var(--color-line-strong); color: var(--color-body); }
.unimap-partners-directory .ud-district input:checked + span { background: var(--color-teal); border-color: var(--color-teal); color: #FFFFFF; }
.unimap-partners-directory .ud-districts__apply { appearance: none; border: 0; background: var(--color-teal); color: #FFFFFF; font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 10px 18px; border-radius: var(--radius-pill); cursor: pointer; margin-top: 14px; width: 100%; transition: background .15s ease; }
.unimap-partners-directory .ud-districts__apply:hover { background: var(--color-teal-dark); }

.unimap-partners-directory .ud-sort__panel { right: 0; left: auto; transform: none; width: 240px; padding: 6px; }
.unimap-partners-directory .ud-sort__opt { appearance: none; border: 0; background: transparent; color: var(--color-body); font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; line-height: 1.3; transition: background .12s ease; }
.unimap-partners-directory .ud-sort__opt:hover:not(.is-disabled) { background: var(--color-raised); }
.unimap-partners-directory .ud-sort__opt.is-active { background: var(--color-teal-soft); color: var(--color-body); }
.unimap-partners-directory .ud-sort__opt.is-disabled { color: var(--color-faint-text); cursor: not-allowed; }
.unimap-partners-directory .ud-sort__check { display: inline-flex; opacity: 0; color: var(--color-teal-light); transition: opacity .12s ease; }
.unimap-partners-directory .ud-sort__opt.is-active .ud-sort__check { opacity: 1; }
.unimap-partners-directory .ud-sort__hint { display: block; font-size: 11.5px; font-weight: 400; color: var(--color-faint-text); margin-top: 2px; }
.unimap-partners-directory .ud-sort__icon { display: inline-flex; opacity: .7; }

.unimap-partners-directory .ud-searchpop__panel { right: 0; left: auto; transform: none; width: 360px; padding: 12px; }
.unimap-partners-directory .ud-searchpop__input-wrap { position: relative; display: flex; align-items: center; }
.unimap-partners-directory .ud-searchpop__input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-soft); display: flex; pointer-events: none; }
.unimap-partners-directory .ud-searchpop__input { width: 100%; appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 14px; color: var(--color-body); background: var(--color-raised); border: 1px solid var(--color-line-strong); border-radius: var(--radius-pill); padding: 10px 40px 10px 40px; height: 42px; transition: border-color .15s ease, box-shadow .15s ease; }
.unimap-partners-directory .ud-searchpop__input::placeholder { color: var(--color-faint-text); }
.unimap-partners-directory .ud-searchpop__input:focus { outline: 0; border-color: var(--color-teal); box-shadow: 0 0 0 3px var(--color-teal-soft); }
.unimap-partners-directory .ud-searchpop__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.unimap-partners-directory .ud-searchpop__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); appearance: none; border: 0; background: var(--color-line-strong); color: var(--color-soft); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, color .15s ease; }
.unimap-partners-directory .ud-searchpop__clear:hover { background: var(--color-faint); color: var(--color-body); }

/* Bottom-sheet drag handle is a mobile-only affordance. On desktop the
   popover isn't a sheet, so hide the handle — otherwise the raw
   <button> inherits Elementor's default button styling and shows up as
   a stray pink/magenta box in the top-left of every popover. The
   @media (max-width: 960px) block below re-shows it with proper
   sheet-handle styling. */
.unimap-partners-directory .ud-sheet-handle { display: none; }

/* Content grid + cards. */
.unimap-partners-directory .ud-content { display: grid; grid-template-columns: 1fr 0fr; gap: 0; align-items: start; transition: grid-template-columns 420ms cubic-bezier(0.32,0.72,0,1), gap 360ms ease; }
.unimap-partners-directory .ud-content[data-map-visible="true"] { grid-template-columns: 1.5fr 1fr; gap: 24px; }
.unimap-partners-directory .ud-list-col { min-width: 0; }
.unimap-partners-directory .ud-map-col { position: relative; min-width: 0; opacity: 0; transform: translateX(20px); align-self: stretch; transition: opacity 240ms ease 60ms, transform 420ms cubic-bezier(0.32,0.72,0,1); }
.unimap-partners-directory .ud-content[data-map-visible="true"] .ud-map-col { opacity: 1; transform: translateX(0); }

.unimap-partners-directory .ud-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; transition: grid-template-columns 320ms ease; }
.unimap-partners-directory .ud-content[data-map-visible="true"] .ud-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.unimap-partners-directory .ud-card.is-hidden { display: none !important; }
.unimap-partners-directory .ud-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, outline-color .2s ease; height: 100%; display: flex; outline: 2px solid transparent; outline-offset: -2px; }
.unimap-partners-directory .ud-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.42), 0 4px 10px rgba(0,0,0,.25); border-color: var(--color-line-strong); }
.unimap-partners-directory .ud-card.is-pin-hover { outline-color: var(--color-teal-light); box-shadow: 0 0 0 4px rgba(90,143,141,0.25), 0 14px 32px rgba(0,0,0,0.42); }
.unimap-partners-directory .ud-card__link { display: flex; flex-direction: column; width: 100%; color: inherit; }
.unimap-partners-directory .ud-card__cover { position: relative; aspect-ratio: 16 / 10; background: var(--color-raised); }
.unimap-partners-directory .ud-card__cover-clip { position: absolute; inset: 0; overflow: hidden; border-top-left-radius: 14px; border-top-right-radius: 14px; }
.unimap-partners-directory .ud-card__cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unimap-partners-directory .ud-card__cover-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.unimap-partners-directory .ud-card__logo { position: absolute; left: 16px; bottom: -28px; width: 64px; height: 64px; background: #FFFFFF; border-radius: 14px; padding: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3); z-index: 2; }
.unimap-partners-directory .ud-card__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.unimap-partners-directory .ud-card__logo--placeholder { background: var(--color-teal); color: #FFFFFF; font-size: 26px; font-weight: 700; line-height: 1; }
.unimap-partners-directory .ud-card__body { padding: 42px 18px 14px; flex: 1 1 auto; display: flex; flex-direction: column; }
/* Corner sticker on the top-left of the cover image. Floating pill
   padded off the corner so it reads as a discrete tag, not a stuck-on
   sticker. Subtle drop shadow lifts it off the cover image. */
.unimap-partners-directory .ud-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-teal);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    /* Cap short of the heart button (34px + 10px inset at top-right) so a
       long badge truncates with an ellipsis instead of colliding with the
       favourite icon on narrow (2-up mobile) cards. */
    max-width: calc(100% - 64px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
/* Manual (typed) badge: neutral fill so it reads as distinct from the teal
   auto "Uj" / derived pills. Auto pills keep the base teal above. */
.unimap-partners-directory .ud-card__badge--manual {
    background: rgba(20, 20, 20, 0.72);
    color: #ECECEC;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Favorite (heart) button. Top-right of the cover, mirrors the badge
   on the left. Empty state = translucent dark pill with white outline
   heart. Filled state (.is-faved) = solid red heart on white pill. Sits
   ABOVE the .ud-card__link anchor via z-index so clicks are intercepted
   by the button's own handler, not the link's. */
.unimap-partners-directory .ud-card__fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    appearance: none;
    -webkit-appearance: none;
    /* The site's heart (globals.css, D155): Housing's frosted disc. */
    border: 1px solid var(--heart-line);
    padding: 0;
    margin: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--heart-bg);
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background .18s ease, transform .12s ease, color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.unimap-partners-directory .ud-card__fav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
}
.unimap-partners-directory .ud-card__fav-btn:active {
    transform: scale(0.94);
}
.unimap-partners-directory .ud-card__fav-btn svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill .18s ease, stroke .18s ease;
}
.unimap-partners-directory .ud-card__fav-btn.is-faved {
    background: var(--heart-saved-bg);
    border-color: transparent;
    color: var(--color-heart);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}
.unimap-partners-directory .ud-card__fav-btn.is-faved svg {
    fill: var(--color-heart);
    stroke: var(--color-heart);
}

/* Pop animation on toggle. JS adds .is-popping then removes it after
   ~450ms. Includes a tiny counter-rotation flourish so the heart
   "pulses" rather than just scaling flat — feels more alive. */
@keyframes ud-fav-pop {
    0%   { transform: scale(1) rotate(0deg); }
    30%  { transform: scale(1.35) rotate(-8deg); }
    55%  { transform: scale(0.92) rotate(4deg); }
    75%  { transform: scale(1.12) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.unimap-partners-directory .ud-card__fav-btn.is-popping {
    animation: ud-fav-pop 450ms cubic-bezier(0.32, 0.72, 0, 1);
}
/* Little heart burst — fake sparkle particles that fly out when the
   user hits favorite. Purely decorative; hidden unless popping AND
   moving into the faved state. Using two pseudo-elements so we don't
   need any extra DOM. */
.unimap-partners-directory .ud-card__fav-btn.is-faved.is-popping::before,
.unimap-partners-directory .ud-card__fav-btn.is-faved.is-popping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-heart);
    pointer-events: none;
    opacity: 0;
    animation: ud-fav-spark 550ms ease-out;
}
.unimap-partners-directory .ud-card__fav-btn.is-faved.is-popping::before {
    animation-delay: 40ms;
    --tx: -18px; --ty: -18px;
}
.unimap-partners-directory .ud-card__fav-btn.is-faved.is-popping::after {
    animation-delay: 80ms;
    --tx: 18px; --ty: -18px;
}
@keyframes ud-fav-spark {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    30%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--tx, 0)), calc(-50% + var(--ty, 0))) scale(0.3); }
}

/* Favorites toast — small pill anchored to the top center of the
   viewport (not the bottom, to keep clear of the /partners map/list FAB
   and the mobile bottom nav). Deliberately understated: small type,
   moderate weight, tight padding — it's a confirmation, not an alert. */
.ufav-toast {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: rgba(28, 28, 28, 0.94);
    color: var(--color-body);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .01em;
    white-space: nowrap;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 99999;
    opacity: 0;
    transition: opacity .2s ease, transform .2s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.ufav-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Title reserves two lines of space regardless of actual length so cards
   align across the grid. The single dashed divider between the title
   block and the footer sits on the footer's border-top, not here. */
.unimap-partners-directory .ud-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Short description: muted supporting line that fills the body so the card
   doesn't read empty, and helps discovery of unfamiliar places. */
.unimap-partners-directory .ud-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--color-faint-text); line-height: 1.45; margin: 10px 0 0; }
/* Offer sits in a contained soft-teal band (visual weight, like the old
   pill) and hugs its content via align-self; the amount is tinted brighter. */
.unimap-partners-directory .ud-card__discount { display: block; align-self: flex-start; width: auto; max-width: 100%; margin: 0; padding: 7px 12px; border-radius: 10px; background: rgba(90,143,141,.12); border: 1px solid rgba(90,143,141,.28); color: #D8E4E3; font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unimap-partners-directory .ud-card__disc-amt { color: #8FD3C8; font-weight: 700; }
.unimap-partners-directory .ud-card__discount-text { display: inline; }
.unimap-partners-directory .ud-card__footer { display: flex; align-items: center; justify-content: flex-start; padding: 14px 18px 16px; border-top: 1.5px dashed var(--color-line-strong); margin-top: 6px; gap: 10px; }
.unimap-partners-directory .ud-card__tags { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; flex: 0 0 auto; margin-left: auto; }
/* Category label fills the footer's left (where district used to sit on
   /partners), so the footer reads "category ........ channel" instead of a
   lone right-hand icon. Hidden on the map row (that footer shows district
   + distance instead). */
.unimap-partners-directory .ud-card__cat { min-width: 0; font-size: 12px; font-weight: 500; color: var(--color-faint-text); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__cat { display: none; }
.unimap-partners-directory .ud-card__district {
    font-size: 13px;
    color: var(--color-soft);
    font-weight: 500;
    /* Never wrap district onto two lines in the flex footer — truncate
       with ellipsis instead so narrow phone cards + hybrid cards stay
       one row tall regardless of district-name length. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* Per-card distance from the user's Near-me position, appended into the
   district meta line by JS (updateCardDistances). Teal accent; the "·"
   separator is a faint pseudo-element so the line reads "VIII · 450 m".
   Only present when has_coords AND a user position exists. */
.unimap-partners-directory .ud-card__dist { color: var(--color-teal); font-weight: 600; white-space: nowrap; }
.unimap-partners-directory .ud-card__dist::before { content: "·"; margin: 0 6px; color: var(--color-faint-text); font-weight: 400; }
/* Type chips — subtle teal accents that read as "tag", not "button". Same
   fill/geometry for in-person and online so hybrid cards look consistent
   with either single-type card. Replaced the old Részletek CTA in v0.27.x. */
/* District dropped on /partners + /kedvencek; kept on the map route
   (.is-map-route) where proximity matters. Same shared node either way. */
.unimap-partners-directory:not(.is-map-route) .ud-card__district { display: none; }
.unimap-partners-directory .ud-card__in-person,
.unimap-partners-directory .ud-card__online {
    display: inline-flex; align-items: center; justify-content: center; gap: 0;
    line-height: 1;
    color: var(--color-teal);
    background: var(--color-teal-wash);
    border-radius: var(--radius-pill);
    padding: 6px 7px;
}
/* Channel is icon-only at every width (labels doubled up awkwardly on
   hybrids). role="img" + aria-label on each chip keeps the accessible name. */
.unimap-partners-directory .ud-card__tag-label { display: none; }
.unimap-partners-directory .ud-card__in-person svg,
.unimap-partners-directory .ud-card__online svg { width: 12px; height: 12px; }

/* Skeleton state on filter change: replace every content element with a
   gray shimmering bar in the same footprint. Text is made transparent, the
   element itself carries the gradient, so the card layout never shifts. */
.unimap-partners-directory .ud-list.is-filtering .ud-card { pointer-events: none; }

/* Cover image + logo become gray blocks. */
.unimap-partners-directory .ud-list.is-filtering .ud-card__cover-img,
.unimap-partners-directory .ud-list.is-filtering .ud-card__cover-fade { visibility: hidden; }
.unimap-partners-directory .ud-list.is-filtering .ud-card__cover-clip {
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%);
    background-size: 220% 100%;
    animation: ud-skel 1.3s ease-in-out infinite;
}
.unimap-partners-directory .ud-list.is-filtering .ud-card__logo {
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%) !important;
    background-size: 220% 100% !important;
    animation: ud-skel 1.3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.unimap-partners-directory .ud-list.is-filtering .ud-card__logo img,
.unimap-partners-directory .ud-list.is-filtering .ud-card__logo span { visibility: hidden; }

/* Title becomes one 70% width bar. Skeleton overrides the base rule's
   two-line reserve and line-clamp so we render as a simple pill. */
.unimap-partners-directory .ud-list.is-filtering .ud-card__title {
    color: transparent !important;
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%);
    background-size: 220% 100%;
    animation: ud-skel 1.3s ease-in-out infinite;
    border-radius: 6px;
    height: 20px;
    min-height: 0;
    max-width: 70%;
    overflow: hidden;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

/* Description becomes a single ~60%-width bar (matches the 1-line clamp). */
.unimap-partners-directory .ud-list.is-filtering .ud-card__desc {
    color: transparent !important;
    height: 14px;
    max-width: 60%;
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%);
    background-size: 220% 100%;
    animation: ud-skel 1.3s ease-in-out infinite;
    border-radius: 6px;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    display: block;
    overflow: hidden;
}

/* Kicker pill skeleton — only badge-carrying cards will have the span in
   the DOM, so cards without a badge never render a false-positive bar. */
.unimap-partners-directory .ud-list.is-filtering .ud-card__badge {
    color: transparent !important;
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%) !important;
    background-size: 220% 100% !important;
    animation: ud-skel 1.3s ease-in-out infinite;
    min-width: 48px;
}

/* Discount pill becomes a full gray pill, no border. */
.unimap-partners-directory .ud-list.is-filtering .ud-card__discount {
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%) !important;
    background-size: 220% 100% !important;
    animation: ud-skel 1.3s ease-in-out infinite;
    border-color: transparent !important;
}
.unimap-partners-directory .ud-list.is-filtering .ud-card__discount-icon,
.unimap-partners-directory .ud-list.is-filtering .ud-card__discount-text { visibility: hidden; }

/* Footer chip skeletons. District stays a bar-style skeleton (matches
   its plain-text render); type chips retain their natural pill sizing
   and only swap the fill to the shimmer gradient. */
.unimap-partners-directory .ud-list.is-filtering .ud-card__district {
    color: transparent !important;
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%);
    background-size: 220% 100%;
    animation: ud-skel 1.3s ease-in-out infinite;
    border-radius: 5px;
    display: inline-block;
    height: 16px;
    width: 80px;
}
.unimap-partners-directory .ud-list.is-filtering .ud-card__in-person,
.unimap-partners-directory .ud-list.is-filtering .ud-card__online {
    color: transparent !important;
    background: linear-gradient(90deg, #2a2a2a 25%, var(--color-line-strong) 50%, #2a2a2a 75%) !important;
    background-size: 220% 100% !important;
    animation: ud-skel 1.3s ease-in-out infinite;
}
@keyframes ud-skel { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }

/* Empty state, buttons, footer, toast, FLIP anim. */
.unimap-partners-directory .ud-empty { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 22px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 14px; margin-bottom: 28px; display: flex; }
.unimap-partners-directory .ud-empty__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-teal-soft); color: var(--color-teal-light); margin-bottom: 12px; }
.unimap-partners-directory .ud-empty__text { font-size: 15px; color: var(--color-soft); margin: 0 0 16px; }
/* The site's buttons (globals.css, D155), at `button({ size: 'page' })`. */
.unimap-partners-directory .ud-btn { appearance: none; border: 0; font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 11px 22px; border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--btn-transition); line-height: 1.2; }
.unimap-partners-directory .ud-btn--ghost { background: var(--btn-ghost-bg); color: var(--color-body); border: 1px solid var(--btn-ghost-line); }
.unimap-partners-directory .ud-btn--ghost:hover { background: var(--btn-ghost-bg-hover); border-color: var(--btn-ghost-line-hover); color: #FFFFFF; }
.unimap-partners-directory .ud-btn--ghost:active { background: var(--btn-ghost-bg-active); }
.unimap-partners-directory .ud-footer { text-align: center; color: var(--color-faint-text); font-size: 13px; margin: 28px 0 0; }

/* "More partners coming" reassurance card. Sits at the bottom of the
   list column (inside .ud-list-col so on desktop it stays under the
   cards, not next to the map). Purpose: soften the perceived thinness
   of the launch catalog by signalling active growth. Subtle teal-tinted
   card, not shouty — it's a footnote, not a CTA. */
.unimap-partners-directory .ud-coming { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 14px; margin-top: 28px; }
.unimap-partners-directory .ud-coming__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-teal-soft); color: var(--color-teal-light); flex-shrink: 0; }
.unimap-partners-directory .ud-coming__icon .ud-icon { width: 22px; height: 22px; }
.unimap-partners-directory .ud-coming__body { min-width: 0; }
.unimap-partners-directory .ud-coming__title { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; color: var(--color-body); line-height: 1.35; }
.unimap-partners-directory .ud-coming__text { margin: 0; font-size: 13px; color: var(--color-soft); line-height: 1.45; }

/* Logged-out signup promo. A sticky-bottom bar living INSIDE .ud-list-col,
   so it's width-scoped to the list column and can never overlap the map
   (a separate grid sibling). It floats over the listings while scrolling
   and settles at the foot of the list at the end. Sticky-bottom needs
   scroll room below the element's natural (last-child) spot to float, so
   .ud-list-col.has-promo adds bottom padding to create it. Rendered for
   logged-out visitors only (see render_directory) and additionally hard-
   hidden in the installed PWA/TWA shell as a backstop — standalone users
   are already members and must never see a signup pitch. Dismissal sets a
   7-day cookie (see the inline script by the markup). */
.unimap-partners-directory .ud-list-col { position: relative; }
.unimap-partners-directory .ud-list-col.has-promo { padding-bottom: 80px; }
.unimap-partners-directory .ud-promo { position: sticky; bottom: calc(14px + var(--ump-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 6; margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; background: linear-gradient(180deg, var(--color-raised), var(--color-surface)); border: 1px solid var(--color-line); border-radius: 14px; box-shadow: var(--shadow-bar); transition: opacity .2s ease, transform .2s ease; }
.unimap-partners-directory .ud-promo.is-dismissed { opacity: 0; transform: translateY(8px); pointer-events: none; }
.unimap-partners-directory .ud-promo__icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--color-teal-soft); color: var(--color-teal-light); flex-shrink: 0; }
.unimap-partners-directory .ud-promo__icon svg { width: 20px; height: 20px; }
.unimap-partners-directory .ud-promo__body { flex: 1 1 auto; min-width: 0; }
.unimap-partners-directory .ud-promo__title { margin: 0 0 2px; font-size: 14.5px; font-weight: 700; color: var(--color-body); line-height: 1.3; }
.unimap-partners-directory .ud-promo__text { margin: 0; font-size: 13px; font-weight: 500; color: var(--color-soft); line-height: 1.4; }
.unimap-partners-directory .ud-promo__cta { flex-shrink: 0; display: inline-flex; align-items: center; padding: 9px 16px; background: var(--color-teal); color: #fff; font-size: 13.5px; font-weight: 600; border-radius: var(--radius-pill); text-decoration: none; transition: background .15s ease; }
.unimap-partners-directory .ud-promo__cta:hover { background: var(--color-teal-dark); }
.unimap-partners-directory .ud-promo__dismiss { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--color-faint-text); border-radius: 8px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.unimap-partners-directory .ud-promo__dismiss:hover { color: var(--color-soft); background: var(--color-raised); }
.unimap-partners-directory .ud-promo__dismiss .ud-icon { width: 16px; height: 16px; }
html.unimap-standalone-app-html .unimap-partners-directory .ud-promo { display: none !important; }
@media (max-width: 600px) {
    /* Stack instead of cramming title + text + button + dismiss into one
       row — that squeeze is what made this unreadable on phones. */
    .unimap-partners-directory .ud-promo { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
    .unimap-partners-directory .ud-promo__icon { display: none; }
    .unimap-partners-directory .ud-promo__body { padding-right: 26px; }
    .unimap-partners-directory .ud-promo__title { font-size: 14.5px; }
    .unimap-partners-directory .ud-promo__text { font-size: 12.5px; }
    .unimap-partners-directory .ud-promo__cta { padding: 11px 16px; font-size: 13.5px; width: 100%; justify-content: center; }
    .unimap-partners-directory .ud-promo__dismiss { position: absolute; top: 10px; right: 10px; }
    .unimap-partners-directory .ud-list-col.has-promo { padding-bottom: 156px; }
}
.unimap-partners-directory .ud-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--color-body); color: var(--color-ground); padding: 12px 20px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 99998; opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.unimap-partners-directory .ud-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.unimap-partners-directory .ud-card.ud-flip-anim { transition: transform 340ms cubic-bezier(0.32, 0.72, 0, 1); }

/* Map. Tile filter now persists during pan/zoom (was toggled off on drag before, which caused a flash). */
.unimap-partners-directory .ud-mapwrap { position: sticky; top: 120px; height: calc(100vh - 140px); min-height: 520px; border-radius: 14px; overflow: hidden; border: 1px solid var(--color-line); background: #0E1115; box-shadow: var(--shadow-card); }
.unimap-partners-directory .ud-map { height: 100%; width: 100%; background: #0E1115; }

/* Near-me + Reset-view Leaflet controls. Aggressively overrides Elementor's
   default button styling (magenta primary color, box-shadow, etc.). */
button.ud-mapctl {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 9px 14px !important;
    margin: 0 8px 8px 0 !important;
    background: rgba(28,28,28,.92) !important;
    background-color: rgba(28,28,28,.92) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 999px !important;
    outline: none !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.45) !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    float: none !important;
}
button.ud-mapctl:hover {
    background: rgba(28,28,28,.96) !important;
    background-color: rgba(28,28,28,.96) !important;
    color: #8FB8B6 !important;
    border-color: rgba(120,180,178,.5) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 0 3px rgba(90,143,141,.15) !important;
    transform: translateY(-1px) !important;
}
button.ud-mapctl:focus,
button.ud-mapctl:focus-visible {
    outline: none !important;
    border-color: rgba(120,180,178,.6) !important;
    box-shadow: 0 0 0 3px rgba(90,143,141,.35), 0 8px 22px rgba(0,0,0,.45) !important;
}
button.ud-mapctl:active { transform: scale(0.98) !important; }
button.ud-mapctl svg { flex-shrink: 0 !important; display: inline-block !important; }
button.ud-mapctl span { color: inherit !important; font: inherit !important; }

/* Near-me control: on DESKTOP it stays the original labelled top-right
   pill (base .ud-mapctl styles above). The round icon-only bottom-right
   treatment — matching the reference map's locate button — is applied
   on mobile only, inside the max-width:960px media query further down. */

/* Back button (mobile fullscreen only). */
.unimap-partners-directory .ud-map-back { position: absolute; top: 16px; left: 16px; z-index: 1001; appearance: none; width: 40px; height: 40px; background: rgba(28,28,28,.92); color: #FFFFFF; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 22px rgba(0,0,0,.45); display: none; transition: background .15s ease, transform .12s ease; }
.unimap-partners-directory .ud-map-back:hover { background: rgba(28,28,28,.96); }
.unimap-partners-directory .ud-map-back:active { transform: scale(.96); }

/* Installed-app: the fullscreen /terkep map is fixed to the top edge, so
   top-anchored controls sit under the notch/status bar. Offset them by the
   safe-area inset. Standalone-only; tiles stay full-bleed underneath. */
html.unimap-standalone-app-html .unimap-partners-directory .ud-map-back {
    top: calc(16px + env(safe-area-inset-top, 0px));
}

/* v0.70.0: the bottom-center list/map FAB was removed. The map is now
   its own /terkep bottom-nav tab (see class-unimap-bottom-nav.php) that
   renders this same directory in map mode. On /partners the list is the
   only mobile view; on /terkep the fullscreen map is. */

/* Markers + clusters. Positioning kept simple; visual comes from CSS. */
/* Single place = a small teal bead. A 1px dark hairline + drop shadow give it
   edge definition against lighter streets without the heavy white "sticker"
   ring (which read as busy, not clearer). */
.ud-marker__dot { position: absolute; inset: 4px; background: radial-gradient(circle at 35% 30%, #7DB5B3 0%, var(--color-teal-light) 65%, var(--color-teal) 100%); border-radius: 50%; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.5); transition: transform .2s ease, box-shadow .2s ease; }
.ud-marker:hover .ud-marker__dot,
.ud-marker.is-hover .ud-marker__dot,
.ud-marker.is-active .ud-marker__dot { transform: scale(1.6); box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 0 12px rgba(120,180,178,0.8), 0 1px 4px rgba(0,0,0,0.5); z-index: 10; }

/* Cluster: solid teal disc with a 1px dark hairline + tight depth shadow (no
   ring, no blurry halo). Fill darkens with density (sm→md→lg) so a busy
   district reads heavier at a glance than a pair of shops. Single-place beads
   stay small and un-numbered, so size + the count label already tell them
   apart from clusters. */
.ud-cluster { width: 100%; height: 100%; border-radius: 50%; background: #4A7B79; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 2px 7px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; transition: transform .18s ease, box-shadow .18s ease; }
.ud-cluster--sm { background: radial-gradient(circle at 35% 30%, var(--color-teal-light) 0%, var(--color-teal) 100%); }
.ud-cluster--md { background: radial-gradient(circle at 35% 30%, #59918F 0%, #497B79 100%); }
.ud-cluster--lg { background: radial-gradient(circle at 35% 30%, #457370 0%, #35605E 100%); }
.ud-cluster__n { color: #FFFFFF; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: -.02em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* Map-route results sheet: locating skeleton. Rendered server-side inside the
   sheet so it paints instantly, held until the first real map frame resolves
   (near-me or, on denial/no-nearby, the city overview). This is what removes
   the old "empty list → 2s later it populates" flash: we commit the list ONCE
   against the settled frame instead of once at load + again after geolocation. */
.udm-sheet__skel { display: none; padding: 2px 0 8px; }
.udm-sheet.is-locating .udm-sheet__skel { display: block; }
.udm-sheet.is-locating #ud-list,
.udm-sheet.is-locating #ud-empty { display: none !important; }
.udm-skel-row { height: 84px; border-radius: 16px; margin-bottom: 12px; background: linear-gradient(100deg, rgba(255,255,255,.045) 30%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.045) 70%); background-size: 200% 100%; animation: udm-skel-shimmer 1.2s ease-in-out infinite; }
@keyframes udm-skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Popup — shared "mini card" from Unimap_Map_Popup. See
   class-unimap-map-popup.php for the full stylesheet. Appended below
   via PHP. */

/* Two-row layout (utility bar + chips) is the default from the base rules
   above, so no emergency reflow is needed here. Just tighten the chip pill's
   corners a touch below the widest breakpoint. */
@media (max-width: 1180px) {
    .unimap-partners-directory .ud-filterbar__chips { border-radius: 22px; padding: 8px; }
}
@media (max-width: 960px) {
    .unimap-partners-directory .ud-hero__title { font-size: 30px; }

    /* Mobile dropdowns become bottom sheets — slide up from the bottom,
       full viewport width. This is the pattern users expect on phones. */
    .unimap-partners-directory .ud-districts__panel,
    .unimap-partners-directory .ud-sort__panel,
    .unimap-partners-directory .ud-searchpop__panel {
        position: fixed;
        top: auto;
        bottom: var(--ump-bottom-nav-h, 0px);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 22px 22px 0 0;
        border-bottom: 0;
        padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        z-index: 99999;
        box-shadow: 0 -14px 40px rgba(0,0,0,.6);
        animation: ud-sheet-up 260ms cubic-bezier(0.32,0.72,0,1) both;
    }
    /* Drag-handle indicator at the top of the sheet. Replaced by real
       .ud-sheet-handle element below; keep pseudo removed to avoid duplicate. */
    .unimap-partners-directory .ud-districts__panel::before,
    .unimap-partners-directory .ud-sort__panel::before,
    .unimap-partners-directory .ud-searchpop__panel::before {
        content: none;
    }
    /* Real, tappable/draggable handle at the top of every sheet. */
    .unimap-partners-directory .ud-sheet-handle {
        position: sticky; top: 0; z-index: 3;
        display: block; width: calc(100% + 40px);
        margin: -20px -20px 8px;
        padding: 12px 0 8px;
        background: inherit;
        border: 0; border-radius: 22px 22px 0 0;
        cursor: grab;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }
    .unimap-partners-directory .ud-sort__panel .ud-sheet-handle { margin: -20px -12px 8px; width: calc(100% + 24px); }
    .unimap-partners-directory .ud-sheet-handle:active { cursor: grabbing; }
    .unimap-partners-directory .ud-sheet-handle__bar {
        display: block; width: 44px; height: 5px;
        margin: 0 auto;
        border-radius: 999px;
        background: rgba(255,255,255,.24);
        transition: background .15s ease;
    }
    .unimap-partners-directory .ud-sheet-handle:hover .ud-sheet-handle__bar { background: rgba(255,255,255,.35); }
    /* Sheet: kill overscroll chaining (browser pull-to-refresh). Content sizes
       the sheet naturally — no internal scroll. */
    .unimap-partners-directory .ud-districts__panel,
    .unimap-partners-directory .ud-sort__panel,
    .unimap-partners-directory .ud-searchpop__panel {
        overscroll-behavior: contain;
    }
    /* Backdrop behind sheet (fade in when any dropdown open on mobile). */
    .unimap-partners-directory .ud-sheet-backdrop {
        position: fixed; top: 0; left: 0; right: 0; bottom: var(--ump-bottom-nav-h, 0px); z-index: 99998;
        background: rgba(0,0,0,.55);
        opacity: 0; pointer-events: none;
        transition: opacity 220ms ease;
    }
    .unimap-partners-directory.has-open-dropdown .ud-sheet-backdrop {
        opacity: 1; pointer-events: auto;
    }
    /* Body scroll lock while a sheet is open — belt & braces with overscroll-behavior. */
    html.ud-sheet-locked, html.ud-sheet-locked body {
        overflow: hidden !important;
        overscroll-behavior: none;
        touch-action: none;
    }
    /* Optional drag-follow transform during pointer drag. */
    .unimap-partners-directory .ud-districts__panel.is-dragging,
    .unimap-partners-directory .ud-sort__panel.is-dragging,
    .unimap-partners-directory .ud-searchpop__panel.is-dragging {
        animation: none !important;
        transition: transform 0ms;
    }
    /* Smooth close/snap-back transition (applied briefly after drag ends). */
    .unimap-partners-directory .ud-districts__panel.is-settling,
    .unimap-partners-directory .ud-sort__panel.is-settling,
    .unimap-partners-directory .ud-searchpop__panel.is-settling {
        transition: transform 220ms cubic-bezier(0.32,0.72,0,1);
    }
    .unimap-partners-directory .ud-sort__panel { padding: 20px 12px calc(24px + env(safe-area-inset-bottom, 0px)); }

    .unimap-partners-directory .ud-content,
    .unimap-partners-directory .ud-content[data-map-visible="true"] { grid-template-columns: 1fr !important; gap: 0 !important; }
    .unimap-partners-directory .ud-list,
    .unimap-partners-directory .ud-content[data-map-visible="true"] .ud-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px; }
    /* Fullscreen mobile map (only ever active on the /terkep route now).
       The overlay fills the whole viewport, running *behind* the bottom
       tab bar (bottom:0). The bar is raised above this overlay
       (body.unimap-map-locked .ump-bottom-nav { z-index:99999 }) so its
       backdrop-filter frosts over the live map — matches the reference
       "map tab" pattern, and reads identically to the frost over content
       on the other tabs. The bottom sheet and the docked locate button
       still reserve --ump-bottom-nav-h so their own content clears the
       bar (falls back to 0 at 783–960px where the bar is hidden). */
    .unimap-partners-directory .ud-content[data-map-visible="true"] .ud-map-col { position: fixed; top: 0; left: 0; right: 0; bottom: calc(-1 * env(safe-area-inset-bottom, 0px)); z-index: 99997; background: var(--color-ground); opacity: 1; transform: none; animation: ud-map-overlay-in 320ms cubic-bezier(0.32,0.72,0,1) both; }
    .unimap-partners-directory .ud-content[data-map-visible="true"] .ud-mapwrap { position: relative; top: 0; height: 100%; max-height: none; min-height: 0; border-radius: 0; border: 0; box-shadow: none; }
    /* When the map isn't the active mobile view, .ud-map-col otherwise falls back to the desktop rule (opacity:0 but still laid out), and its child .ud-mapwrap still carries the desktop sticky-map sizing (height: calc(100vh - 140px); min-height: 520px). Since mobile stacks list-col and map-col in one grid column instead of side-by-side, that invisible block reserved a huge blank gap between the card list and the footer. Fully remove it from flow here instead of just hiding it visually. */
    .unimap-partners-directory .ud-content:not([data-map-visible="true"]) .ud-map-col { display: none !important; }
    /* Scroll-bleed guard while the fixed map overlay is up (<=960px). We
       deliberately do NOT set overflow:hidden here any more: a non-
       scrolling <body> is exactly what makes iOS anchor the fixed bottom
       nav to the padded document box instead of the true viewport bottom,
       floating the bar up by the home-indicator inset and reporting
       env(safe-area-inset-bottom) as 0 (the "/terkep bar too tall" bug).
       The map overlay + bottom sheet + nav are all position:fixed and the
       in-flow content is display:none, so the map fully covers the page
       and there is no reachable area to scroll-bleed anyway. The forced
       1px body overflow (Unimap_PWA min-height rule) keeps the body
       scrollable so the nav anchors correctly; the sheet list keeps its
       own overscroll-behavior:contain, and overscroll-behavior:none here
       kills any rubber-band on that hairline of body scroll. */
    html.unimap-map-locked { overscroll-behavior: none; }
    body.unimap-map-locked { overscroll-behavior: none; }
    /* Drop ALL body padding on the map route. On the other tabs <body>
       carries padding-bottom: var(--ump-bottom-nav-h) (nav clearance) and,
       in standalone, padding-top: calc(env(safe-area-inset-top)+8px) (notch
       clearance, set !important by Unimap_PWA::inline_css). On the map route
       the in-flow content is display:none and the map/sheet/nav are all
       fixed, so neither padding does anything useful — and per the v0.78.8
       finding, a *padded*, overflow:hidden, non-scrolling <body> makes iOS
       anchor the fixed bottom nav to the padded document box instead of the
       true viewport bottom, floating the bar up (visible as a dead frosted
       band + hairline under the tabs on /terkep only). v0.78.8 zeroed only
       padding-bottom; the standalone padding-TOP kept the body padded, so
       the float persisted. Zero BOTH. Needs html+body specificity to beat
       the standalone `html... body { padding-top: ...!important }` rule. */
    html.unimap-map-locked body.unimap-map-locked { padding-top: 0 !important; padding-bottom: 0 !important; }

    /* No +/- zoom buttons on mobile — pinch to zoom instead. */

    /* Mobile map tab: near-me becomes a round, icon-only locate button
       docked bottom-right (matches the reference). Desktop is unaffected
       — it keeps the labelled top-right pill from the base rules. The
       "Overview"/reset button stays top-right + labelled on both. The
       !important margin below beats Leaflet's default control margins on
       its own; do NOT re-introduce a .leaflet-bottom.leaflet-right
       .leaflet-control{margin:0} reset — its higher specificity would
       override this margin and slam the button flush against the nav. */
    .unimap-partners-directory .ud-mapctl--near span { display: none !important; }
    button.ud-mapctl--near {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 50% !important;
        /* Map now runs full-height behind the bottom nav, so lift the
           locate button by the nav height + 14px so it doesn't hide
           under the frosted bar (falls back to 14px where no bar). */
        margin: 0 16px calc(var(--ump-bottom-nav-h, 0px) + 14px) 0 !important;
    }
    button.ud-mapctl--near svg { width: 20px !important; height: 20px !important; }

    /* /terkep map route: the fullscreen map is position:fixed, so the
       hero / filter bar / card list / footer would otherwise stay in
       normal flow *behind* it and make the document taller than the
       viewport — you'd see (and be able to drag) a phantom scrollbar
       even though nothing visibly moves. The map tab is map-only on
       mobile, so pull all that in-flow content out entirely. The map
       itself is fixed (out of flow), leaving the document at viewport
       height with nothing to scroll. Desktop is untouched (this block
       is inside the mobile media query, and /terkep keeps the split
       list+map view there). */
    .unimap-partners-directory.is-map-route { padding: 0 !important; }
    .unimap-partners-directory.is-map-route .ud-shell { padding: 0 !important; }
    .unimap-partners-directory.is-map-route .ud-hero,
    .unimap-partners-directory.is-map-route .ud-filterbar,
    .unimap-partners-directory.is-map-route .ud-filterbar-sentinel,
    .unimap-partners-directory.is-map-route .ud-list-col,
    .unimap-partners-directory.is-map-route .ud-footer { display: none !important; }
}
@keyframes ud-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ud-map-overlay-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* Mobile filters sheet — category, sort, and district-label sections inside
   the districts panel. Hidden on desktop; the sort trigger and category chips
   keep their own top-bar homes there. */
.unimap-partners-directory .ud-districts__head-title--mobile { display: none; }
.unimap-partners-directory .ud-mcat,
.unimap-partners-directory .ud-msort,
.unimap-partners-directory .ud-mtype,
.unimap-partners-directory .ud-msection-label { display: none; }

/* Mobile-only placeholder text inside the search trigger. */
.unimap-partners-directory .ud-searchpop__placeholder { display: none; }

@media (max-width: 640px) {
    /* Same bar clearance as the base rule. The shorthand used to reset
       padding-bottom to a flat 56px, which both dropped the safe-area inset
       and ignored the tab bar entirely -- that is what let .ud-coming collide
       with the nav on phones. */
    .unimap-partners-directory {
        padding: 22px 0 0;
        padding-bottom: calc(var(--ump-bottom-nav-h, env(safe-area-inset-bottom, 0px)) + 56px);
    }
    .unimap-partners-directory .ud-shell { padding: 0 16px; }
    /* Tight 2-col on phone. Cards get scaled down accordingly below. */
    .unimap-partners-directory .ud-list,
    .unimap-partners-directory .ud-content[data-map-visible="true"] .ud-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
    /* Smaller logo + tighter body padding for phone-sized cards. Logo
       shrinks 64→48px, hangs -22px into the body, body top-padding drops
       to 32px to keep the same visual gap under it. */
    .unimap-partners-directory .ud-card__logo { width: 48px; height: 48px; border-radius: 10px; padding: 6px; left: 10px; bottom: -22px; }
    .unimap-partners-directory .ud-card__logo--placeholder { font-size: 20px; }
    .unimap-partners-directory .ud-card__body { padding: 34px 13px 12px; }
    .unimap-partners-directory .ud-card__title { font-size: 14px; margin: 0 0 7px; }
    /* Description dropped on the phone grid — too much on a 2-col card, and
       it made card content misalign. Shown on wider (desktop) cards. */
    .unimap-partners-directory .ud-card__desc { display: none; }
    .unimap-partners-directory .ud-card__discount {
        display: block;
        align-self: flex-start;
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 6px 10px;
        border-radius: 9px;
        background: rgba(90,143,141,.12);
        border: 1px solid rgba(90,143,141,.28);
        color: #D8E4E3;
        font-size: 12.5px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Nudge icon down a hair so it optically aligns with the cap-height
       of the first line of text instead of sitting at the line's top. */
    .unimap-partners-directory .ud-card__discount-icon { margin-top: 3px; }
    .unimap-partners-directory .ud-card__discount-icon svg { width: 12px; height: 12px; }
    /* Override the base rule's nowrap + ellipsis (which is for the fat
       desktop pill). On phone the flat teal line runs up to 2 lines so
       longer discount summaries still reveal their meaningful middle
       before clipping. */
    .unimap-partners-directory .ud-card__discount-text {
        display: inline;
        white-space: normal;
    }
    .unimap-partners-directory .ud-card__footer { padding: 10px 12px 12px; }
    /* Tighter reassurance card on phone — smaller icon + type, less
       chrome, so it sits as an unobtrusive footer above .ud-footer. */
    .unimap-partners-directory .ud-coming { padding: 12px 14px; gap: 12px; margin-top: 20px; }
    .unimap-partners-directory .ud-coming__icon { width: 36px; height: 36px; }
    .unimap-partners-directory .ud-coming__icon .ud-icon { width: 18px; height: 18px; }
    .unimap-partners-directory .ud-coming__title { font-size: 13.5px; }
    .unimap-partners-directory .ud-coming__text { font-size: 12.5px; }
    .unimap-partners-directory .ud-card__district { font-size: 11.5px; }
    /* Drop the "kerület" / "district" suffix on phone so the Roman
       numeral alone fits comfortably alongside the type chip. Roman is
       the universally recognized form for Budapest districts ("VII." is
       unambiguous on signage and addresses), so no meaning is lost. */
    .unimap-partners-directory .ud-card__district-suffix { display: none; }
    /* ...but keep the full "kerület" / "District" suffix in the /terkep
       sheet list. Those horizontal cards have the room, and the bare Roman
       numeral there read as an unlabelled number ("XV" with no context). */
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__district-suffix { display: inline; }
    /* Mode indicator collapses to icon-only chips on the phone grid:
       in-person → storefront glyph, online → globe, hybrid → both.
       The text label is dropped visually; role="img" + aria-label on the
       chip keeps the accessible name ("Személyes" / "Online"). */
    .unimap-partners-directory .ud-card__tag-label { display: none; }
    .unimap-partners-directory .ud-card__in-person,
    .unimap-partners-directory .ud-card__online { gap: 0; padding: 6px 7px; }
    /* Floating pill scaled down for narrower cards. Offset from the
       cover edges shrinks alongside padding and font-size. */
    .unimap-partners-directory .ud-card__badge { top: 10px; left: 10px; font-size: 11px; padding: 6px 12px; }
    .unimap-partners-directory .ud-hero__title { font-size: 26px; }
    .unimap-partners-directory .ud-hero__lede { font-size: 13.5px; }

    /* Filter bar (mobile): search + filter icon on row 1, category chips
       on row 2, kept as two SEPARATE elements with a gap between them —
       not fused onto one rounded card — and NOT sticky. The bar sits at the
       top of the page and scrolls away with the content. (Reverted from the
       unified sticky card.) */
    .unimap-partners-directory .ud-filterbar {
        position: static;
        top: auto;
        gap: 12px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    /* Row 1 (search + filter): the search field and the filter trigger
       share ONE rounded dark bar (search on the left, a hairline divider,
       the filter icon on the right) — a single search-with-filter control
       rather than two disjointed pills. NOT sticky; it scrolls with the
       page. The bar itself owns the surface; the buttons inside are
       transparent. Plain background (no backdrop-filter/transform) so it
       never becomes a containing block for the portaled-out sheets. */
    .unimap-partners-directory .ud-filterbar__utility {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "search filters";
        gap: 0;
        padding: 4px;
        border-radius: 999px;
        background: var(--color-surface);
        border: 1px solid var(--color-line-strong);
        box-shadow: var(--shadow-bar);
    }
    .unimap-partners-directory .ud-searchpop { grid-area: search; min-width: 0; }
    .unimap-partners-directory .ud-districts { grid-area: filters; min-width: 0; }
    .unimap-partners-directory .ud-sort { display: none; }
    /* Row 2 (category chips): its own separate horizontal side-scroll row
       below the search/filter row — no binding divider, no shared card. */
    .unimap-partners-directory .ud-filterbar__chips {
        display: block; background: transparent; border: 0; box-shadow: none;
        width: 100%; margin: 0; padding: 0;
    }
    /* Non-sticky on mobile, so neutralise the desktop base's
       frosted-chips-on-stuck rule (higher specificity). */
    .unimap-partners-directory .ud-filterbar.is-stuck .ud-filterbar__chips {
        background: transparent;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        padding: 0;
    }
    .unimap-partners-directory .ud-catseg {
        display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap;
        gap: 8px; margin: 0; padding: 0 2px; scroll-padding-left: 2px;
        overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    }
    .unimap-partners-directory .ud-catseg__btn {
        background: var(--color-raised); color: var(--color-soft);
        padding: 9px 15px; font-size: 13.5px; font-weight: 600; flex-shrink: 0;
    }
    .unimap-partners-directory .ud-catseg__btn.is-active { background: var(--color-teal); color: #FFFFFF; }
    .unimap-partners-directory .ud-catseg__count { opacity: .7; font-weight: 600; margin-left: 2px; }

    /* Search trigger: full-width, transparent inside the shared bar. */
    .unimap-partners-directory .ud-searchpop__btn {
        width: 100%; height: 44px; border-radius: 999px;
        justify-content: flex-start; padding: 0 10px 0 14px; gap: 10px;
        background: transparent;
    }
    .unimap-partners-directory .ud-searchpop__btn .ud-icon { width: 20px; height: 20px; color: var(--color-faint-text); flex-shrink: 0; }
    .unimap-partners-directory .ud-searchpop__placeholder {
        display: inline-block; color: var(--color-faint-text); font-size: 13.5px; font-weight: 400;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
    }
    .unimap-partners-directory .ud-searchpop__btn.is-active { background: transparent; }
    .unimap-partners-directory .ud-searchpop__btn.is-active .ud-icon,
    .unimap-partners-directory .ud-searchpop__btn.is-active .ud-searchpop__placeholder { color: var(--color-body); }
    .unimap-partners-directory .ud-searchpop__dot { top: 4px; right: 4px; }

    /* Filters button (uses the existing Districts trigger): transparent
       inside the shared bar, with a hairline divider on its left edge
       separating it from the search field. */
    .unimap-partners-directory .ud-districts__btn {
        position: relative;
        height: 44px; padding: 0 16px; border-radius: 999px; gap: 8px;
        background: transparent; color: var(--color-body); font-size: 13.5px;
    }
    .unimap-partners-directory .ud-districts__btn::before {
        content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        width: 1px; height: 22px; background: var(--color-line-strong);
    }
    .unimap-partners-directory .ud-districts__btn:hover { background: var(--color-teal-wash); }
    /* Trigger is icon-only on phone: show the lucide list-filter glyph,
       hide the text label. The count badge still shows when district
       filters are active. */
    .unimap-partners-directory .ud-districts__ficon {
        display: inline-flex; align-items: center; justify-content: center;
        flex: 0 0 auto;
    }
    .unimap-partners-directory .ud-districts__ficon .ud-icon { width: 20px; height: 20px; }
    .unimap-partners-directory .ud-districts__btn-label { display: none; }
    .unimap-partners-directory .ud-districts__btn .ud-chevron { display: none; }
    .unimap-partners-directory .ud-districts__btn .ud-badge { background: var(--color-teal); }

    /* Category chips render as the side-scroll row above (styled earlier);
       the in-sheet .ud-mcat copy is intentionally left hidden on mobile. */

    /* Reveal the mobile filters sheet contents. */
    .unimap-partners-directory .ud-districts__head-title--desktop { display: none; }
    .unimap-partners-directory .ud-districts__head-title--mobile  { display: inline; }
    .unimap-partners-directory .ud-msort,
    .unimap-partners-directory .ud-mtype,
    .unimap-partners-directory .ud-msection-label { display: block; }

    .unimap-partners-directory .ud-mcat,
    .unimap-partners-directory .ud-msort,
    .unimap-partners-directory .ud-mtype { margin: 4px 0 18px; }
    .unimap-partners-directory .ud-mcat__label,
    .unimap-partners-directory .ud-msort__label,
    .unimap-partners-directory .ud-mtype__label,
    .unimap-partners-directory .ud-msection-label {
        font-size: 13px; font-weight: 600; color: var(--color-soft);
        margin: 0 0 10px; text-transform: none; letter-spacing: .01em;
    }
    .unimap-partners-directory .ud-msection-label { margin-top: 4px; }
    .unimap-partners-directory .ud-mcat__opts,
    .unimap-partners-directory .ud-msort__opts,
    .unimap-partners-directory .ud-mtype__opts { display: flex; flex-wrap: wrap; gap: 6px; }
    .unimap-partners-directory .ud-mcat__opt,
    .unimap-partners-directory .ud-msort__opt,
    .unimap-partners-directory .ud-mtype__opt {
        appearance: none; border: 1px solid var(--color-line-strong); background: var(--color-raised);
        color: var(--color-soft); font-family: inherit; font-size: 13px; font-weight: 500;
        padding: 8px 14px; border-radius: 999px; cursor: pointer; line-height: 1;
        transition: background .15s ease, color .15s ease, border-color .15s ease;
    }
    .unimap-partners-directory .ud-mcat__opt.is-active,
    .unimap-partners-directory .ud-msort__opt.is-active,
    .unimap-partners-directory .ud-mtype__opt.is-active {
        background: var(--color-teal); border-color: var(--color-teal); color: #FFFFFF;
    }
    .unimap-partners-directory .ud-mcat__opt.is-disabled,
    .unimap-partners-directory .ud-msort__opt.is-disabled {
        opacity: .4; cursor: not-allowed;
    }
    .unimap-partners-directory .ud-mcat__opt .ud-mcat__count,
    .unimap-partners-directory .ud-mtype__opt .ud-mtype__count {
        opacity: .65; margin-left: 4px; font-weight: 500; font-size: 12px;
    }
    .unimap-partners-directory .ud-mcat__opt.is-active .ud-mcat__count,
    .unimap-partners-directory .ud-mtype__opt.is-active .ud-mtype__count { opacity: .9; }

    /* Sub-row under the category pills (phone): live result count on the
       left, a compact "Sort by: <value> v" trigger on the right that opens
       the shared sort bottom-sheet (reuses #ud-sort-panel). Single row,
       space-between -- replaces the old wrapping inline sort-chip cluster. */
    .unimap-partners-directory .ud-subbar {
        display: flex; flex-direction: row; align-items: center;
        justify-content: space-between; gap: 12px; margin-top: 14px;
    }
    .unimap-partners-directory .ud-sortpill {
        appearance: none; border: 0; background: transparent; margin: 0;
        padding: 6px 2px; font-family: inherit; line-height: 1; cursor: pointer;
        display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
        flex-shrink: 0; -webkit-tap-highlight-color: transparent;
    }
    .unimap-partners-directory .ud-sortpill__icon { display: inline-flex; color: var(--color-teal-light); opacity: .9; }
    .unimap-partners-directory .ud-sortpill__prefix { font-size: 13px; font-weight: 500; color: var(--color-soft); }
    .unimap-partners-directory .ud-sortpill__value { font-size: 13px; font-weight: 600; color: var(--color-teal-light); }
    .unimap-partners-directory .ud-sortpill .ud-chevron { color: var(--color-teal-light); opacity: .8; }
    .unimap-partners-directory .ud-sortpill[aria-expanded="true"] .ud-chevron { transform: rotate(180deg); }

    .unimap-partners-directory .ud-districts__grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .unimap-partners-directory .ud-district span { height: 42px; font-size: 13.5px; }
}

/* ============================================================
   /terkep map route — bottom-sheet results + "search this area".
   Mobile only (desktop /terkep redirects to /partners). Scoped to
   .is-map-route so /partners is untouched. The chips + card list are
   relocated into .udm-sheet by JS, reusing the same filter funnel.
   ============================================================ */
@media (max-width: 960px) {
    /* Floating "search this area" pill. It rides the sheet: --udm-sheet-vh
       is measured every frame while the sheet moves (terkep.tsx), with the
       peek height as the first paint's stand-in. */
    .unimap-partners-directory.is-map-route .udm-search-area {
        position: fixed; left: 50%; bottom: calc(var(--udm-sheet-vh, calc(var(--ump-bottom-nav-h, 0px) + 288px)) + 12px);
        transform: translateX(-50%) translateY(6px); z-index: 99999;
        display: inline-flex; align-items: center; gap: 7px;
        padding: 9px 16px; border: 0; border-radius: var(--radius-pill);
        background: var(--color-teal); color: #FFFFFF;
        font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1;
        cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 1px var(--color-divider);
        opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .3s cubic-bezier(0.32,0.72,0,1), background .15s ease;
    }
    .unimap-partners-directory.is-map-route .udm-search-area:not(.is-hidden) {
        opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
    }
    .unimap-partners-directory.is-map-route .udm-search-area:hover { background: var(--color-teal-dark); }
    .unimap-partners-directory.is-map-route .udm-search-area:active { transform: translateX(-50%) scale(.97); }
    .unimap-partners-directory.is-map-route .udm-search-area svg { flex: 0 0 auto; }

    /* The bottom sheet. Three detents (peek / half / full) driven by the
       data-detent attribute; see the height note inside the rule. */
    .unimap-partners-directory.is-map-route .udm-sheet {
        position: fixed; left: 0; right: 0; bottom: 0;
        height: calc(288px + var(--ump-bottom-nav-h, 0px));
        max-height: calc(100dvh - 6px);
        z-index: 99998; display: flex; flex-direction: column;
        background: var(--color-ground); border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 34px rgba(0,0,0,.55); border-top: 1px solid var(--color-line-strong);
        /* Height-based detents (not translate). The sheet's bottom is pinned
           to the true viewport bottom (bottom:0), so its lowest --ump-bottom-nav-h
           strip sits *behind* the fixed bottom nav and is what the nav's
           backdrop-filter frosts (blurred logos/results, not the live map).
           Detent heights therefore include the nav height so the visible top
           of the sheet lands in the same place as before; the inner list keeps
           padding-bottom: nav-h so real content still scrolls clear of the bar. */
        transition: height .34s cubic-bezier(0.32,0.72,0,1);
        touch-action: none; will-change: height;
    }
    .unimap-partners-directory.is-map-route .udm-sheet[data-detent="half"] { height: calc(52dvh + var(--ump-bottom-nav-h, 0px)); }
    .unimap-partners-directory.is-map-route .udm-sheet[data-detent="full"] { height: calc(100dvh - 6px); }
    .unimap-partners-directory.is-map-route .udm-sheet.is-dragging { transition: none; }
    /* The lowest state, now that the sheet never closes (terkep.tsx says why):
       the grab row's measured height plus the tab bar's, with the chips and
       list hidden rather than left to overflow behind the frosted bar. */
    .unimap-partners-directory.is-map-route .udm-sheet[data-detent="collapsed"] {
        height: calc(var(--udm-grab-h, 49px) + var(--ump-bottom-nav-h, 0px));
    }
    .unimap-partners-directory.is-map-route .udm-sheet[data-detent="collapsed"] .udm-sheet__chips,
    .unimap-partners-directory.is-map-route .udm-sheet[data-detent="collapsed"] .udm-sheet__list {
        visibility: hidden;
    }
    /* A strip under the sheet in its own colour: the map column runs a
       safe-area inset further down than the sheet, so in an installed app the
       map showed through under a fully raised sheet. The 8px covers a toolbar
       collapse settling a frame late. It sits below the box and moves nothing. */
    .unimap-partners-directory.is-map-route .udm-sheet::after {
        content: ""; position: absolute; left: 0; right: 0; top: 100%;
        height: calc(env(safe-area-inset-bottom, 0px) + 8px);
        background: var(--color-ground); pointer-events: none;
    }

    /* Grab zone (handle + count) is the only draggable region. Roomy, so the
       collapsed sheet is easy to catch with a thumb; `collapsed` is measured
       off this row, so it grows with it. */
    .unimap-partners-directory.is-map-route .udm-sheet__grab {
        flex: 0 0 auto; padding: 12px 18px 18px; cursor: grab; user-select: none;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__grab:active { cursor: grabbing; }
    .unimap-partners-directory.is-map-route .udm-sheet__handle {
        display: block; width: 44px; height: 5px; margin: 0 auto 12px;
        border-radius: 999px; background: rgba(255,255,255,.28);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__head { display: flex; align-items: baseline; justify-content: center; }
    .unimap-partners-directory.is-map-route .udm-sheet__count {
        font-size: 15.5px; font-weight: 700; color: var(--color-body); letter-spacing: -.01em;
    }

    /* Chip row — horizontal scroll, not draggable. */
    .unimap-partners-directory.is-map-route .udm-sheet__chips {
        flex: 0 0 auto; padding: 8px 0 8px; border-bottom: 1px solid var(--color-line);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg {
        /* Re-assert display: the mobile rule sets .ud-catseg{display:none}
           (categories live in the Szurok sheet on /partners), which still
           applies after JS relocates this control into the map sheet. This
           higher-specificity rule restores it for the map route only. */
        display: flex; align-items: center;
        margin: 0; padding: 0 16px; gap: 8px; scroll-padding-left: 16px; justify-content: flex-start; flex-wrap: nowrap;
        overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg::-webkit-scrollbar { display: none; }
    /* The site's filter chip (D155): the /partners chip, so the same filter
       looks the same on both pages. Surface and the strong hairline at rest,
       solid teal when chosen. */
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg__btn {
        background: var(--color-surface); color: var(--color-body);
        border: 1px solid var(--color-line-strong);
        padding: 8px 15px; font-size: 14px; font-weight: 500; line-height: 1.2;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg__btn:not(.is-active):hover {
        background: var(--color-raised); border-color: var(--color-faint);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg__btn.is-active {
        background: var(--color-teal); border-color: var(--color-teal); color: #FFFFFF;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg__count { color: var(--color-faint-text); font-size: 12.5px; font-weight: 500; margin-left: 2px; }
    .unimap-partners-directory.is-map-route .udm-sheet__chips .ud-catseg__btn.is-active .ud-catseg__count { color: rgba(255,255,255,.85); }

    /* Results — native scroll, contained so it doesn't rubber-band the map. */
    .unimap-partners-directory.is-map-route .udm-sheet__list {
        flex: 1 1 auto; min-height: 0; overflow-y: auto;
        -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        padding: 14px 16px calc(var(--ump-bottom-nav-h, 0px) + 24px);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-list {
        display: flex !important; flex-direction: column; gap: 8px;
        grid-template-columns: none !important;
    }
    /* Empty state inside the map sheet: sized to fit the sheet's default
       (peek) height so "no partners match your filter" never introduces a
       scroll. The list's big bottom padding (there to clear the bottom nav
       when scrolling real results) is dropped for the empty case, and the
       box itself is compacted, so the whole message fits the peek detent. */
    .unimap-partners-directory.is-map-route .udm-sheet__list:has(.ud-empty:not(.is-hidden)) {
        padding-bottom: 16px; overflow: hidden;
    }
    /* Empty state inside the map sheet is a clean centered message on the
       sheet itself, NOT the bordered dark card the list view uses. The base
       .ud-empty carries background/border/border-radius (a separator card in
       the /partners list); inside the sheet that reads as a stray black slab
       with a grey top line floating above the bar. Strip the chrome here. */
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-empty { margin: 0; padding: 16px 18px; background: transparent; border: 0; border-radius: 0; }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-empty__icon { width: 40px; height: 40px; margin-bottom: 8px; }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-empty__text { font-size: 13.5px; margin: 0 0 12px; }

    /* Compact Student-Beans-style rows. We reuse the existing .ud-card
       nodes (so the whole filter/sort funnel keeps working untouched) and
       just re-lay them out via CSS: a square logo thumb on the left, and
       title / offer / meta stacked on the right. Grid areas let the thumb
       span the body + footer rows. */
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card {
        position: relative; height: auto; border-radius: var(--radius-card);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card:hover {
        transform: none; box-shadow: none; border-color: var(--color-line);
    }
    /* Student-Beans row: a padded logo cell on the left, a hairline
       divider, then a tidy left-aligned stack (name / offer / meta) on the
       right. Heart pinned to the right edge, vertically centred. The
       short description and the storefront/globe type chips are dropped
       here to keep the row scannable — the partner page still shows both. */
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__link {
        display: grid; grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "thumb body" "thumb footer";
        align-items: center; align-content: center; column-gap: 14px; row-gap: 2px;
        padding: 13px 46px 13px 13px;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__cover {
        grid-area: thumb; position: static; align-self: stretch;
        width: auto; height: auto; aspect-ratio: auto; overflow: visible;
        background: transparent; display: flex; align-items: center; justify-content: center;
        padding-right: 14px; border-right: 1px solid var(--color-line-strong);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__cover-clip,
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__badge,
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__desc,
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__tags { display: none !important; }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__logo {
        position: static; left: auto; bottom: auto; inset: auto; flex: 0 0 auto;
        width: 50px; height: 50px; border-radius: 12px; padding: 6px;
        box-shadow: none; border: 1px solid var(--color-line-strong);
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__logo--placeholder { font-size: 20px; }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__body {
        grid-area: body; display: block; padding: 0; min-width: 0; flex: none;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__title {
        font-size: 12.5px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; color: #EFEFEF;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__discount {
        display: block; width: auto; max-width: 100%; margin: 1px 0 0; padding: 0; border: 0; background: transparent;
        border-radius: 0; -webkit-line-clamp: none; color: #FFFFFF; font-size: 14.5px; font-weight: 700; gap: 5px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__discount-text {
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__footer {
        grid-area: footer; padding: 0; margin: 4px 0 0; border-top: 0; gap: 6px;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__district {
        font-size: 11.5px; color: var(--color-soft);
    }
    /* Centred with `margin: auto`, not translateY(-50%): the heart's pop and
       its hover/active scales replace the whole transform, which made it
       jump 16px while it popped. */
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__fav-btn {
        position: absolute; top: 0; bottom: 0; right: 8px; margin: auto 0; transform: none;
        width: 32px; height: 32px;
    }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__fav-btn:hover { transform: none; }
    .unimap-partners-directory.is-map-route .udm-sheet__list .ud-card__fav-btn:active { transform: scale(.94); }

    /* The map loader's spinner sits in the part of the map that shows: its
       bottom padding is the gap the sheet measures (--udm-sheet-h), with
       peek's height as the first paint's stand-in. */
    .unimap-partners-directory.is-map-route .um-maploader {
        box-sizing: border-box;
        padding-bottom: var(--udm-sheet-h, calc(288px + var(--ump-bottom-nav-h, 0px)));
    }

    /* Raise the bottom-right map controls (near/reset) above the peek. */

    /* When the results sheet is swiped away (dismissed → reopen pill shows),
       there's no 288px peek sheet for the floating controls to sit above, so
       "Search this area" and the near-me/locate button were stranded floating
       mid-screen. Drop both down to just above the bottom nav (beside the
       reopen pill) while the sheet is dismissed. */
    .unimap-partners-directory.is-map-route:has(.udm-sheet.umt-dismissed) .udm-search-area {
        bottom: calc(var(--ump-bottom-nav-h, 0px) + 14px);
    }
}
/* ==========================================================================
 * UniMap unified map popup ("mini card")
 * Shared by /partners directory map and landing hero map.
 *
 * v0.29.11: rebuilt to mirror the /partners directory card visual language —
 * teal badge pill top-left, favorite heart top-right (when window.UnimapFav
 * is present), 52px white logo tile overlapping the cover bottom-left,
 * discount rendered as a teal-bordered pill. Ensures the popup and the
 * directory card feel like the same product surface.
 * ========================================================================== */

/* Leaflet popup shell. Scoped via .ump-popup-wrap className. */

/* Close button — 32×32 frosted-dark chip, top-right of cover. Same visual
   treatment in both desktop (tethered) and mobile (bottom-sheet) modes;
   the bottom-sheet override further down only tweaks `top` to account for
   the drag-handle strip that pushes the cover down. Leaflet's default
   `.leaflet-container a.leaflet-popup-close-button` selector stops matching
   the moment the popup is portaled out to <body> for the bottom sheet, so
   we re-declare position:absolute here — otherwise the button falls back
   to static flow and lands under the card. */

/* Card wrapper. Fixed width means the popup opens at final size, so
   there's no reflow jump when the cover image loads. */
.ump-card {
	display: block;
	width: 280px;
	color: var(--color-body);
	font-family: 'Poppins', system-ui, sans-serif;
}

/* Cover — 16:10 aspect (matches directory card). Cover itself does NOT
   overflow:hidden so the 52px logo tile can protrude 20px below the
   bottom edge into the body area; the inner .ump-card__cover-clip
   handles image clipping and rounded top corners. */
.ump-card__cover {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #2A2A2A;
}
.ump-card__cover-clip {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
}
.ump-card__cover-skel {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, var(--color-divider) 40%, rgba(255,255,255,0.02) 80%);
	background-size: 200% 100%;
	animation: ump-shimmer 1.4s ease-in-out infinite;
}
@keyframes ump-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
.ump-card__cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .35s ease;
	z-index: 1;
}
.ump-card__cover-img.is-loaded { opacity: 1; }

/* Subtle bottom fade — lifts the logo tile and badge off the image so
   they read on any cover. Only covers the bottom ~45% so the photo isn't
   dulled overall. */
.ump-card__cover-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
	pointer-events: none;
	z-index: 2;
}

/* Badge — teal solid pill top-left. JS omits the element entirely when
   partner_badge_label is empty (no ::empty fallback needed). Max-width
   reserves space for the close+fav buttons on the right (~ 96px). */
.ump-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-teal);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	max-width: calc(100% - 96px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Favorite button — mirrors .ud-card__fav-btn. Positioned to the left of
   the close button (right:54px = 12 + 32 + 10). Only renders when
   window.UnimapFav is present at JS render time. Clicks are handled by
   the document-level delegation in unimap-favorites.js, which works
   whether the popup is tethered or portaled to <body>. */
.ump-card__fav-btn {
	position: absolute;
	top: 12px;
	right: 54px;
	z-index: 4;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.42);
	color: #FFFFFF;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: background .18s ease, transform .12s ease, color .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.ump-card__fav-btn:hover  { background: rgba(0, 0, 0, 0.6); transform: scale(1.06); }
.ump-card__fav-btn:active { transform: scale(0.94); }
.ump-card__fav-btn svg {
	display: block;
	fill: none;
	stroke: currentColor;
	transition: fill .18s ease, stroke .18s ease;
}
.ump-card__fav-btn.is-faved {
	background: #FFFFFF;
	color: var(--color-heart);
	box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}
.ump-card__fav-btn.is-faved svg { fill: var(--color-heart); stroke: var(--color-heart); }

/* Logo — 52px white tile overlapping the cover bottom-left. Since
   .ump-card__cover has no overflow:hidden, the tile protrudes 20px below
   the cover into the body area. Fallback state (no logo image) is a
   teal initial-letter tile. */
.ump-card__logo {
	position: absolute;
	left: 14px;
	bottom: -20px;
	width: 52px;
	height: 52px;
	background: #FFFFFF;
	border-radius: 12px;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	z-index: 3;
	box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
}
.ump-card__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ump-card__logo--empty {
	background: var(--color-teal);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 22px;
	padding: 0;
}

/* Body — top padding clears the overhanging logo (20px protrusion +
   ~10px breathing room to title). */
.ump-card__body {
	padding: 30px 14px 14px;
}
.ump-card__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-body);
	line-height: 1.25;
	word-break: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin: 0;
}
.ump-card__sub {
	font-size: 11.5px;
	color: var(--color-soft);
	margin: 3px 0 12px;
	line-height: 1.3;
}

/* Discount pill — mirrors .ud-card__discount from the directory card.
   Full-width so it reads as the hero visual element. */
.ump-card__discount {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 12px;
	margin: 0 0 12px;
	box-sizing: border-box;
	border: 1.5px solid var(--color-teal);
	border-radius: 999px;
	background: rgba(90, 143, 141, .06);
	color: #8FB8B6;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}
.ump-card__discount-icon { display: inline-flex; flex-shrink: 0; }
.ump-card__discount-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* Description fallback — plain grey text, only rendered when no
   discount_summary is present. */
.ump-card__desc {
	font-size: 12.5px;
	line-height: 1.4;
	color: #BFBFBF;
	margin: 0 0 12px;
	word-break: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* CTA — full-width pill matching brand button style. */
.ump-card__cta {
	display: block;
	width: 100%;
	background: var(--color-teal);
	color: #FFFFFF !important;
	text-decoration: none !important;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	transition: background .15s ease, transform .15s ease;
	box-sizing: border-box;
	line-height: 1.4;
	position: relative;
	overflow: hidden;
}
.ump-card__cta:hover {
	background: var(--color-teal-dark);
	transform: translateY(-1px);
}
.ump-card__cta:active { transform: translateY(0); }

/* --- Skeleton hydration guard --------------------------------------
   Kicks in when the JS hydration probe detects empty translatable
   slots on popup open (TranslatePress async translation FOIT). The
   `.is-hydrating` class is toggled on `.ump-card`; while active, we
   hide the real text and paint a shimmer bar over each slot. Slots
   are marked in JS via data-ump-skel="..." attributes. -------------- */
.ump-card.is-hydrating [data-ump-skel] {
	color: transparent !important;
	position: relative;
}
.ump-card.is-hydrating [data-ump-skel]::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 0.85em;
	border-radius: 4px;
	background: linear-gradient(90deg,
		rgba(255, 255, 255, 0.05) 0%,
		rgba(255, 255, 255, 0.14) 40%,
		rgba(255, 255, 255, 0.05) 80%);
	background-size: 200% 100%;
	animation: ump-shimmer 1.4s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

/* Title skeleton — wide bar, left-aligned. */
.ump-card.is-hydrating .ump-card__title::after {
	left: 0;
	width: 72%;
	height: 12px;
}

/* Discount / desc skeleton — slightly shorter than title. */
.ump-card.is-hydrating .ump-card__discount::after,
.ump-card.is-hydrating .ump-card__desc::after {
	left: 0;
	width: 58%;
	height: 11px;
}

/* Badge skeleton — chip background stays visible with a lighter overlay. */
.ump-card.is-hydrating .ump-card__badge {
	min-width: 60px;
	min-height: 20px;
}
.ump-card.is-hydrating .ump-card__badge::after {
	left: 10px;
	width: calc(100% - 20px);
	height: 9px;
	background: linear-gradient(90deg,
		rgba(255, 255, 255, 0.20) 0%,
		rgba(255, 255, 255, 0.36) 40%,
		rgba(255, 255, 255, 0.20) 80%);
	background-size: 200% 100%;
}

/* Logo (initial-letter fallback) skeleton — fills the tile so the
   teal box doesn't flash empty while the letter is being translated. */
.ump-card.is-hydrating .ump-card__logo[data-ump-skel] {
	background: var(--color-divider);
}
.ump-card.is-hydrating .ump-card__logo[data-ump-skel]::after {
	left: 25%;
	top: 25%;
	transform: none;
	width: 50%;
	height: 50%;
	border-radius: 4px;
}

/* CTA skeleton — replaces the teal fill with a shimmer overlay across
   the whole pill so an empty label doesn't read as a rendered button. */
.ump-card.is-hydrating .ump-card__cta {
	background: var(--color-divider) !important;
	pointer-events: none;
}
.ump-card.is-hydrating .ump-card__cta::after {
	top: 0;
	left: 0;
	transform: none;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.ump-card.is-hydrating [data-ump-skel]::after { animation: none; }
}

/* --- Bottom sheet ------------------------------------------------------
   Applied via the JS-toggled .is-bottom-sheet class rather than a fixed
   @media query so callers can control the breakpoint. The shared module
   defaults to viewport ≤640px; /partners overrides to ≤960px so the
   bottom sheet activates whenever its fullscreen-map layout is active
   (fullscreen kicks in at ≤960px — see class-unimap-partners-directory.php).
   See shouldUseBottomSheet() and portalForBottomSheet() in
   assets/js/unimap-map-popup.js.

   The popup element is portaled out of Leaflet's transformed
   .leaflet-map-pane into <body> on popupopen so that position:fixed
   resolves against the viewport rather than a 0×0 shrink-to-fit map
   pane. Two consequences:
     1. z-index sits above the /partners page's map FAB (99998), so
        the sheet is never obscured by it.
     2. opacity: 1 !important defeats Leaflet's `.leaflet-fade-anim
        .leaflet-popup { opacity: 0 }` rule — the counterpart rule
        that flips it back to 1 only matches popups still inside
        .leaflet-map-pane, which our portaled popup is not. */
/* Kill Leaflet's tip triangle — no tether in sheet mode. */
/* Close button in bottom-sheet mode — nudge `top` down to align with the
   badge and fav pills inside the cover. The cover starts 16px below the
   wrapper top (drag-handle reserve = .ump-card padding-top), so a badge
   at top:12px within the cover sits at y=28 in wrapper coordinates. The
   close button (a wrapper child) needs top:28 to match — keeps all three
   top-row chips on the same visual y line. */
.is-bottom-sheet .ump-card {
	width: 100%;
	padding-top: 16px;
	position: relative;
}
.is-bottom-sheet .ump-card::before {
	content: '';
	position: absolute;
	top: 7px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 4px;
	background: rgba(255, 255, 255, 0.28);
	border-radius: 2px;
	z-index: 3;
}
/* Cover-clip corners match the sheet's top corners in this mode
   (sheet uses 20px, base uses 16px). */
.is-bottom-sheet .ump-card__cover-clip {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}
/* Cap cover height explicitly so it never dominates on short viewports
   (landscape phones, tablets in landscape) — aspect-ratio alone doesn't
   protect against that. */
.is-bottom-sheet .ump-card__cover {
	aspect-ratio: 21 / 9;
	max-height: 200px;
}
/* Respect iOS home-indicator inset so the CTA isn't half-buried. */
.is-bottom-sheet .ump-card__body {
	padding: 30px 18px calc(22px + env(safe-area-inset-bottom));
}

@keyframes ump-sheet-in {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

/* Reduced-motion: kill shimmer and slide animations. */
@media (prefers-reduced-motion: reduce) {
	.ump-card__cover-skel { animation: none; }
	.ump-card__cta { transition: background .15s ease; }
	.ump-card__cta:hover { transform: none; }
}

/* ==== /terkep — pins, floating card, venue list — unimap-cards/includes/class-unimap-partners-directory.php ==== */

/* Match the pre-existing directory marker look exactly: a small radial
       teal bead for a single discount, a solid teal count disc for a stack
       (mirrors .ud-marker__dot / .ud-cluster in print_styles). */
    .is-map-route .umt-pin{width:12px;height:12px;margin:3px auto 0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#7DB5B3 0%,var(--color-teal-light) 65%,var(--color-teal) 100%);box-shadow:0 0 0 1px rgba(0,0,0,.45),0 1px 4px rgba(0,0,0,.5);transition:transform .2s ease,box-shadow .2s ease}
    .is-map-route .umt-pin-wrap{transition:transform .16s}
    .is-map-route .umt-pin-wrap.is-sel .umt-pin{transform:scale(1.6);box-shadow:0 0 0 1px rgba(0,0,0,.45),0 0 12px rgba(120,180,178,.8),0 1px 4px rgba(0,0,0,.5)}
    .is-map-route .umt-stack{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--color-teal-light) 0%,var(--color-teal) 100%);border:0;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Poppins',system-ui,sans-serif;font-weight:600;font-size:13px;letter-spacing:-.02em;text-shadow:0 1px 2px rgba(0,0,0,.35);box-shadow:0 0 0 1px rgba(0,0,0,.4),0 2px 7px rgba(0,0,0,.5);transition:transform .18s ease,box-shadow .18s ease}
    .is-map-route .umt-stack-wrap.is-sel .umt-stack{transform:scale(1.1);box-shadow:0 0 0 1px rgba(0,0,0,.4),0 0 14px rgba(120,180,178,.7),0 2px 8px rgba(0,0,0,.45)}
    .umt-listpill{position:fixed;left:16px;bottom:calc(var(--ump-bottom-nav-h,66px) + 14px);z-index:99998;display:none;align-items:center;gap:8px;height:40px;padding:0 15px;border-radius:20px;background:rgba(20,20,20,.92);border:.5px solid rgba(255,255,255,.08);color:var(--color-body);font-family:'Poppins',system-ui,sans-serif;font-size:13px;font-weight:500;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.4)}
    .umt-listpill.is-show{display:inline-flex}
    .umt-listpill svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
    .udm-sheet.umt-away,.udm-sheet.umt-dismissed{transform:translateY(118%)!important}
    .umt-card{position:fixed;left:12px;right:12px;bottom:calc(var(--ump-bottom-nav-h,66px) + 14px);z-index:99998;max-width:520px;margin:0 auto;background:var(--color-ground);border:1px solid rgba(255,255,255,.08);border-radius:16px;box-shadow:0 20px 55px rgba(0,0,0,.62),0 2px 8px rgba(0,0,0,.4);font-family:'Poppins',system-ui,sans-serif;color:var(--color-body);transform:translateY(140%);opacity:0;pointer-events:none;transition:transform .36s cubic-bezier(.32,.72,0,1),opacity .2s}
    .umt-card.is-show{transform:translateY(0);opacity:1;pointer-events:auto}
    .umt-card__cover{position:relative;width:100%;aspect-ratio:21/9;max-height:140px;border-radius:16px 16px 0 0;background:#2A2A2A}
    .umt-card__cover-clip{position:absolute;inset:0;overflow:hidden;border-radius:16px 16px 0 0}
    .umt-card__cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
    .umt-card__cover-fade{position:absolute;inset:0;border-radius:16px 16px 0 0;background:linear-gradient(to bottom,rgba(0,0,0,0) 45%,rgba(0,0,0,.5) 100%)}
    .umt-card__badge{position:absolute;top:12px;left:12px;z-index:2;background:var(--color-teal);color:#fff;font-size:12px;font-weight:700;padding:6px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.3);max-width:calc(100% - 130px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .umt-card__actions{position:absolute;top:12px;right:12px;display:flex;gap:9px;z-index:3}
    .umt-cbtn{width:32px;height:32px;border-radius:50%;border:0;background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:transform .12s,background .18s}
    .umt-cbtn:active{transform:scale(.9)}
    .umt-cbtn svg{width:19px;height:19px;fill:none;stroke:var(--color-body);stroke-width:2}
    .umt-cbtn.umt-fav.is-faved{background:#fff;color:var(--color-heart)}
    .umt-cbtn.umt-fav.is-faved svg{fill:var(--color-heart);stroke:var(--color-heart)}
    .umt-card__logo{position:absolute;left:14px;bottom:-20px;width:52px;height:52px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;color:var(--color-ground);z-index:2;box-shadow:0 6px 18px rgba(0,0,0,.45);padding:6px;box-sizing:border-box}
    .umt-card__logo img{max-width:100%;max-height:100%;object-fit:contain}
    .umt-card__body{padding:30px 16px 16px}
    .umt-card__title{font-size:17px;font-weight:600;line-height:1.25;margin:0}
    .umt-card__sub{font-size:12px;color:#8A8A8A;margin:4px 0 13px}
    .umt-card__discount{display:flex;align-items:center;gap:8px;width:100%;padding:9px 13px;margin:0 0 13px;border:1.5px solid var(--color-teal);border-radius:999px;background:rgba(90,143,141,.08);color:#8FB8B6;font-size:13px;font-weight:500;line-height:1.3;box-sizing:border-box}
    .umt-card__discount svg{width:17px;height:17px;flex:none;fill:none;stroke:#8FB8B6;stroke-width:1.8}
    .umt-card__discount span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
    .umt-card__cta{display:block;width:100%;background:var(--color-teal);color:#fff;padding:12px;border-radius:999px;font-size:14px;font-weight:500;text-align:center;cursor:pointer;border:0;transition:background .15s}
    .umt-card__cta:active{background:var(--color-teal-dark)}
    .umt-dot{opacity:.5;margin:0 6px}
    .umt-venue{position:fixed;left:0;right:0;bottom:0;z-index:99998;background:var(--color-ground);border-radius:20px 20px 0 0;border-top:1px solid var(--color-line-strong);box-shadow:0 -10px 34px rgba(0,0,0,.55);min-height:min(46vh,380px);max-height:82vh;display:flex;flex-direction:column;font-family:'Poppins',system-ui,sans-serif;color:var(--color-body);transform:translateY(118%);transition:transform .34s cubic-bezier(.32,.72,0,1)}
    .umt-venue.is-show{transform:translateY(0)}
    /* Grab handle — matches the area sheet's .udm-sheet__handle so the two
       bottom sheets read as the same component (visual parity; the venue is
       dismissed via its back button / a map tap rather than a drag). */
    .umt-venue__grab{flex:0 0 auto;padding:9px 18px 0;user-select:none}
    .umt-venue__handle{display:block;width:38px;height:4px;margin:0 auto;border-radius:999px;background:var(--color-line-strong)}
    .umt-venue__head{position:relative;display:flex;align-items:center;justify-content:center;padding:8px 16px 10px;min-height:32px}
    .umt-venue__back{position:absolute;left:16px;top:14px;width:32px;height:32px;flex:none;border-radius:50%;background:var(--color-divider);border:0;color:var(--color-body);display:flex;align-items:center;justify-content:center;cursor:pointer}
    .umt-venue__back svg{width:19px;height:19px;fill:none;stroke:var(--color-body);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .umt-venue__title{max-width:calc(100% - 88px);min-width:0;text-align:center;font-size:15px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .umt-venue__title .umt-venue__sub{display:block;font-size:12px;color:#8A8A8A;font-weight:400;margin-top:2px}
    .umt-venue__list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 16px calc(var(--ump-bottom-nav-h,66px) + 20px + env(safe-area-inset-bottom));overscroll-behavior:contain}
    .umt-venue__list::-webkit-scrollbar{width:0}
    .umt-row{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid rgba(255,255,255,.08);cursor:pointer}
    .umt-row:last-child{border-bottom:0}
    .umt-row__logo{width:46px;height:46px;border-radius:12px;flex:none;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;color:var(--color-ground);box-shadow:0 2px 8px rgba(0,0,0,.35);overflow:hidden}
    .umt-row__logo img{max-width:100%;max-height:100%;object-fit:contain;padding:5px;box-sizing:border-box}
    .umt-row__body{flex:1;min-width:0}
    .umt-row__name{font-size:14.5px;font-weight:600;margin-bottom:2px;display:flex;align-items:center;gap:7px}
    .umt-row__name .umt-row__t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .umt-row__badge{flex:none;background:var(--color-teal);color:#fff;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px}
    .umt-row__disc{color:#8FB8B6;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .umt-row__meta{font-size:12px;color:#8A8A8A;margin-top:3px}
    .umt-row__heart{width:36px;height:36px;flex:none;border-radius:50%;background:var(--color-divider);display:flex;align-items:center;justify-content:center;color:var(--color-soft);cursor:pointer;border:0}
    .umt-row__heart svg{width:20px;height:20px;fill:none;stroke:var(--color-soft);stroke-width:1.8}
    .umt-row__heart.is-faved{background:#fff;color:var(--color-heart)}
    .umt-row__heart.is-faved svg{fill:var(--color-heart);stroke:var(--color-heart)}
    /* Elementor/theme globals were repainting these icon buttons: a magenta
       link/accent colour bleeds in on hover/active, and a global SVG rule
       overrides our stroke so the icons are invisible at rest. Author CSS (and
       Elementor's !important) beats the SVGs' presentation attributes, so the
       fix must be CSS, not attributes. ID scope + !important pins our own
       colours across rest/hover/focus/active and removes the tap-highlight. */
    #umt-card .umt-cbtn,#umt-venue .umt-venue__back,#umt-venue .umt-row__heart{-webkit-tap-highlight-color:transparent;outline:none}
    #umt-card .umt-cbtn svg,#umt-card .umt-cbtn:hover svg,#umt-card .umt-cbtn:focus svg,#umt-card .umt-cbtn:active svg,#umt-venue .umt-venue__back svg,#umt-venue .umt-venue__back:hover svg,#umt-venue .umt-venue__back:focus svg{fill:none!important;stroke:var(--color-body)!important}
    #umt-venue .umt-row__heart svg,#umt-venue .umt-row__heart:hover svg,#umt-venue .umt-row__heart:focus svg{fill:none!important;stroke:var(--color-soft)!important}
    #umt-card .umt-cbtn.umt-fav.is-faved svg,#umt-venue .umt-row__heart.is-faved svg{fill:var(--color-heart)!important;stroke:var(--color-heart)!important}
    #umt-card .umt-card__discount svg{fill:none!important;stroke:#8FB8B6!important}
    #umt-card .umt-cbtn:hover,#umt-card .umt-cbtn:focus,#umt-card .umt-cbtn:active{background:rgba(0,0,0,.42)!important;color:var(--color-body)!important;box-shadow:0 2px 8px rgba(0,0,0,.25)!important}
    #umt-card .umt-cbtn.umt-fav.is-faved:hover,#umt-card .umt-cbtn.umt-fav.is-faved:focus,#umt-venue .umt-row__heart.is-faved:hover,#umt-venue .umt-row__heart.is-faved:focus{background:#fff!important}
    #umt-venue .umt-venue__back:hover,#umt-venue .umt-venue__back:focus{background:var(--color-divider)!important;color:var(--color-body)!important}
    #umt-venue .umt-row__heart:hover,#umt-venue .umt-row__heart:focus{background:var(--color-divider)!important;color:var(--color-soft)!important}
    #umt-card .umt-card__cta:hover,#umt-card .umt-card__cta:focus{color:#fff!important;background:var(--color-teal-dark)!important}
    @media (prefers-reduced-motion: reduce){.umt-card,.umt-venue,.udm-sheet.umt-away{transition:none!important}}

/* ==== /kedvencek — overrides on the directory above — unimap-cards/includes/class-unimap-favorites-page.php ==== */

/* Favorites-specific overrides. Layout stays a plain 2-col grid — no
   filter bar, no map column, no map FAB. Everything else inherits from
   .unimap-partners-directory. */
.unimap-favorites .ufav-shell { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.unimap-favorites .ufav-hero { margin-bottom: 28px; text-align: center; }
.unimap-favorites .ufav-hero__title { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; color: #FFFFFF; }
.unimap-favorites .ufav-hero__lede {
    margin: 0; color: var(--color-soft); font-size: 14.5px; line-height: 1.5;
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.unimap-favorites .ufav-hero__count { color: var(--color-body); font-weight: 600; }
.unimap-favorites .ufav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.unimap-favorites .ufav-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 64px 22px;
    background: var(--color-surface); border: 1px solid var(--color-line);
    border-radius: 14px;
}
.unimap-favorites .ufav-empty__icon {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--color-teal-soft); color: var(--color-teal-light);
    margin-bottom: 16px;
}
.unimap-favorites .ufav-empty__title {
    font-size: 18px; font-weight: 600; color: var(--color-body);
    margin: 0 0 6px;
}
.unimap-favorites .ufav-empty__text {
    font-size: 14.5px; color: var(--color-soft);
    margin: 0 0 20px; max-width: 380px; line-height: 1.5;
}
/* The site's primary button (globals.css, D155), at `button({ size: 'page' })`. */
.unimap-favorites .ufav-empty__cta {
    appearance: none; border: 0; background: var(--btn-primary-bg);
    color: #FFFFFF; font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2;
    padding: 11px 22px; border-radius: var(--radius-pill);
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--btn-primary-shadow);
    transition: var(--btn-transition);
}
.unimap-favorites .ufav-empty__cta:hover { filter: brightness(1.08); box-shadow: var(--btn-primary-shadow-hover); color: #FFFFFF; }
.unimap-favorites .ufav-empty__cta:active { filter: brightness(0.95); box-shadow: var(--btn-primary-shadow-active); }
.unimap-favorites .ufav-empty__cta:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

/* Grid uses 3 columns on wider desktop for a fuller look — /partners
   is stuck at 2 to leave room for the map column. */
@media (min-width: 1100px) {
    .unimap-favorites .ufav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .unimap-favorites .ufav-shell { padding: 0 16px; }
    .unimap-favorites .ufav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .unimap-favorites .ufav-hero__title { font-size: 26px; }
    .unimap-favorites .ufav-hero__lede { font-size: 13.5px; }
    .unimap-favorites .ufav-empty { padding: 48px 18px; }
}
