:root {
    --map-ink: #14263a;
    --map-blue: #034694;
    --map-blue-mid: #1f5582;
    --map-red: #D91016;
    --map-paper: #ffffff;
    --map-tint: #f2f6fb;
    --map-line: rgba(3, 70, 148, .16);
    --map-zoom-button-width: 64px;
    --map-overview-button-width: 44px;
    --map-controls-width: calc(var(--map-overview-button-width) + 2 * var(--map-zoom-button-width) + 2px);
    --map-controls-height: 52px;
    --map-heading-font: 'Field Gothic', 'Futura Now Headline', 'Arial Narrow', sans-serif;
    /* Tracking 90 from the approved heading comparison. Change this one value for all 2026 headings. */
    --kcp-2026-heading-tracking: .09em;
}

.map-experience-page {
    margin: 0;
    background: var(--map-paper);
    color: var(--map-ink);
}

.campaign-2026-home {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--map-ink);
    background: var(--map-paper);
}

/* Magnetic page scroll: the map section snaps into the viewport (below the sticky header). */
html:has(.campaign-2026-home) {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--kcp-header-h, 76px);
}

.campaign-2026-home .bg {
    display: none;
}

.campaign-2026-home > header[role="banner"] {
    flex: 0 0 auto;
}

.campaign-2026-home .logo-link img {
    height: 64px;
}

/* NOTE: no overflow clipping on .custom-header — it would cut off the
   user dropdown menu. The sticky/z-index rule below is the only one needed. */

.campaign-2026-info {
    margin: 0;
    color: var(--map-ink);
    background: var(--map-paper);
}

.campaign-2026-main.is-map-app {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.is-map-app .map-experience {
    flex: 1 1 auto;
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.is-map-app .map-sidebar {
    overflow-y: auto;
}

.is-map-app .map-sidebar-intro {
    padding: 14px 22px;
}

.is-map-app .map-category-block {
    padding: 14px 22px;
}

.is-map-app .map-filters {
    margin-top: 10px;
}

.is-map-app .map-list-heading {
    padding: 12px 22px;
}

.is-map-app .map-selection:not(.is-modal) {
    max-height: calc(100% - 84px);
}

.is-map-app .map-selection.is-modal {
    max-height: calc(100% - 96px);
}

.is-map-app .map-workspace {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border-bottom: 0;
}

.is-map-app .map-stage {
    min-height: 0;
}

.is-map-app .map-place-list {
    max-height: none;
    flex: 1 1 auto;
    min-height: 120px;
}

.campaign-2026-home .custom-header,
.campaign-2026-info .custom-header,
.map-experience-page .custom-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--map-line);
    backdrop-filter: blur(14px);
}

.campaign-2026-home .footer,
.map-experience-page .footer {
    position: relative;
    margin: 0;
}

.campaign-2026-main {
    /* clip (not hidden): a hidden-overflow box would become the scroll-snap container
       and break the page-level magnetic snap on the homepage map. */
    overflow: clip;
}

/* --- 2026 homepage hero: the 2025 layout with the new banner art --- */
.campaign-2026-home .campaign-2026-hp-hero {
    /* Client banner 2026-09-09 (4852x2500 source in assets/images/incoming/), 2880px wide for desktop/retina. */
    background-image: url("/assets/img/pozitkari-hp-bg-2026-2880.webp");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: calc(100vh - var(--kcp-header-h, 76px));
    min-height: calc(100dvh - var(--kcp-header-h, 76px));
    align-items: flex-start;
    padding-bottom: 0;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    /* Keep a usable map height on short phones and after rotation. */
    .campaign-2026-home .map-app-frame { height: auto; }
    .is-map-app .map-workspace { flex: none; }
    .map-experience.is-embedded .map-selection:has(.map-selection-empty) { display: none; }
    .campaign-2026-home .campaign-2026-hp-hero {
        background-image: url("/assets/img/pozitkari-hp-bg-2026-mobile.jpg");
        background-color: #fff;
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        min-height: calc(100svh - var(--kcp-header-h, 76px));
    }
}

.campaign-2026-home .campaign-2026-hp-hero .hero-container {
    min-height: 0;
    align-items: flex-start;
    padding-top: clamp(24px, 4.5vh, 48px);
}

.campaign-2026-home .campaign-2026-hp-hero .hero-content {
    min-height: 0;
    justify-content: flex-start;
}

.campaign-2026-home .campaign-2026-hp-hero .hero-main {
    padding-top: 0;
    margin-bottom: 0;
}

.campaign-2026-home .campaign-2026-hp-hero .hero-title {
    font-size: clamp(40px, 4.8vw, 72px);
    line-height: 1.15;
    margin-bottom: .4rem;
}

.campaign-2026-home .campaign-2026-hp-hero .hero-subtitle {
    font-family: var(--map-heading-font);
    font-size: clamp(23px, 2.7vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: var(--kcp-2026-heading-tracking);
    text-transform: uppercase;
    color: var(--map-blue);
    margin-bottom: 1.1rem;
}

.campaign-2026-home .campaign-2026-hp-hero .hero-description {
    font-size: clamp(17px, 1.8vw, 22px);
    margin-bottom: 1.8rem;
}

@media (min-width: 901px) {
    .campaign-2026-home .logo-link img { height: 76px; }
    .campaign-2026-home .custom-header .nav-link-custom { font-size: 18px; font-weight: 700; }
    .campaign-2026-home .campaign-2026-hp-hero {
        min-height: max(700px, calc(100dvh - var(--kcp-header-h, 76px)));
        background-color: #fff;
        background-position: center calc(100% + 40px);
    }
    .campaign-2026-home .campaign-2026-hp-hero .hero-container { padding-top: clamp(90px, 13vh, 150px); }
    .campaign-2026-home .campaign-2026-hp-hero .hero-title { font-size: clamp(60px, 5.8vw, 84px); }
    .campaign-2026-home .campaign-2026-hp-hero .hero-description { font-size: clamp(23px, 2.1vw, 29px); max-width: 800px; line-height: 1.35; }
}

@media (max-width: 900px) {
    .campaign-2026-home .campaign-2026-hp-hero .hero-container { padding-top: clamp(48px, 10svh, 88px); }
    .campaign-2026-home .campaign-2026-hp-hero .hero-title { font-size: clamp(38px, 10vw, 52px); }
    .campaign-2026-home .campaign-2026-hp-hero .hero-description { font-size: clamp(19px, 5vw, 24px); line-height: 1.4; }
}

/* Compact action switcher overlaid in the top-right corner of the map. */
.map-mode-switcher {
    position: absolute;
    /* Below the search float (z 8) so its open dropdown covers the pill on phones. */
    z-index: 7;
    top: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 5px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--map-line);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(20, 38, 58, .18);
}

