/* --- Global Styles --- */
:root {
    --primary: #006ce4; /* Booking.com / Yatra Blue */
    --secondary: #febb02; /* Highlight Yellow */
    --text-dark: #1a1a1a;
    --text-light: #6b6b6b;
    --success: #008234;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f5f7fa; /* Light Gray Background for content */
}

h1, h2, h3, h4, h5 { font-family: 'Roboto', sans-serif; }

a { text-decoration: none; }

/* --- Top Bar --- */
.top-bar {
    background-color: #003580; /* Dark Corporate Blue */
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar i { opacity: 0.8; }
.social-links a { color: white; margin-left: 15px; opacity: 0.8; transition: 0.3s; }
.social-links a:hover { opacity: 1; }

/* --- Navbar --- */
.navbar {
    border-bottom: 1px solid #e7e7e7;
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* 🚁 Helicopter Animation */
.heli-animation-container {
    width: 40px;
    height: 30px;
    position: relative;
    overflow: hidden;
}
.heli-icon {
    font-size: 1.5rem;
    position: absolute;
    left: -40px;
    transition: none;
}

/* Hover over navbar-brand triggers animation */
.navbar-brand:hover .heli-icon {
    animation: flyHeli 2s linear forwards;
}

@keyframes flyHeli {
    0% { left: -30px; transform: translateY(0) rotate(-5deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100px; transform: translateY(-5px) rotate(0deg); opacity: 0; }
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 8px 8px;
}
.dropdown-item { padding: 10px 20px; font-size: 0.9rem; }
.dropdown-item:hover { background-color: #f0f7ff; color: var(--primary); }

/* --- Hero Section & Search Widget --- */
.hero-section {
    position: relative;
    height: 550px; /* Reduced height for clean OTA look */
    background-color: #003580;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Placeholder for Himalayas Image */
    background: url('https://images.unsplash.com/photo-1518182170546-0766be6f5a56?q=80&w=1920&auto=format&fit=crop') center/cover;
    opacity: 0.6;
}

.hero-bg--home {
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=80&w=1920&auto=format&fit=crop') center/cover;
    background-attachment: fixed;
}

/* THE FLOATING WIDGET */
.search-widget-container {
    position: absolute;
    bottom: -50px; /* Overlaps bottom of hero */
    left: 0; right: 0;
    z-index: 10;
}

.search-widget {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
    /* The YatraGo Style Box Shadow */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.form-control {
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 0.9rem;
}
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}
.input-group-text { background: white; border-color: #ced4da; }

.spacer-80 { height: 80px; } /* Creates space below hero for the overlapped widget */

/* --- Packages --- */
.package-card {
    transition: 0.3s ease;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.card-img-top img {
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}
.package-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Premium package styling (no visible prices) */
.package-premium-meta .badge {
    background: linear-gradient(90deg, #f7c948 0%, #d4af37 100%);
    color: #2b2b2b;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(212,175,55,0.18);
}
.package-premium-meta small {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Emphasize the primary action and reduce visual weight of price area */
.package-card .btn-outline-primary {
    border-color: rgba(0,108,228,0.12);
    color: var(--primary);
}
.package-card .btn-outline-primary:hover {
    background: linear-gradient(90deg, rgba(0,108,228,0.06), rgba(0,108,228,0.02));
    border-color: rgba(0,108,228,0.18);
}

.divider { width: 60px; height: 3px; border-radius: 2px; }
.ls-2 { letter-spacing: 2px; }

/* --- Service Icon Box --- */
.service-icon-box {
    background: white;
    border: 1px solid #eee;
    transition: 0.3s;
}
.service-icon-box:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* --- Attractions Tiles (Home) --- */
.attraction-tile {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1b33;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.attraction-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.70) 100%);
    z-index: 1;
}

.attraction-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.20) 40%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.85s ease;
    z-index: 2;
    pointer-events: none;
}

.attraction-tile img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
    display: block;
}

.attraction-tile__overlay {
    position: absolute;
    inset: auto 16px 16px 16px;
    z-index: 3;
    color: #fff;
}

.attraction-tile__overlay p { opacity: 0.92; }

.attraction-tile__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.attraction-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.18);
}

.attraction-tile:hover img { transform: scale(1.10); }
.attraction-tile:hover::after { transform: translateX(120%); }

/* --- Testimonials (Home) --- */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,108,228,0.22);
    box-shadow: 0 24px 55px rgba(0,0,0,0.10);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #0048a0 100%);
    box-shadow: 0 12px 30px rgba(0,108,228,0.20);
}

/* --- CTA Section (Home) --- */
.cta-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0,108,228,0.88) 0%, rgba(0,53,128,0.92) 100%),
        url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?q=80&w=1920&auto=format&fit=crop') center/cover;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: rgba(254,187,2,0.10);
    border-radius: 50%;
    filter: blur(0px);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -45%;
    left: -8%;
    width: 420px;
    height: 420px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(26px); }
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--primary);
}

