/* Digital MV Core 1.3.8 (preneseno iz Digitalna HK Core 1.0.23) – jedan STANDARDNI plavi pin, klikabilne bijele
   plohe slozene u stupac IZNAD pina; svi samostalni nazivi su klikabilni. */
.leaflet-container .dmv-overlap-original-hidden,
.leaflet-container .leaflet-tooltip.dmv-overlap-original-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.leaflet-container .dmv-overlap-stack-icon {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}
.leaflet-container .dmv-overlap-stack-wrap {
    position: relative;
    width: 32px;
    height: 44px;
    overflow: visible;
}
/* Oznake su vidljive ODMAH, bez klika. Kod normalnih skupina sve su odjednom vidljive. */
.leaflet-container .dmv-overlap-stack-labels {
    position: absolute;
    z-index: 2;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: max-content;
    max-width: min(252px, calc(100vw - 26px));
    max-height: min(480px, 65vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 2px;
    box-sizing: border-box;
}
/* Izgled kao postojeći .leaflet-tooltip.mv-map-label, uz veći klikabilni prostor. */
.leaflet-container .dmv-overlap-stack-choice {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.leaflet-container .dmv-overlap-stack-choice:hover,
.leaflet-container .dmv-overlap-stack-choice:focus-visible,
.leaflet-container .leaflet-tooltip.mv-map-label.dmv-name-clickable:hover,
.leaflet-container .leaflet-tooltip.mv-map-label.dmv-name-clickable:focus-visible {
    border-color: #0021c1;
    outline: 2px solid #ffce19;
    outline-offset: 1px;
}
.leaflet-container .dmv-overlap-stack-pin {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 32px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 3;
}
.leaflet-container .dmv-overlap-stack-pin .mv-location-pin {
    display: block;
    width: 32px;
    height: 44px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.38));
}
.leaflet-container .dmv-overlap-stack-pin:focus-visible {
    outline: 3px solid #ffce19;
    outline-offset: 3px;
}
/* Imena SVIH individualnih oznaka reagiraju na klik i tipkovnicu. */
.leaflet-container .leaflet-tooltip.mv-map-label.dmv-name-clickable {
    pointer-events: auto !important;
    cursor: pointer !important;
}
.leaflet-container .dmv-overlap-list {
    position: absolute;
    z-index: 695;
    top: 12px;
    right: 12px;
    width: min(315px, calc(100% - 24px));
    max-height: min(350px, 55%);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #ffce19;
    border-radius: 0;
    background: #0a0e2b;
    box-shadow: 0 3px 14px rgb(0 0 0 / 25%);
    color: #fff;
    font-family: Arial, sans-serif;
}
.leaflet-container .dmv-overlap-list-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 0 0 13px;
    border-bottom: 1px solid #36436e;
    color: #ffce19;
    font: 500 13px/1.3 Arial, sans-serif;
    letter-spacing: .04em;
}
.leaflet-container .dmv-overlap-close {
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 300 29px/1 Arial, sans-serif;
}
.leaflet-container .dmv-overlap-list-items {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.leaflet-container .dmv-overlap-choice {
    display: block;
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #303c62;
    border-radius: 0;
    text-align: left;
    background: #0a0e2b;
    color: #fff;
    cursor: pointer;
    font: 500 14px/1.35 Arial, sans-serif;
}
.leaflet-container .dmv-overlap-choice:hover,
.leaflet-container .dmv-overlap-choice:focus-visible,
.leaflet-container .dmv-overlap-close:focus-visible {
    outline: 2px solid #ffce19;
    outline-offset: -2px;
    background: #0021c1;
    color: #fff;
}
@media (max-width: 600px) {
    .leaflet-container .dmv-overlap-stack-labels {
        max-width: min(200px, calc(100vw - 32px));
        max-height: min(355px, 55vh);
    }
    .leaflet-container .dmv-overlap-stack-choice {
        font-size: 11px;
        min-height: 35px;
        padding: 8px;
    }
    .leaflet-container .dmv-overlap-list {
        top: auto;
        bottom: 10px;
        right: 10px;
        width: min(330px, calc(100% - 20px));
        max-height: 45%;
    }
    .leaflet-container .dmv-overlap-choice { min-height: 46px; }
}
