/**
 * Search-map: keep pinch/drag on the map (phone/tablet) and show reliable +/- zoom.
 * Scoped to .js-search-map-page only. Does not touch sitewide custom.css.
 */

.js-search-map-page .js-search-map-canvas {
    position: relative;
    touch-action: none;
    -ms-touch-action: none;
    overscroll-behavior: contain;
}

.js-search-map-page .js-search-map-canvas .ymaps3--map,
.js-search-map-page .js-search-map-canvas .ymaps3--map-container {
    touch-action: none !important;
}

.js-search-map-page .search-map-zoom {
    position: absolute;
    z-index: 5;
    /* Bottom-right: avoid clash with site mid-right «Наверх / К подвалу» fab */
    right: 12px;
    top: auto;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.js-search-map-page .search-map-zoom__btn {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(45, 45, 45, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #2d2d2d;
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.js-search-map-page .search-map-zoom__btn:active {
    background: #f3f5f8;
}

@media (min-width: 1200px) {
    /* Desktop already has room for gestures/mouse wheel; keep compact controls. */
    .js-search-map-page .search-map-zoom__btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
