/* Search Temperature Marker Styling */

.mpfy-search-temp-marker {
    position: relative;
    cursor: pointer;
    z-index: 1000;
}

.mpfy-temp-marker-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mpfy-temp-marker-pin {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #E74C3C;
    position: relative;
    margin-top: 5px;
}

.mpfy-temp-marker-pin::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #E74C3C;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mpfy-temp-marker-badge {
    position: absolute;
    top: -65px;
    background-color: #2C3E50;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 10;
    min-width: 140px;
}

.mpfy-temp-current {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: center;
}

.mpfy-temp-high-low {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    gap: 8px;
}

.mpfy-temp-high,
.mpfy-temp-low {
    font-weight: normal;
}

.mpfy-temp-loading {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mpfy-temp-marker-badge {
        padding: 6px 10px;
        min-width: 120px;
        top: -60px;
    }

    .mpfy-temp-current {
        font-size: 13px;
    }

    .mpfy-temp-high-low {
        font-size: 10px;
        gap: 6px;
    }

    .mpfy-temp-marker-pin {
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 16px;
    }

    .mpfy-temp-marker-pin::before {
        top: -26px;
        left: -8px;
        width: 16px;
        height: 16px;
    }
}

/* Hover effect */
.mpfy-search-temp-marker:hover .mpfy-temp-marker-badge {
    background-color: #34495E;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Animation for when marker appears */
@keyframes markerPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mpfy-search-temp-marker {
    animation: markerPop 0.3s ease-out;
}

/* Animation for when marker is removed */
@keyframes markerFadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.mpfy-search-temp-marker-removing {
    animation: markerFadeOut 0.3s ease-in forwards;
}
