/* ===================================
        GOOGLE FONT & RESET
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#2563eb;
    --primary-light:#3b82f6;
    --secondary:#0f172a;
    --accent:#38bdf8;
    --bg:#f8fafc;
    --card:#ffffff;
    --text:#1e293b;
    --gray:#64748b;
    --border:#e2e8f0;
    --shadow:0 20px 50px rgba(15,23,42,.08);
    --shadow-hover:0 30px 60px rgba(15,23,42,.15);
    --radius:24px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

/* ===================================
            SCROLLBAR
=================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#edf2f7;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

/* ===================================
            HEADER
=================================== */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:18px 6%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(15,23,42,.82);
    backdrop-filter:blur(18px);
    z-index:1000;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-size:1.5rem;
    font-weight:700;
}

.logo i{
    color:var(--accent);
}

.navbar{
    display:flex;
    align-items:center;
    gap:30px;
}

.navbar>a,
.dropdown>a{
    color:#fff;
    font-size:.95rem;
    position:relative;
}

.navbar>a::after,
.dropdown>a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:var(--accent);
    transition:.3s;
}

.navbar>a:hover::after,
.dropdown:hover>a::after{
    width:100%;
}

.header-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.premium-btn{
    padding:12px 24px;
    border:none;
    border-radius:40px;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}

.premium-btn:hover{
    transform:translateY(-3px);
}

.menu-btn{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

/* ===================================
            MEGA MENU
=================================== */

.dropdown{
    position:relative;
}

.mega-menu{
    position:absolute;
    top:55px;
    left:-180px;
    width:700px;
    background:#fff;
    border-radius:22px;
    padding:30px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    box-shadow:var(--shadow-hover);
    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:.35s;
}

.dropdown:hover .mega-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.menu-column h4{
    margin-bottom:15px;
    color:var(--secondary);
}

.menu-column a{
    display:block;
    color:var(--gray);
    margin:10px 0;
    transition:.3s;
}

.menu-column a:hover{
    color:var(--primary);
    padding-left:8px;
}

/* ===================================
        MOBILE DRAWER
=================================== */

.mobile-drawer{
    position:fixed;
    top:0;
    right:-320px;
    width:300px;
    height:100vh;
    background:var(--secondary);
    z-index:2000;
    transition:.4s;
    padding:25px;
}

.mobile-drawer.active{
    right:0;
}

.drawer-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#fff;
    margin-bottom:40px;
}

.drawer-top button{
    background:none;
    border:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

.mobile-drawer a{
    display:block;
    color:#fff;
    margin:18px 0;
    font-size:1rem;
}

/* ===================================
            HERO
=================================== */

.places-hero{
    position:relative;
    height:90vh;
    background:url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1800") center/cover;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
    rgba(15,23,42,.45),
    rgba(15,23,42,.75));
}

.hero-content{
    position:relative;
    text-align:center;
    color:#fff;
    z-index:2;
    max-width:900px;
    padding:20px;
}

.hero-tag{
    display:inline-block;
    padding:8px 18px;
    border-radius:40px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    margin-bottom:25px;
}

.hero-content h1{
    font-size:4.3rem;
    margin-bottom:20px;
}

.hero-content p{
    max-width:700px;
    margin:auto;
    line-height:1.8;
    opacity:.92;
}

/* ===================================
        SEARCH BAR
=================================== */

.hero-search{
    margin-top:40px;
}

.search-wrapper{
    position:relative;
    max-width:700px;
    margin:auto;
}

.search-wrapper i{
    position:absolute;
    top:20px;
    left:20px;
    color:#888;
}

.search-wrapper input{
    width:100%;
    padding:18px 18px 18px 55px;
    border:none;
    border-radius:60px;
    outline:none;
    font-size:1rem;
    box-shadow:var(--shadow);
}

#searchSuggestions{
    position:absolute;
    top:70px;
    width:100%;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-hover);
    display:none;
    z-index:50;
}

.suggestion-item{
    padding:15px 20px;
    cursor:pointer;
    transition:.25s;
}

.suggestion-item:hover{
    background:#eff6ff;
}

/* ===================================
        FILTER BUTTONS
=================================== */

.filter-section{
    padding:50px 6% 10px;
}

.filter-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.filter-btn{
    border:none;
    background:#fff;
    padding:12px 22px;
    border-radius:40px;
    cursor:pointer;
    font-weight:500;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
    background:var(--primary);
    color:#fff;
}

/* ===================================
        FEATURED STRIP
=================================== */

.featured-strip{
    padding:30px 6%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.featured-card{
    background:#fff;
    padding:30px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:.35s;
}

.featured-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-hover);
}

.featured-card i{
    font-size:2rem;
    color:var(--primary);
    margin-bottom:18px;
}

.featured-card p{
    color:var(--gray);
    margin-top:10px;
}

/* ===================================
        DESTINATION GRID
=================================== */

.places-section{
    padding:50px 6% 80px;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
    flex-wrap:wrap;
    gap:20px;
}

