/* Travel Loader Styles */
.travel-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff00;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-container {
    width: 300px;
    height: 300px;
    position: relative;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Map background */
.map-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='3' y1='15' x2='21' y2='15'/%3E%3Cline x1='9' y1='3' x2='9' y2='21'/%3E%3Cline x1='15' y1='3' x2='15' y2='21'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Flight path */
.flight-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.05) 10%, 
        rgba(0, 0, 0, 0.1) 20%, 
        rgba(0, 0, 0, 0.2) 40%, 
        rgba(0, 0, 0, 0.2) 60%, 
        rgba(0, 0, 0, 0.1) 80%, 
        rgba(0, 0, 0, 0.05) 90%, 
        transparent 100%
    );
}

/* Dotted line for flight path */
.dotted-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    overflow: hidden;
}

.dotted-path::after {
    content: "";
    position: absolute;
    width: 300%;
    height: 1px;
    background-image: linear-gradient(to right, black 1px, transparent 1px);
    background-size: 15px 1px;
    animation: moveDots 4s linear infinite;
}

/* Plane animation */
.airplane {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    animation: flyPlane 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.airplane svg {
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.1));
}

/* Location markers */
.location {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: pulse 2s infinite;
}

.location-1 {
    top: 25%;
    left: 20%;
}

.location-2 {
    top: 60%;
    left: 75%;
}

/* Progress bar */
.progress-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
}

.progress-text {
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    width: 100%;
    background-color: #eaeaea;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #000;
    transition: width 0.2s ease-out;
}

/* Loading icons */
.loading-icons {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.icon.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Animations */
@keyframes flyPlane {
    0% {
        left: -40px;
        transform: translateY(-50%) rotate(10deg);
    }
    45% {
        left: 55%;
        transform: translateY(-50%) rotate(0deg);
    }
    55% {
        left: 55%;
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        left: calc(100% + 40px);
        transform: translateY(-50%) rotate(-10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

@keyframes moveDots {
    0% {
        transform: translateX(-66.66%);
    }
    100% {
        transform: translateX(0);
    }
}