/* Smart Add Favorite Button - Floating button that appears when location or route is selected */

.smart-add-favorite-btn {
    position: fixed;
    right: -130px; /* Initially hidden off-screen */
    top: 70%;
    transform: translateY(-50%);
    z-index: 950;
    
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.95) 0%, rgba(255, 193, 7, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 152, 0, 0.6);
    border-radius: 6px 0 0 6px;
    border-right: none;
    
    padding: 8px 10px;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    gap: 5px;
    
    box-shadow: 
        -2px 0 6px rgba(255, 152, 0, 0.4),
        -1px 0 4px rgba(0, 0, 0, 0.3);
    
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    
    user-select: none;
    -webkit-user-select: none;
}

/* Show button (slide in from right) */
.smart-add-favorite-btn:not(.hidden) {
    right: 0;
}

.smart-add-favorite-btn:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 1) 0%, rgba(255, 193, 7, 1) 100%);
    border-color: rgba(255, 152, 0, 0.8);
    box-shadow: 
        -3px 0 10px rgba(255, 152, 0, 0.6),
        -2px 0 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) translateX(-3px);
}

.smart-add-favorite-btn:active {
    transform: translateY(-50%) translateX(2px) scale(0.98);
}

.smart-add-icon {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.smart-add-text {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* Mobile adaptations */
@media (max-width: 768px) {
    .smart-add-favorite-btn {
        right: -130px;
        padding: 6px 8px;
        top: 75%;
    }
    
    .smart-add-icon {
        font-size: 14px;
    }
    
    .smart-add-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .smart-add-favorite-btn {
        right: -110px;
        padding: 5px 7px;
        border-radius: 5px 0 0 5px;
    }
    
    .smart-add-icon {
        font-size: 12px;
    }
    
    .smart-add-text {
        font-size: 10px;
    }
}

/* Tablet landscape - adjust position to not overlap with quick buttons */
@media (min-width: 769px) and (max-width: 1024px) {
    .smart-add-favorite-btn {
        right: -130px;
        top: 75%;
    }
}

/* Large screens - move slightly inward */
@media (min-width: 1400px) {
    .smart-add-favorite-btn {
        right: -150px;
    }
    
    .smart-add-favorite-btn:not(.hidden) {
        right: 10px;
    }
}

