
.yp-search [data-yp-id=listing-map] {
    --pm-primary: var(--primary-color, #5ecb8f);
    --pm-sale: #36c6d3;
    --pm-rent: #ed6b75;
    --pm-ink: #1f2d3d;

    position: relative;
    height: 100%;
    min-height: 480px;
    background: #e9ecef;
    font-family: var(--primary-font, inherit);
}


@media (min-width: 768px) {
.yp-search [data-yp-id=properties-map] .rightmap {
        position: sticky;
        top: 80px;
        height: calc(100vh - 100px) !important;
        min-height: 480px;
    }
}
.yp-search .pm-icon {
    background: none;
    border: 0;
}
.yp-search .pm-cluster {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #0e3b27;
    font-weight: 700;
    font-size: 13px;
    background: var(--pm-primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.yp-search .pm-cluster--sm { width: 34px; height: 34px; }
.yp-search .pm-cluster--md { width: 44px; height: 44px; font-size: 14px; }
.yp-search .pm-cluster--lg { width: 56px; height: 56px; font-size: 15px; }
.yp-search .leaflet-marker-icon:hover .pm-cluster, .yp-search .leaflet-marker-icon:focus .pm-cluster {
    filter: brightness(0.92);
}
.yp-search .pm-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    margin-top: -7px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #fff;
    color: var(--pm-ink);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    border: 2px solid var(--pm-sale);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
.yp-search .pm-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: inherit;
}
.yp-search .pm-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.yp-search .pm-dot--sale { background: var(--pm-sale); }
.yp-search .pm-dot--rent { background: var(--pm-rent); }
.yp-search .leaflet-marker-icon:hover .pm-dot, .yp-search .leaflet-marker-icon:focus .pm-dot { transform: translate(-50%, -50%) scale(1.35); }
.yp-search .pm-pin--sale { border-color: var(--pm-sale); }
.yp-search .pm-pin--rent { border-color: var(--pm-rent); }
.yp-search .leaflet-marker-icon:hover .pm-pin, .yp-search .leaflet-marker-icon:focus .pm-pin {
    transform: translate(-50%, -100%) scale(1.12);
}
.yp-search .pm-stack {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    background: #34495e;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.yp-search .leaflet-marker-icon:hover .pm-stack, .yp-search .leaflet-marker-icon:focus .pm-stack {
    background: #263646;
}
.yp-search .pm-hover-tip.leaflet-tooltip {
    
    box-sizing: content-box;
    width: 340px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    color: #333;
    white-space: normal;
    text-align: left;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
.yp-search .pm-hover-card .blii { padding-top: 0; }
.yp-search .pm-hover-card .blii .status-label { font-size: 12px; padding: 3px; }
.yp-search .pm-hover-card--loading { color: #6c757d; text-align: center; }
.yp-search [data-yp-id=properties-list] .item.pm-linked {
    outline: 3px solid var(--primary-color, #5ecb8f);
    outline-offset: -3px;
    border-radius: 5px;
}
.yp-search .pm-area-bar {
    position: absolute;
    z-index: 850;
    top: 10px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translateX(-50%);
}
.yp-search .pm-area-bar [hidden] { display: none !important; }
.yp-search .pm-area-button {
    padding: 6px 16px;
    border: 0;
    border-radius: 5px;
    background: var(--pm-primary);
    color: #0e3b27;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.yp-search .pm-area-button:hover { filter: brightness(0.93); }
.yp-search .pm-area-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.yp-search .pm-area-chip button {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e9ecef;
    line-height: 1;
    cursor: pointer;
}
.yp-search .pm-draw-button {
    position: absolute;
    z-index: 860;
    top: 90px;
    left: 10px;
    padding: 6px 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #fff;
    color: var(--pm-ink, #1f2d3d);
    font-family: var(--primary-font, inherit);
    font-size: 13px;
    cursor: pointer;
}
.yp-search .pm-draw-button.active {
    border-color: var(--pm-ink, #1f2d3d);
    background: var(--pm-ink, #1f2d3d);
    color: #fff;
}
.yp-search .pm-draw-surface {
    position: absolute;
    inset: 0;
    z-index: 840;
    cursor: crosshair;
    touch-action: none;
}
.yp-search .pm-draw-surface[hidden] { display: none; }
.yp-search .pm-draw-hint {
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(31, 45, 61, 0.9);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}
.yp-search .pm-draw-menu {
    position: absolute;
    z-index: 865;
    top: 126px;
    left: 10px;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #fff;
}
.yp-search .pm-draw-menu[hidden] { display: none; }
.yp-search .pm-draw-menu button {
    padding: 6px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--pm-ink, #1f2d3d);
    font-family: var(--primary-font, inherit);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.yp-search .pm-draw-menu button:hover { background: #eef1f4; }
.yp-search .pm-draw-menu i { width: 18px; text-align: center; }
.yp-search .pm-draw-done {
    padding: 4px 14px;
    border: 0;
    border-radius: 5px;
    background: var(--pm-primary);
    color: #0e3b27;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.yp-search .pm-draw-done[hidden] { display: none; }
.yp-search .pm-near-button {
    position: absolute;
    z-index: 860;
    top: 130px;
    left: 10px;
    padding: 6px 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #fff;
    color: var(--pm-ink, #1f2d3d);
    font-family: var(--primary-font, inherit);
    font-size: 13px;
    cursor: pointer;
}
.yp-search .pm-near-button:disabled { opacity: 0.7; cursor: progress; }
.yp-search .pm-area-chip select {
    padding: 0 2px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: #fff;
    font-size: 12px;
}
.yp-search .pm-area-chip [hidden] { display: none !important; }
.yp-search .pm-counter, .yp-search .pm-legend {
    position: absolute;
    z-index: 800;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.yp-search .pm-counter { bottom: 54px; left: 10px; }
.yp-search .pm-legend { bottom: 22px; left: 10px; }
.yp-search .pm-legend span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px 0 8px;
    border-radius: 50%;
}
.yp-search .pm-legend span:first-child { margin-left: 0; }
.yp-search .pm-legend__sale { background: var(--pm-sale); }
.yp-search .pm-legend__rent { background: var(--pm-rent); }
.yp-search .pm-error {
    position: absolute;
    z-index: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 16px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}
.yp-search .pm-error[hidden] { display: none; }
.yp-search .pm-gesture {
    position: absolute;
    z-index: 900;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.yp-search .pm-gesture.active { opacity: 1; }
.yp-search .pm-popup .leaflet-popup-content { margin: 10px; width: min(340px, 72vw) !important; }
.yp-search .pm-popup__loading { padding: 12px; text-align: center; color: #6c757d; }
.yp-search .pm-popup__title { margin-bottom: 8px; font-weight: 700; }
.yp-search .pm-cards { max-height: 320px; overflow-y: auto; }
.yp-search .map-card + .map-card { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.yp-search .pm-popup__more {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
}
.yp-search .pm-mobile-toggle, .yp-search .pm-mobile-bar { display: none; }

@media (max-width: 767px) {
.yp-search [data-yp-id=listing-map] { min-height: 360px; }
.yp-search [data-yp-id=properties-map] { display: none !important; }
.yp-search.pm-map-open { overflow: hidden; }
.yp-search.pm-map-open [data-yp-id=properties-map] {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 1030;
        padding: 0;
        background: #fff;
    }
.yp-search.pm-map-open [data-yp-id=properties-map] .rightmap {
        position: absolute;
        inset: 48px 0 0;
        height: auto !important;
    }
.yp-search.pm-map-open [data-yp-id=properties-map] { top: 40px; }
.yp-search .pm-mobile-bar {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1031;
        height: 48px;
        align-items: center;
        gap: 4px;
        padding: 0 6px;
        background: #fff;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    }
.yp-search.pm-map-open .pm-mobile-bar { display: flex; }
.yp-search .pm-mobile-bar button {
        height: 40px;
        min-width: 40px;
        padding: 0 10px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: var(--pm-ink, #1f2d3d);
        font-family: var(--primary-font, inherit);
        font-size: 14px;
    }
.yp-search .pm-mobile-bar button:active { background: #eef1f4; }
.yp-search .pm-mobile-bar__brand { display: flex; align-items: center; margin-right: auto; padding: 0 4px; }
.yp-search .pm-mobile-bar__brand img { max-height: 30px; width: auto; }
.yp-search .pm-mobile-bar__filters { border: 1px solid #ced4da !important; }
.yp-search.pm-map-open [data-yp-id=listing-map] { min-height: 0; }
.yp-search .change-view { display: none; }
.yp-search .pm-mobile-toggle {
        position: fixed;
        bottom: 20px;
        left: 50%;
        z-index: 1031;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border: 0;
        border-radius: 999px;
        background: var(--pm-ink, #1f2d3d);
        color: #fff;
        font-family: var(--primary-font, inherit);
        font-size: 15px;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
        transform: translateX(-50%);
    }
}
.yp-search .pm-loading {
    position: absolute;
    inset: 0;
    z-index: 870;
    display: none;
    pointer-events: none;
}
.yp-search .pm-loading.is-active { display: block; }
.yp-search .pm-loading.is-blocking { background: rgba(255, 255, 255, 0.45); }
.yp-search .pm-loading__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}
.yp-search .pm-loading__bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: var(--pm-primary, #5ecb8f);
    animation: pm-loading-bar 1.1s ease-in-out infinite;
}
.yp-search .pm-loading__spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    box-sizing: border-box;
    border: 5px solid #e9ecef;
    border-top-color: var(--pm-primary, #5ecb8f);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pm-loading-spin 0.9s linear infinite;
}
.yp-search .pm-loading.is-active .pm-loading__spinner { display: block; }
.yp-search .pm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@keyframes pm-loading-bar {
0% { left: -40%; }
100% { left: 100%; }
}

@keyframes pm-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
.yp-search .pm-loading__bar::after { animation-duration: 3s; }
.yp-search .pm-loading__spinner { animation-duration: 3s; }
}
