/* ===== TOP BAR ===== */

.topbar{
    height:40px;
    background:#0B1D28;
    color:#fff;
    display:flex;
    align-items:center;
}

.topbar-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:24px;
}

.top-item{
    display:flex;
    align-items:center;
    gap:6px;
    color:#fff;
    font-family:"Manrope",sans-serif;
    font-size:14px;
    font-weight:400;
    line-height:1;
    text-decoration:none;
}

.top-item img{
    width:14px;
    height:14px;
    object-fit:contain;
}

.top-item:hover{
    opacity:.9;
}

@media (max-width:768px){
    .topbar{
        display:none;
    }
}

/* ================= HEADER ================= */

.header{
    height:78px;
    background:#FFFFFF;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
}

.header-content{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.logo img{
    height:50px;
    width:auto;
    display:block;
}

.navbar{
    display:flex;
    align-items:center;
    gap:34px;
}

.navbar a,
.dropdown a{
    font-family:var(--font-heading);
    font-size:16px;
    font-weight:500;
    color:var(--text);
    transition:.25s;
}

.navbar a:hover,
.dropdown:hover a,
.navbar .active{
    color:var(--teal);
}

.dropdown{
    display:flex;
    align-items:center;
    gap:4px;
    cursor:pointer;
}

.dropdown img{
    width:14px;
    height:14px;
}

.btn-book{
    height:46px;
    padding:0 24px;
    border-radius:999px;
    background:var(--teal);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:var(--font-heading);
    font-size:14px;
    font-weight:600;
    transition:.3s;
    white-space:nowrap;
}

.btn-book:hover{
    background:#1687A5;
}

/* Hide the mobile-only pieces of the menu on desktop */
.navbar-mobile-head,
.navbar-mobile-cta,
.nav-close,
.nav-toggle,
.nav-overlay{
    display:none;
}

/* ================= DROPDOWN (DESKTOP) ================= */

.dropdown{
    position:relative;
}

.drop-btn{
    background:none;
    border:none;
    display:flex;
    align-items:center;
    gap:4px;
    font-family:var(--font-heading);
    font-size:16px;
    font-weight:500;
    color:var(--text);
    cursor:pointer;
}

.drop-arrow{
    display:inline-block;
    transition:transform .2s ease;
}

/*
   The dropdown-menu now sits flush against the button (top:100%)
   with NO gap, so the hoverable area is continuous from the button
   straight down into the menu. The visual "floating" gap is created
   with padding-top instead of position offset/margin, and the actual
   white card is the nested .dropdown-menu-inner. This stops the menu
   from closing when the cursor crosses the old gap on its way down.
*/
.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    padding-top:14px;
    width:250px;
    display:none;
    z-index:1001;
}

.dropdown-menu-inner{
    width:100%;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:0 16px 40px rgba(0,0,0,.08);
    padding:10px 0;
    max-height:70vh;
    overflow-y:auto;
}

.dropdown-menu a{
    display:block;
    padding:12px 18px;
    font-family:var(--font-body);
    font-size:15px;
    color:var(--body);
}

.dropdown-menu a:hover{
    background:var(--sky);
    color:var(--teal);
}

.navbar > a{
    color:#111111;
}

.navbar > a.active{
    color:#006780 !important;
    font-weight:600;
}

/* Desktop-only hover behaviour (pointer devices, wide viewport) */
@media (min-width:993px){
    .dropdown:hover .dropdown-menu{
        display:block;
    }

    .dropdown:hover .drop-arrow{
        transform:rotate(180deg);
    }
}

/* Touch/click-driven state (used on all sizes via JS, and is the
   only way the menu opens on tablet/mobile) */
.dropdown.open .dropdown-menu{
    display:block;
}

.dropdown.open .drop-arrow{
    transform:rotate(180deg);
}


/* ======================================================
   TABLET & MOBILE NAV (<=992px)
====================================================== */
@media (max-width:992px){

    .header-content{
        position:relative;
    }

    /* Hamburger button */
    .nav-toggle{
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:5px;
        width:44px;
        height:44px;
        background:none;
        border:none;
        cursor:pointer;
        z-index:1201;
        order:3;
    }

    .nav-toggle span{
        display:block;
        width:24px;
        height:2px;
        background:var(--text);
        border-radius:2px;
        transition:transform .25s ease, opacity .25s ease;
    }

    .nav-toggle.active span:nth-child(1){
        transform:translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2){
        opacity:0;
    }

    .nav-toggle.active span:nth-child(3){
        transform:translateY(-7px) rotate(-45deg);
    }

    /* Header CTA next to logo is hidden; it reappears inside the
       mobile menu instead so the header stays uncluttered */
    .header-cta-desktop{
        display:none;
    }

    /* Slide-in mobile menu panel */
    .navbar{
        position:fixed;
        top:0;
        right:0;
        height:100vh;
        width:min(320px, 84vw);
        background:#fff;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding:0 0 32px;
        overflow-y:auto;
        box-shadow:-10px 0 40px rgba(11,29,40,.15);
        transform:translateX(100%);
        transition:transform .3s ease;
        z-index:1200;
    }

    .navbar.open{
        transform:translateX(0);
    }

    .navbar-mobile-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:20px 22px;
        border-bottom:1px solid var(--border);
        margin-bottom:8px;
    }

    .navbar-mobile-logo img{
        height:38px;
        width:auto;
    }

    .nav-close{
        display:flex;
        align-items:center;
        justify-content:center;
        width:36px;
        height:36px;
        background:none;
        border:none;
        font-size:28px;
        line-height:1;
        color:var(--text);
        cursor:pointer;
    }

    .navbar > a,
    .navbar .dropdown{
        width:100%;
        border-bottom:1px solid var(--border);
    }

    .navbar > a{
        display:block;
        padding:14px 22px;
    }

    .navbar .dropdown{
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding:0;
    }

    .drop-btn{
        width:100%;
        justify-content:space-between;
        padding:14px 22px;
    }

    /* Inside the mobile drawer the dropdown behaves like an
       accordion instead of a floating card */
    .dropdown-menu{
        position:static;
        width:100%;
        padding-top:0;
        display:none;
    }

    .dropdown.open .dropdown-menu{
        display:block;
    }

    .dropdown-menu-inner{
        border:none;
        border-radius:0;
        box-shadow:none;
        background:var(--sky);
        max-height:none;
        padding:4px 0;
    }

    .dropdown-menu a{
        padding:12px 34px;
    }

    .navbar-mobile-cta{
        display:flex;
        margin:20px 22px 0;
        width:calc(100% - 44px);
    }

    /* Dark backdrop behind the open menu */
    .nav-overlay{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(11,29,40,.45);
        opacity:0;
        pointer-events:none;
        transition:opacity .3s ease;
        z-index:1150;
    }

    .nav-overlay.active{
        opacity:1;
        pointer-events:auto;
    }
}

@media (max-width:480px){

    .header{
        height:66px;
    }

    .logo img{
        height:40px;
    }

    .navbar{
        width:100%;
        max-width:340px;
    }
}

/* Lock background scroll while the mobile menu is open */
body.nav-open{
    overflow:hidden;
}
