/* Mobile layout for Chefchaouen Morocco */
html, body {
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 95%;
    font-family: Verdana, sans-serif;
    width: auto;
    min-width: 0px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Single column layout */
#mainWrapperClip {
    position: relative;
    float: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Legacy mobile styles */
@media only screen and (max-width: 640px) {
    #table1a > tbody > tr > td:nth-child(1), #table1a > tbody > tr > td:nth-child(2), #table1, #table2 > tbody > tr:nth-child(1) {
        display:none
    }

    h1 {
        background: white;
    }

    #table2 p {
        clear: both;
    }

    #table9 > tbody > tr {
        display: none;
    }

    #mapiframe {
        width: 90%;
    }

    .addthis_toolbox {
        overflow: hidden;
    }
}

/* ===== Mobile Menu Navigation ===== */
/* Hide desktop navigation */
.nav-menu {
    display: none !important;
}

/* Mobile Menu Toggle Button - Top Right */
.mobile-menu-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-menu-toggle:hover {
    background: #0056b3;
}

.mobile-menu-toggle span {
    display: block;
    font-size: 16px;
    line-height: 1;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
}

.mobile-menu-header span {
    font-weight: bold;
    font-size: 18px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.mobile-nav-menu li a:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hide mobile menu elements on larger screens */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-menu-overlay,
    .mobile-menu-backdrop {
        display: none !important;
    }
}