/* FILE: assets/css/layout.css (Revised) */
.sticky-header-container {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

#country-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

#country-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

#country-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
#country-sidebar .sidebar-header:first-child {
    border-bottom: none; /* Remove bottom border from first header */
}
#country-sidebar .sidebar-header h4 {
    margin: 0;
    font-size: 1rem;
}
#country-sidebar #close-country-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* NEW: Styles for the menu sections and divider */
#country-sidebar .sidebar-menu-section {
    padding: 0.5rem 1rem;
}
#country-sidebar .sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 1rem;
}


.header-bar {
    padding: 4px 20px;
    max-width: 1720px;
    margin: 0 auto;
    height: var(--header-height);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px; 
    height: 100%;
    overflow: hidden;
}

.main-wrapper {
    display: grid;
    grid-template-columns: 315px 1fr;
    max-width: 1720px;
    margin: 13px auto;
    padding: 0 20px;
    gap: 13px;
    align-items: flex-start;
}

.sidebar {
    width: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    height: calc(100vh - var(--header-height) - 25px - var(--footer-height));
    position: sticky;
    top: calc(var(--header-height) + 13px);
    display: flex;
    flex-direction: column;
}

.sidebar-header { 
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 600; 
    border-bottom: 1px solid var(--border-color); 
    flex-shrink: 0;
}

.destination-list-container { 
    overflow-y: auto; 
    flex-grow: 1; 
    padding: 5px;
}

.main-content { 
    min-width: 0; 
}

.controls-section {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    border-radius: 9px;
    padding: 9px;
    margin-bottom: 13px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: calc(var(--header-height) + 13px);
    z-index: 90;
}

.details-section { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(5px); 
    border-radius: 9px; 
    padding: 14px;
    min-height: 270px; 
    border: 1px solid var(--border-color); 
}

.details-content { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 16px;
    align-items: flex-start; 
}

.details-left-column { }

.details-right-column {
    height: calc(100vh - var(--header-height) - 146px - var(--footer-height));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.itinerary-content-area {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 9px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.site-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 5px 14px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.footer-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    text-align: center; 
    font-size: 11px;
}
