/* Mapeczka: koncowa warstwa zgodnosci menu mobilnego. */
@media (max-width: 767px) {
    html.mapeczka-redesign body .mapeczka-mobile-city-reset[hidden] {
        display: none !important;
    }
    html.mapeczka-redesign body #c27-explore-listings .finder-map,
    html.mapeczka-redesign body #c27-explore-listings .finder-map #finderMap,
    html.mapeczka-redesign body #c27-explore-listings .finder-map .c27-map,
    html.mapeczka-redesign body #c27-explore-listings .finder-map .leaflet-container {
        touch-action: none !important;
        -ms-touch-action: none !important;
    }

    html.mapeczka-redesign body #c27-explore-listings .listing-preview.mapeczka-place-card .mapeczka-card-badge-row,
    html.mapeczka-redesign body #c27-explore-listings .listing-preview.mapeczka-place-card .mapeczka-card-rating,
    html.mapeczka-redesign body #c27-explore-listings .listing-preview.mapeczka-place-card .mapeczka-card-review-count {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

    html.mapeczka-redesign body #finderMap .leaflet-popup-pane {
        z-index: 1200 !important;
        pointer-events: none !important;
    }

    html.mapeczka-redesign body #finderMap .leaflet-popup-pane .leaflet-popup,
    html.mapeczka-redesign body #finderMap .leaflet-popup-pane .leaflet-popup-content-wrapper,
    html.mapeczka-redesign body #finderMap .leaflet-popup-pane .leaflet-popup-content {
        z-index: 1201 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html.mapeczka-redesign body #finderMap .marker-icon .mapeczka-marker-rating {
        z-index: 20 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html.mapeczka-redesign body #finderMap .leaflet-popup-pane .leaflet-popup-content-wrapper,
    html.mapeczka-redesign body #finderMap .leaflet-popup-pane .leaflet-popup-content,
    html.mapeczka-redesign body #finderMap .leaflet-popup-pane a,
    html.mapeczka-redesign body #finderMap .leaflet-popup-pane button {
        pointer-events: auto !important;
    }
    html.mapeczka-redesign body #c27-explore-listings .finder-search.visible-lg.mapeczka-mobile-filter-open,
    html.mapeczka-redesign body #c27-explore-listings .finder-search.mapeczka-mobile-filter-open {
        position: fixed !important;
        z-index: 1000010 !important;
        inset: 56px 0 calc(var(--mapeczka-app-nav-height, 66px) + env(safe-area-inset-bottom, 0px)) !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    html.mapeczka-redesign body #c27-explore-listings .finder-search.mapeczka-mobile-filter-open *,
    html.mapeczka-redesign body #c27-explore-listings .finder-search.mapeczka-mobile-filter-open input,
    html.mapeczka-redesign body #c27-explore-listings .finder-search.mapeczka-mobile-filter-open button,
    html.mapeczka-redesign body #c27-explore-listings .finder-search.mapeczka-mobile-filter-open a,
    html.mapeczka-redesign body #c27-explore-listings .finder-search.mapeczka-mobile-filter-open label {
        pointer-events: auto !important;
    }

    html.mapeczka-redesign body .mapeczka-mobile-filter-actions {
        position: fixed !important;
        z-index: 1000020 !important;
        right: 10px !important;
        bottom: calc(var(--mapeczka-app-nav-height, 66px) + env(safe-area-inset-bottom, 0px) + 8px) !important;
        left: 10px !important;
        display: grid !important;
        grid-template-columns: minmax(84px,.75fr) minmax(150px,1.5fr) 42px !important;
        gap: 8px !important;
        padding: 9px !important;
        border: 1px solid rgba(18,58,120,.16) !important;
        border-radius: 16px !important;
        background: rgba(255,255,255,.97) !important;
        box-shadow: 0 10px 30px rgba(15,23,42,.2) !important;
        backdrop-filter: blur(16px) !important;
    }

    html.mapeczka-redesign body .mapeczka-mobile-filter-actions button {
        display: grid !important;
        place-items: center !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        border: 1px solid #cdd9eb !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #102146 !important;
        font-size: 12px !important;
        font-weight: 750 !important;
    }

    html.mapeczka-redesign body .mapeczka-mobile-filter-actions__apply {
        border-color: #0866d7 !important;
        background: #0866d7 !important;
        color: #fff !important;
    }

    html.mapeczka-dark-mode.mapeczka-redesign body .mapeczka-mobile-filter-actions {
        border-color: #34445a !important;
        background: rgba(15,23,34,.97) !important;
    }

    html.mapeczka-dark-mode.mapeczka-redesign body .mapeczka-mobile-filter-actions button {
        border-color: #405169 !important;
        background: #182334 !important;
        color: #f4f7fb !important;
    }

    html.mapeczka-dark-mode.mapeczka-redesign body .mapeczka-mobile-filter-actions__apply {
        border-color: #2a82ef !important;
        background: #176fd8 !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail.mapeczka-primary-submenu-hidden {
        display: none !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .mobile-explore-head-top .mapeczka-mobile-search-row {
        grid-template-columns: minmax(154px, 42%) minmax(92px, 1fr) 40px !important;
        gap: 6px !important;
    }

    html.mapeczka-redesign body .mapeczka-mobile-search-row > .mapeczka-reset-all-filters--mobile,
    html.mapeczka-redesign body .mapeczka-mobile-search-row > .mapeczka-reset-all-filters--mobile.is-visible {
        position: absolute !important;
        top: -42px !important;
        right: 46px !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
    }

    html.mapeczka-redesign body .mapeczka-mobile-city-search .explore-head-search {
        padding-right: 35px !important;
        padding-left: 12px !important;
    }

    html.mapeczka-redesign body .mapeczka-mobile-city-search .explore-head-search > .geocode-location {
        display: none !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .explore-head .explore-types,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .explore-types,
    html.mapeczka-redesign body #c27-explore-listings .mapeczka-home-shortcuts,
    html.mapeczka-redesign body #c27-explore-listings .mvd-tabs {
        pointer-events: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .explore-head,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail,
    html.mapeczka-redesign body #c27-explore-listings > .explore-head .explore-types,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .explore-types {
        touch-action: auto !important;
        overscroll-behavior-x: contain !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .explore-head .explore-types > .item,
    html.mapeczka-redesign body #c27-explore-listings > .explore-head .explore-types > .item > a,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .explore-types > .item,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .explore-types button,
    html.mapeczka-redesign body #c27-explore-listings .mapeczka-home-shortcuts button,
    html.mapeczka-redesign body #c27-explore-listings .mvd-tabs button {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .explore-head .explore-types > .item > a,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .explore-types > .item > a,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .mapeczka-taxonomy-chip,
    html.mapeczka-redesign body #c27-explore-listings .mapeczka-home-shortcut,
    html.mapeczka-redesign body #c27-explore-listings .mvd-tab,
    html.mapeczka-redesign body #c27-explore-listings > .explore-head .type-info,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .type-info {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .explore-head .type-info,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .type-info {
        width: 100% !important;
        height: 100% !important;
    }

    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail.mapeczka-secondary-category-controls .explore-types > .item.active > a,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail.mapeczka-secondary-category-controls a[aria-pressed="true"] {
        border-color: #3291ff !important;
        background: linear-gradient(145deg,#173d72,#0d2b55) !important;
        color: #fff !important;
        box-shadow: 0 0 0 2px rgba(50,145,255,.18),0 7px 18px rgba(19,102,210,.32) !important;
    }

    html.mapeczka-redesign body #c27-explore-listings .mapeczka-taxonomy-chip--empty {
        min-width: 180px !important;
        opacity: .72 !important;
        cursor: default !important;
    }

    /* MyListing zostawia niewidoczne kontrolki karuzeli nad pierwszym i
       ostatnim przyciskiem. W Chromium/Brave przechwytuja one tapniecia. */
    html.mapeczka-redesign body #c27-explore-listings > .explore-head .cts-prev,
    html.mapeczka-redesign body #c27-explore-listings > .explore-head .cts-next,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .cts-prev,
    html.mapeczka-redesign body #c27-explore-listings > .mapeczka-secondary-category-rail .cts-next {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (max-width: 767px) {
    html.mapeczka-redesign body #c27-explore-listings > .mobile-explore-head-top .mapeczka-mobile-city-search.has-selected-city .explore-head-search > .mi.search {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
    }
}
