/* === Base Layout === */
.fmm-nav {
    position: relative;
}

.fmm-desktop {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2em 2em;
    background-color: #428477;
    z-index: 9999999;
    width: 100%;
}

.fmm-desktop .logo {
    display: flex;
    justify-content: flex-start;
    flex-shrink: 1;
    max-width: 150px;
}

.fmm-desktop ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 2em;
    font-size: 1.3rem;
}

.fmm-desktop ul a {
    color: #fff !important;
}

/* === Right Side === */
.fmm-desktop .right-side,
.fmm-nav .right-side {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
    flex-shrink: 1;
}

.fmm-nav .right-side .menu-items,
.fmm-nav .right-side .social-icons,
.fmm-nav .right-side .book-btn {
    display: none;
}

.fmm-nav .right-side svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.fmm-nav .right-side .book-btn {
    flex-shrink: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #428477;
    border-radius: 5px;
    padding: 1rem 2rem;
}

/* === Social Icons === */
.social-icons {
    gap: 1.5rem;
    align-items: center;
}

.social-icons a:nth-child(1) svg {
    width: 35px;
    height: 35px;
}

.social-icons a:nth-child(2) svg {
    width: 35px;
    height: 35px;
}

.social-icons a:nth-child(3) svg {
    width: 30px;
    height: 30px;
}

.social-icons a:nth-child(4) svg {
    width: 27px;
    height: 27px;
}

/* === Toggle Button === */
.fmm-toggle {
    width: 30px;
    height: 30px;
    /* smaller height = tighter burger */
    position: relative;
    cursor: pointer;
    z-index: 9999999999;
}

.fmm-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* === Mobile Menu === */
.fmm-mobile {
    display: none;
    background-color: #428477;
    color: white !important;
}

.fmm-mobile.open {
    position: fixed;
    display: block;
    width: 100%;
    top: 100px;
    bottom: 0px;
    transition: all 0.5s;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fmm-mobile .fmm-mobile-inner {
    height: calc(100dvh - 100px);
    padding: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fmm-mobile .fmm-mobile-inner .social-icons {
    display: flex;
    justify-content: center;
}

.fmm-mobile .fmm-mobile-inner .social-icons svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}



.fmm-desktop:has(.open) {
    position: fixed;
}

.fmm-mobile ul li a {
    color: #fff;
    font-size: 30px;
}



.fmm-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.fmm-mobile .fmm-menu li {
    margin: 1em 0;
}

/* === States === */
.fmm-mobile.active {
    display: flex;
}

/* Position spans closer together */
.fmm-toggle span:nth-child(1) {
    top: 4px;
}

.fmm-toggle span:nth-child(2) {
    top: 12px;
    /* center-ish between top and bottom */
}

.fmm-toggle span:nth-child(3) {
    bottom: 7px;
}

/* X animation */
.fmm-toggle.open span:nth-child(1) {
    top: 9.5px;
    transform: rotate(45deg);
}

.fmm-toggle.open span:nth-child(2) {
    opacity: 0;
}

.fmm-toggle.open span:nth-child(3) {
    top: 9.5px;
    bottom: auto;
    transform: rotate(-45deg);
}

.fmm-nav a {
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.fmm-nav a:hover,
.fmm-nav a:hover svg {
    color: rgb(233, 233, 233) !important;
    fill: rgb(233, 233, 233) !important;
}

.fmm-nav a.book-btn:hover {
    background-color: rgb(233, 233, 233);
    color: #428477 !important;
}


/* Container for the sliding line */
.fmm-menu {
    position: relative;

}

.fmm-menu a {
    position: relative;
    text-decoration: none;
    padding-bottom: 4px;
}

.menu-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: left 0.3s ease, width 0.3s ease, top 0.3s ease, opacity 0.2s ease;
    width: 0;
    pointer-events: none;
}

.book-button-mobile {
    margin-top: 0.25rem !important;
    display: inline-block;
    padding: 0.5rem 3rem;
    background-color: white;
    border-radius: 10px;
    width: auto;
}

.book-button-mobile a {
    color: #428477 !important;
}


/* === Media Queries === */
@media (min-width: 768px) {
    .fmm-mobile ul li a:hover {
        color: rgb(243, 243, 232) !important;
        fill: rgb(243, 243, 232) !important;
    }

    .book-button-mobile {
        display: none;
    }

    .fmm-toggle {
        display: none;
    }

    .fmm-mobile .fmm-menu {
        display: flex;
        gap: 2em;
    }

    .fmm-nav .right-side .menu-items {
        display: flex;
    }

    .fmm-nav .right-side .book-btn {
        display: flex;
    }

    .fmm-desktop ul a {
        font-size: 18px !important;
    }

}

@media screen and (min-width: 1024px) {


    .fmm-desktop {
        position: relative;
    }

    .fmm-desktop .logo {
        max-width: 250px;
    }

    .fmm-desktop ul a {
        font-size: 18px !important;
    }
}

@media screen and (min-width: 1500px) {
    .fmm-nav .right-side .social-icons {
        display: flex;
    }

    .fmm-desktop ul a {
        font-size: 22px !important;
    }
}
