/* ===============================
   Mobile Devices: 0 to 480px 
   =============================== */
@media only screen and (max-width: 480px) {

    .navdiv {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 5px 10px;
    }

    .logo-title {
        order: 1;
        display: flex;
        align-items: center;

    }

    .logo {
        margin-left: -25px;
    }

    .navdiv h1 {
        order: 2;
        margin-left: 140px;
        font-size: 1.5rem;
        color: white;
    }

    .hamburger {
        order: 3;
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
    }

    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #navLinks {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgb(8, 32, 91);
        padding: 10px 0;
        margin-top: 5px;
    }

    #navLinks.active {
        display: flex;
    }

    .dropdown-nav-content {
        /* display: none;
        flex-direction: column;
        width: 100%;
        background: rgb(247, 242, 237);
        padding-left: 20px; */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-nav.active .dropdown-nav-content {
        /* display: flex; */
        max-height: 500px;
    }

    body,
    html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        /* prevent sideways scroll */
    }

    /* Center all sections */
    .video-overlay-text,
    .parallax-video-content,
    .highlights,
    .our-branches,
    .footer-container {
        text-align: center;
        margin: 0 auto;
        padding: 0 10px;
    }

    /* Resize video overlay text */
    .video-overlay-text h2 {
        font-size: 1.6rem;
    }

    .video-overlay-text p {
        font-size: 1rem;
    }

    /* Parallax text */
    .parallax-video-content h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .parallax-video-content p {
        font-size: 1rem;
        padding: 10px;
    }

    /* Feature cards stack nicely */
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
        margin-bottom: 20px;
    }

    /* Branch cards stack */
    .branches-grid {
        flex-direction: column;
        align-items: center;
    }

    .branches-card {
        width: 90%;
        margin-bottom: 20px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .flex-row-container {
        flex-direction: column;
        /* stack items vertically */
        align-items: center;
        /* center boxes horizontally */
    }

    .flex-row-container .box {
        max-width: 100%;
        /* full width on small screens */
        flex: none;
        /* reset flex-grow/shrink/basis */
    }

    .intro__title {
        font-size: 1.5rem;
    }

    .accommodation {
        height: 40vh;
        margin-top: -40px;
    }


    .intro-image {
        margin-top: -40px;
        max-height: 40vh;
    }

    .deluxe {
        margin-top: -40px;
        max-height: 40vh;
    }

    .image-slideshow img {
        height: auto;
        max-height: 40vh;
    }

    .image-slideshow .column {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .caption-container {
        font-size: 0.9rem;
    }

    .prev,
    .next {
        font-size: 18px;
        padding: 8px;
    }

        .homepage-offer {
        margin: 15px 0;
    }

    .offer-content {
        max-width: 90%;
    }

    .offer-content h2 {
        font-size: 1.4rem;
        color: #bbccff;
    }

    .offer-content p {
        font-size: 0.9rem;
        color: #fff;
    }

    .offer-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    /* overlays slightly darker for readability on small screens */
    .offer-overlay.left {
        width: 35%;
        background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
    }
    .offer-overlay.top,
    .offer-overlay.bottom {
        height: 25%;
    }

}

/* ============================================
   Tablet: 481px to 1024px
   ============================================ */
@media only screen and (min-width: 481px) and (max-width: 1024px) {
    .hamburger {
        display: none;
        /* no hamburger on tablet */
    }

    nav {
        width: 100%;
        background: rgb(20, 50, 110);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .topbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        text-align: center;
    }

    .logo-title {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .logo img {
        max-height: 60px;
    }

    .logo-title h1 {
        margin: 0;
        font-size: 2rem;
        white-space: nowrap;
    }

    #navLinks {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        background: rgb(8, 32, 91);
        padding: 12px 0;
        margin: 0;
        list-style: none;
        border-radius: 6px;
    }

    #navLinks>li {
        flex: 0 1 auto;
        text-align: center;
        min-width: 120px;
        margin: 5px 10px
    }

    #navLinks>li>a {
        display: block;
        padding: 12px 15px;
        color: white;
        text-decoration: none;
        font-size: 1rem;
    }

    .dropdown-nav-content {
        display: contents !important;

    }

    .dropdown-nav-content li a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
        color: white;
    }
        .offer-content {
        max-width: 80%;
        padding: 15px;
    }

    .offer-content h2 {
        font-size: 1.8rem;
    }

    .offer-content p {
        font-size: 1rem;
    }

    .offer-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .offer-overlay.left {
        width: 25%;
    }


}

/* ============================================
   Desktop Devices: 769px or more 
   ============================================ */

@media only screen and (min-width: 769px) {
    .hamburger {
        display: none;
    }

    #navLinks {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        gap: 20px;
        background: none;
    }

    .dropdown-nav-content {
        display: none;
        position: absolute;
    }

    .dropdown-nav:hover .dropdown-nav-content {
        display: block;
    }

    .offer-content {
        max-width: 70%;
        padding: 20px;
    }

    .offer-content h2 {
        font-size: 2.5rem;
    }

    .offer-content p {
        font-size: 1.2rem;
    }

    .offer-btn {
        padding: 12px 22px;
        font-size: 1.1rem;
    }
}