/* Styling for the Falcon Trip feature */

#falcon-trip-btn {
    width: 76px;
    height: auto;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
    transform-origin: center center;
}

#falcon-trip-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

#falcon-trip-btn:active {
    transform: scale(0.9);
}

#falcon-plane {
    /* Initial styling for the plane animation */
    position: absolute;
    pointer-events: none; /* Don't interfere with map clicks */
    z-index: 2000; /* Make sure it's above the map and markers */
    transform-origin: center center;
    /* Center the plane's position point */
    margin-left: -40px; /* Half of the jet width */
    margin-top: -20px; /* Positioned for the jet's body center */
}

#falcon-plane img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transform-origin: center center;
    max-width: 80px;
}

/* Create a pulsing effect for when the button is clicked */
@keyframes falcon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.falcon-pulse {
    animation: falcon-pulse 0.5s ease;
}

/* Plane flying animation */
@keyframes falcon-fly {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--end-rotate)); }
}

.falcon-flying {
    animation: falcon-fly var(--duration) ease-in-out forwards;
}

/* Flight path animation */
.falcon-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1500;
}

.falcon-path-line {
    stroke: #4A773C;
    stroke-width: 2;
    stroke-dasharray: 5;
    fill: none;
    opacity: 0.7;
}

/* Success tooltip when arrived at destination */
.falcon-tooltip {
    position: absolute;
    background-color: #4A773C;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 2500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.falcon-tooltip.show {
    opacity: 1;
}

.falcon-tooltip:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #4A773C transparent transparent transparent;
}

/* Mobile-specific positioning for Falcon Trip button */
@media (max-width: 768px) {
    #falcon-trip-container {
        bottom: 20px !important;
        right: 15px !important;
    }
    
    #falcon-trip-btn {
        width: 60px !important;
        height: auto !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    #falcon-trip-container {
        bottom: 15px !important;
        right: 10px !important;
    }
    
    #falcon-trip-btn {
        width: 50px !important;
        height: auto !important;
    }
}