﻿/* Google-style pin background */
.map-pin-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    xtransform: translate(-50%, -100%);
    pointer-events: auto;
}

.map-pin-bg {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    /* Google-style white ring + shadow */
    box-shadow: 0 0 0 2px purple, /* white border ring */
    0 2px 6px rgba(0,0,0,0.35); /* drop shadow */
}

.map-pin-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Normalize icon sizing */
    .map-pin-glyph img,
    .map-pin-glyph i {
        width: 16px;
        height: 16px;
        font-size: 18px;
    }
/* SVG mask icon (recolorable) */
.map-svg-mask-icon {
    width: 14px;
    height: 14px;
    background-color: #000; /* ← stroke + fill color */
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}
.map-pin-image-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Default */
.map-pin-wrapper .map-pin-bg {
    background: #1A73E8;
}

/* Representation */
.map-pin-wrapper.map-pin-objecttype-representation .map-pin-bg {
    background: #DCEFF6;
    box-shadow: 0 0 0 2px #3E7E99, /* white border ring */
    0 2px 6px rgba(0,0,0,0.35); /* drop shadow */
}
/* Crexi */
.map-pin-wrapper.map-pin-objecttype-crexiproperty .map-pin-bg {
    background: #E0EFE6;
    box-shadow: 0 0 0 2px #013A81, /* white border ring */
    0 2px 6px rgba(0,0,0,0.35); /* drop shadow */
}
/* PTT */
.map-pin-wrapper.map-pin-objecttype-partytothetransaction .map-pin-bg {
    background: #E0EFE6;
    box-shadow: 0 0 0 2px #3F6F5C, /* white border ring */
    0 2px 6px rgba(0,0,0,0.35); /* drop shadow */
}
/* Comp */
.map-pin-wrapper.map-pin-objecttype-comp .map-pin-bg {
    background: #E0EFE6;
    box-shadow: 0 0 0 2px #3F6F5C, /* white border ring */
    0 2px 6px rgba(0,0,0,0.35); /* drop shadow */
}
/* Sales Volumes */
.map-pin-wrapper.map-pin-objecttype-salesvolume2location .map-pin-bg {
    background: white;
    box-shadow: 0 0 0 2px #000, /* white border ring */
    0 2px 6px rgba(0,0,0,0.35); /* drop shadow */
}
.map-pin-wrapper.map-pin-objecttype-representation {

}
/* Crexi property */
.map-pin-wrapper.map-pin-objecttype-crexiproperty .map-pin-bg {
    background: #e8e8e8;
}

@starting-style {

   /* .map-pin-wrapper.embiggen-map-icon {
        transform: scale(1, 1) translate(-0%, -20%) !important;
    }*/
}

.map-pin-wrapper.embiggen-map-icon {
    transform: scale(2, 2) translate(-0%, -20%) !important;
    transform-origin: center bottom !important;
    transition: all 2s ease-out;
    transition: transform 400ms cubic-bezier(.175, .885, .32, 1.275);
}

        .map-pin-wrapper.embiggen-map-icon .map-pin-bg {
            background: linear-gradient( 120deg, #ff4d4d, #ffa64d, #ffff4d, #4dff4d, #4dd2ff, #6f4dff, #ff4dff );
            background-size: 300% 300%;
            animation: rainbowPulse 3s ease-in-out infinite;
        }

    @keyframes rainbowPulse {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }
.map-selected .map-pin-bg {
    background: #ff9800 !important;
}

.map-selected {
    transform: scale(1.15);
}

.map-selections-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 340px;
    background: rgba(255,255,255,.92);
    border-right: 1px solid #ddd;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-selections-header {
    padding: 10px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.map-selections-overlay .pmr-parcel-title-row {
    margin-right: 25px;
}
.map-selections-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-size: .9rem;
}

.map-selection-card {
    position: relative;
    margin-bottom: 12px;
}

.selection-remove-btn {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 5;
}
.parcel-detail-highlight {
    position: relative;
    z-index: 1000;
    animation: rainbowBorder 2s linear infinite;
}

@keyframes rainbowBorder {
    0% {
        filter: drop-shadow(0 0 6px red);
    }

    16% {
        filter: drop-shadow(0 0 6px orange);
    }

    33% {
        filter: drop-shadow(0 0 6px yellow);
    }

    50% {
        filter: drop-shadow(0 0 6px green);
    }

    66% {
        filter: drop-shadow(0 0 6px blue);
    }

    83% {
        filter: drop-shadow(0 0 6px violet);
    }

    100% {
        filter: drop-shadow(0 0 6px red);
    }
}