/* ============================
   HAMBURGER BUTTON
   ============================ */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

/* ============================
   MOBILE MENU OVERLAY
   ============================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    padding: 60px 0 0;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
}
.mobile-menu-overlay.open {
    display: flex;
}
.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #2a3a38;
    padding: 4px 8px;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-menu-nav > a,
.mobile-menu-group {
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-nav > a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}
.mobile-menu-nav > a:hover { color: #648381; }
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.mobile-arrow {
    color: #648381;
    font-size: 1.1rem;
}
.mobile-menu-sub {
    display: none;
    background: #f7fafa;
    border-top: 1px solid #eee;
}
.mobile-menu-sub.open {
    display: block;
}
.mobile-menu-sub a {
    display: block;
    padding: 13px 24px 13px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #648381;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.mobile-menu-sub a:hover { background: #edf3f3; }

/* ============================
   MOBILE
   ============================ */
@media (max-width: 767px) {

    .hamburger-btn { display: flex !important; }

    /* Collapse the original navbar to just show the hamburger */
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 12px 20px !important;
        gap: 0 !important;
        overflow: hidden !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* Hide all original nav items */
    .navbar > a,
    .navbar > .dropdown {
        display: none !important;
    }

    /* Photo grid fix */
    .trail-photo-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }
    .photo-main { height: 220px; }
    .photo-stack {
        grid-template-rows: unset !important;
        grid-template-columns: 1fr 1fr;
        height: 120px;
    }
}
