/* ──────────────────────────────────────────────────────────────────────────
   dpmap — interaktívna mapa v tele článku (Denník Prospekt)
   Načíta sa len na stránkach, kde je blok .dpmap.
   ────────────────────────────────────────────────────────────────────────── */

.dpmap {
    margin: 2.6rem 0;
    border: 1px solid var(--border, #e5e2dc);
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

/* ── Hlavička ─────────────────────────────────────────────────────────── */
.dpmap-head {
    padding: 1.05rem 1.25rem .9rem;
    border-bottom: 1px solid var(--border, #e5e2dc);
    background: var(--bg, #faf9f7);
}
.dpmap-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy, #12345a);
    margin-bottom: .35rem;
}
.dpmap-label::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--navy, #12345a);
}
.dpmap-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink, #1a1a1a);
    margin: 0;
    letter-spacing: -.01em;
}
.dpmap-sub {
    font-size: .86rem;
    line-height: 1.5;
    color: var(--ink-2, #4a4a4a);
    margin: .35rem 0 0;
}

/* ── Plátno mapy ──────────────────────────────────────────────────────── */
.dpmap-canvas {
    height: 430px;
    width: 100%;
    background: #eeece7;
    position: relative;
    z-index: 0;              /* nech mapa nikdy neprebije hlavičku webu */
}
.dpmap-canvas.dpmap-loading::after {
    content: "Načítavam mapu…";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    color: var(--ink-3, #7a7a7a);
}

/* Nápoveda k rolovaniu — mapa nechytá koliesko, kým na ňu neklikneš */
.dpmap-hint {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 52, 90, .42);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.dpmap-hint.on { opacity: 1; }

/* ── Zoznam zastávok pod mapou ────────────────────────────────────────── */
.dpmap-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border, #e5e2dc);
}
.dpmap-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .62rem .95rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--border, #e5e2dc);
    font: inherit;
    font-size: .84rem;
    line-height: 1.35;
    color: var(--ink, #1a1a1a);
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}
.dpmap-list .dpmap-item:nth-child(odd) { border-right: 1px solid var(--border, #e5e2dc); }
.dpmap-item:hover,
.dpmap-item:focus-visible { background: var(--bg, #faf9f7); outline: none; }
.dpmap-item:focus-visible { box-shadow: inset 0 0 0 2px var(--navy, #12345a); }
.dpmap-item.on { background: var(--bg, #faf9f7); font-weight: 600; }
.dpmap-num {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy, #12345a);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Značky ───────────────────────────────────────────────────────────── */
.dpmap-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy, #12345a);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    font-family: 'Montserrat', system-ui, sans-serif;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
    transition: transform .15s ease;
}
.dpmap-pin.on { transform: scale(1.22); }

/* ── Bublina ──────────────────────────────────────────────────────────── */
.dpmap .leaflet-popup-content-wrapper {
    border-radius: 3px;
    padding: 0;
    box-shadow: 0 6px 26px rgba(0, 0, 0, .22);
}
.dpmap .leaflet-popup-content {
    margin: 0;
    width: 244px !important;
    line-height: 1.5;
}
.dpmap .leaflet-popup-tip { box-shadow: none; }
.dpmap-pop-img {
    display: block;
    width: 100% !important;
    height: 138px !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #e8e5e0;
}
.dpmap-pop-body { padding: .7rem .85rem .8rem; }
.dpmap-pop-kicker {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--navy, #12345a);
    display: block;
    margin-bottom: .2rem;
}
.dpmap-pop-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink, #1a1a1a);
    margin: 0 0 .3rem !important;
}
.dpmap-pop-body p {
    font-size: .8rem;
    color: var(--ink-2, #4a4a4a);
    margin: 0 0 .5rem !important;
}
.dpmap-pop-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy, #12345a) !important;
    text-decoration: none !important;
}
.dpmap-pop-link:hover { text-decoration: underline !important; }
.dpmap-pop-credit {
    font-size: .62rem;
    color: var(--ink-3, #7a7a7a);
    padding: 0 .85rem .6rem;
    margin: -.3rem 0 0;
}

/* ── Poistky proti pravidlám tela článku ──────────────────────────────────
   .prose-mp img { width:100%!important; height:auto!important; margin:2rem 0 }
   by roztiahlo každú dlaždicu mapy. Vyššia špecificita to vracia späť.      */
.prose-mp .dpmap img,
.dpmap .leaflet-container img {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: none !important;
}
.prose-mp .dpmap .dpmap-pop-img {
    width: 100% !important;
    height: 138px !important;
    max-width: 100% !important;
}
.prose-mp .dpmap * { max-width: none !important; }
.prose-mp .dpmap { max-width: 100% !important; }
.prose-mp .dpmap p,
.prose-mp .dpmap h3 { margin: 0; }

/* ── Mobil ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .dpmap-canvas { height: 330px; }
    .dpmap-list { grid-template-columns: 1fr; }
    .dpmap-list .dpmap-item:nth-child(odd) { border-right: 0; }
    .dpmap-title { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
    .dpmap-pin, .dpmap-item, .dpmap-hint { transition: none; }
}
