.carousel {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
}

.carousel-caption {
    position: relative;
    left: 10% !important;
    top: 2% !important;
    right: auto !important;
    bottom: auto !important;
    text-align: left !important;
    padding: 2rem 1.5rem !important;
    border-radius: 0 0 20px 0;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    max-width: 80%;
}

.fixed-card-wrapper {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 350px;
    max-width: 90%;
    border-radius: 12px;
    transform: translateY(-50%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    text-align: center;
}

.download-card-container {
    position: absolute;
    bottom: 30%;
    left: 10%;
    display: flex;
    align-items: center;
    border-radius: 10px;
    width: auto;
    max-width: 80%;
}

@media (max-width: 1024px) {
    .carousel-caption {
        max-width: 90%;

        padding: 1.5rem 1rem !important;
    }

    .fixed-card-wrapper {
        width: 300px;
    }
}

/* Previous CSS remains the same until the mobile breakpoint */

/* @media (max-width: 768px) {

    .carousel,
    .carousel-item {
        height: auto;
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .carousel-caption {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 90%;
        max-width: 100%;
        color: #000;
        padding: 1rem !important;
        margin: 1rem auto;
        text-align: center !important;
    }

    .fixed-card-wrapper {
        position: relative;
        width: 90%;
        margin: 1rem auto;
        transform: none;
        top: auto;
        right: auto;
    }

    .download-card-container {
        position: relative;
        width: 90%;
        margin: 1rem auto;
        left: auto;
        bottom: auto;
        justify-content: center;
    }
} */
@media (max-width: 768px) {

    /* Hide carousel in mobile view */
    .carousel {
        display: none !important;
    }

    /* Ensure the booking engine appears first */
    .fixed-card-wrapper {
        position: relative;
        width: 90%;
        margin: 1rem auto;
        transform: none;
        top: auto;
        right: auto;
        display: block !important;
    }

    /* Ensure the download card appears after booking engine */
    .download-card-container {
        position: relative;
        width: 90%;
        margin: 1rem auto;
        left: auto;
        bottom: auto;
        justify-content: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Rest of the CSS remains the same */
@media (max-width: 576px) {
    .carousel-caption {
        padding: 0.75rem !important;
    }

    .fixed-card-wrapper {
        width: 95%;
        padding: 1rem;
    }
}