/* The partner page (/partner/<slug>), the event page and the coupon ticket.
 *
 * 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/partner/*.tsx (up-* and umc-* class names). The
 * locations modal's "more" label is var(--up-loc-note-more), which
 * web/src/partner/locations.tsx sets in the reader's language.
 */
/* ==== the partner page — unimap-cards/includes/class-unimap-partner-single.php ==== */

/*
         * UNSCOPED — hide Hello/Elementor's own page title and force the
         * body background to charcoal so the gap above/below the content
         * matches. Same pattern as the landing page.
         */
        /* Kill the seam between the site header and the full-bleed banner.
           Some themes / Elementor header widgets add a subtle border-bottom
           or drop-shadow that reads as a visible line against a bright
           banner image; nuke both so the banner butts flush against the
           site chrome. Mirrors the same override on the /partners page. */

        /* ================================================================
         * SCOPED — design tokens + base
         * ============================================================== */
        .unimap-partner {

            font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
            background: var(--color-ground);
            color: var(--color-body);
            line-height: 1.5;
            /* padding-top intentionally 0 so the full-bleed banner butts
               flush against the site header — the banner IS the top of
               the page, not something separated from it by a dark strip. */
            padding: 0 0 72px;
            padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            display: block;

            /* Full-bleed escape from the theme's centered container. */
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }
        .unimap-partner,
        .unimap-partner *,
        .unimap-partner *::before,
        .unimap-partner *::after {
            box-sizing: border-box;
        }
        .unimap-partner a { text-decoration: none; }

        /* Shell — grows to 1080px on desktop, narrow on mobile.
           Wider than /my-card because a partner page has more to say. */
        .unimap-partner .up-shell {
            max-width: 1080px;
            margin: 0 auto;
            padding: 0 22px;
        }

        /* ---------- Back button ----------
           Circular icon overlaid on the banner's top-left, mirroring
           .up-hero__fav on the top-right so the two read as a matched
           navigation pair (Diverzum-style). Positioned inside
           .up-hero__banner via absolute + top/left. Was a plain text
           link above the hero before the banner went full-bleed. */
        .unimap-partner .up-back {
            position: absolute;
            top: 10px;
            /* Align to the shell's content edge on wide viewports so the
               button doesn't drift into the empty margins beside the
               centered content column. On viewports narrower than the
               shell max-width the calc goes negative and max() clamps
               to the 16px inset. Shell = 1080px max, 22px h-padding. */
            left: max(16px, calc((100vw - 1080px) / 2 + 22px));
            z-index: 3;
            appearance: none;
            -webkit-appearance: none;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            color: #FFFFFF;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
            transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .unimap-partner .up-back:hover {
            background: rgba(0, 0, 0, 0.62);
            transform: scale(1.06);
            color: #FFFFFF;
        }
        .unimap-partner .up-back:active { transform: scale(0.94); }

        /* Installed-app (iOS black-translucent status bar): the banner
           butts flush to the top, so the overlaid nav buttons land under
           the notch/status bar and become untappable. Push them down by
           the safe-area inset. Standalone-only — browser layout unchanged. */
        html.unimap-standalone-app-html .unimap-partner .up-back,
        html.unimap-standalone-app-html .unimap-partner .up-hero__fav {
            /* env() already clears the notch/Dynamic Island; the old +16px
               on top of that inset (~59px on modern iPhones) pushed the
               buttons visibly too far down. Sit them flush-ish to the safe
               area (+2px) so they read like a native top bar rather than
               floating in the middle of the banner. */
            top: calc(2px + env(safe-area-inset-top, 0px));
        }
        /* Android standalone reports no top safe-area inset, so the +2px
           base above sat the back/fav buttons right under the status bar.
           Nudge them down ~10px on Android only (iOS is already cleared
           by the notch/Dynamic Island inset). */
        html.unimap-standalone-app-html.unimap-android .unimap-partner .up-back,
        html.unimap-standalone-app-html.unimap-android .unimap-partner .up-hero__fav {
            top: calc(12px + env(safe-area-inset-top, 0px));
        }
        .unimap-partner .up-back:focus-visible {
            outline: none;
            box-shadow: 0 2px 10px rgba(0,0,0,.35), 0 0 0 3px rgba(90,143,141,.5);
        }

        /* ---------- Hero ----------
           Full-bleed banner + content-width identity row. The banner
           escapes .up-shell via a 100vw breakout so it reads as a real
           page header, not a boxed thumbnail. Below the banner, .up-hero__
           row sits at shell width on the page background and overlaps the
           banner via negative margin so the logo lifts into the image's
           bottom edge. Distinctly NOT a card — no bg, no border, no outer
           shadow. */
        .unimap-partner .up-hero {
            position: relative;
            margin-bottom: 24px;
        }
        .unimap-partner .up-hero__banner {
            position: relative;
            width: 100vw;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            height: 240px;
            overflow: hidden;
            /* Dark fallback so slow connections don't flash a white
               strip before the image decodes. Matches the dark map tile
               background so the mood is consistent. */
            background: #0E1115;
        }
        /* Installed-app (standalone) fix. On the website .unimap-partner
           and .up-hero__banner each escape the theme's centered content
           container with a 100vw breakout (width:100vw; left:50%;
           margin-left:-50vw) -- that math only cancels to flush-left when
           the parent is CENTERED in the viewport, which the theme
           container guarantees. Inside the installed PWA/TWA the page
           renders in a full-width app shell whose wrapper is NOT centered
           that way, so the breakout no longer cancels and the whole
           component drifts right, then gets clipped by
           body{overflow-x:hidden} -- the "cut off on the right" report.
           The fix below keeps full-viewport width but uses a margin-based
           full-bleed so it can't drift/clip (see the inline note). Scoped
           to the standalone class, so the browser/website render is
           unchanged. */
        html.unimap-standalone-app-html .unimap-partner,
        html.unimap-standalone-app-html .unimap-partner .up-hero__banner {
            /* Full-bleed in the installed app. The old approach here was
               width:100% (v0.134.4) which stopped the right-edge clipping
               but respects the theme content container's horizontal
               padding — so every partner page lost ~8px of width per side
               and the banner sat slightly inset. Go back to full-viewport
               width, but with the margin-based full-bleed idiom instead of
               the positioned (left:50%) one: the box flows from its normal
               static position (so it already accounts for any ancestor
               margin/offset — the thing that made left:50% drift right and
               clip in the app shell) and we only pull it back out over the
               container's side padding. Result: flush to both viewport
               edges, no clipping, regardless of how the app shell wraps it. */
            width: 100vw;
            max-width: 100vw;
            left: auto;
            right: auto;
            margin-left: calc(50% - 50vw);
            margin-right: calc(50% - 50vw);
        }
        .unimap-partner .up-hero__image {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .unimap-partner .up-hero__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }
        .unimap-partner .up-hero__overlay {
            position: absolute;
            inset: 0;
            /* Fade to the page background (#1C1C1C) rather than the card
               surface, so the banner dissolves seamlessly into the page
               below. Ramps to near-opaque by ~75% so the identity row
               (which overlaps upward into the bottom of the banner) sits
               against a dark, high-contrast backdrop rather than mid-
               tone image content. */
            background: linear-gradient(to bottom,
                rgba(28,28,28,0) 20%,
                rgba(28,28,28,.55) 55%,
                rgba(28,28,28,.9) 82%,
                var(--color-ground) 100%);
            pointer-events: none;
        }
        .unimap-partner .up-hero__row {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
            /* Pulls the logo up into the bottom of the banner so identity
               reads as anchored to the image, not free-floating on the
               page. In column layout (mobile) only the logo overlaps and
               everything below flows on page bg. */
            margin-top: -50px;
        }
        .unimap-partner .up-hero__logo {
            width: 88px;
            height: 88px;
            background: #FFFFFF;
            border-radius: 18px;
            padding: 10px;
            /* Beefier shadow now that the logo sits on the page background
               (was previously enclosed in a card that supplied its own
               depth). */
            box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .unimap-partner .up-hero__logo img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
        }
        .unimap-partner .up-hero__text {
            flex: 1 1 auto;
            min-width: 0;
        }
        .unimap-partner .up-hero__title {
            font-family: 'Poppins', sans-serif;
            font-size: 26px;
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -.02em;
            margin: 0 0 6px;
            color: #FFFFFF;
            word-break: break-word;
        }
        .unimap-partner .up-hero__tagline {
            margin: 0 0 8px;
            font-size: 14px;
            line-height: 1.5;
            color: var(--color-soft);
            max-width: 56ch;
        }
        .unimap-partner .up-hero__meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 14px;
            font-size: 13px;
            color: var(--color-soft);
        }
        .unimap-partner .up-hero__address {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .unimap-partner .up-hero__address .up-icon { flex-shrink: 0; }
        .unimap-partner .up-hero__district {
            display: inline-flex;
            align-items: center;
            padding: 4px 11px;
            background: var(--color-teal-soft);
            color: #8FB8B6;
            border: 1px solid rgba(120,180,178,.28);
            border-radius: var(--radius-pill);
            font-size: 12px;
            font-weight: 600;
            line-height: 1;
            letter-spacing: .02em;
        }

        /* ---------- Hero favorite button ----------
           Same design language as the .ud-card__fav-btn on /partners
           cards, scaled up for the bigger hero. Top-right of the banner,
           z-index above the overlay (which uses pointer-events:none so
           clicks would pass through anyway, but we want to sit visually
           on top). Empty state = translucent dark pill with white heart
           outline; filled (.is-faved) = solid red on white — matches the
           card version so returning users read the states identically.
           Painted by assets/js/unimap-favorites.js on load. */
        .unimap-partner .up-hero__fav {
            position: absolute;
            top: 10px;
            /* Mirror of .up-back: align to the shell's content edge on
               wide viewports so the heart doesn't strand itself in the
               empty right margin beside the centered content. Clamps to
               16px inset when the viewport is narrower than the shell. */
            right: max(16px, calc((100vw - 1080px) / 2 + 22px));
            z-index: 3;
            appearance: none;
            -webkit-appearance: none;
            border: 0;
            padding: 0;
            margin: 0;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            color: #FFFFFF;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
            transition: background .18s ease, transform .12s ease, color .18s ease, box-shadow .18s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .unimap-partner .up-hero__fav:hover {
            background: rgba(0, 0, 0, 0.62);
            transform: scale(1.06);
        }
        .unimap-partner .up-hero__fav:active { transform: scale(0.94); }
        .unimap-partner .up-hero__fav:focus-visible {
            outline: none;
            box-shadow: 0 2px 10px rgba(0,0,0,.35), 0 0 0 3px rgba(90,143,141,.5);
        }
        .unimap-partner .up-hero__fav svg {
            display: block;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            transition: fill .18s ease, stroke .18s ease;
        }
        .unimap-partner .up-hero__fav.is-faved {
            background: #FFFFFF;
            color: var(--color-heart);
            box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
        }
        .unimap-partner .up-hero__fav.is-faved svg {
            fill: var(--color-heart);
            stroke: var(--color-heart);
        }
        /* Reuse the same pop + sparkle animation the card heart uses so
           the two feel like one component. Keyframes are duplicated here
           because the /partners stylesheet isn't loaded on the partner
           single page — different rule name (up-fav-pop) to avoid any
           chance of collision. */
        @keyframes up-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-partner .up-hero__fav.is-popping {
            animation: up-fav-pop 450ms cubic-bezier(0.32, 0.72, 0, 1);
        }
        .unimap-partner .up-hero__fav.is-faved.is-popping::before,
        .unimap-partner .up-hero__fav.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: up-fav-spark 550ms ease-out;
        }
        .unimap-partner .up-hero__fav.is-faved.is-popping::before {
            animation-delay: 40ms;
            --tx: -20px; --ty: -20px;
        }
        .unimap-partner .up-hero__fav.is-faved.is-popping::after {
            animation-delay: 80ms;
            --tx: 20px; --ty: -20px;
        }
        @keyframes up-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 ----------
           unimap-favorites.js creates a `.ufav-toast` element on the fly
           and appends it to <body>. On /partners the styling comes from
           Unimap_Partners_Directory::print_styles(), but that stylesheet
           isn't loaded here, so we duplicate the rules. Keep them
           BYTE-IDENTICAL to the directory version so the toast looks
           the same everywhere; if the directory version changes, update
           both. Unscoped by design — the JS appends to <body>, not
           inside .unimap-partner. */
        .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);
        }

        /* ---------- Grid: content + sidebar ----------
           Below 880px the sidebar drops above main so the CTA stays
           directly under the hero. Above 880px it pins to the right at
           360px wide. (Was sticky in v0.26.4 and earlier, but sticky sat
           at top:24px which put it behind the site's fixed header — a
           partial-clip effect that read as broken. Non-sticky is cleaner.) */
        .unimap-partner .up-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 28px;
        }
        /* Content column (the desktop grid item). min-width:0 so a wide or
           long-token descendant can't push the item past its track. On
           mobile .up-main is display:contents, so the .up-block children
           become the grid items instead — they get their own min-width:0. */
        .unimap-partner .up-main {
            min-width: 0;
        }
        /* Sidebar container. Members with hybrid partners see two stacked
           cards (online action + show-card CTA) — flex column with a gap
           gives them consistent spacing without margin collapse quirks.
           The gap is baseline; the sticky positioning is added on desktop
           in the breakpoint below. */
        .unimap-partner .up-side {
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
        }

        /* ---------- Block + label
           A "block" is one labelled content unit (discount, info, about).
           The label sits above the content as a quiet uppercase header.
           No card wrapper around the block as a whole — only the discount
           and the CTA have a card surface. */
        .unimap-partner .up-block {
            /* On mobile .up-main is display:contents, so each .up-block is a
               DIRECT grid item. A grid item's automatic minimum size is its
               min-content, so a long unbreakable token (e.g. a pasted URL in
               the discount text) would force the 1fr track wider than the
               shell — dragging the whole grid off the right edge while the
               hero, which sits outside the grid, stays put. min-width:0 lets
               the track collapse back to the container. */
            min-width: 0;
        }
        .unimap-partner .up-block + .up-block { margin-top: 28px; }
        /* Section labels — matches .uc-section__title on /my-card. Quiet
           sentence-case headers, no uppercase, no tracking. */
        .unimap-partner .up-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--color-soft);
            margin: 0 0 10px 4px;
            letter-spacing: -.005em;
        }

        /* ---------- Discount card ----------
           Teal gradient surface, the visual focal point. Matches the
           .uc-card on /my-card so members read it as "the same teal as
           your card" — what your card unlocks here. */
        .unimap-partner .up-discount {
            position: relative;
            background:
                radial-gradient(circle at 88% -10%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 55%),
                linear-gradient(150deg, var(--color-teal) 0%, var(--color-teal-darker) 100%);
            color: #FFFFFF;
            border-radius: 18px;
            padding: 22px 24px;
            box-shadow: var(--shadow-card);
            overflow: hidden;
            /* Break pathological long tokens (pasted URLs, no-space strings)
               so they wrap inside the card rather than being clipped by the
               overflow:hidden above. overflow-wrap is inherited, so this
               covers the summary, details and split-row text in one place. */
            overflow-wrap: anywhere;
        }
        .unimap-partner .up-discount__summary {
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 18px;
            font-weight: 600;
            line-height: 1.35;
        }
        .unimap-partner .up-discount__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,.16);
            border-radius: 12px;
            flex-shrink: 0;
        }
        .unimap-partner .up-discount__icon .up-icon { color: #FFFFFF; }
        /* Amount highlight inside the teal card. Author wraps the magnitude
           in **…** (or it auto-detects a %/currency token); highlight_amount()
           strips the markers and tints it. Just bold (no chip/box) so
           "20%" / "500 Ft" stands out via weight only. nowrap keeps a
           "20 %" token on one line. Applies to the merged summary and
           both split-row summaries. */
        .unimap-partner .up-discount__amt {
            font-weight: 800;
            white-space: nowrap;
        }
        .unimap-partner .up-discount__details {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(255,255,255,.18);
            font-size: 14px;
            line-height: 1.65;
            color: rgba(255,255,255,.92);
        }

        /* ---------- Discount channel indicators (v0.25.0) ----------
           These sit inside the teal .up-discount card and label the
           channel(s) the offer applies to.

           * .up-discount__channels     — wrapper for the merged-mode
                                          "Személyesen és online" pill
           * .up-discount__channel-pill — the pill itself
           * .up-discount__row          — split-mode row wrapper (used
                                          only when hybrid partners have
                                          genuinely different text per
                                          channel)
           * .up-discount__channel      — per-row channel tag inside
                                          split mode
           Nothing here for single-channel partners — they render as a
           plain summary + details with no indicator, same as pre-0.25. */
        .unimap-partner .up-discount__channels {
            margin-top: 16px;
            display: flex;
            justify-content: flex-start;
        }
        .unimap-partner .up-discount__channel-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.18);
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
            color: rgba(255,255,255,.95);
            line-height: 1;
        }
        .unimap-partner .up-discount__channel-pill .up-icon { color: rgba(255,255,255,.9); }
        .unimap-partner .up-discount__channel-pill > span { padding-left: 4px; }

        .unimap-partner .up-discount__row + .up-discount__row {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,.18);
        }
        .unimap-partner .up-discount__channel {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: rgba(255,255,255,.14);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: rgba(255,255,255,.92);
            margin-bottom: 12px;
            line-height: 1;
        }
        .unimap-partner .up-discount__channel .up-icon { color: rgba(255,255,255,.9); }
        .unimap-partner .up-discount__row-summary {
            font-size: 17px;
            font-weight: 600;
            line-height: 1.35;
        }
        .unimap-partner .up-discount__row-details {
            margin-top: 8px;
            font-size: 14px;
            line-height: 1.65;
            color: rgba(255,255,255,.9);
        }

        /* ---------- Kupon ticket (v0.26.0) ----------
           Skeuomorphic teal ticket. Only renders for members with an
           online coupon code. Two holes punched at the perforation line +
           dashed "tear here" separator sell the "physical ticket stub".

           Structure: brand label → code slot → perforation → bottom half.
           The bottom half contains either the affiliate button (when the
           partner has an online URL) or a short "copy it and pass it in
           store" hint (when there's a code but no URL). Perforation + bottom
           always render so the ticket's proportions stay consistent.

           **The holes are real cutouts, and the shadow never fills them.**
           Two things went wrong before: circles painted in the page colour
           read as dark discs over the shadow, and a `filter: drop-shadow`
           cast from the notched shape filled each hole with shadow (the same
           dark disc) and, being a filter, painted in the positioned layer —
           above the "Show your card" card that follows.

           So the ticket (and the single-use `.umc-ticket` below) is masked,
           and the shadow is an ordinary `box-shadow` on the unmasked wrapper
           around it (`.up-ticket-wrap`, `.umc`). An outer box-shadow is never
           painted inside its own box, so a hole shows exactly the page behind
           it; and a box-shadow on a non-positioned block paints with the
           block backgrounds, in document order, so the next card covers it.
           The shadow is pulled in at the sides (negative spread) and cast
           downwards, so beside a hole there is next to none of it and the rim
           of the hole meets the page, not a halo. `--ticket-notch-y` is the
           tear line's middle, measured by `notch.ts`; the fallback is what it
           measures wherever the code row sits on one line. */
        .unimap-partner .up-ticket-wrap,
        .umc {
            border-radius: 20px;
            box-shadow: 0 20px 34px -14px rgba(0,0,0,.6), 0 8px 14px -8px rgba(0,0,0,.4);
        }
        .unimap-partner .up-ticket {
            position: relative;
            background:
                radial-gradient(circle at 100% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
                linear-gradient(155deg, var(--color-teal) 0%, var(--color-teal-darker) 100%);
            color: #FFFFFF;
            border-radius: 20px;
            padding: 22px 24px;
            -webkit-mask:
                radial-gradient(circle 11px at left var(--ticket-notch-y, 136px), rgba(0,0,0,0) 96%, #000 100%),
                radial-gradient(circle 11px at right var(--ticket-notch-y, 136px), rgba(0,0,0,0) 96%, #000 100%);
            -webkit-mask-composite: source-in;
            mask:
                radial-gradient(circle 11px at left var(--ticket-notch-y, 136px), rgba(0,0,0,0) 96%, #000 100%),
                radial-gradient(circle 11px at right var(--ticket-notch-y, 136px), rgba(0,0,0,0) 96%, #000 100%);
            mask-composite: intersect;
        }

        /* Brand label at the top of the ticket. Block-level so it stacks
           above the code slot naturally. */
        .unimap-partner .up-ticket__brand {
            display: block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .04em;
            color: rgba(255,255,255,.85);
        }

        /* Code slot: dashed frame around the monospace code so it reads
           like a stamped ticket number rather than another UI card. */
        .unimap-partner .up-ticket__code-slot { margin-top: 16px; }
        .unimap-partner .up-ticket__code-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: rgba(0,0,0,.22);
            border: 1px dashed rgba(255,255,255,.32);
            border-radius: 12px;
            padding: 14px 16px;
            min-height: 56px;
        }
        .unimap-partner .up-ticket__code {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: .1em;
            color: #FFFFFF;
            background: transparent;
            padding: 0;
            line-height: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
        }

        /* Copy button. White-on-dark for max contrast against the darker
           code-slot background. The alias class .up-online-code__copy is
           kept on the same element so the existing tracking JS selector
           (querySelectorAll('.up-online-code__copy')) still matches. */
        .unimap-partner .up-ticket__copy {
            appearance: none;
            border: 0;
            background: #FFFFFF;
            color: var(--color-teal-darker);
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            padding: 8px 14px;
            border-radius: 999px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            line-height: 1;
            transition: background .15s ease, color .15s ease;
            flex-shrink: 0;
        }
        .unimap-partner .up-ticket__copy:hover { background: #F0F2F4; }
        /* Success state: solid green fill. The prior --up-teal-darker
           background (#3A6260) was visually identical to the bottom of
           the ticket's own gradient, which ends at --up-teal-darker —
           the button disappeared into its container the instant JS
           added .is-copied. Green is one-off (not in the --up-* palette)
           but reads universally as "copied", pairs with the "Másolva!"
           label swap, and holds high contrast against the teal ticket. */
        .unimap-partner .up-ticket__copy.is-copied {
            background: #16A34A;
            color: #FFFFFF;
        }
        .unimap-partner .up-ticket__copy.is-copied:hover { background: #15803D; }
        .unimap-partner .up-ticket__copy .up-icon { color: currentColor; }

        /* Perforation line. It breaks out of the ticket's horizontal
           padding via negative margins to reach the outer edges, where the
           ticket's mask (above) punches the two holes on its middle. */
        .unimap-partner .up-ticket__perf {
            position: relative;
            height: 0;
            margin: 20px -24px;
            border-top: 2px dashed rgba(255,255,255,.4);
        }

        /* Bottom half: either the affiliate button or the hint text. */
        .unimap-partner .up-ticket__bottom {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .unimap-partner .up-ticket__hint {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 0;
            padding: 12px 14px;
            background: rgba(255,255,255,.10);
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.55;
            color: rgba(255,255,255,.95);
        }
        .unimap-partner .up-ticket__hint .up-icon {
            flex-shrink: 0;
            margin-top: 2px;
            color: rgba(255,255,255,.85);
        }

        /* Button variant used inside the ticket bottom. White fill with
           teal text so it stands out against the teal ticket surface.
           .up-online-link is preserved on the same element so the
           affiliate-click tracking JS selector still matches. */
        .unimap-partner .up-btn--on-teal {
            background: #FFFFFF;
            color: var(--color-teal-darker);
            font-weight: 600;
        }
        .unimap-partner .up-btn--on-teal:hover { background: #F4F5F7; color: var(--color-teal-darker); }
        .unimap-partner .up-online-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .unimap-partner .up-online-link__icon { display: inline-flex; }

        /* Narrow viewport: long codes may not fit alongside the copy
           button on ~360-400px phones. Allow the row to wrap and give
           the copy button full width when it wraps down. */
        @media (max-width: 420px) {
            .unimap-partner .up-ticket__code-row { flex-wrap: wrap; }
            .unimap-partner .up-ticket__code { font-size: 20px; }
            .unimap-partner .up-ticket__copy { width: 100%; justify-content: center; }
        }

        /* Sidebar variant for the URL-only online card. Same base surface
           as other .up-cta cards; only the icon color changes to teal to
           signal "online" without introducing a whole new card family. */
        .unimap-partner .up-cta--online .up-cta__icon { color: var(--color-teal); }

        /* ---------- Practical info list ----------
           Borderless rows separated by hairline dividers. Two-line stack
           inside each row — primary label up top, secondary value below,
           both in normal case. Mirrors the .uc-row pattern on /my-card. */
        .unimap-partner .up-info {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .unimap-partner .up-info li + li {
            border-top: 1px solid var(--color-divider);
        }
        .unimap-partner .up-info__row {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 4px;
            color: var(--color-body);
            transition: background .15s ease;
        }
        .unimap-partner .up-info__row:hover {
            background: rgba(255,255,255,.025);
        }
        /* Button variant (multi-location "Útvonal" row that opens the modal).
           Strip UA button chrome so it's visually identical to the anchor
           rows; the .up-info__row flex/padding above still applies. */
        .unimap-partner button.up-info__row {
            width: 100%;
            background: transparent;
            border: 0;
            margin: 0;
            font: inherit;
            text-align: left;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
        }
        .unimap-partner .up-info__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 11px;
            background: var(--color-teal-soft);
            color: #8FB8B6;
            flex-shrink: 0;
        }
        .unimap-partner .up-info__text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .unimap-partner .up-info__primary {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--color-body);
            line-height: 1.3;
        }
        .unimap-partner .up-info__sub {
            font-size: 13px;
            font-weight: 400;
            color: var(--color-soft);
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .unimap-partner .up-info__chevron {
            color: var(--color-faint-text);
            flex-shrink: 0;
        }

        /* ---------- About prose ----------
           Plain text on the page background. No wrapper card. */
        .unimap-partner .up-prose {
            font-size: 15px;
            line-height: 1.7;
            color: var(--color-soft);
            max-width: 65ch;
        }
        .unimap-partner .up-prose p { margin: 0 0 14px; }
        .unimap-partner .up-prose p:last-child { margin-bottom: 0; }
        .unimap-partner .up-prose a {
            color: #8FB8B6;
            text-decoration: underline;
        }

        /* ---------- About clamp ("Bővebben") ----------
           Only present when PHP decided the body is long enough (see the
           $about_clamp branch). The fade is a mask on the prose itself
           rather than a gradient overlay, so it works over whatever sits
           behind it without hard-coding --up-bg. Browsers without mask
           support just get a clean hard cut, which the toggle still fixes. */
        .unimap-partner .up-about.is-clamped .up-prose {
            max-height: 320px;
            overflow: hidden;
            -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
        }
        .unimap-partner .up-about__toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 14px;
            padding: 8px 15px;
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 600;
            line-height: 1;
            color: #8FB8B6;
            background: var(--color-surface);
            border: 1px solid var(--color-line);
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: background .18s ease, border-color .18s ease;
        }
        .unimap-partner .up-about__toggle:hover {
            background: var(--color-raised);
            border-color: var(--color-line-strong);
        }
        .unimap-partner .up-about__toggle svg {
            transition: transform .2s ease;
        }
        .unimap-partner .up-about__toggle[aria-expanded="true"] svg {
            transform: rotate(180deg);
        }
        /* Label swap is driven purely by aria-expanded — one source of
           truth for state, and no text juggling in JS. */
        .unimap-partner .up-about__less { display: none; }
        .unimap-partner .up-about__toggle[aria-expanded="true"] .up-about__more { display: none; }
        .unimap-partner .up-about__toggle[aria-expanded="true"] .up-about__less { display: inline; }
        @media (prefers-reduced-motion: reduce) {
            .unimap-partner .up-about__toggle svg { transition: none; }
        }
        @media (max-width: 640px) {
            .unimap-partner .up-about.is-clamped .up-prose { max-height: 240px; }
        }

        /* ---------- CTA card (sidebar) ----------
           Surface card, centered text, icon-title-lede-button stack. */
        .unimap-partner .up-cta {
            background: var(--color-surface);
            border: 1px solid var(--color-line);
            border-radius: 20px;
            padding: 26px 24px;
            text-align: center;
        }
        .unimap-partner .up-cta__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: var(--color-teal-soft);
            color: #8FB8B6;
            margin-bottom: 14px;
        }
        .unimap-partner .up-cta__title {
            font-family: 'Poppins', sans-serif;
            font-size: 17px;
            font-weight: 600;
            margin: 0 0 8px;
            line-height: 1.3;
            color: var(--color-body);
            letter-spacing: -.01em;
        }
        .unimap-partner .up-cta__lede {
            font-size: 13.5px;
            line-height: 1.55;
            color: var(--color-soft);
            margin: 0 auto 18px;
        }
        .unimap-partner .up-cta__lede a {
            color: #8FB8B6;
            text-decoration: underline;
        }
        .unimap-partner .up-cta__link {
            display: inline-block;
            margin-top: 12px;
            font-size: 13px;
            color: var(--color-soft);
            transition: color .15s ease;
        }
        .unimap-partner .up-cta__link:hover {
            color: var(--color-body);
            text-decoration: underline;
        }
        .unimap-partner .up-cta--pending .up-cta__icon {
            background: var(--color-amber-bg);
            color: var(--color-amber);
        }
        .unimap-partner .up-cta--pending .up-cta__title { color: #F0C56B; }
        .unimap-partner .up-cta--revoked .up-cta__icon {
            background: var(--color-error-bg);
            color: var(--color-error);
        }
        .unimap-partner .up-cta--revoked .up-cta__title { color: #E08577; }

        /* ---------- Buttons ----------
           The site's primary button (globals.css, D155): the same recipe
           and size as `button({ variant: 'primary', size: 'page' })`. */
        .unimap-partner .up-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;
            white-space: nowrap;
        }
        .unimap-partner .up-btn--primary {
            background: var(--btn-primary-bg);
            color: #FFFFFF;
            box-shadow: var(--btn-primary-shadow);
        }
        .unimap-partner .up-btn--primary:hover { filter: brightness(1.08); box-shadow: var(--btn-primary-shadow-hover); }
        .unimap-partner .up-btn--primary:active { filter: brightness(0.95); box-shadow: var(--btn-primary-shadow-active); }
        .unimap-partner .up-btn--primary:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
        .unimap-partner .up-btn--block { width: 100%; }

        /* ---------- Map block ----------
           Dark CartoDB tiles to match the landing's mood. Single pulsing
           teal marker, no popup (the partner IS the only point of
           interest). Scroll-wheel zoom disabled so the map doesn't trap
           the page scroll; users can still pinch on mobile and use the
           +/- buttons on desktop. */
        .unimap-partner .up-map {
            position: relative;
            height: 280px;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid var(--color-line);
            background: #0E1115; /* matches CartoDB Dark Matter tile bg */
            box-shadow: var(--shadow-card);
        }
        /* Wrap holds the map + its overlaid directions pill so the pill
           can position relative to the map area without affecting the
           map's own internal layout. isolation:isolate creates a stacking
           context so the pill's z-index:1000 stays contained here and
           can't bleed above the site header when the map scrolls out of
           view. */
        .unimap-partner .up-map-wrap { position: relative; isolation: isolate; }
        /* Directions pill overlaid bottom-right on the map. Frosted dark
           background so it reads as part of the map's surface, teal text
           tint on hover for affordance. z-index 1000 sits above Leaflet's
           tile + overlay panes (200-700) and below its zoom controls (800)
           on the opposite corner so they don't overlap. */
        .unimap-partner .up-map__cta {
            position: absolute;
            bottom: 12px;
            right: 12px;
            z-index: 1000;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 16px;
            background: rgba(28,28,28,.92);
            color: #FFFFFF;
            border: 1px solid rgba(255,255,255,.10);
            border-radius: var(--radius-pill);
            font-size: 13px;
            font-weight: 500;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 8px 22px rgba(0,0,0,.45);
            transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
        }
        .unimap-partner .up-map__cta:hover {
            background: rgba(28,28,28,.96);
            color: #8FB8B6;
            border-color: rgba(120,180,178,.4);
            transform: translateY(-1px);
        }
        .unimap-partner .up-map__cta:active { transform: scale(0.98); }
        /* Its own shadow would swallow the page's focus glow: the outline. */
        .unimap-partner .up-map__cta:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
        /* When the map CTA is a <button> (multi-location "Helyszínek (N)"),
           strip UA button chrome so it matches the anchor variant exactly. */
        .unimap-partner button.up-map__cta { cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; }

        /* Hero "N helyszín" chip — sits in .up-hero__meta beside the
           address/district. Subtle teal-tinted pill, clickable. */
        .unimap-partner .up-hero__loc-chip {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 4px 11px; margin: 0;
            border: 1px solid rgba(120,180,178,.28);
            background: var(--color-teal-soft);
            color: #8FB8B6; font-family: inherit; font-size: 12px; font-weight: 600;
            line-height: 1; letter-spacing: .02em;
            border-radius: var(--radius-pill); cursor: pointer;
            -webkit-appearance: none; appearance: none;
            transition: background .15s ease, border-color .15s ease, color .15s ease;
        }
        .unimap-partner .up-hero__loc-chip:hover { background: var(--color-teal-soft); color: #A9CFCD; border-color: rgba(120,180,178,.55); }
        .unimap-partner .up-hero__loc-chip svg { width: 13px; height: 13px; }

        /* Locations modal ------------------------------------------------ */
        .up-locmodal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: 'Poppins', system-ui, sans-serif; }
        .up-locmodal[hidden] { display: none; }
        .up-locmodal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
        /* The PANEL must not scroll. It used to, with a sticky header inside
           it, and that leaked a 1px sliver of the next row above the header
           while scrolling: a sticky offset resolves against the container's
           PADDING box, so the panel's own 1px border plus fractional
           device-pixel scaling left a hairline the header's background never
           covered. Scrolling the LIST instead makes the header an ordinary
           flex item that never moves, so there is no sticky layer left to
           bleed past — and overflow:hidden here lets the 18px radius clip the
           list cleanly at both ends. */
        .up-locmodal__panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 460px; max-height: 80vh; overflow: hidden; background: #1F1F1F; color: var(--color-body); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: up-locmodal-in .24s cubic-bezier(0.22,1,0.36,1); }
        @keyframes up-locmodal-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        .up-locmodal__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.07); background: #1F1F1F; }
        .up-locmodal__title { font-size: 15px; font-weight: 600; }
        .up-locmodal__close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: var(--color-divider); color: var(--color-body); border-radius: 50%; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .15s ease; }
        .up-locmodal__close:hover { background: rgba(255,255,255,.14); }
        /* Explicit icon sizing + stroke so a theme/Elementor svg reset can't
           collapse or blank the X (this modal renders outside .unimap-partner,
           so it doesn't inherit the section's own svg defaults). */
        .up-locmodal__close svg { display: block; width: 18px; height: 18px; stroke: currentColor; fill: none; }
        /* The scroller. overscroll-behavior stops the page behind the modal
           from taking over once the list bottoms out, which on a 27-branch
           list is otherwise easy to trigger on a phone. */
        .up-locmodal__list { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; list-style: none; margin: 0; padding: 4px 10px 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
        .up-locmodal__list::-webkit-scrollbar { width: 8px; }
        .up-locmodal__list::-webkit-scrollbar-track { background: transparent; }
        .up-locmodal__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
        .up-locmodal__list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }
        /* The divider is a pseudo-element, not a border-bottom: the row needs
           a radius for its hover fill, and a real border would curve up at
           the corners with it. Inset from the edges so the rule stops short
           of the hover fill instead of colliding with its rounded ends. */
        .up-locmodal__row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; border-radius: 10px; transition: background .15s ease; }
        .up-locmodal__row::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: rgba(255,255,255,.05); }
        .up-locmodal__row:hover { background: rgba(255,255,255,.03); }
        .up-locmodal__row:last-child::after { display: none; }
        .up-locmodal__pin { color: #8FB8B6; flex-shrink: 0; margin-top: 1px; }
        .up-locmodal__pin svg { width: 16px; height: 16px; }
        .up-locmodal__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
        .up-locmodal__label { font-size: 14px; font-weight: 600; }
        .up-locmodal__addr { font-size: 13px; color: var(--color-soft); line-height: 1.4; }
        /* Wayfinding note. Dimmer and smaller than the address so the row
           still reads address-first, and clamped to two lines: the useful
           ones are short ("az OBI mogott"), but a partner will occasionally
           hand over three sentences about a rear parking lot, and one such
           row must not push the other 26 branches off the screen. Tapping
           the row's note expands it — see the modal script. */
        .up-locmodal__note {
            font-size: 12px; color: #8C8C8C; line-height: 1.4; margin-top: 2px;
            display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
            overflow: hidden;
        }
        .up-locmodal__note.is-open { -webkit-line-clamp: unset; overflow: visible; }
        /* Only advertise the tap when the text is actually cut off. The
           script adds this class after measuring. */
        .up-locmodal__note.is-clamped { cursor: pointer; }
        .up-locmodal__note.is-clamped::after { content: ' … ' var(--up-loc-note-more); color: #8FB8B6; font-weight: 500; }
        .up-locmodal__note.is-clamped.is-open::after { content: ''; }
        /* NOTE: literal 999px, NOT var(--up-radius-pill). This modal renders
           as a SIBLING of .unimap-partner (outside .up-shell, so its fixed
           overlay resolves against the viewport), so the --up-* custom
           properties declared on .unimap-partner don't cascade in here. The
           var was resolving to nothing and the buttons rendered as squares. */
        /* Ghost, not solid. Twenty-seven filled teal pills stacked down the
           panel read as the loudest thing in it and buried the branch names
           they belong to; as an outline they stay an obvious tap target
           without competing with the list itself. Fills in on hover/focus. */
        .up-locmodal__route { flex-shrink: 0; align-self: center; display: inline-flex; align-items: center; padding: 7px 14px; background: transparent; color: #8FB8B6 !important; border: 1px solid rgba(143,184,182,.35); text-decoration: none !important; border-radius: 999px; font-size: 12.5px; font-weight: 500; transition: background .15s ease, color .15s ease, border-color .15s ease; }
        .up-locmodal__route:hover, .up-locmodal__route:focus-visible { background: var(--color-teal); border-color: var(--color-teal); color: #FFFFFF !important; }
        /* No media query touched this modal before. On a phone the 20px
           overlay padding plus the 80vh cap gave away a lot of an already
           short screen, and the Directions pill squeezed a Budapest address
           down to two words a line. Below 480px the button wraps under the
           text instead, indented to clear the pin (16px icon + 12px gap). */
        @media (max-width: 480px) {
            .up-locmodal { padding: 12px; }
            .up-locmodal__panel { max-height: 88vh; }
            .up-locmodal__head { padding: 14px 14px 10px; }
            .up-locmodal__list { padding: 4px 6px 12px; }
            .up-locmodal__row { flex-wrap: wrap; gap: 10px; padding: 12px 8px; }
            .up-locmodal__route { align-self: flex-start; margin-left: 28px; }
        }
        /* Mute the bright Dark Matter tiles into the page's mood instead
           of letting them read as contrasty white-on-black streets. */
        /* Leaflet zoom control restyle to match the dark surface. */

        /* Marker — NOT scoped under .unimap-partner because Leaflet
           attaches markers to its own panes inside the map container.
           The .up-marker class name is unique enough to avoid collisions. */
        .up-marker {
            pointer-events: auto;
        }
        .up-marker__dot {
            position: absolute;
            inset: 5px;
            background: radial-gradient(circle at 35% 30%, var(--color-teal-light) 0%, var(--color-teal) 60%, #4A7B79 100%);
            border-radius: 50%;
            border: 1.5px solid #0E1115;
            box-shadow: 0 0 10px rgba(120,180,178,.55), 0 1px 3px rgba(0,0,0,.4);
            z-index: 2;
        }
        .up-marker__pulse {
            position: absolute;
            inset: 5px;
            background: transparent;
            border: 2px solid var(--color-teal-light);
            border-radius: 50%;
            opacity: 0;
            animation: up-marker-pulse 2.4s ease-out infinite;
            z-index: 1;
            pointer-events: none;
        }
        @keyframes up-marker-pulse {
            0%   { transform: scale(1); opacity: .75; }
            100% { transform: scale(3); opacity: 0; }
        }

        /* ================================================================
         * Mobile-first reflow for narrow viewports
         * ============================================================== */
        @media (max-width: 879px) {
            /* No +/- zoom buttons on mobile — pinch to zoom instead. */
            .unimap-partner .up-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            /* Reorder for mobile so the flow reads:
                 hero → discount → how to redeem → supporting details.
               .up-main is set to display:contents so each .up-block
               inside it participates directly in .up-grid's grid layout
               and can be reordered alongside .up-side via grid `order`.
               Without this trick, .up-main and .up-side are the only
               reorderable items, which would force the CTA to sit above
               ALL content blocks — putting the redemption ask before
               the value prop.

               Note: display:contents removes .up-main from the visual
               formatting tree; modern browsers preserve its <main>
               role in the a11y tree. */
            .unimap-partner .up-main { display: contents; }
            /* Grid-gap handles inter-block spacing on mobile; the
               desktop-style adjacent-sibling margin would double up on
               top of the gap. */
            .unimap-partner .up-block + .up-block { margin-top: 0; }
            .unimap-partner .up-block { order: 3; }
            .unimap-partner .up-block--discount { order: 1; }
            .unimap-partner .up-side { order: 2; }

            /* Practical info on mobile: same flex row, just a touch
               tighter. Both lines stay visible — the secondary value
               is the useful bit (the phone number, the URL), so
               hiding it would defeat the row's purpose. */
            .unimap-partner .up-info__row {
                gap: 12px;
                padding: 13px 2px;
            }
            .unimap-partner .up-info__chevron { display: none; }
            .unimap-partner .up-map { height: 220px; }

            /* A little extra breathing room at the very bottom on phones so
               the last block doesn't crowd the bottom of the page / the
               bottom nav on card routes. */
            .unimap-partner { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
        }

        /* ================================================================
         * Desktop layout: 2-column split
         * ============================================================== */
        @media (min-width: 880px) {
            .unimap-partner { padding: 0 0 96px; }

            /* Hero on desktop: taller banner, logo+text side-by-side.
               The banner takes more vertical real-estate on wide screens
               because it's the page's identity anchor; the row overlaps
               deeper (-60px) so the logo sits visually anchored to the
               image rather than floating below it. */
            .unimap-partner .up-hero__banner { height: 300px; }
            .unimap-partner .up-hero__row {
                flex-direction: row;
                align-items: flex-end;
                gap: 24px;
                /* -80px so the logo + title tuck deep into the bottom
                   of the banner, anchoring identity to the image rather
                   than letting it float below on the page background.
                   The strengthened overlay handles readability where
                   text sits over image content. */
                margin-top: -80px;
            }
            .unimap-partner .up-hero__logo {
                width: 108px;
                height: 108px;
                padding: 12px;
            }
            .unimap-partner .up-hero__title { font-size: 32px; }
            .unimap-partner .up-hero__text { padding-bottom: 6px; }

            /* 2-col grid: content + 360px sidebar */
            .unimap-partner .up-grid {
                grid-template-columns: minmax(0, 1fr) 360px;
                gap: 36px;
                align-items: start;
            }
            /* Slightly more breathing room between blocks on desktop */
            .unimap-partner .up-block + .up-block { margin-top: 28px; }
        }

        @media (min-width: 1100px) {
            .unimap-partner .up-hero__banner { height: 360px; }
            .unimap-partner .up-hero__title { font-size: 36px; }
        }

/* ==== the coupon ticket, first half — unimap-cards/includes/class-unimap-coupons.php ==== */

/* The wrapper carries the shadow and the ticket the mask: see "Kupon
           ticket" above for why it is a box-shadow on an unmasked wrapper. */
        .umc { margin:16px 0; }
        .umc-ticket {
            position:relative;
            background:
                radial-gradient(circle at 100% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
                linear-gradient(155deg, var(--color-teal) 0%, var(--color-teal-darker) 100%);
            color:#fff; border-radius:20px; padding:22px 24px;
            /* Real holes at the perforation line. `claim.tsx` pins
               --ticket-notch-y to the tear line; 62% is the pre-JS guess. */
            -webkit-mask:
                radial-gradient(circle 11px at left  var(--ticket-notch-y, 62%), rgba(0,0,0,0) 96%, #000 100%),
                radial-gradient(circle 11px at right var(--ticket-notch-y, 62%), rgba(0,0,0,0) 96%, #000 100%);
            -webkit-mask-composite:source-in;
            mask:
                radial-gradient(circle 11px at left  var(--ticket-notch-y, 62%), rgba(0,0,0,0) 96%, #000 100%),
                radial-gradient(circle 11px at right var(--ticket-notch-y, 62%), rgba(0,0,0,0) 96%, #000 100%);
            mask-composite:intersect;
        }
        .umc-ticket__brand {
            display:flex; align-items:center; gap:8px;
            font-size:11px; font-weight:600; text-transform:uppercase;
            letter-spacing:.04em; color:rgba(255,255,255,.85);
        }
        .umc-ticket__brand svg { flex-shrink:0; }
        .umc-slot { position:relative; margin-top:16px; min-height:56px; }
        .umc-code-row {
            display:flex; align-items:center; justify-content:space-between; gap:12px;
            background:rgba(0,0,0,.22); border:1px dashed rgba(255,255,255,.32);
            border-radius:12px; padding:14px 16px; min-height:56px;
        }
        .umc-code {
            font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
            font-size:22px; font-weight:700; letter-spacing:.1em; color:#fff;
            line-height:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;
        }
        /* bg/color pinned with !important across every state — the Elementor
           theme's global button rules (magenta :active, grey default) would
           otherwise bleed in once the button is shown after reveal. */
        .umc-copy {
            appearance:none; border:0; background:#fff !important; background-image:none !important;
            color:var(--color-teal-darker) !important; box-shadow:none; text-decoration:none;
            font:inherit; font-size:13px; font-weight:600; padding:8px 14px;
            border-radius:999px; cursor:pointer; display:inline-flex; align-items:center;
            gap:6px; line-height:1; transition:background .15s ease,color .15s ease; flex-shrink:0;
            -webkit-tap-highlight-color:transparent;
        }
        .umc-copy:focus, .umc-copy:focus-visible, .umc-copy:active {
            background:#fff !important; color:var(--color-teal-darker) !important; outline:none;
        }
        .umc-copy:hover { background:#F0F2F4 !important; color:var(--color-teal-darker) !important; }
        .umc-copy.is-copied, .umc-copy.is-copied:hover,
        .umc-copy.is-copied:focus, .umc-copy.is-copied:active { background:#16A34A !important; color:#fff !important; }

/* ==== the foil, the reveal and the countdown — unimap-cards/includes/class-unimap-coupons.php ==== */

/* Foil overlay — covers the code slot on a sealed ticket. Tap the
           button to peel it away. */
        .umc-foil {
            position:absolute; inset:0; border-radius:12px; overflow:hidden;
            background:
                repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0 10px, rgba(255,255,255,.02) 10px 20px),
                linear-gradient(135deg,#6E9E9C 0%,var(--color-teal-darker) 100%);
            display:flex; align-items:center; justify-content:center;
            transition:opacity .45s ease, transform .45s ease;
        }
        .umc-ticket.is-revealing .umc-foil { opacity:0; transform:scale(1.04); pointer-events:none; }
        .umc-foil__shine {
            position:absolute; top:0; left:-60%; width:40%; height:100%;
            background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
            transform:skewX(-18deg); animation:umc-shine 2.6s ease-in-out infinite;
        }
        @keyframes umc-shine { 0%{left:-60%;} 55%{left:120%;} 100%{left:120%;} }
        .umc-claim {
            position:relative; z-index:2; appearance:none; border:0; cursor:pointer;
            background:#fff !important; background-image:none !important; color:var(--color-teal-darker) !important;
            font:inherit; font-weight:700; font-size:15px;
            padding:12px 20px; border-radius:999px; display:inline-flex; align-items:center; gap:8px;
            box-shadow:0 6px 16px rgba(0,0,0,.22); transition:transform .12s ease, background .15s ease;
            -webkit-tap-highlight-color:transparent;
        }
        .umc-claim:hover { transform:translateY(-1px); }
        .umc-claim:focus, .umc-claim:focus-visible, .umc-claim:active {
            background:#fff !important; color:var(--color-teal-darker) !important; outline:none;
        }
        .umc-claim[disabled] { opacity:.7; cursor:default; transform:none; }
        .umc-claim__spin {
            width:15px; height:15px; border:2px solid rgba(58,98,96,.35); border-top-color:var(--color-teal-darker);
            border-radius:50%; animation:umc-spin .7s linear infinite; display:none;
        }
        .umc-claim.is-busy .umc-claim__spin { display:inline-block; }
        .umc-claim.is-busy .umc-claim__label { opacity:.6; }
        @keyframes umc-spin { to { transform:rotate(360deg); } }
        /* Dashed tear line only — the notches are punched out of the ticket
           via the mask on .umc-ticket (above), no painted circles. */
        .umc-perf { position:relative; height:0; margin:20px -24px; border-top:2px dashed rgba(255,255,255,.4); }
        .umc-bottom { display:flex; flex-direction:column; gap:12px; }
        .umc-hint, .umc-cooldown {
            display:flex; align-items:center; gap:10px; margin:0; padding:12px 14px;
            background:rgba(255,255,255,.10); border-radius:12px; font-size:14px;
            line-height:1.5; color:rgba(255,255,255,.95);
        }
        .umc-hint svg, .umc-cooldown svg { flex-shrink:0; }
        .umc-cooldown__time { font-variant-numeric:tabular-nums; font-weight:700; }
        /* QR/barcode formats: the visual is the hero and lives INSIDE the
           slot, so the sealed foil covers it (no stray white box pre-reveal).
           The slot reserves height as a "scratch card" area. */
        .umc-slot--visual { min-height:150px; }
        .umc-visual {
            position:relative; background:#fff; border-radius:12px; padding:14px;
            display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
            min-height:150px; box-sizing:border-box; cursor:pointer;
            transition:transform .12s ease;
        }
        .umc-slot--visual .umc-visual { width:100%; }
        .umc-visual[hidden] { display:none !important; }
        .umc-visual:active { transform:scale(.99); }
        /* Corner hint that the code enlarges on tap (pure CSS, survives the
           innerHTML the QR/barcode libs write into the box). */
        .umc-visual::after {
            content:''; position:absolute; right:8px; top:8px; width:24px; height:24px; opacity:1;
            pointer-events:none; border-radius:7px; background-color:rgba(255,255,255,.92);
            box-shadow:0 1px 3px rgba(0,0,0,.14);
            background-repeat:no-repeat; background-position:center; background-size:14px 14px;
            background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A6260' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 3 21 3 21 9'/><polyline points='9 21 3 21 3 15'/><line x1='21' y1='3' x2='14' y2='10'/><line x1='3' y1='21' x2='10' y2='14'/></svg>");
        }
        /* Render target holds the QR (canvas/img, fixed size) or barcode
           (SVG reflowed to a viewBox so it scales cleanly instead of
           collapsing to a thin line in the flex box). */
        .umc-visual__render { display:flex; align-items:center; justify-content:center; width:100%; max-width:260px; }
        .umc-visual__render canvas, .umc-visual__render img { display:block; max-width:100%; height:auto; }
        /* Pin a definite height; width follows the viewBox / inline
           aspect-ratio (width:auto), so the box wraps the bars tightly — no
           meet-letterbox gap and no reliance on the flaky width:100% /
           height:auto intrinsic sizing that ballooned the strip on desktop. */
        .umc-visual__render svg { display:block; height:60px; width:auto; max-width:100%; }
        /* Code text INSIDE the white box, directly under the barcode/QR:
           small, black, JetBrains Mono. */
        .umc-visual__code {
            font-family:'JetBrains Mono', ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
            font-size:12px; font-weight:600; letter-spacing:.08em; color:var(--color-ground);
            text-align:center; word-break:break-all; line-height:1.2;
            -webkit-user-select:text; user-select:text;
        }
        .umc-visual.is-in { animation:umc-visual-in .5s cubic-bezier(.2,.7,.2,1) both; }
        @keyframes umc-visual-in { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
        /* Fullscreen enlarge — mirrors the /my-card QR modal. */
        .umc-lightbox {
            position:fixed; inset:0; z-index:99999;
            display:flex; align-items:center; justify-content:center; padding:24px;
            background:rgba(12,16,16,.88); opacity:0; visibility:hidden;
            transition:opacity .2s ease; -webkit-tap-highlight-color:transparent;
        }
        .umc-lightbox.is-open { opacity:1; visibility:visible; }
        .umc-lightbox__panel {
            background:#fff; border-radius:20px; padding:26px;
            display:flex; flex-direction:column; align-items:center; gap:16px;
            max-width:88vw; box-shadow:0 24px 60px rgba(0,0,0,.5);
            transform:scale(.94); transition:transform .2s ease;
        }
        .umc-lightbox.is-open .umc-lightbox__panel { transform:scale(1); }
        .umc-lightbox__visual { display:flex; align-items:center; justify-content:center; }
        .umc-lightbox__visual canvas, .umc-lightbox__visual img, .umc-lightbox__visual svg { display:block; max-width:100%; height:auto; }
        .umc-lightbox--barcode .umc-lightbox__panel { width:min(88vw,460px); }
        .umc-lightbox--barcode .umc-lightbox__visual { width:100%; }
        .umc-lightbox--barcode .umc-lightbox__visual svg { width:auto; height:96px; max-width:100%; }
        .umc-lightbox__code {
            font-family:'JetBrains Mono', ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
            font-size:16px; font-weight:600; letter-spacing:.12em; color:var(--color-ground); text-align:center; word-break:break-all;
        }
        html.umc-lb-open, html.umc-lb-open body { overflow:hidden; }
        .umc-cooldown { display:none; }
        .umc-ticket.is-cooldown .umc-cooldown { display:flex; }
        .umc-ticket.is-empty .umc-code-row { opacity:.65; }
        @media (max-width:420px){
            .umc-code-row { flex-wrap:wrap; } .umc-code { font-size:20px; } .umc-copy { width:100%; justify-content:center; }
        }
