/* =========================================
   MD CENTRES - NAVBAR
========================================= */

:root {
    --navy: #071c68;
    --navy-dark: #06175b;
    --white: #ffffff;
    --navbar-bg: #f5f5f5;
}


/* =========================================
   TOP CONTACT BAR
========================================= */

.top-bar {
    width: 100%;
    background: var(--navy);
    color: var(--white);
}

.top-bar-inner {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0;
}

.top-bar a {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 18px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    border-right: 1px solid rgba(255, 255, 255, 0.65);
}

.top-bar a:last-child {
    border-right: 0;
}

.top-bar a:hover {
    opacity: 0.8;
}


/* =========================================
   MAIN NAVBAR
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    position: sticky;
    width: 100%;
    background: #f5f5f5;
}

.navbar-inner {
    min-height: 90px;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    align-items: center;
}


/* =========================================
   LOGO
========================================= */

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    width: 105px;
    height: 70px;

    display: block;
}


/* =========================================
   MAIN NAVIGATION
========================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 55px;
}

.main-nav>a,
.dropdown-toggle {
    position: relative;

    padding: 15px 0;

    color: var(--navy);

    background: none;
    border: 0;

    font-family: inherit;
    font-size: 20px;
    font-weight: 500;

    text-decoration: none;

    cursor: pointer;

    transition: color 0.2s ease;
}

.main-nav>a:hover,
.dropdown-toggle:hover {
    color: #3154a1;
}


/* =========================================
   LOCATION DROPDOWN
========================================= */

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;

    gap: 9px;
}

.dropdown-toggle::after {
    content: "";

    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--navy);

    margin-top: 4px;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 5px);
    left: 50%;

    min-width: 210px;

    padding: 8px 0;

    background: #fff;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%) translateY(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;

    padding: 13px 20px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #fff;
    background: var(--navy);
}


/* =========================================
   BOOK NOW BUTTON
========================================= */

.main-nav .btn-book {
    position: absolute;

    right: max(calc((100% - 1180px) / 2),
            5%);

    padding: 14px 25px;

    color: #fff;
    background: var(--navy);

    font-size: 18px;
    font-weight: 700;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.main-nav .btn-book:hover {
    color: #fff;
    background: #102d83;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


/* =========================================
   MOBILE TOGGLE
========================================= */

.nav-toggle {
    display: none;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;

    margin-left: auto;

    color: var(--navy);
    background: transparent;

    border: 1px solid var(--navy);

    font-size: 25px;

    cursor: pointer;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .top-bar-inner {
        padding: 8px 20px;

        flex-wrap: wrap;

        row-gap: 8px;
    }

    .top-bar a {
        font-size: 12px;
    }

    .navbar-inner {
        grid-template-columns: 180px 1fr;
        min-height: 100px;
    }

    .navbar-logo img {
        width: 110px;
    }

    .main-nav {
        gap: 30px;
    }

    .main-nav>a,
    .dropdown-toggle {
        font-size: 17px;
    }

    .main-nav .btn-book {
        position: static;

        padding: 12px 20px;

        font-size: 16px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    /* Hide desktop contact bar */

    .top-bar {
        display: none;
    }


    /* Navbar */

    .navbar-inner {
        position: relative;

        min-height: 80px;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* Logo */

    .navbar-logo img {
        width: 90px;
    }


    /* Hamburger */

    .nav-toggle {
        display: flex;
    }


    /* Mobile navigation */

    .main-nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 0;

        background: #fff;

        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);

        z-index: 1200;
    }

    .main-nav.active {
        display: flex;
    }


    /* Mobile links */

    .main-nav>a,
    .dropdown-toggle {
        width: 100%;

        padding: 16px 20px;

        text-align: left;

        font-size: 16px;

        border-bottom: 1px solid #eee;
    }


    /* Book button */

    .main-nav .btn-book {
        position: static;

        width: auto;

        margin: 15px 20px;

        padding: 14px 20px;

        text-align: center;

        color: #fff;
        background: var(--navy);

        border: 0;
    }


    /* Location dropdown */

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;

        width: 100%;
        min-width: 0;

        padding: 0;

        opacity: 1;
        visibility: visible;

        transform: none;

        box-shadow: none;

        display: none;

        background: #f5f5f5;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 14px 35px;

        border-bottom: 1px solid #e5e5e5;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .navbar-inner {
        min-height: 72px;
    }

    .navbar-logo img {
        width: 80px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;

        font-size: 22px;
    }
}