footer a:hover { 
    color: var(--secondary) !important; 
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: white;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    z-index: 99;
    border: 2px solid var(--primary);
    background-color: white;
    color: var(--primary);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary);
    color: white;
    bottom: 40px;
}

.back-to-top.show {
    display: flex !important;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section { height: auto; padding: 100px 0 100px; }
    .search-widget-container { position: relative; bottom: 0; margin-top: -50px; }
    .spacer-80 { height: 20px; }
    .attraction-tile img { height: 240px; }
    .hero-bg--home { background-attachment: scroll; }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top:hover {
        bottom: 25px;
    }
}

/* --- Premium Navbar Styles --- */

/* 1. Glassmorphism & Sticky Behavior */
.premium-nav {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(12px); /* The "Glass" blur effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0; /* More breathing room/Premium feel */
    transition: all 0.3s ease;
}

/* When scrolling (added via JS later), we can compact it slightly */
.premium-nav.shadow {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; /* Soft premium shadow */
}

/* 2. Menu Items & Readability */
.navbar-nav .nav-item {
    position: relative; /* Needed for the helicopter positioning */
    margin: 0 5px;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    position: relative;
    transition: color 0.3s ease;
    z-index: 1;
}

/* 3. THE HOVER HELICOPTER ANIMATION 🚁 */
/* We use a pseudo-element to create the icon without adding HTML */
.navbar-nav .nav-link::before {
    content: '\f533'; /* FontAwesome Helicopter Unicode */
    font-family: "Font Awesome 5 Free"; /* Ensure FA is loaded */
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 0; /* Start position (hidden behind text or slightly left) */
    transform: translateY(-50%) scale(0); /* Hidden initially */
    color: var(--secondary); /* Yellow helicopter */
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy effect */
    z-index: -1;
}

/* Hover State */
.navbar-nav .nav-item:hover .nav-link {
    color: var(--primary) !important;
    padding-left: 28px !important; /* Make space for the helicopter */
}

.navbar-nav .nav-item:hover .nav-link::before {
    opacity: 1;
    left: 5px; /* Fly into view */
    transform: translateY(-50%) scale(1) rotate(-10deg); /* Tilt slightly */
}

/* Active State styling */
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 20px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* 4. Dropdown Premium Look */
.dropdown-menu {
    border: none;
    border-radius: 12px; /* Softer corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 15px; /* Gap from nav */
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--primary);
    padding-left: 20px; /* Slight nudge on hover */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. Call to Action Button Glow */
.btn-glow {
    box-shadow: 0 4px 15px rgba(0, 108, 228, 0.3);
    transition: all 0.3s ease;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 108, 228, 0.4);
}

/* --- Wedding Gallery & Premium Modal --- */
.premium-gallery .gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    display: inline-flex;
    padding: 0;
    background: white;
}
.premium-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}
.premium-gallery .gallery-thumb:hover img {
    transform: scale(1.06) translateY(-4px);
    filter: saturate(1.05) contrast(1.02);
}

.image-modal {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: none;
    z-index: 9999; /* above navbar */
    align-items: center;
    justify-content: center;
}
.image-modal.show { display: flex; }
.image-modal__backdrop {
    position: absolute; inset: 0; background: rgba(8,10,20,0.6); backdrop-filter: blur(6px);
}
.image-modal__inner {
    position: relative;
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: 0 auto;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: env(safe-area-inset-top, 20px) 10px env(safe-area-inset-bottom, 28px);
}
.image-modal__stage {
    flex: 1 1 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-height: 80vh;
}
.image-modal__img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease, opacity 0.25s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border-radius: 8px;
}
.image-modal__caption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 8px; font-size: 0.95rem; }

.image-modal__nav {
    background: rgba(255,255,255,0.06);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
    backdrop-filter: blur(6px);
}
.image-modal__nav:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.image-modal__prev { margin-left: 10px; }
.image-modal__next { margin-right: 10px; }

.image-modal__close {
    position: absolute;
    top: calc(-18px + env(safe-area-inset-top, 0px));
    right: -18px;
    z-index: 3;
    background: #fff;
    color: var(--text-dark);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.image-modal__close:focus { outline: none; }

@media (max-width: 768px) {
    .image-modal__inner { flex-direction: column; gap: 12px; }
    .image-modal__nav { width: 44px; height: 44px; }
    .image-modal__stage { min-height: 48vh; max-height: 68vh; }
    .premium-gallery .gallery-thumb { border-radius: 10px; }
}

/* ensure modal is above header; header likely has z-index lower */
.navbar, #header { z-index: 1000; }