.js-pobocky-mapa,
.js-prodejna-detail-map {
    position: relative;
    background: #b8b8b8;
    cursor: grab;
    isolation: isolate;
}

.js-pobocky-mapa:active,
.js-prodejna-detail-map:active {
    cursor: grabbing;
}

.js-pobocky-mapa .leaflet-container,
.js-prodejna-detail-map .leaflet-container {
    width: 100%;
    height: 100%;
    background: #b8b8b8;
    font-family: inherit;
}

.js-pobocky-mapa .leaflet-control-attribution,
.js-prodejna-detail-map .leaflet-control-attribution {
    display: none;
}

.js-pobocky-mapa .leaflet-top.leaflet-left {
    top: 0;
    left: 0;
}

.js-pobocky-mapa .leaflet-control-zoom {
    margin: 24px;
    border: 0;
    box-shadow: none;
}

.js-pobocky-mapa .leaflet-control-zoom a {
    width: 42px;
    height: 42px;
    line-height: 42px;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    color: #1c1c1c;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.js-pobocky-mapa .leaflet-control-zoom a:first-child {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.js-pobocky-mapa .leaflet-control-zoom a:last-child {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.js-pobocky-mapa .leaflet-tile-pane img.leaflet-tile,
.js-prodejna-detail-map .leaflet-tile-pane img.leaflet-tile {
    filter: grayscale(1) saturate(0) brightness(0.72) contrast(1.12);
}

.js-pobocky-mapa .leaflet-pane.labels img.leaflet-tile,
.js-prodejna-detail-map .leaflet-pane.labels img.leaflet-tile {
    filter: grayscale(1) saturate(0) brightness(0.9) contrast(1.15);
}

.js-prodejna-detail-map .leaflet-tile-pane img.leaflet-tile,
.js-prodejna-detail-map .leaflet-pane.labels img.leaflet-tile {
    filter: none;
}

.js-pobocky-filter {
    cursor: pointer;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #111111;
    transition: color 0.25s ease;
}

.js-pobocky-filter:hover,
.js-pobocky-filter:focus-visible {
    color: #111111;
}

.js-pobocky-filter-circle {
    background: #e7e7e7;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.js-pobocky-filter-icon {
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.js-pobocky-filter:hover .js-pobocky-filter-circle,
.js-pobocky-filter:focus-visible .js-pobocky-filter-circle {
    background: #79ac2b;
    transform: scale(1.04);
    box-shadow: 0 10px 24px rgba(121, 172, 43, 0.2);
}

.js-pobocky-filter:hover .js-pobocky-filter-icon,
.js-pobocky-filter:focus-visible .js-pobocky-filter-icon {
    filter: brightness(0) invert(1);
}

.js-pobocky-filter.is-active .js-pobocky-filter-circle {
    background: #79ac2b;
    box-shadow: 0 10px 24px rgba(121, 172, 43, 0.2);
}

.js-pobocky-filter.is-active .js-pobocky-filter-icon {
    filter: brightness(0) invert(1);
}

.js-pobocky-filter.is-active span:last-child {
    color: #111111;
}

.pobocky-map-marker-wrap {
    background: transparent;
    border: 0;
}

.pobocky-map-marker {
    display: block;
    width: 28px;
    height: 28px;
    border: 5px solid #ffffff;
    border-radius: 9999px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pobocky-map-marker-green {
    background: #79ac2b;
}

.pobocky-map-marker-dark-green {
    background: #4f751f;
}

.pobocky-map-marker-red {
    background: #e14b4b;
}

.pobocky-map-marker-wrap:hover .pobocky-map-marker-green,
.pobocky-map-marker-wrap:focus .pobocky-map-marker-green {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(121, 172, 43, 0.18), 0 8px 22px rgba(121, 172, 43, 0.3);
}

.pobocky-map-marker-wrap:hover .pobocky-map-marker-dark-green,
.pobocky-map-marker-wrap:focus .pobocky-map-marker-dark-green {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(79, 117, 31, 0.18), 0 8px 22px rgba(79, 117, 31, 0.3);
}

.pobocky-map-marker-wrap:hover .pobocky-map-marker-red,
.pobocky-map-marker-wrap:focus .pobocky-map-marker-red {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(225, 75, 75, 0.18), 0 8px 22px rgba(225, 75, 75, 0.3);
}

.pobocky-map-cluster-wrap {
    background: transparent;
    border: 0;
}

.pobocky-map-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 5px solid #ffffff;
    border-radius: 9999px;
    background: #4f751f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pobocky-map-cluster-mixed {
    background: #79ac2b;
}

.pobocky-map-cluster-wrap:hover .pobocky-map-cluster,
.pobocky-map-cluster-wrap:focus .pobocky-map-cluster {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(121, 172, 43, 0.18), 0 10px 26px rgba(121, 172, 43, 0.32);
}

.pobocky-map-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.pobocky-map-popup-wrap .leaflet-popup-close-button {
    top: 26px;
    right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: #f2f2f2;
    color: #111111;
    font-size: 0;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    text-indent: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pobocky-map-popup-wrap .leaflet-popup-close-button::before,
.pobocky-map-popup-wrap .leaflet-popup-close-button::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 1.5px;
    border-radius: 9999px;
    background: currentColor;
}

.pobocky-map-popup-wrap .leaflet-popup-close-button::before {
    transform: rotate(45deg);
}

.pobocky-map-popup-wrap .leaflet-popup-close-button::after {
    transform: rotate(-45deg);
}

.pobocky-map-popup-wrap .leaflet-popup-close-button:hover,
.pobocky-map-popup-wrap .leaflet-popup-close-button:focus {
    background: #e7e7e7;
    color: #111111;
    transform: scale(1.02);
}

.pobocky-map-popup-wrap .leaflet-popup-content {
    margin: 0;
}

.pobocky-map-popup-wrap .leaflet-popup-tip {
    box-shadow: none;
}

.pobocky-map-popup {
    padding: 34px 86px 26px 28px;
    min-width: 290px;
}

.pobocky-map-popup-title {
    display: block;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #111111;
}

.pobocky-map-popup-address {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #4b4b4b;
}

.pobocky-map-popup-contact {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
}

.pobocky-map-popup-contact-label {
    font-size: 13px;
    line-height: 1.4;
    color: #6b6b6b;
}

.pobocky-map-popup-contact-person {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    color: #111111;
}

/* 🔥 TADY JE OPRAVA NA ZELENOU */
.pobocky-map-popup-contact-link,
.pobocky-map-popup-contact-link:visited,
.pobocky-map-popup-contact-link:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: 15px;
    line-height: 1.45;
    color: #79ac2b;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

.pobocky-map-popup-contact-icon {
    display: block;
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.pobocky-map-popup-contact-link:hover {
    color: #6b9b24;
    transform: translateY(-1px);
}

.pobocky-map-popup-link,
.pobocky-map-popup-link:visited,
.pobocky-map-popup-link:focus {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 0;
    border-radius: 9999px;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    color: #79ac2b;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

.pobocky-map-popup-link:hover {
    color: #6b9b24;
    transform: translateY(-1px);
}

.pobocky-map-zoom-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 500;
    transform: translateX(-50%) translateY(10px);
    padding: 12px 16px;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.82);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pobocky-map-zoom-hint.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pobocky-map-attribution {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1;
    color: #333333;
}

.pobocky-map-attribution-logo {
    font-weight: 700;
    color: #111111;
    text-decoration: none;
}

.pobocky-map-attribution-text {
    color: #555555;
}

@media (max-width: 767px) {
    .js-pobocky-mapa .leaflet-control-zoom {
        margin: 16px;
    }

    .js-pobocky-mapa .leaflet-control-zoom a {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 20px;
    }

    .js-pobocky-filter {
        width: 100%;
        gap: 14px;
        justify-content: flex-start;
    }

    .js-pobocky-filter-circle {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .js-pobocky-filter span:last-child {
        font-size: 16px;
        line-height: 1.3;
    }

    .pobocky-map-marker {
        width: 24px;
        height: 24px;
        border-width: 4px;
    }

    .pobocky-map-popup {
        min-width: 250px;
        padding: 18px;
    }

    .pobocky-map-zoom-hint {
        bottom: 16px;
        max-width: calc(100% - 32px);
        text-align: center;
        white-space: normal;
        line-height: 1.35;
    }
}
.pobocky-map-popup .pobocky-map-popup-contact .pobocky-map-popup-contact-link,
.pobocky-map-popup .pobocky-map-popup-contact .pobocky-map-popup-contact-link:link,
.pobocky-map-popup .pobocky-map-popup-contact .pobocky-map-popup-contact-link:visited,
.pobocky-map-popup .pobocky-map-popup-contact .pobocky-map-popup-contact-link:active,
.pobocky-map-popup .pobocky-map-popup-contact .pobocky-map-popup-contact-link:focus {
    color: #79ac2b !important;
    text-decoration: none !important;
}

.pobocky-map-popup .pobocky-map-popup-contact .pobocky-map-popup-contact-link:hover {
    color: #6b9b24 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}
