/**
 * Tip Favorite Button Styles
 * Standalone favorite button for tip single pages
 */

.nearb-tip-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.15s ease;
}

.nearb-tip-fav:hover {
    transform: scale(1.1);
}

.nearb-tip-fav:focus {
    outline: 2px solid rgba(242, 138, 4, 0.5);
    outline-offset: 2px;
    border-radius: 50%;
}

.nearb-tip-fav__icon {
    display: block;
    width: 32px;
    height: 32px;
}

.nearb-tip-fav__icon--active {
    display: none;
}

.nearb-tip-fav--active .nearb-tip-fav__icon--inactive {
    display: none;
}

.nearb-tip-fav--active .nearb-tip-fav__icon--active {
    display: block;
}

/* Larger variant */
.nearb-tip-fav--lg .nearb-tip-fav__icon {
    width: 40px;
    height: 40px;
}

/* Smaller variant */
.nearb-tip-fav--sm .nearb-tip-fav__icon {
    width: 24px;
    height: 24px;
}

/* ===========================================
   Toast Notifications
   =========================================== */
.nearb-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.nearb-toast {
    background: #191923;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: nearb-toast-in 0.3s ease-out;
    pointer-events: auto;
}

.nearb-toast--success {
    background: #059669;
}

.nearb-toast--error {
    background: #dc2626;
}

.nearb-toast.is-hiding {
    animation: nearb-toast-out 0.2s ease-in forwards;
}

@keyframes nearb-toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nearb-toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
