/* Premium Tour & Travel Loader Styles */

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loader-overlay::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Loader Container */
.loader-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Premium World Map Animation */
.world-travel-loader {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto 40px;
}

/* Rotating Globe Effect */
.globe-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.globe {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateGlobe 4s linear infinite;
}

.globe::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 
        0 0 30px rgba(255,255,255,0.3),
        inset 0 0 30px rgba(0,0,0,0.2);
}

.globe-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: globeShine 3s ease-in-out infinite;
}

@keyframes rotateGlobe {
    0% { transform: rotateY(0deg) rotateZ(-5deg); }
    100% { transform: rotateY(360deg) rotateZ(-5deg); }
}

@keyframes globeShine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Location Pins Around Globe */
.location-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
    animation: pinPulse 2s ease-in-out infinite;
}

.pin-1 { top: 20%; left: 30%; animation-delay: 0s; }
.pin-2 { top: 40%; right: 25%; animation-delay: 0.3s; }
.pin-3 { bottom: 30%; left: 20%; animation-delay: 0.6s; }
.pin-4 { top: 60%; right: 35%; animation-delay: 0.9s; }

@keyframes pinPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Flying Elements */
.travel-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.flying-plane {
    position: absolute;
    font-size: 30px;
    color: #fff;
    animation: flyAround 8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.plane-1 {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
}

.plane-2 {
    top: 60%;
    left: -80px;
    animation-delay: 4s;
}

@keyframes flyAround {
    0% {
        left: -50px;
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        left: 110%;
        transform: rotate(20deg);
    }
}

/* Passport Stamp Effect */
.passport-loader {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.passport-stamp {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px dashed rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: stampRotate 3s linear infinite;
}

.stamp-inner {
    width: 80%;
    height: 80%;
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stamp-icon {
    font-size: 50px;
    color: #fff;
    margin-bottom: 10px;
    animation: iconBounce 1s ease-in-out infinite;
}

.stamp-text {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes stampRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Suitcase Loading */
.suitcase-loader {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 0 auto 30px;
}

.suitcase {
    width: 120px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
}

.suitcase::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: #fff;
    border-radius: 5px 5px 0 0;
}

.suitcase::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #fff;
}

.travel-sticker {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    animation: stickerFloat 2s ease-in-out infinite;
}

.sticker-1 {
    width: 30px;
    height: 30px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.sticker-2 {
    width: 25px;
    height: 25px;
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.sticker-3 {
    width: 35px;
    height: 20px;
    bottom: 15%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes stickerFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 1;
    }
}

/* Compass Navigation */
.compass-loader {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
}

.compass-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.compass-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #fff;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 60px;
    transform-origin: center bottom;
    transform: translate(-50%, -100%) rotate(0deg);
    animation: needleSpin 2s ease-in-out infinite;
}

.compass-needle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 30px solid #ff4757;
}

.compass-needle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 30px solid #fff;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
}

@keyframes needleSpin {
    0%, 20% { transform: translate(-50%, -100%) rotate(0deg); }
    40% { transform: translate(-50%, -100%) rotate(180deg); }
    60%, 100% { transform: translate(-50%, -100%) rotate(360deg); }
}

/* Loading Text Animations */
.loader-text {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

@keyframes textGlow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255,255,255,0.5);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 30px rgba(255,255,255,0.8);
    }
}

/* Tagline */
.loader-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Premium Loading Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.loading-dots span {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,0.6);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Progress Bar Premium */
.loader-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 30px auto 0;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.8) 50%, #fff 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loadProgress 2.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

@keyframes loadProgress {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }
    50% {
        width: 70%;
        background-position: 100% 50%;
    }
    100% {
        width: 100%;
        background-position: 200% 50%;
    }
}

/* Percentage Counter */
.loader-percentage {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: floatParticle 8s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }

@keyframes floatParticle {
    0% {
        bottom: -10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .globe-container {
        width: 120px;
        height: 120px;
    }
    
    .passport-loader,
    .compass-loader {
        width: 140px;
        height: 140px;
    }
    
    .suitcase-loader {
        width: 160px;
        height: 120px;
    }
    
    .loader-text {
        font-size: 22px;
    }
    
    .loader-tagline {
        font-size: 13px;
        letter-spacing: 2px;
    }
    
    .loader-progress {
        width: 250px;
    }
    
    .flying-plane {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 20px;
    }
    
    .loader-tagline {
        font-size: 11px;
    }
    
    .loader-progress {
        width: 200px;
    }
}


/* Loader Container */
.loader-container {
    text-align: center;
    position: relative;
}

/* Airplane Loader Animation */
.plane-loader {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto 30px;
}

.plane {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: flyPlane 2s ease-in-out infinite;
}

.plane i {
    font-size: 50px;
    color: #fff;
    transform: rotate(-45deg);
    display: block;
}

@keyframes flyPlane {
    0%, 100% {
        left: 0;
        top: 0;
    }
    25% {
        left: 140px;
        top: -20px;
    }
    50% {
        left: 140px;
        top: 20px;
    }
    75% {
        left: 0;
        top: 40px;
    }
}

/* Cloud Animation */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    animation: floatCloud 3s ease-in-out infinite;
}

.cloud-1 {
    width: 80px;
    height: 30px;
    top: 10px;
    left: 20px;
    animation-delay: 0s;
}

.cloud-2 {
    width: 60px;
    height: 25px;
    top: 50px;
    right: 30px;
    animation-delay: 1s;
}

.cloud-3 {
    width: 70px;
    height: 28px;
    bottom: 20px;
    left: 40px;
    animation-delay: 2s;
}

@keyframes floatCloud {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(20px);
        opacity: 0.6;
    }
}

/* Dotted Path Line */
.flight-path {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.5);
    animation: dashPath 2s linear infinite;
}

@keyframes dashPath {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.3;
    }
}

/* Loading Text */
.loader-text {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Loading Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress Bar */
.loader-progress {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    animation: loadProgress 2s ease-in-out infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Alternative: Suitcase Loader */
.suitcase-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.suitcase-loader i {
    font-size: 60px;
    color: #fff;
    animation: shakeSuitcase 1s ease-in-out infinite;
}

@keyframes shakeSuitcase {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Alternative: Globe Loader */
.globe-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.globe-loader i {
    font-size: 80px;
    color: #fff;
    animation: spinGlobe 3s linear infinite;
}

@keyframes spinGlobe {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Tagline */
.loader-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .plane-loader {
        width: 150px;
        height: 80px;
    }
    
    .plane {
        width: 40px;
        height: 40px;
    }
    
    .plane i {
        font-size: 35px;
    }
    
    .loader-text {
        font-size: 20px;
    }
    
    .loader-progress {
        width: 200px;
    }
}
