* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fa;
}

body.map-page {
    max-height: 100vh;
    overflow: hidden;
}

body.content-page {
    overflow-y: auto;
}

/* Navigation Bar */
nav {
    background: linear-gradient(135deg, #555358 0%, #3a3a3c 70%);
    color: white;
    padding: 0;
    box-shadow: none;
    position: relative;
    z-index: 1000;
    height: 100px;
}

nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 1.25rem 0;
    display: inline-block;
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

nav .logo:hover {
    opacity: 0.9;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span::before {
    top: -7px;
}

.hamburger span::after {
    top: 7px;
}

/* Hamburger animation when active */
.hamburger.active span {
    background-color: transparent;
}

.hamburger.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
}

/* Main Menu Styles */
ul.menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

ul.menu>li {
    position: relative;
    display: inline-block;
}

ul.menu>li>a {
    display: block;
    padding: 1.25rem 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    position: relative;
}

ul.menu>li>a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Active state indicator */
ul.menu>li>a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background-color: white;
    transition: transform 0.3s ease;
}

ul.menu>li>a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Submenu Base Styles */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    background-color: white;
    min-width: 240px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show submenu on hover */
ul.menu li:hover>.submenu {
    display: block !important;
}

.submenu li {
    position: relative;
    display: block;
    width: 100%;
}

.submenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 8px;
}

.submenu li a:hover {
    background-color: #f7fafc;
    color: #555358;
    padding-left: 1.5rem;
}

/* Nested submenu (third level and beyond) */
.submenu .submenu {
    left: calc(100% + 0.5rem);
    top: -0.5rem;
}

/* Arrow indicators */
ul.menu>li:has(> .submenu)>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

ul.menu>li:hover>a::after {
    transform: rotate(180deg);
}

.submenu li:has(> .submenu)>a::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.submenu li:hover>a::after {
    transform: translateX(3px);
}

/* Main Content Container */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    background-color: #f5f7fa;
}


/* Sidebar Container */
.sidebar {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(180deg, #3a3a3c 0%, #4a4a4c 100%);
    color: white;
    overflow-y: auto;
    padding: 2rem 1.75rem;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

/* Improved Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
