/* for listing cards */
.favourite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px;
    margin-left: 10px;
}

.favourite-button:hover {
    transform: scale(1.1);
}

/* for listing details */
.favourite-button-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.favourite-button-container:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.favourite-button-container .heart-icon {
    width: 24px;
    height: 24px;
    transition: all 0.25s ease;
}

/* --Mobile-specific adjustments */
@media (max-width: 640px) {
    .favourite-button-container {
        top: 12px;
        right: 12px;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    .favourite-button-container .heart-icon {
        width: 26px;
        height: 26px;
    }
}

/* common*/
.heart-icon {
    cursor: pointer;
    transition: all 0.25s ease;
    width: 22px;
    height: 22px;
}

.heart-icon:hover {
    transform: scale(1.1);
}

@keyframes heart-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}