/* ================= DESKTOP LAYOUT ================= */
body {
    margin: 0;
    padding: 0;
    background: url(/Image/System/header-bg.jpg) no-repeat center top #26586F;
}
.page-wrapper {
    width: 984px;
    margin: 0 auto;
    background: #fff;
}

/* HEADER */
.site-header {
    background: url(/Image/System/header-bg.jpg) no-repeat center top #26586F;
}
.header-top {
    display: flex;
    align-items: center;
    padding: 10px;
}
.logo {
    width: 200px;
    text-align: center;
}

/* DESKTOP NAV - VISIBLE ON DESKTOP */
.desktop-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

/* MOBILE ELEMENTS - HIDDEN ON DESKTOP */
.mobile-menu-bar,
.mobile-menu,
.mobile-banner {
    display: none;
}

/* CONTENT */
.content-area {
    display: flex;
    padding: 10px;
}
.sidebar {
    width: 260px;
}
.main-content {
    flex: 1;
    padding-left: 15px;
}

/* SLIDER */
.slider {
    width: 100%;
    text-align: center;
    padding-top: 15px;
}

/* SIDEBAR STYLES */

/* Desktop Sidebar */
.sidebar-inner {
    width: 260px;
}

.sidebar-content {
    width: 250px;
    border-right: 1px dashed #a9a9a9;
}

.sidebar-section {
    text-align: left;
}

.sidebar-section img {
    max-width: 100%;
    height: auto;
}

.sidebar-links {
    text-align: left;
    padding: 10px 0 20px 5px;
}

.link-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.link-item img {
    margin-right: 5px;
    flex-shrink: 0;
}

.link-item a {
    color: #000;
}

.highlight-link {
    color: #ff4500;
    text-decoration: underline;
}

.customize-box {
    margin-top: 10px;
    width: 100%;
    border-top: 1px dotted #dcdcdc;
    padding-top: 4px;
}

.customize-text {
    text-align: justify;
    margin-bottom: 8px;
}

/* INFO SECTION - Desktop */
.info-section {
    display: flex;
    width: 100%;
    font-family: sans-serif;
}

.travel-info-box {
    width: 318px;
}

.spacer-10 {
    width: 10px;
}

.tours-content {
    flex: 1;
    text-align: left;
}

/* ================= MOBILE LAYOUT (Portrait & Landscape) ================= */
@media (max-width: 768px), (max-width: 1024px) and (orientation: landscape) {
    * {
        box-sizing: border-box;
    }
    
    body {
        background: none !important;
    }
    
    .page-wrapper {
        width: 100%;
        margin: 0;
    }
    
    /* HEADER STACK */
    .site-header {
        background: #26586F;
    }
    
    .header-top {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        padding: 1px 0;
    }
    
    .logo img {
        width: 250px;
        height: 80px;
        max-width: 80%;
    }
    
    /* HIDE DESKTOP NAVIGATION */
    .desktop-nav {
        display: none !important;
    }
    
    /* SHOW MOBILE HAMBURGER */
    .mobile-menu-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #1a3f4f;
        color: #fff;
        padding: 15px;
        font-size: 18px;
        cursor: pointer;
        font-weight: bold;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .mobile-menu-bar:active {
        background: #1e4a5d;
    }
    
    /* MOBILE MENU - HIDDEN BY DEFAULT */
    .mobile-menu {
        display: none;
        background: #26586F;
    }
    
    /* SHOW MENU WHEN OPEN CLASS IS ADDED */
    .mobile-menu.open {
        display: block;
    }
    
    .mobile-menu a,
    .mobile-menu .menu-item-with-sub {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
    }
    
    .mobile-menu a:active {
        background: rgba(255,255,255,0.1);
    }
    
    /* SUBMENU STYLING */
    .menu-item-with-sub {
        position: relative;
    }
    
    .menu-item-with-sub::after {
        content: '+';
        float: right;
        font-size: 20px;
        font-weight: bold;
        transition: all 0.3s;
    }
    
    .menu-item-with-sub.open::after {
        content: '-';
    }
    
    .submenu {
        display: none;
        background: #1e4a5d;
    }
    
    .submenu.open {
        display: block;
    }
    
    .submenu a {
        padding-left: 35px;
        font-weight: normal;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* HIDE DESKTOP SLIDER */
    .slider {
        display: none;
    }
    
    /* SHOW STATIC MOBILE BANNER */
    .mobile-banner {
        display: block;
        width: 100%;
    }
    
    .mobile-banner img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* CONTENT STACK */
    .content-area {
        flex-direction: column;
        padding: 0;
    }
    
    .main-content {
        width: 100%;
        padding: 10px;
        padding-left: 10px;
        order: 1;
    }
    
    .sidebar {
        width: 100%;
        padding: 0;
        order: 2;
        border-top: 1px solid #ddd;
        margin-top: 15px;
    }
    
    .sidebar > div {
        width: 100% !important;
    }
    
    /* MOBILE SIDEBAR */
    .sidebar-inner {
        width: 100%;
        padding: 10px;
    }
    
    .sidebar-content {
        width: 100%;
        border-right: none;
        border-bottom: 1px dashed #a9a9a9;
        padding-bottom: 10px;
    }
    
    .sidebar-section {
        margin-bottom: 10px;
    }
    
    .sidebar-links {
        padding: 10px 10px 20px 10px;
    }
    
    .link-item {
        padding: 5px 0;
    }
    
    /* RESPONSIVE IMAGES */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* HIDE THE DESKTOP FOOTER BOXES */
    .hide-mobile {
        display: none !important;
    }
    
    /* INFO SECTION - Mobile */
    .info-section {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .travel-info-box {
        width: 100%;
        float: none;
        order: 1;
        margin-bottom: 20px;
    }
    
    /* Make the background containers full width */
    .travel-info-box > div {
        width: 100% !important;
        background-size: 100% auto !important;
    }
    
    .travel-info-box p,
    .travel-info-box h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .spacer-10 {
        display: none;
    }
    
    .tours-content {
        width: 100%;
        order: 2;
        padding: 0 10px;
    }
    
    /* Adjust spacing for mobile */
    .tours-content h1 {
        margin-top: 0;
        font-size: 22px;
    }
    
    .tours-content > div {
        flex-direction: column;
    }
    
    .tours-content img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}