body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* More modern font */
    margin: 0;
    background-color: #eef1f5; /* Slightly lighter grey background */
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2c3e50; /* Dark blue/grey for header, similar to main image */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center; /* Center content by default */
    position: relative; /* For absolute positioning of button if needed */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

h1 {
    margin: 0;
    font-size: 24px;
    flex-grow: 1; /* Allow h1 to take available space */
    text-align: center;
}

.home-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: absolute; /* Position absolutely within header */
    left: 15px; /* Align to the left */
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Hidden by default, shown by JS on mobile map view */
}

.home-button:hover {
    background-color: #0056b3;
}

.about-button {
    background-color: #28a745; /* Green for About button */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    right: 15px; /* Align to the right */
    top: 50%;
    transform: translateY(-50%);
}

.about-button:hover {
    background-color: #218838;
}

main {
    flex: 1;
    display: flex; /* Ensure main is a flex container */
}

#tab-container {
    display: flex;
    flex: 1;
}

.tab-content {
    flex: 1;
    display: none; /* Hidden by default */
    overflow: auto; /* Enable scrolling for content within tabs */
}

.tab-content.active {
    display: flex; /* Show active tab */
}

.sidebar {
    width: 100%; /* Sidebar takes full width of its tab */
    background-color: #f4f6f9; /* Very light grey for sidebar */
    padding: 15px;
    box-shadow: none; /* Remove shadow as it's now within a tab */
    overflow-y: auto; /* Enable scrolling for long menus */
    border-right: none; /* Remove border as it's now within a tab */
}

.map-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff; /* White background for map area */
    padding: 20px;
    position: relative; /* For spinner positioning */
    border: none; /* Remove border as it's now within a tab */
    margin: 0; /* Remove margin as it's now within a tab */
    border-radius: 0; /* Remove border-radius */
    box-shadow: none; /* Remove shadow */
}

#map-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Accordion Styling */
.accordion-group {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: #343a40; /* Darker grey for accordion headers, similar to submenu image */
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #495057;
}

.accordion-header:hover {
    background-color: #495057;
}

.accordion-content {
    padding: 0;
    background-color: #ffffff; /* White for content */
    border-top: 1px solid #eee;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-header .arrow {
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.2s ease-in-out;
}

.accordion-header.active .arrow {
    transform: rotate(180deg);
}

.accordion-content li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
}

.accordion-content li:last-child {
    border-bottom: none;
}

.accordion-content li:hover {
    background-color: #e9ecef; /* Lighter grey on hover */
}

.accordion-content li.active {
    background-color: #007bff; /* Blue for active item */
    color: white;
    font-weight: bold;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Modal Styling */
#about-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

#about-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be responsive */
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 8px;
    position: relative;
}

#about-modal-content h2 {
    margin-top: 0;
    color: #333;
}

#about-modal-content p {
    line-height: 1.6;
    color: #555;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}