.section-header h2{
    font-size:2.4rem;
}

.section-header p{
    color:var(--gray);
}

.place-count{
    background:#fff;
    padding:12px 20px;
    border-radius:40px;
    box-shadow:var(--shadow);
}

.places-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;
}

/* ===================================
        DESTINATION CARD
=================================== */

.place-card{
    position:relative;
    height:460px;
    overflow:hidden;
    border-radius:30px;
    box-shadow:var(--shadow);
    cursor:pointer;
    transition:.4s;
}

.place-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-hover);
}

.place-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .8s ease;
}

.place-card:hover img{
    transform:scale(1.12);
}

.place-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
    transparent 10%,
    rgba(0,0,0,.82));
}

.place-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.12),
    transparent);
    transform:translateX(-120%);
    transition:.8s;
    z-index:2;
}

.place-card:hover::before{
    transform:translateX(120%);
}

.card-content{
    position:absolute;
    left:25px;
    right:25px;
    bottom:25px;
    color:#fff;
    z-index:5;
}

.card-state{
    display:inline-block;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(8px);
    padding:6px 14px;
    border-radius:30px;
    margin-bottom:12px;
    font-size:.85rem;
}

.card-content h3{
    font-size:2rem;
    margin-bottom:8px;
}

.card-rating{
    color:#ffd700;
    margin-bottom:10px;
}

.card-content p{
    font-size:.9rem;
    opacity:.92;
    margin-bottom:18px;
}

.explore-btn{
    display:inline-block;
    padding:10px 20px;
    background:var(--primary);
    border-radius:30px;
    color:#fff;
    transition:.3s;
}

.explore-btn:hover{
    background:var(--primary-light);
}

.badge{
    position:absolute;
    top:20px;
    right:20px;
    background:linear-gradient(
    135deg,
    #f59e0b,
    #f97316);
    color:#fff;
    padding:8px 16px;
    border-radius:30px;
    font-size:.8rem;
    font-weight:600;
    z-index:10;
}

/* ===================================
        AI PLANNER CTA
=================================== */

.planner-banner{
    margin:30px 6% 70px;
    background:linear-gradient(
    135deg,
    #2563eb,
    #38bdf8);
    border-radius:30px;
    padding:70px 30px;
    text-align:center;
    color:#fff;
}

.planner-content h2{
    font-size:2.5rem;
    margin-bottom:15px;
}

.planner-btn{
    display:inline-block;
    margin-top:30px;
    background:#fff;
    color:var(--primary);
    padding:14px 30px;
    border-radius:50px;
    font-weight:600;
}

/* ===================================
        NEWSLETTER
=================================== */

.newsletter{
    padding:70px 6%;
    text-align:center;
}

.newsletter p{
    color:var(--gray);
    margin:15px 0 30px;
}

.newsletter-form{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.newsletter-form input{
    width:380px;
    max-width:100%;
    padding:16px;
    border:1px solid var(--border);
    border-radius:50px;
}

.newsletter-form button{
    border:none;
    background:var(--primary);
    color:#fff;
    padding:16px 28px;
    border-radius:50px;
    cursor:pointer;
}

/* ===================================
            FOOTER
=================================== */

footer{
    background:var(--secondary);
    color:#fff;
    padding:70px 6% 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
}

.footer-grid h3{
    margin-bottom:18px;
}

.footer-grid p,
.footer-grid a{
    color:#cbd5e1;
}

.footer-grid ul{
    list-style:none;
}

.footer-grid li{
    margin:10px 0;
}

.social-icons{
    display:flex;
    gap:15px;
    margin-top:15px;
}

.social-icons a{
    width:42px;
    height:42px;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    transition:.3s;
}

.social-icons a:hover{
    background:var(--primary);
}

.footer-bottom{
    text-align:center;
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,.1);
    padding-top:20px;
    color:#94a3b8;
}

/* ===================================
            LOADER
=================================== */

#loader{
    position:fixed;
    inset:0;
    background:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:9999;
    transition:.5s;
}

.loader-circle{
    width:60px;
    height:60px;
    border:5px solid #dbeafe;
    border-top:5px solid var(--primary);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

#loader h3{
    margin-top:20px;
    color:var(--secondary);
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* ===================================
        SCROLL ANIMATION
=================================== */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* ===================================
        RESPONSIVE
=================================== */

@media(max-width:992px){

    .navbar{
        display:none;
    }

    .menu-btn{
        display:block;
    }

    .hero-content h1{
        font-size:3rem;
    }

}

@media(max-width:768px){

    .places-hero{
        height:80vh;
    }

    .hero-content h1{
        font-size:2.4rem;
    }

    .hero-content p{
        font-size:.95rem;
    }

    .section-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .planner-content h2{
        font-size:2rem;
    }

}

@media(max-width:500px){

    .hero-content h1{
        font-size:2rem;
    }

    .search-wrapper input{
        padding:16px 16px 16px 50px;
    }

    .place-card{
        height:400px;
    }

}