/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1.2s ease-in-out;
}

/* This creates a separate layer JUST for the background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Move your original background properties here */
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('../assets/Main.jpeg') no-repeat;
    background-size: cover;
    background-position: center;

    /* === THE BLUR SETTINGS === */
    filter: blur(6px);
    /* Adjust this number to make it more/less blurry */
    transform: scale(1.2);
    /* Zooms in slightly to hide white blurred edges */
    z-index: -1;
    /* Puts this layer BEHIND the text */
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin: 0 0 18px 0;
    animation: slideDown 1s ease;
}

/* ==================== SEARCH BOX WITH GLOW ANIMATION ==================== */
.search-box {
    background: rgba(255, 255, 255, 0.25);
    /* Translucent white */
    backdrop-filter: blur(12px);
    /* The Frost Effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Subtle border */
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    width: min(900px, 95%);
    display: flex;
    gap: 15px;
}

.search-box:focus-within {
    box-shadow: 0 8px 30px rgba(232, 172, 32, 0.5);
    transform: translateY(-2px);
}

.search-box input {
    padding: 12px;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    flex: 1;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box input {
    transform: translateY(2px);
    
        /* Shrinks shadow to look "pressed" */
    box-shadow: 0 2px 5px rgba(232, 172, 32, 0.3);
}

.search-box button {
    background: linear-gradient(135deg, var(--main-color) 0%, #d49b1d 100%);
    color: white;;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(232, 172, 32, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.search-box button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(232, 172, 32, 0.5);
    background: linear-gradient(135deg, #f5c564 0%, #e8ac20 100%);
}
.search-box button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(232, 172, 32, 0.3);
}

/* ==================== TRENDING PILLS ==================== */
.trending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.pill-label {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pill {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 2px solid var(--main-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pill:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 172, 32, 0.4);
}

.pill:active {
    transform: translateY(0) scale(1);
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    border: none;
    border-top: 2px solid rgba(232, 172, 32, 0.3);
}

/* ==================== INSPIRE ME SECTION ==================== */
.inspire-section {
    display: block;
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Updated to match "Featured Destinations" exactly */
.inspire-header {
    font-size: 2.5rem;
    /* Increased from 1.8rem */
    font-weight: 800;
    /* Increased from 700 */
    color: var(--text-dark);
    margin-bottom: 40px;
    /* Increased margin */
    position: relative;
    text-align: center;
    /* Ensures it is centered */
}

.inspire-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Moved down slightly */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    /* Wider line (was 80px) */
    height: 4px;
    /* Thicker line (was 3px) */
    background: var(--main-color);
    border-radius: 2px;
}

.inspire-me-btn {
    background: rgba(232, 172, 32, 0.9);
    color: white;
    border: 2px solid var(--main-color);
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(232, 172, 32, 0.3);
}

.inspire-me-btn:hover {
    background: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 172, 32, 0.5);
}

.inspire-me-btn:active {
    transform: translateY(-1px);
}

.inspire-icon {
    font-size: 1.3rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

/* Responsive adjustments for inspire section */
@media(max-width: 768px) {
    .inspire-header {
        font-size: 2rem;
    }
    
    .inspire-me-btn {
        padding: 10px 22px;
        font-size: 1rem;
    }
}

/* ==================== CAROUSEL SECTION ==================== */
.carousel-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1.4s ease-in-out;
}

#carousel-wrapper {
    display: block;
}

.results {
    padding: 0;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.results:empty {
    display: none;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-content {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.carousel-info {
    background: white;
    padding: 30px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
    margin: 0 0 15px 0;
}

.carousel-fact {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--main-color);
    transform: scale(1.3);
}

.indicator:hover {
    background: #f5c564;
}

/* ==================== WHY WEGO SECTION ==================== */
.why-wego-section {
    padding: 60px 20px;
    background: var(--bg-light);
    animation: fadeIn 1.5s ease-in-out;
}

.why-wego-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(232, 172, 32, 0.25);
    border-color: var(--main-color);
}

.why-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.why-card:nth-child(2) .why-icon {
    animation-delay: 0.5s;
}

.why-card:nth-child(3) .why-icon {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.why-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.why-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card .body {
    padding: 14px;
    flex: 1;
}

.card h3 {
    margin: 0 0 8px 0;
    color: var(--main-color);
}

.card p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.view-more-btn {
    display: inline-block;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-top: 12px;
    align-self: flex-start;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 172, 32, 0.4);
    background: #d69c1a;
}

.view-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(232, 172, 32, 0.3);
}

/* ==================== MODAL (KEPT FOR COMPATIBILITY) ==================== */
#detailModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modalCard {
    background: white;
    max-width: 600px;
    margin: 5% auto;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: scaleUp 0.4s ease-out;
}

.modalCard img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.modalCard .content {
    padding: 20px 25px;
}

.modalCard h2 {
    margin: 0 0 10px 0;
    color: var(--main-color);
}

.modalCard p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#closeModal:hover {
    transform: scale(1.1) rotate(90deg);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .trending-pills {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .pill-label {
        text-align: center;
    }

    .pill {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .inspire-section {
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }

    .section-heading {
        font-size: 2rem;
    }

    .carousel-content {
        height: 400px;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .why-wego-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .trending-pills {
        margin-top: 20px;
    }
}
/* ==================== SEARCH RESULTS ANIMATION ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(1.2);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    /* This makes the card invisible initially until the animation starts */
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@media(max-width: 768px) {
    .carousel-slide {
        flex-direction: column !important;
    }

    .carousel-image {
        width: 100%;
        height: 180px !important;
        flex-shrink: 0;
    }

    .carousel-content {
        height: 330px !important;
    }

    .carousel-info {
        width: 100%;
        flex: 1;
        height: auto !important;
        padding:  5px 5px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .carousel-btn {
        top: 90px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
}