.map-mode-option {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 9px 20px;
    border: 2px solid currentColor;
    background: #fff;
    font-family: var(--map-heading-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.map-mode-option.is-add {
    z-index: 1;
    border-color: var(--map-red);
    border-radius: 999px 0 0 999px;
    color: var(--map-red);
}

.map-mode-option.is-vote {
    margin-left: -2px;
    border-color: var(--map-blue);
    border-radius: 0 999px 999px 0;
    color: var(--map-blue);
}

.map-mode-option.is-add[aria-pressed="true"] {
    background: var(--map-red);
    color: #fff;
}

.map-mode-option.is-vote[aria-pressed="true"] {
    z-index: 2;
    background: var(--map-blue);
    color: #fff;
}

.map-mode-option:hover,
.map-mode-option:focus-visible {
    z-index: 3;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .68), 0 0 0 3px rgba(3, 70, 148, .1);
    outline: none;
}

@media (max-width: 768px) {
    /* The search card owns the top-left on phones, so the switcher slides under it
       and the zoom controls keep the top-right corner. */
    .map-mode-switcher {
        top: 76px;
        right: auto;
        left: 16px;
        padding: 4px;
    }

    .map-mode-option {
        padding: 8px 14px;
        font-size: 15px;
    }

    .map-controls {
        top: 20px;
    }
}

/* --- 2026 homepage map: full viewport below the header, magnetic snap target --- */
.campaign-2026-home .map-app-frame {
    position: relative;
    height: calc(100vh - var(--kcp-header-h, 76px));
    height: calc(100dvh - var(--kcp-header-h, 76px));
    display: flex;
    flex-direction: column;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.map-continue-row {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 10px 16px 16px;
    background: var(--map-paper, #fff);
}

/* Klient 2026-09-17: z textoveho odkazu se stalo hlavni CTA pod mapou.
   Rez i proporce jsou stejne jako u nadpisu z rocniku 2025 (Field Gothic 900). */
.map-scroll-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 44px;
    border: 0;
    border-radius: 4px;
    background: var(--map-red);
    color: #fff;
    font-family: 'Field Gothic', var(--map-heading-font);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.map-scroll-continue > span:first-child {
    text-decoration: none;
}

.map-scroll-continue:hover,
.map-scroll-continue:focus-visible {
    background: var(--map-blue);
    color: #fff;
    transform: translateY(-1px);
    outline: 0;
}

.map-scroll-continue:focus-visible {
    outline: 3px solid var(--map-blue);
    outline-offset: 3px;
}

.map-scroll-continue-arrow {
    animation: map-continue-bob 1.6s ease-in-out infinite;
}

@keyframes map-continue-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
    .map-scroll-continue-arrow { animation: none; }
}

.campaign-2026-hero {
    position: relative;
    min-height: clamp(240px, 30vh, 340px);
    margin-bottom: 0;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 8vw, 128px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--map-ink);
    background: var(--map-paper);
}

.campaign-2026-hero-content {
    position: relative;
    z-index: 2;
    width: min(880px, 100%);
    text-align: center;
}

.campaign-preview-badge,
.campaign-eyebrow {
    display: block;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.campaign-preview-badge {
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid var(--map-line);
    border-radius: 999px;
    color: var(--map-blue-mid);
}

.campaign-2026-hero h1 {
    max-width: 880px;
    margin: 0 auto;
    color: var(--map-blue);
    font-family: var(--map-heading-font);
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: var(--kcp-2026-heading-tracking);
    hyphens: none;
    text-align: center;
    text-wrap: balance;
    text-transform: uppercase;
}

.campaign-2026-hero h1 span {
    display: block;
    margin-top: .14em;
    color: var(--map-red);
}

.campaign-2026-hero-content > p {
    max-width: 620px;
    margin: 18px auto 0;
    color: rgba(20, 38, 58, .78);
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.5;
}

/* Stránka „Jak to funguje" používá tlačítka z hera 2025 (.hero-buttons),
   ta ale nemají vlastní horní mezeru — jinak lepí na odstavec nad sebou. */
.campaign-2026-hero .hero-buttons {
    margin-top: clamp(26px, 2.6vw, 42px);
    flex-wrap: wrap;
}

.campaign-2026-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.campaign-action {
    min-width: 205px;
    min-height: 54px;
    padding: 13px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: var(--map-heading-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .045em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease;
}

.campaign-action:hover,
.campaign-action:focus-visible {
    transform: translateY(-2px);
}

.campaign-action.is-primary {
    color: #fff;
    background: var(--map-red);
}

.campaign-action.is-primary:hover,
.campaign-action.is-primary:focus-visible {
    color: #fff;
}

.campaign-action.is-secondary {
    border-color: var(--map-blue);
    color: var(--map-blue);
    background: transparent;
}

.campaign-2026-hero-art {
    display: none;
}

.map-experience {
    overflow: hidden;
}

.map-hero {
    min-height: 0;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 6vw, 96px) 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    color: var(--map-ink);
    background: var(--map-paper);
    border-bottom: 1px solid var(--map-line);
}

.map-hero h1 {
    margin: 0;
    color: var(--map-blue);
    text-align: left;
    font-family: var(--map-heading-font);
    font-size: clamp(40px, 4.8vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: var(--kcp-2026-heading-tracking);
    text-transform: uppercase;
    white-space: nowrap;
}

.map-hero h1 em {
    color: var(--map-red);
    font-style: normal;
}

.map-hero-lead {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(20, 38, 58, .74);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.45;
}

.map-sidebar-intro {
    padding: 20px 26px;
    border-bottom: 1px solid var(--map-line);
}

.map-sidebar-intro h1 {
    margin: 0 0 6px;
    color: var(--map-blue);
    font-family: var(--map-heading-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    text-transform: uppercase;
}

.map-sidebar-intro p {
    margin: 0 0 8px;
    color: rgba(20, 38, 58, .72);
    font-size: 13px;
    line-height: 1.45;
}

.map-help-link {
    color: var(--map-red);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.map-help-link:hover,
.map-help-link:focus-visible {
    text-decoration: underline;
}

.map-search-float {
    position: absolute;
    z-index: 8;
    top: 16px;
    left: 16px;
    width: min(380px, calc(100% - 96px));
    overflow: hidden;
    border: 1px solid var(--map-blue);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(3, 70, 148, .18);
}

.map-search-float .map-search-wrap {
    height: 52px;
    border: 0;
    border-bottom: 1px solid var(--map-line);
    border-radius: 0;
}

.map-search-results {
    max-height: 320px;
    overflow: auto;
    border-bottom: 1px solid var(--map-line);
    background: #fff;
}

.map-search-results[hidden] {
    display: none;
}

.map-search-result {
    width: 100%;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--map-line);
    background: #fff;
    color: var(--map-ink);
    text-align: left;
    cursor: pointer;
}

.map-search-result:last-child {
    border-bottom: 0;
}

.map-search-result:hover,
.map-search-result:focus-visible {
    background: var(--map-tint);
}

.map-search-result .map-place-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.map-search-result strong {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.map-search-result small {
    display: block;
    margin-top: 2px;
    color: rgba(20, 38, 58, .62);
    font-size: 11px;
}

.map-search-results-status {
    padding: 12px 14px;
    color: #6c7683;
    font-size: 13px;
}

.map-workspace {
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(330px, 390px) 1fr;
    border-bottom: 1px solid var(--map-line);
    background: var(--map-paper);
}

.map-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--map-line);
    background: var(--map-paper);
}

.map-category-block {
    padding: 24px 26px;
    border-bottom: 1px solid var(--map-line);
}

.map-section-heading span,
.map-list-heading strong {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.map-search-wrap {
    height: 52px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--map-blue);
    border-radius: 4px;
    background: #fff;
}

.map-search-status {
    padding: 18px;
    color: #6c7683;
    text-align: center;
    font-size: 14px;
}

.map-search-wrap > span {
    font-size: 25px;
    transform: rotate(-15deg);
}

.map-search-wrap input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--map-ink);
    background: transparent;
    font: inherit;
}

.map-search-wrap button {
    border: 0;
    background: transparent;
    color: var(--map-ink);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
}

.map-search-wrap.has-value button { opacity: 1; }

.map-section-heading,
.map-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.map-section-heading span,
.map-list-heading strong { margin: 0; }

.map-section-heading button {
    padding: 0;
    border: 0;
    color: var(--map-blue);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.map-filters {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.map-filter {
    min-height: 45px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--map-line);
    border-radius: 4px;
    background: #fff;
    color: var(--map-ink);
    font-size: 12px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.map-filter i {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--map-blue);
    background: var(--map-blue);
    font-size: 9px;
    font-style: normal;
}

.map-filter[aria-pressed="true"] {
    border-color: var(--map-blue);
    box-shadow: inset 0 0 0 1px var(--map-blue);
    background: var(--map-tint);
}

.map-filter[aria-pressed="true"] i {
    color: #fff;
    background: var(--map-blue);
}

.map-filter-our-tips {
    grid-column: auto;
    border-color: rgba(217, 16, 22, .45);
    background: #fff5f4;
    color: var(--map-red);
}

.map-filter-our-tips i {
    color: #fff;
    background: var(--map-red);
    font-size: 13px;
}

.map-filter-our-tips[aria-pressed="true"] {
    border-color: var(--map-red);
    box-shadow: none;
    background: var(--map-red);
    color: #fff;
}

.map-filter-our-tips[aria-pressed="true"] i {
    color: var(--map-red);
    background: #fff;
}

.map-category-glyph {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.map-filter i .map-category-glyph {
    width: 12px;
    height: 12px;
}

.map-list-heading {
    padding: 17px 26px;
    border-bottom: 1px solid var(--map-line);
    background: var(--map-tint);
}

.map-list-heading span {
    font-size: 12px;
    font-weight: 800;
}

.map-place-list {
    max-height: 520px;
    overflow: auto;
}

.map-place-card {
    width: 100%;
    padding: 17px 26px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 13px;
    border: 0;
    border-bottom: 1px solid var(--map-line);
    background: transparent;
    color: var(--map-ink);
    text-align: left;
    cursor: pointer;
}

.map-place-card:hover,
.map-place-card:focus-visible,
.map-place-card.is-selected {
    background: #e6eefa;
    outline: 0;
}

.map-place-card.is-supported:not(.is-selected) {
    background: rgba(19, 138, 91, .11);
}

.map-place-card.is-our-tip:not(.is-selected) {
    background: #fff5f4;
}

.map-place-card.is-our-tip .map-place-icon { background: var(--map-red); }

.map-our-tip-badge,
.map-selection-our-tip {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--map-red);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.map-selection-our-tip { margin-left: 8px; margin-top: 0; vertical-align: middle; }

.map-place-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--map-blue);
    font-size: 13px;
    font-weight: 900;
}

.map-place-icon .map-category-glyph {
    width: 21px;
    height: 21px;
}

.map-place-card strong,
.map-place-card small { display: block; }
.map-place-card strong { font-size: 14px; line-height: 1.15; }
.map-place-card small { margin-top: 4px; color: rgba(20, 38, 58, .66); font-size: 11px; }
.map-place-card b { font-size: 20px; font-weight: 500; }

.map-place-card.has-image { grid-template-columns: 58px 34px 1fr auto; }

.map-place-card-image {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 5px;
    background: #e8eee8;
}

.map-place-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.map-empty-state {
    margin: 20px;
    padding: 18px;
    border: 1px solid #b02a37;
    color: #842029;
    background: #f8d7da;
}

.map-stage {
    position: relative;
    min-width: 0;
    min-height: 760px;
    overflow: hidden;
    background: #cbdccf;
}

.map-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    background:
        linear-gradient(rgba(20, 38, 58, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 38, 58, .035) 1px, transparent 1px),
        #d9e5db;
    background-size: 32px 32px;
}

.map-canvas.is-dragging { cursor: grabbing; }
.map-canvas.is-adding-pin:not(.is-dragging) { cursor: crosshair; }
.map-tile-layer, .map-marker-layer { position: absolute; inset: 0; }
.map-tile-layer img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; }
.map-marker-layer { z-index: 3; pointer-events: none; }
.map-boundary-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.map-boundary-mask { fill: rgba(196, 202, 206, .74); }
.map-boundary-line { fill: none; stroke: rgba(64, 76, 86, .85); stroke-width: 1.5px; stroke-linejoin: round; }

.map-marker {
    position: absolute;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 8px;
    color: #fff;
    background: var(--map-blue);
    box-shadow: 0 8px 24px rgba(3, 70, 148, .32);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -100%) rotate(-45deg);
    transform-origin: 50% 100%;
}

.map-marker span {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    transform: rotate(45deg);
}
.map-marker:hover, .map-marker:focus-visible, .map-marker.is-selected { z-index: 5; width: 46px; height: 46px; outline: 0; }
.map-marker.is-selected { background: var(--map-red); }

.map-marker.is-our-tip { background: var(--map-red); }
.map-marker.is-our-tip:not(.is-selected) { z-index: 4; }

.map-marker.is-candidate {
    border-style: dashed;
}

.map-marker-custom {
    z-index: 6;
    background: var(--map-red);
    pointer-events: none;
}

.map-marker-custom.is-adjustable {
    width: 52px;
    height: 52px;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
}

.map-pin-actions {
    position: absolute;
    z-index: 12;
    display: flex;
    overflow: hidden;
    transform: translateX(-50%);
    border: 1px solid var(--map-blue);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(3, 70, 148, .3);
}
.map-pin-actions[hidden] { display: none; }
.map-pin-actions button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    background: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.map-pin-action-cancel { color: var(--map-red); }
.map-pin-action-confirm { color: var(--map-blue); border-left: 1px solid var(--map-line) !important; }
.map-pin-actions button:hover,
.map-pin-actions button:focus-visible { background: var(--map-tint); outline-offset: -3px; }

.map-stage.is-placing .map-marker-layer .map-marker:not(.map-marker-custom),
.map-stage.is-placing .map-marker-layer .map-cluster {
    pointer-events: none;
}

/* Zoom: a white pill under the red "Přidat místo" pill, same radius/shadow language as the search box. */
.map-controls {
    position: absolute;
    z-index: 8;
    top: 82px;
    right: 16px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--map-blue);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(3, 70, 148, .22);
}

.map-controls button {
    width: var(--map-zoom-button-width);
    height: calc(var(--map-controls-height) - 2px);
    border: 0;
    border-right: 1px solid rgba(3, 70, 148, .18);
    color: var(--map-blue);
    background: #fff;
    font-family: inherit;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.map-controls button:last-child { border-right: 0; }
.map-controls button:hover,
.map-controls button:focus-visible { background: var(--map-blue); color: #fff; outline: 0; }
.map-controls button:active { background: #033a7a; }
.map-controls button[data-map-overview] { display: inline-flex; align-items: center; justify-content: center; width: var(--map-overview-button-width); padding: 0; }
.map-controls button:disabled { color: #8796a5; background: #f2f6fb; cursor: default; }

.map-attribution {
    position: absolute;
    z-index: 7;
    right: 4px;
    bottom: 4px;
    padding: 3px 6px;
    background: rgba(255,255,255,.82);
    color: #334;
    font: 10px/1.2 Arial, sans-serif;
}

.map-attribution a { color: inherit; }
.map-attribution-logo { height: 14px; width: auto; vertical-align: middle; margin-right: 2px; }

.map-selection {
    position: absolute;
    z-index: 10;
    left: 22px;
    right: 22px;
    bottom: 22px;
    max-width: 760px;
    padding: 22px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 20px 70px rgba(3, 70, 148, .26);
    max-height: calc(100% - 44px);
    overflow: auto;
    /* Super-slim 3-segment progress bar along the top edge: 1 místo · 2 hlas/tip · 3 potvrzení. */
    --step-todo: rgba(3, 70, 148, .14);
    --step-1: var(--step-todo);
    --step-2: var(--step-todo);
    --step-3: var(--step-todo);
}
.map-selection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    background:
        linear-gradient(var(--step-1), var(--step-1)) 0 0 / calc(33.333% - 3px) 100% no-repeat,
        linear-gradient(var(--step-2), var(--step-2)) 50% 0 / calc(33.333% - 3px) 100% no-repeat,
        linear-gradient(var(--step-3), var(--step-3)) 100% 0 / calc(33.333% - 3px) 100% no-repeat;
    pointer-events: none;
}
/* Tall form states go fully opaque so the search box / controls stop showing through the panel. */
.map-selection:has(.map-selection-content) { background: #fff; }
.map-selection[data-step="1"] { --step-1: var(--map-red); }
.map-selection[data-step="2"] { --step-1: var(--map-blue); --step-2: var(--map-red); }
.map-selection[data-step="3"] { --step-1: var(--map-blue); --step-2: var(--map-blue); --step-3: #22c55e; }

.map-selection-backdrop {
    position: absolute;
    inset: 0;
    z-index: 9;
    background: rgba(13, 34, 66, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.map-stage.has-modal .map-selection-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.map-selection.is-modal {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(600px, calc(100% - 44px));
    max-height: calc(100% - 48px);
    transform: translate(-50%, -50%);
    padding: 26px 28px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(10, 25, 47, .45);
}

.map-selection.is-modal .map-selection-content {
    grid-template-columns: 1fr;
}

.map-selection.is-modal .map-selection-number {
    display: none;
}
.map-selection.is-modal .map-selection-close { top: 14px; right: 14px; }

.map-context-menu {
    position: absolute;
    z-index: 30;
    min-width: 180px;
    padding: 6px;
    display: grid;
    border: 1px solid var(--map-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(3, 70, 148, .22);
}

.map-context-menu[hidden] {
    display: none;
}

.map-context-menu button {
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--map-ink);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.map-context-menu button:hover,
.map-context-menu button:focus-visible {
    background: var(--map-tint);
    color: var(--map-blue);
}

/* Primary call to action on the map. Click/tap = placement mode; with a mouse it can be dragged onto the map too. */
.map-add-button {
    width: var(--map-controls-width);
    justify-content: center;
    position: absolute;
    z-index: 8;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--map-controls-height);
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--map-red);
    color: #fff;
    font-family: var(--map-heading-font);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(217, 16, 22, .35);
    cursor: grab;
    touch-action: manipulation;
    user-select: none;
    transition: background .18s ease, transform .18s ease;
}
.map-add-button:hover, .map-add-button:focus-visible { background: #b80d12; transform: translateY(-1px); outline: 0; }
.map-add-button:active { cursor: grabbing; }
.map-add-button.is-active { background: var(--map-blue); box-shadow: 0 12px 28px rgba(3, 70, 148, .3); cursor: default; }
.map-add-button-pin {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 2.5px solid #fff;
    border-radius: 50% 50% 50% 6px;
    transform: rotate(-45deg);
}
.map-add-button.is-active .map-add-button-pin { background: #fff; }

/* Placement banner shown while the visitor is expected to tap into the map. */
.map-place-banner {
    position: absolute;
    z-index: 9;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: var(--map-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(20, 38, 58, .35);
    animation: map-banner-in .25s ease;
}
.map-place-banner[hidden] { display: none; }
.map-place-banner-pin {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 4px;
    background: var(--map-red);
    transform: rotate(-45deg);
    animation: map-banner-bounce 1.2s ease-in-out infinite;
}
.map-place-banner-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-place-banner-cancel {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.map-place-banner-cancel:hover { background: var(--map-red); }
.map-canvas.is-placing { cursor: crosshair; }
@media (pointer: fine) { .map-canvas.is-placing { cursor: none; } .map-canvas.is-placing button, .map-canvas.is-placing a { cursor: pointer; } }
@keyframes map-banner-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes map-banner-bounce { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(-3px, 3px); } }

/* Hint strip actions. */
.map-selection-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-selection-actions button {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.map-selection-actions .is-vote { border: 2px solid var(--map-blue); background: #fff; color: var(--map-blue); }
.map-selection-actions .is-vote:hover { background: var(--map-blue); color: #fff; }
.map-selection-actions .is-add { border: 2px solid var(--map-red); background: var(--map-red); color: #fff; }
.map-selection-actions .is-add:hover { background: #b80d12; border-color: #b80d12; }

/* Cluster bubbles and pin labels. */
.map-cluster {
    position: absolute;
    z-index: 4;
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--map-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(3, 70, 148, .32), 0 0 0 6px rgba(3, 70, 148, .16);
    transform: translate(-50%, -50%);
    cursor: zoom-in;
    pointer-events: auto;
}
.map-cluster.is-large { width: 46px; height: 46px; font-size: 16px; }
.map-cluster:hover, .map-cluster:focus-visible { background: var(--map-red); box-shadow: 0 8px 24px rgba(217, 16, 22, .32), 0 0 0 6px rgba(217, 16, 22, .16); outline: 0; }

/* Search toggle (phones only, see media query). */
.map-search-toggle { display: none; }

/* Compact vote panel on phones. */
.map-selection-more { margin-top: 14px; }
.map-selection-more summary { cursor: pointer; color: var(--map-blue); font-size: 14px; font-weight: 800; }
.map-selection-more .map-selection-image { margin-top: 12px; }
.map-selection-more .map-selection-image img { max-height: 170px; object-fit: cover; }

.map-pin-ghost {
    position: fixed;
    z-index: 3000;
    width: 38px;
    height: 38px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 8px;
    background: var(--map-red);
    box-shadow: 0 8px 24px rgba(3, 70, 148, .35);
    transform: translate(-50%, -100%) rotate(-45deg);
    pointer-events: none;
}
.map-pin-ghost.is-cursor::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
}
}

.map-selection-empty,
.map-selection-content {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
}

/* Dismissable hint ("Vyberte místo na mapě"): × in the corner, hidden once dismissed (× or Esc). */
.map-selection-empty { grid-template-columns: 52px 1fr; align-items: start; padding-right: 26px; }
.map-selection-hint-close { width: 32px; height: 32px; font-size: 20px; }
.map-selection.is-hint-hidden:has(.map-selection-empty) { display: none; }

.map-selection-number {
    color: var(--map-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
}

.map-selection strong { font-size: 21px; text-transform: uppercase; }
.map-selection p { margin: 6px 0 0; color: rgba(20, 38, 58, .72); font-size: 14px; line-height: 1.4; }

.map-selection-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-right: 30px; /* room for the corner × */
}

.map-selection-place h2 {
    margin: 2px 0 0;
    color: var(--map-blue);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.1;
    text-transform: uppercase;
}

.map-selection-place small { font-size: 12px; font-weight: 750; }
.map-selection-place .map-selection-category { color: var(--map-blue-mid); }

.map-selection-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--map-tint);
    color: var(--map-ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.map-selection-close:hover,
.map-selection-close:focus-visible {
    background: var(--map-blue);
    color: #fff;
}

.map-selection-image { margin: 16px 0 0; }
.map-selection-image img {
    width: 100%;
    max-height: 230px;
    display: block;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 16 / 8;
    background: #e8eee8;
}
.map-selection-image figcaption { margin-top: 6px; color: rgba(20, 38, 58, .62); font-size: 10px; line-height: 1.35; }
.map-selection-image a { color: inherit; }

.map-image-loading {
    min-height: 90px;
    margin-top: 16px;
    padding: 20px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--map-line);
    border-radius: 5px;
    color: rgba(20, 38, 58, .66);
    background: var(--map-tint);
    font-size: 12px;
    font-weight: 750;
}

.map-place-card-image { position: relative; }
.map-place-card-image small {
    position: absolute;
    left: 4px;
    bottom: 4px;
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.map-recommend-form {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.map-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.map-field input,
.map-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--map-line);
    border-radius: 4px;
    color: var(--map-ink);
    background: #fff;
    font: inherit;
}

.map-field textarea { min-height: 84px; resize: vertical; }
.map-field input[readonly],
.map-custom-form input[readonly] { background: var(--map-tint); color: #5a6b7d; cursor: not-allowed; }
.map-email-hint { margin: 6px 0 0; font-size: 12px; color: #5a6b7d; }
.map-recommend-form button { min-height: 50px; padding: 12px 22px; border: 0; border-radius: 4px; color: #fff; background: var(--map-red); font-weight: 900; text-transform: uppercase; cursor: pointer; }
.map-recommend-form button:disabled { opacity: .55; cursor: wait; }
.map-form-status { grid-column: 1 / -1; min-height: 20px; margin: 0 !important; font-size: 13px !important; font-weight: 700; }
.map-form-status.is-error { color: #a61b29; }
.map-form-status.is-success { color: #087443; }
.map-consents { grid-column: 1 / -1; display: grid; gap: 8px; margin: 4px 0; }
.map-consents label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; font-weight: 500; text-transform: none; }
.map-consents input { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; }
.map-honeypot { position: absolute !important; left: -10000px !important; }

.map-vote-action {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.map-primary-action,
.map-custom-submit button {
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--map-red);
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
    cursor: pointer;
}

.map-primary-action:disabled,
.map-custom-submit button:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.map-action-help {
    margin: 0 !important;
    color: rgba(20, 38, 58, .64) !important;
    font-size: 12px !important;
}

.map-vote-lead {
    margin: 0 0 -2px !important;
    color: var(--map-red);
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.map-action-prize {
    margin: 0 !important;
    padding: 10px 12px;
    border-radius: 4px;
    background: rgba(217, 16, 22, .06);
    color: var(--map-ink);
    font-size: 13px !important;
    font-weight: 600;
}

.map-vote-action .map-form-status {
    grid-column: 1 / -1;
}

.map-custom-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.map-custom-form > div {
    min-width: 0;
}

.map-custom-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.map-custom-form input,
.map-custom-form select,
.map-custom-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--map-line);
    border-radius: 4px;
    color: var(--map-ink);
    background: #fff;
    font: inherit;
}

.map-custom-form textarea {
    min-height: 84px;
    resize: vertical;
}

.map-custom-form .map-consents label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.4;
    text-transform: none;
}

.map-custom-form .map-consents input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-height: 17px;
    margin-top: 1px;
    padding: 0;
    flex: 0 0 auto;
}

.map-custom-form-wide {
    grid-column: 1 / -1;
}

.map-custom-pin-step,
.map-nearby-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.map-custom-pin-step {
    padding: 14px;
    border: 1px dashed var(--map-blue);
    border-radius: 6px;
    color: var(--map-ink);
    background: var(--map-tint);
}

.map-custom-pin-step > span,
.map-nearby-head > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--map-blue);
    font-size: 12px;
    font-weight: 900;
}

.map-custom-pin-step strong,
.map-nearby-head strong {
    display: block;
    font-size: 14px;
}

.map-custom-pin-step p,
.map-nearby-head p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

/* Nearby suggestions sit nested under the "Poloha na mapě" field: indented, slim rows, scroll after ~4. */
.map-nearby {
    margin: 6px 0 0 14px;
    padding: 6px 0 0 12px;
    border-left: 2px solid var(--map-line);
}

.map-nearby-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}

.map-nearby-head strong { font-size: 12px; }
.map-nearby-head p { margin: 0; color: #5f6b7d; font-size: 11px; line-height: 1.4; }

.map-nearby-more { display: block; width: 100%; margin-top: 6px; padding: 7px 10px; border: 1px dashed var(--map-blue); border-radius: 6px; background: #fff; color: var(--map-blue); font-size: 12px; font-weight: 800; cursor: pointer; }
.map-nearby-more:hover { background: var(--map-tint); }

.map-nearby-status {
    margin: 6px 0 0;
    color: #5f6b7d;
    font-size: 11px;
    line-height: 1.45;
}

.map-nearby-status.is-error {
    color: #9b351f;
}

.map-nearby-list {
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-height: 164px;
    overflow: auto;
}

.map-nearby-option {
    min-width: 0;
    padding: 5px 8px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--map-line);
    border-radius: 5px;
    color: var(--map-ink);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.map-nearby-option:hover,
.map-nearby-option:focus-visible {
    border-color: var(--map-blue);
}

.map-nearby-option.is-selected {
    border-color: #138a5b;
    box-shadow: inset 0 0 0 1px #138a5b;
    background: rgba(19, 138, 91, .06);
}

.map-nearby-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--map-blue);
    font-size: 11px;
}

.map-nearby-icon .map-category-glyph {
    width: 14px;
    height: 14px;
}

.map-nearby-option > span:nth-child(2) {
    min-width: 0;
}

.map-nearby-option strong,
.map-nearby-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-nearby-option strong {
    font-size: 12px;
    line-height: 1.25;
}

.map-nearby-option small {
    color: #6a7484;
    font-size: 10px;
    line-height: 1.3;
}

.map-nearby-option b {
    color: var(--map-blue-mid);
    font-size: 10px;
    white-space: nowrap;
}

.map-nearby-option.is-selected b {
    color: #087443;
}

/* "Poloha na mapě": read-only value styled like a disabled input (the pin on the map is the control). */
.map-custom-location {
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--map-line);
    border-radius: 4px;
    color: #6a7484;
    background: #f3f5f8;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    user-select: text;
}

.map-custom-location > span:first-child { color: var(--map-blue); font-size: 16px; line-height: 1; }
.map-custom-location > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-custom-location.is-ready { color: #3e4a5c; }
.map-custom-location.is-ready::after { content: "✓"; margin-left: auto; color: #138a5b; font-weight: 800; }

.map-custom-submit {
    display: flex;
    align-items: center;
    gap: 14px;
}

.map-custom-submit .map-form-status {
    flex: 1;
}

.campaign-2026-prizes,
.campaign-2026-faq,
.campaign-2026-steps {
    padding: clamp(36px, 3.6vw, 56px) clamp(24px, 8vw, 128px);
}

/* --- Mechanika 2026 v layoutu "below-fold" z rocniku 2025 --- */
.campaign-2026-info-block {
    scroll-margin-top: var(--kcp-header-h, 76px);
}

.campaign-info .below-fold-container {
    align-items: stretch;
}

.campaign-info-panel {
    justify-content: flex-start;
    padding: clamp(32px, 3.4vw, 56px) clamp(24px, 3.2vw, 64px);
}

.campaign-info .hero-bottom-title {
    margin-bottom: clamp(18px, 1.8vw, 28px);
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
}

.campaign-info-list {
    width: 100%;
    max-width: 620px;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    list-style: none;
    color: #fff;
    font-family: Inter, system-ui, Arial, sans-serif;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.5;
    counter-reset: campaign-info-step;
}

.campaign-info-list > li {
    position: relative;
    padding-left: 46px;
}

.campaign-info-list > li strong {
    display: block;
    margin-bottom: 2px;
    font-size: clamp(18px, 1.3vw, 21px);
    font-weight: 700;
}

ol.campaign-info-list > li::before {
    counter-increment: campaign-info-step;
    content: counter(campaign-info-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--map-red);
    font-weight: 900;
    font-size: 17px;
}

ul.campaign-info-list > li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.campaign-info-note {
    width: 100%;
    max-width: 620px;
    margin: 18px 0 0;
    padding-left: 46px;
    color: rgba(255, 255, 255, .88);
    font-family: Inter, system-ui, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.campaign-info-note a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.campaign-info-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0 0 46px;
    padding: 14px 24px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: var(--map-blue);
    font-family: Inter, system-ui, Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.campaign-info-faq-link:hover,
.campaign-info-faq-link:focus-visible {
    background: transparent;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.campaign-info-prizes-art {
    display: block;
    width: min(100%, 460px);
    height: auto;
    margin: 16px auto 0;
}

.campaign-info-voucher-art {
    display: block;
    width: min(100%, 220px);
    height: auto;
    margin-top: 8px;
}

@media (min-width: 1001px) {
    .campaign-info .below-fold-left {
        justify-content: center;
    }
}

@media (max-width: 1000px) {
    .campaign-info .below-fold-left,
    .campaign-info .below-fold-right {
        min-height: 0;
    }
}

.campaign-2026-steps {
    border-top: 1px solid var(--map-line);
}

.campaign-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.campaign-step-grid article {
    padding: 26px;
    border: 1px solid var(--map-line);
    border-radius: 6px;
    background: #fff;
}

.campaign-step-number {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--map-red);
    font-weight: 900;
}

.campaign-step-grid h3 {
    margin: 0 0 8px;
    color: var(--map-blue);
    font-family: var(--map-heading-font);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.campaign-step-grid p {
    margin: 0;
    color: rgba(20, 38, 58, .78);
    font-size: 15px;
    line-height: 1.55;
}

.campaign-2026-prizes {
    color: var(--map-ink);
    background: var(--map-paper);
}

.campaign-2026-faq {
    background: var(--map-paper);
    border-top: 1px solid var(--map-line);
}

.campaign-section-heading {
    max-width: 940px;
    margin-bottom: 24px;
}

.campaign-section-heading .campaign-eyebrow,
.campaign-2026-faq .campaign-eyebrow {
    color: var(--map-red);
}

.campaign-section-heading h2 {
    margin: 0;
    color: var(--map-blue);
    font-family: 'Field Gothic', var(--map-heading-font);
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: var(--kcp-2026-heading-tracking);
    hyphens: none;
    text-wrap: balance;
    text-transform: uppercase;
}

.campaign-section-heading > p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(20, 38, 58, .74);
    font-size: 17px;
    line-height: 1.6;
}

.campaign-prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.campaign-prize-grid article {
    padding: 26px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--map-blue);
    border-radius: 6px;
    background: #fff;
}

.campaign-prize-grid h3 {
    margin: 0 0 8px;
    color: var(--map-blue);
    font-family: var(--map-heading-font);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
}

.campaign-prize-grid p {
    margin: 0;
    color: rgba(20, 38, 58, .78);
}

.campaign-2026-faq .accordion {
    max-width: 1000px;
}

.campaign-2026-faq .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--map-line);
    border-radius: 0;
    background: transparent;
}

.campaign-2026-faq .accordion-button {
    padding: 18px 0;
    color: var(--map-blue);
    background: transparent;
    box-shadow: none;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 850;
}

.campaign-2026-faq .accordion-button:not(.collapsed) {
    color: var(--map-red);
}

.campaign-2026-faq .accordion-body {
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 0 4px;
    padding: 12px 24px 22px;
    color: rgba(20, 38, 58, .82);
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .map-workspace {
        grid-template-columns: minmax(300px, 340px) 1fr;
    }
}

@media (max-width: 900px) {
    body.map-mobile-modal-open { overflow: hidden; }
    .map-stage.has-modal .map-selection-backdrop { position: fixed; z-index: 1030; }
    .map-selection.is-modal,
    .is-map-app .map-selection.is-modal {
        position: fixed;
        z-index: 1040;
        inset: auto 0 0;
        margin: 0;
        width: 100%;
        max-width: none;
        max-height: 72vh;
        max-height: 72dvh;
        transform: none;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px max(24px, env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        scroll-padding-bottom: 24px;
    }
    .map-selection.is-modal:has(.map-selection-custom),
    .is-map-app .map-selection.is-modal:has(.map-selection-custom) {
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
        overflow-y: auto;
    }
    .map-hero { align-items: flex-start; flex-direction: column; }
    .map-workspace { grid-template-columns: 1fr; }
    .map-stage { order: -1; }
    .map-place-list { max-height: 360px; }
    .map-stage { min-height: 650px; }
    .is-map-app .map-workspace { grid-template-rows: auto auto; }
    .is-map-app .map-stage { min-height: 320px; height: clamp(320px, 43svh, 440px); }
    .is-map-app .map-sidebar { min-height: 0; max-height: 340px; overflow-y: auto; }
    .is-map-app .map-place-list { max-height: none; }
    .campaign-prize-grid { grid-template-columns: 1fr; }
    .campaign-step-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .campaign-2026-hero h1 {
        font-size: clamp(30px, 4.4vw, 34px);
        line-height: 1.2;
    }
}

@media (max-width: 560px) {
    :root { --map-zoom-button-width: 54px; --map-controls-height: 46px; }
    .campaign-2026-hero { min-height: 0; padding: 32px 20px 38px; }
    .campaign-2026-hero h1 { font-size: clamp(28px, 7.6vw, 31px); }
    .campaign-2026-actions { flex-direction: column; }
    .campaign-action { width: 100%; }
    .map-hero { min-height: 0; padding: 30px 20px; }
    .map-hero h1 { font-size: 44px; white-space: normal; }
    .map-hero-lead { margin-top: 16px; }
    .map-filters { grid-template-columns: 1fr; }
    .map-stage { min-height: 720px; }
    .map-selection { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
    .map-selection.is-modal { width: 100%; padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }
    .map-selection.is-modal,
    .is-map-app .map-selection.is-modal {
        inset: 0;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
        overflow-y: auto;
    }
    .map-selection-empty, .map-selection-content { grid-template-columns: 1fr; gap: 8px; }
    .map-selection-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 20px; }
    .map-recommend-form { grid-template-columns: 1fr; }
    .map-recommend-form button { min-height: 50px; }
    .map-place-card { padding-left: 18px; padding-right: 18px; gap: 9px; }
    .map-place-card.has-image { grid-template-columns: 48px 30px 1fr auto; }
    .map-place-card-image { width: 48px; height: 48px; }
    .map-search-float { top: 12px; left: 12px; width: calc(100% - 84px); }
    .map-search-float.is-collapsed { width: 46px; border-radius: 50%; }
    .map-search-float.is-collapsed .map-search-wrap, .map-search-float.is-collapsed .map-search-results { display: none; }
    .map-search-float.is-collapsed .map-search-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: #fff; color: var(--map-blue); font-size: 22px; cursor: pointer; }
    .map-search-float.is-keyboard-search { position: absolute; z-index: 20; top: var(--map-search-visual-top, 12px); left: 12px; width: calc(100% - 24px); max-width: none; max-height: var(--map-search-visual-height, calc(100dvh - 24px)); border-radius: 10px; box-shadow: 0 14px 40px rgba(20, 38, 58, .28); }
    .map-search-float.is-keyboard-search .map-search-results { max-height: min(320px, max(0px, calc(var(--map-search-visual-height, 400px) - 108px))); }
    .map-add-button { top: 12px; right: 12px; height: var(--map-controls-height); padding: 0 16px 0 12px; font-size: 16px; }
    .map-add-button-pin { width: 16px; height: 16px; }
    .map-search-float:not(.is-collapsed) ~ .map-add-button { display: none; }
    .map-controls { right: 12px; top: 64px; }
    .map-place-banner { top: 66px; left: 12px; right: auto; max-width: calc(100% - 24px); transform: none; gap: 9px; padding: 7px 7px 7px 12px; border: 1px solid #d8e2f0; border-radius: 999px; background: #fff; color: var(--map-blue); font-size: 14px; box-shadow: 0 8px 20px rgba(20, 38, 58, .15); animation: none; }
    .map-place-banner-pin { width: 14px; height: 14px; border-color: #fff; }
    .map-place-banner-cancel { width: 28px; height: 28px; background: #edf3fa; color: var(--map-blue); }
    .map-stage.is-placing:not(.has-pending-pin) .map-controls { top: 126px; }
    .map-stage.has-pending-pin .map-controls { top: 64px; }
    .map-stage.has-focused-search .map-controls { top: var(--map-search-controls-top, 70px); }
    .map-stage.is-placing .map-selection { display: none; }
    /* Compact overlay on phones: the hero and the search card were eating most of the map. */
    .map-hero { padding: 18px 20px 18px; }
    .map-hero .campaign-eyebrow { font-size: 11px; }
    .map-hero h1 { font-size: 32px; line-height: 1.05; margin-top: 4px; }
    .map-hero-lead { margin-top: 8px; font-size: 14px; line-height: 1.4; }
    .map-search-float .map-search-wrap { height: 44px; padding: 0 10px; }
    .map-search-wrap > span { font-size: 20px; }
    .map-search-wrap input { font-size: 16px; }
    #map-search::-webkit-search-cancel-button { display: none; }
    .map-controls button { width: var(--map-zoom-button-width); height: calc(var(--map-controls-height) - 2px); font-size: 26px; }
    /* Empty-state hint collapses to a slim strip so the map stays visible. */
    .map-selection:has(.map-selection-empty) { padding: 11px 14px; bottom: 10px; left: 10px; right: 10px; }
    .map-selection-empty { gap: 0 8px; padding-right: 26px; }
    .map-selection-hint-close { width: 28px; height: 28px; font-size: 18px; top: 8px; right: 8px; }
    .map-selection-empty .map-selection-number { display: none; }
    .map-selection-empty strong { font-size: 15px; }
    .map-selection-empty p { display: none; }
    .map-selection-actions { margin-top: 8px; gap: 6px; }
    .map-selection-actions button { flex: 1 1 0; padding: 10px 10px; font-size: 14px; white-space: nowrap; }
    .map-selection-actions .map-hint-long { display: none; }
    /* Homepage embed is short on phones and the sidebar below repeats the hint, so drop it there. */
    .map-experience.is-embedded .map-selection:has(.map-selection-empty) { display: none; }
    .map-vote-action { grid-template-columns: 1fr; }
    .map-primary-action { width: 100%; }
    .map-custom-form { grid-template-columns: 1fr; }
    .map-custom-form-wide { grid-column: auto; }
    .map-nearby-list { grid-template-columns: 1fr; }
    .map-custom-submit { align-items: stretch; flex-direction: column; }
    .campaign-2026-prizes, .campaign-2026-faq, .campaign-2026-steps { padding: 34px 20px; }
    .map-scroll-continue { width: 100%; padding: 14px 18px; font-size: 21px; }
    .campaign-section-heading h2 { font-size: clamp(28px, 8vw, 34px); }
    .campaign-2026-faq .accordion-body { margin-bottom: 6px; padding: 16px 18px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .map-marker { transition: none; }
}


/* --- Vote counters on markers, list cards and the vote panel --- */
.map-marker-count {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--map-red);
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(3, 70, 148, .25);
}
.map-marker.is-selected .map-marker-count { background: var(--map-blue); }
/* Vote badge sits in the card's right column next to the chevron, so it never wraps under the meta text. */
.map-place-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.map-place-votes { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(217, 16, 22, .08); color: var(--map-red); font-style: normal; font-size: 11px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.map-vote-count { margin: -6px 0 14px; color: var(--map-ink); font-size: 14px; }
.map-vote-count b { display: inline-block; margin-right: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(217, 16, 22, .08); color: var(--map-red); font-weight: 800; }

/* --- Protective perimeter notice in the "Přidat místo" flow --- */
.map-perimeter-conflict { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid rgba(217, 16, 22, .28); border-radius: 14px; background: #fff4f4; }
.map-perimeter-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--map-red); color: #fff; font-size: 22px; }
.map-perimeter-conflict strong { display: block; font-size: 16px; color: var(--map-ink); }
.map-perimeter-conflict p { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: rgba(20, 38, 58, .8); }
.map-perimeter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-perimeter-actions button { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--map-red); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.map-perimeter-actions button.is-secondary { background: #fff; color: var(--map-blue); border: 1px solid var(--map-line); }

/* --- Photo upload inside the custom place form --- */
.map-photo-field label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(20, 38, 58, .6); }
.map-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.map-photo-add { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 10px 14px; border: 1px dashed var(--map-blue); border-radius: 10px; background: #fff; color: var(--map-blue) !important; font-size: 13px !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
.map-photo-add span { font-size: 16px; line-height: 1; }
.map-photo-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.map-photo-preview { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #e9edf2; box-shadow: 0 2px 8px rgba(3, 70, 148, .18); }
.map-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-photo-preview button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 38, 58, .85); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.map-custom-form .map-photo-consent { display: flex !important; align-items: flex-start; gap: 8px; margin: 10px 0 0 !important; font-size: 13px !important; line-height: 1.4; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
.map-custom-form .map-photo-consent input { width: 17px; height: 17px; min-height: 17px; padding: 0; margin-top: 1px; flex: 0 0 auto; }

/* --- Leaderboard section under the map (white, separate) --- */
.map-leaderboard { background: #fff; padding: 72px 0 80px; }
.map-leaderboard-inner,
.campaign-2026-home-faq-inner { max-width: 1680px; margin: 0 auto; padding: 0 24px; }
.map-leaderboard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.map-leaderboard-row { display: grid; grid-template-columns: 44px 96px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border: 1px solid var(--map-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(3, 70, 148, .06); }
.map-leaderboard-row:nth-child(-n+3) { border-color: rgba(217, 16, 22, .3); }
.map-leaderboard-rank { font-family: var(--map-heading-font); font-size: 26px; font-weight: 700; color: var(--map-blue); text-align: center; }
.map-leaderboard-row:nth-child(-n+3) .map-leaderboard-rank { color: var(--map-red); }
.map-leaderboard-thumb { width: 96px; height: 72px; border-radius: 12px; overflow: hidden; background: #eef2f6; display: grid; place-items: center; }
.map-leaderboard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-leaderboard-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--category-color, var(--map-blue)); color: #fff; font-weight: 900; }
.map-leaderboard-icon img { width: 22px; height: 22px; }
.map-leaderboard-body { min-width: 0; display: grid; gap: 2px; }
.map-leaderboard-body strong { font-size: 17px; color: var(--map-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-leaderboard-body small { font-size: 13px; color: rgba(20, 38, 58, .66); }
.map-leaderboard-votes { display: grid; justify-items: center; min-width: 64px; padding: 6px 10px; border-radius: 12px; background: rgba(217, 16, 22, .07); color: var(--map-red); }
.map-leaderboard-votes b { font-size: 20px; line-height: 1; font-weight: 800; }
.map-leaderboard-votes small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.map-leaderboard-row { cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
.map-leaderboard-row:hover { box-shadow: 0 10px 26px rgba(3, 70, 148, .14); border-color: var(--map-blue); }
.map-leaderboard-actions { display: flex; align-items: center; gap: 8px; }
.map-leaderboard-vote { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--map-blue); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.map-leaderboard-vote:hover { background: var(--map-red); }
.map-leaderboard-map { padding: 9px 14px; border: 1px solid var(--map-blue); border-radius: 999px; background: #fff; color: var(--map-blue); font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.map-leaderboard-map span { font-size: 15px; line-height: 1; }
.map-leaderboard-map:hover, .map-leaderboard-map:focus-visible { background: var(--map-blue); color: #fff; }

/* Read down places 1–5, then 6–10; each additional ten continues below. */
@media (min-width: 1100px) {
    .map-leaderboard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
    .map-leaderboard-row { grid-row: var(--leaderboard-row); grid-column: var(--leaderboard-column); grid-template-columns: 28px 72px minmax(0, 1fr) auto auto; gap: 12px; min-width: 0; }
    .map-leaderboard-thumb { width: 72px; height: 60px; }
    .map-leaderboard-body strong { white-space: normal; line-height: 1.3; }
    .map-leaderboard-votes { min-width: 52px; padding: 6px 8px; }
    .map-leaderboard-map { padding: 9px 10px; }
    .map-leaderboard-vote { padding: 10px 14px; }
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .map-leaderboard-row { grid-template-columns: 28px 72px minmax(0, 1fr) auto; grid-template-areas: "rank thumb body votes" "rank thumb actions actions"; gap: 8px 12px; }
    .map-leaderboard-rank { grid-area: rank; }
    .map-leaderboard-thumb { grid-area: thumb; }
    .map-leaderboard-body { grid-area: body; }
    .map-leaderboard-votes { grid-area: votes; }
    .map-leaderboard-actions { grid-area: actions; justify-self: end; }
}

/* Place modal: mini tile map for one leaderboard place. */
body.has-place-modal { overflow: hidden; }
.map-place-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.map-place-modal[hidden] { display: none; }
.map-place-modal-backdrop { position: absolute; inset: 0; background: rgba(13, 34, 66, .55); }
.map-place-modal-card { position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 30px 90px rgba(10, 25, 47, .45); overflow: hidden; }
.map-place-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 14px; }
.map-place-modal-category { display: block; color: var(--map-blue-mid); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.map-place-modal-head h2 { margin: 2px 0 0; color: var(--map-blue); font-family: var(--map-heading-font); font-size: clamp(22px, 3vw, 30px); line-height: 1.1; text-transform: uppercase; }
.map-place-modal-meta { margin: 4px 0 0; color: rgba(20, 38, 58, .72); font-size: 14px; }
.map-place-modal-map { position: relative; height: min(420px, 55vh); min-height: 240px; background: #dfe6ec; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.map-place-modal-map.is-dragging { cursor: grabbing; }
.map-place-modal-tiles { position: absolute; inset: 0; }
.map-place-modal-tiles img { position: absolute; width: 256px; height: 256px; pointer-events: none; }
.map-place-modal-marker { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.map-place-modal-marker .map-marker { left: 0; top: 0; max-width: none; max-height: none; }
.map-place-modal-zoom { position: absolute; z-index: 5; right: 12px; top: 12px; display: grid; gap: 6px; }
.map-place-modal-zoom button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .96); color: var(--map-ink); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(3, 70, 148, .18); }
.map-place-modal-zoom button:hover { background: var(--map-blue); color: #fff; }
.map-place-modal-zoom button:disabled { opacity: .45; cursor: default; }
.map-place-modal-attribution { z-index: 5; }
.map-place-modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 18px; border-top: 1px solid var(--map-line); }
.map-place-modal-votes { color: var(--map-red); font-size: 14px; font-weight: 700; }
.map-place-modal-votes b { color: var(--map-blue); font-weight: 800; }
.map-place-modal-buttons { display: flex; gap: 8px; margin-left: auto; }
.map-place-modal-primary { padding: 11px 20px; border: 0; border-radius: 999px; background: var(--map-red); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.map-place-modal-primary:hover { background: var(--map-blue); }
.map-place-modal-secondary { padding: 11px 18px; border: 1px solid var(--map-line); border-radius: 999px; background: #fff; color: var(--map-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.map-place-modal-secondary:hover { border-color: var(--map-blue); color: var(--map-blue); }
.map-leaderboard-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.map-leaderboard-footer span { font-size: 14px; color: rgba(20, 38, 58, .66); }
#map-leaderboard-more { padding: 12px 24px; border: 1px solid var(--map-blue); border-radius: 999px; background: #fff; color: var(--map-blue); font-weight: 800; cursor: pointer; }
#map-leaderboard-more:hover { background: var(--map-blue); color: #fff; }
@media (max-width: 720px) {
    .map-leaderboard { padding: 48px 0 56px; }
    .map-leaderboard-row { grid-template-columns: 24px 56px minmax(0, 1fr) auto; grid-template-areas: "rank thumb body votes" "rank actions actions actions"; row-gap: 10px; column-gap: 8px; padding: 12px; }
    .map-leaderboard-actions { grid-area: actions; justify-self: end; gap: 6px; }
    .map-leaderboard-map { padding: 6px 10px; font-size: 13px; }
    .map-place-modal { padding: 8px; }
    .map-place-modal-card { max-height: calc(100dvh - 16px); }
    .map-place-modal-head { padding: 16px 16px 12px; }
    .map-place-modal-map { height: min(360px, 50vh); min-height: 200px; }
    .map-place-modal-foot { padding: 12px 16px 14px; }
    .map-place-modal-buttons { width: 100%; }
    .map-place-modal-buttons button { flex: 1 1 0; }
    .map-leaderboard-rank { grid-area: rank; font-size: 20px; }
    .map-leaderboard-thumb { grid-area: thumb; width: 56px; height: 56px; }
    .map-leaderboard-body { grid-area: body; }
    .map-leaderboard-body strong { font-size: 15px; white-space: normal; }
    .map-leaderboard-votes { grid-area: votes; justify-self: end; min-width: 52px; padding: 4px 8px; }
    .map-leaderboard-votes b { font-size: 16px; }
    .map-leaderboard-vote { padding: 7px 12px; font-size: 13px; }
    .map-perimeter-conflict { flex-direction: column; gap: 10px; }
}

/* 2026 profile: deliberately minimal. */
.profile-2026 {
    margin: 0;
    color: var(--map-ink);
    background: var(--map-tint);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.profile-2026 main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 64px;
}
.profile-2026-card {
    background: var(--map-paper);
    border: 1px solid var(--map-line);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    padding: 40px 36px;
    text-align: center;
}
.profile-2026-card h1 {
    font-family: var(--map-heading-font);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--map-blue);
    font-size: 2rem;
    margin: 0 0 8px;
}
.profile-2026-mail {
    font-size: 1.1rem;
    margin: 0 0 28px;
    overflow-wrap: anywhere;
}
.profile-2026-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.profile-2026-back {
    background: var(--map-red);
    border-color: var(--map-red);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
}
.profile-2026-back:hover,
.profile-2026-back:focus {
    background: #b30d12;
    border-color: #b30d12;
    color: #fff;
}
.profile-2026-logout {
    color: var(--map-blue);
    border: 1px solid var(--map-line);
    padding: 12px 24px;
}
.profile-2026-logout:hover {
    border-color: var(--map-blue);
    color: var(--map-blue);
}
.profile-2026-history {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--map-line);
    text-align: left;
}
.profile-2026-history h2 {
    font-family: var(--map-heading-font);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--map-blue);
    font-size: 1.6rem;
    margin: 0 0 14px;
}
.profile-2026-history h2:not(:first-child) {
    margin-top: 24px;
}
.profile-2026-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.profile-2026-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--map-line);
}
.profile-2026-list li:last-child {
    border-bottom: 0;
}
.profile-2026-list li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.profile-2026-list li > div > span {
    font-size: .85rem;
    color: #5a6b7d;
}
.profile-2026-empty {
    font-size: .95rem;
    margin: 0;
}

/* One row of coloured panels; artwork gets enough room to keep its labels readable. */
.campaign-info .below-fold-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.campaign-info .campaign-info-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(20px, 1.4vw, 32px);
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 40px clamp(28px, 2vw, 48px);
}

.campaign-info .below-fold-left.campaign-info-panel {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas: "visual copy";
}

.campaign-info .below-fold-right.campaign-info-panel {
    grid-template-areas: "copy visual";
}

.campaign-info .campaign-info-copy { grid-area: copy; align-self: stretch; display: flex; flex-direction: column; }
.campaign-info .campaign-info-visual { grid-area: visual; }

.campaign-info .campaign-info-copy,
.campaign-info .campaign-info-visual {
    min-width: 0;
}

.campaign-info .hero-bottom-title {
    text-align: left !important;
    font-size: clamp(32px, 2.2vw, 44px);
    margin-bottom: 24px;
}

.campaign-info .campaign-info-list,
.campaign-info .campaign-info-note {
    max-width: none;
}

.campaign-info .campaign-info-list { font-size: 16px; line-height: 1.5; gap: 20px; }
.campaign-info .campaign-info-list > li { padding-left: 38px; }
.campaign-info .campaign-info-list > li strong { font-size: 19px; margin-bottom: 4px; }
.campaign-info ol.campaign-info-list > li::before { width: 28px; height: 28px; font-size: 16px; }
.campaign-info .campaign-info-note { padding-left: 38px; font-size: 15px; }
.campaign-info .campaign-info-faq-link { margin-left: 38px; align-self: flex-start; }

@media (min-width: 900px) {
    .campaign-info .campaign-info-list { margin-bottom: 24px; }
    .campaign-info .campaign-info-faq-link { margin-top: auto; padding-inline: 20px; gap: 16px; white-space: nowrap; }
}

.campaign-info .campaign-info-visual img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}

/* Keep both colours side by side on laptops, with larger artwork below the copy. */
@media (min-width: 900px) and (max-width: 1799px) {
    .campaign-info .below-fold-container { grid-template-rows: auto auto; }
    .campaign-info .below-fold-left.campaign-info-panel,
    .campaign-info .below-fold-right.campaign-info-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-row: span 2;
        grid-template-rows: subgrid;
        grid-template-areas: "copy" "visual";
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .campaign-info .campaign-info-list { gap: 16px; }
    .campaign-info .campaign-info-visual img { max-width: 480px; }
}

/* Share a compact gap between the leaderboard footer and FAQ heading. */
.campaign-2026-home .map-leaderboard { padding-bottom: 0; margin-bottom: 0; }

/* FAQ is the last block on the 2026 homepage. */
.campaign-2026-home-faq {
    padding: clamp(36px, 3vw, 56px) 0 clamp(42px, 5vw, 76px);
    background: #fff;
    scroll-margin-top: var(--kcp-header-h, 76px);
}

.campaign-2026-home-faq h2 {
    margin: 0 0 26px;
    color: var(--map-blue);
    font-family: 'Field Gothic', var(--map-heading-font);
    font-size: clamp(35px, 4vw, 55px);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.campaign-2026-home-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.campaign-2026-home-faq-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.campaign-2026-home-faq-item {
    background: #6aa6d4;
    color: #fff;
}

.campaign-2026-home-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 10px 16px 10px 22px;
    cursor: pointer;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 750;
    line-height: 1.25;
    list-style: none;
}

.campaign-2026-home-faq-item summary::-webkit-details-marker {
    display: none;
}

.campaign-2026-home-faq-item summary::after {
    content: '';
    flex: 0 0 23px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background:
        linear-gradient(var(--map-blue), var(--map-blue)) center / 11px 2px no-repeat,
        linear-gradient(var(--map-blue), var(--map-blue)) center / 2px 11px no-repeat,
        #fff;
}

.campaign-2026-home-faq-item[open] summary::after {
    background:
        linear-gradient(var(--map-blue), var(--map-blue)) center / 11px 2px no-repeat,
        #fff;
}

.campaign-2026-home-faq-answer {
    padding: 2px 22px 18px;
    font-size: 16px;
    line-height: 1.5;
}

.campaign-2026-home-faq-answer a { overflow-wrap: anywhere; }

@media (max-width: 899px) {
    .campaign-info .below-fold-container { grid-template-columns: minmax(0, 1fr); }
    .campaign-info .below-fold-left.campaign-info-panel,
    .campaign-info .below-fold-right.campaign-info-panel {
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "visual";
        gap: 28px;
    }

    .campaign-info .campaign-info-visual img {
        max-width: 540px;
    }
}

@media (max-width: 520px) {
    .campaign-2026-home-faq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

/* Give the mobile map a full screen of usable space, then let the rest of the
   page scroll normally instead of trapping the filters in a short sidebar. */
@media (max-width: 900px) {
    html:has(.campaign-2026-home) { scroll-snap-type: none; }
    .campaign-2026-home .map-app-frame {
        height: auto;
        scroll-snap-align: none;
    }
    .campaign-2026-home .map-app-frame .map-experience,
    .campaign-2026-home .map-app-frame .map-workspace {
        flex: none;
        height: auto;
    }
    .campaign-2026-home .map-experience.is-embedded .map-workspace { grid-template-rows: auto auto; }
    .campaign-2026-home .map-experience.is-embedded .map-stage {
        height: calc(100svh - var(--kcp-header-h, 76px));
        min-height: 480px;
    }
    .campaign-2026-home .map-experience.is-embedded .map-sidebar {
        max-height: none;
        overflow: visible;
    }
    .campaign-2026-home .map-experience.is-embedded .map-place-list {
        max-height: 360px;
        overflow-y: auto;
    }
}

@media (max-width: 560px) {
    .campaign-2026-home .campaign-2026-hp-hero .hero-reward { display: block; }
    .campaign-2026-home .map-experience.is-embedded .map-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Shared heading spacing for the 2026 homepage, map and information page. */
body:is(.campaign-2026-home, .campaign-2026-info, .map-experience-page) :is(h1, h2, h3, h4, h5, h6),
.campaign-2026-home .campaign-2026-hp-hero .hero-subtitle,
.campaign-2026-home .campaign-2026-home-faq-item summary,
.campaign-2026-info .accordion-header .accordion-button {
    letter-spacing: var(--kcp-2026-heading-tracking);
}

/* 29 September request: keep the add-mode panel compact on notebook widths so the
   map stays visible. Modal states and phones keep their own rules. */
@media (min-width: 901px) and (max-width: 1500px) {
    .map-selection:not(.is-modal) {
        right: auto;
        width: min(440px, calc(100% - 44px));
        padding: 18px 20px;
    }
    .map-selection:not(.is-modal) .map-custom-form {
        grid-template-columns: 1fr;
    }
    .map-selection:not(.is-modal) .map-custom-form-wide {
        grid-column: auto;
    }
}

/* 25 September request: information shortcut directly after the map on phones. */
.map-mobile-info { display: none; }
@media (max-width: 900px) {
    .campaign-2026-home .map-experience.is-embedded .map-workspace { grid-template-rows: auto auto auto; }
    .campaign-2026-home .map-experience.is-embedded .map-stage { height: calc(100svh - var(--kcp-header-h, 76px) - 104px); min-height: 320px; }
    .campaign-2026-home .map-mobile-info { display: flex; order: 0; justify-content: center; margin: 12px auto; text-decoration: none; }
    .campaign-2026-home .map-experience.is-embedded .map-sidebar { order: 1; }
    .campaign-2026-home .map-continue-row { display: none; }
}

/* Map panels remain in the map; selection panels can collapse without clearing their state. */
.map-panel-minibar { display: none; }
.map-panel-minimize {
    position: absolute; top: 12px; right: 54px; z-index: 5;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: var(--map-tint); color: var(--map-ink); font-size: 24px;
    line-height: 1; cursor: pointer;
}
.map-panel-minimize:hover, .map-panel-minimize:focus-visible { background: var(--map-blue); color: #fff; }
.map-panel-windowbar {
    position: sticky; top: -26px; z-index: 6; display: flex; align-items: center; gap: 6px;
    min-height: 44px; margin: -8px 0 10px; background: #fff;
}
.map-panel-windowbar > span { flex: 1; min-width: 0; font-weight: 750; color: var(--map-blue); font-size: 14px; }
.map-panel-windowbar .map-panel-minimize,
.map-selection .map-panel-windowbar .map-selection-close { position: static; flex: none; }
.map-selection-head, .map-selection-empty { padding-right: 0; }
.map-panel-restore {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px;
    background: #fff; color: var(--map-blue); font: inherit; font-weight: 750;
    text-align: left; cursor: pointer;
}
.map-panel-restore > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-panel-dots { flex: none; letter-spacing: 3px; }
.map-panel-restore:hover { background: var(--map-tint); }
.map-panel-restore:focus-visible { outline: 3px solid var(--map-blue); outline-offset: -3px; }
.map-selection.is-minimized > :not(.map-panel-minibar) { display: none; }
.map-selection.is-minimized .map-panel-minibar { display: block; }
.map-selection.is-minimized,
.is-map-app .map-selection.is-minimized,
.map-stage.is-placing .map-selection.is-minimized {
    display: block; position: absolute; left: 22px; right: auto; top: auto; bottom: 22px;
    width: min(340px, calc(100% - 44px)); max-width: none; height: auto;
    max-height: none; min-height: 0; padding: 0; transform: none; overflow: hidden;
    border-radius: 8px; background: #fff; z-index: 12;
}
@media (max-width: 900px) {
    .map-stage.is-placing .map-selection:not(.is-minimized) { display: block; }
    .map-selection.is-minimized, .is-map-app .map-selection.is-minimized,
    .map-stage.is-placing .map-selection.is-minimized { left: 12px; bottom: 12px; width: min(340px, calc(100% - 24px)); }
}

/* Mobile pin placement: one toolbar row, with the map free of redundant actions. */
@media (max-width: 900px) {
    .map-stage.is-placing {
        --map-zoom-button-width: 44px;
        --map-overview-button-width: 44px;
        --map-controls-height: 48px;
        --map-controls-width: 134px;
    }
    .map-stage.is-placing .map-search-float,
    .map-stage.is-placing .map-add-button { display: none; }
    .map-stage.is-placing:not(.has-pending-pin) .map-controls,
    .map-stage.is-placing.has-pending-pin .map-controls,
    .map-stage.is-placing.has-focused-search .map-controls { top: 12px; right: 12px; }
    .map-stage.is-placing .map-controls button {
        width: 44px;
        height: 46px;
    }
    .map-stage.is-placing .map-place-banner {
        top: 12px; left: 12px; right: auto; transform: none;
        max-width: calc(100% - var(--map-controls-width) - 32px);
        min-height: 48px; box-sizing: border-box;
        gap: 3px; padding: 1px 1px 1px 9px;
        border: 1px solid #d8e2f0; border-radius: 999px;
        background: #fff; color: var(--map-blue); font-size: 13px;
        animation: none;
    }
    .map-stage.is-placing .map-place-banner-pin { display: none; }
    .map-stage.is-placing .map-place-banner-cancel {
        flex: 0 0 44px; width: 44px; height: 44px;
        background: #edf3fa; color: var(--map-blue);
    }
}

/* An overlay explains intentional wheel zoom without changing the map layout. */
.map-wheel-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    width: max-content;
    max-width: min(620px, calc(100% - 32px));
    box-sizing: border-box;
    padding: 14px 24px;
    border: 1px solid var(--map-blue);
    border-radius: 999px;
    background: #fff;
    color: var(--map-blue);
    box-shadow: 0 12px 28px rgba(3, 70, 148, .22);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}
.map-wheel-hint[hidden] { display: none; }
