body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    color: whitesmoke;
    background-color: #000;
}

#navigation-bar {
    display: flex;
    align-items: center;
    /* Vertically center-align items */
    justify-content: space-between;
    /* Space out the logo and button */
    padding: 10px 10px;
    background-color: #1a1a1a;
    color: white;
    border-bottom: 2px solid #444;
    height: 50px;
    /* Ensure consistent height for alignment */
}

#home-link {
    display: flex;
    /* Ensure the logo is treated as a flex item */
    align-items: center;
    /* Vertically center-align the logo */
}

#home-link img {
    height: 40px;
    cursor: pointer;
}

#back-to-crag {
    display: flex;
    /* Treat the button as a flex container */
    align-items: center;
    /* Vertically center-align the text */
    justify-content: center;
    /* Center-align the text horizontally */
    padding: 10px 15px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    height: 40px;
    /* Match the height of the logo for alignment */
    line-height: 1;
    /* Ensure consistent text alignment */
}

#back-to-crag:hover {
    background-color: #666;
}

.area-cover-image-wrapper {
    position: relative;
    /* Allows stacking of the placeholder and image */
    width: 300px;
    /* Matches the image width */
    height: 300px;
    /* Matches the image height */
    border-radius: 8px;
    /* Matches the rounded corners of the image */
    overflow: hidden;
    /* Ensures the image doesn't overflow the wrapper */
}

/* Placeholder background */
.area-cover-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #cbbaba;
    /* Placeholder background color */
    border-radius: 8px;
    /* Matches the wrapper and image corners */
    z-index: 1;
    /* Ensures it is behind the image */
}

/* Image styling */
.area-cover-image-wrapper img {
    position: relative;
    z-index: 2;
    /* Ensures it is above the placeholder */
    width: 100%;
    /* Fill the wrapper */
    height: 100%;
    /* Fill the wrapper */
    border-radius: 8px;
    /* Matches the wrapper and placeholder corners */
    object-fit: cover;
    /* Ensures the image fits within the dimensions */
    opacity: 0;
    /* Start fully transparent */
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade-in effect */
}

/* When the image is loaded */
.area-cover-image-wrapper img.loaded {
    opacity: 1;
    /* Fully visible when loaded */
}

.area-details h3 {
    margin: 0;
    font-size: 18px;
}

.area-details p {
    margin: 5px 0;
    font-size: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* Ensure the body fills the viewport */
    overflow: hidden;
    /* Prevent scrolling of the entire page */
}

main {
    display: flex;
    /* Create a flex container for the main content */
    flex-direction: row;
    /* Align children horizontally */
    height: 100vh;
}

#area-details {
    width: 500px;
    /* Fixed width for the left section */
    padding: 20px;
    /* Add some padding for spacing */
    background-color: #1a1a1a;
    /* Optional: Add a background color */
    color: whitesmoke;
    /* Optional: Ensure text is readable */
    overflow-y: auto;
    /* Enable scrolling if content overflows vertically */
}

#canvas-section {
    position: relative;
    flex: 1;
    /* Make the canvas take up the remaining space */
    max-height: 100vh;
    /* Ensure it doesn't exceed viewport height */
    background-color: #ccc;
    /* Set canvas background to white */
    border-radius: 8px;
    /* Rounded corners for the canvas */
}

#canvas-holder {
    position: relative;
    /* Make the canvas-holder a positioned container */
    overflow: scroll;
    /* Enable scrolling if the canvas is larger than the container */
    max-height: 100vh;
    /* Ensure it doesn't exceed viewport height */
}

#zoom-controls {
    position: absolute;
    /* Position the controls relative to the canvas-holder */
    top: 10px;
    /* Offset from the top */
    left: 10px;
    /* Offset from the left */
    z-index: 100;
    /* Ensure the buttons appear above the canvas */
    display: flex;
}

#zoom-controls button {
    margin: 5px;
    /* Add spacing between buttons */
    padding: 10px;
    /* Add padding for better clickability */
    background-color: #1a1a1a;
    /* Optional: Button background color */
    color: whitesmoke;
    /* Optional: Button text color */
    border: none;
    /* Remove default button border */
    border-radius: 5px;
    /* Add rounded corners */
    cursor: pointer;
    /* Change cursor to pointer on hover */
}

#zoom-controls button:hover {
    background-color: #444;
    /* Optional: Change background color on hover */
}

#canvas {
    background-color: white;
    /* Ensure canvas background is white */
}

#map {
    flex: 1;
    background-color: #1a1a1a;
    /* Optional: Add a background color */
    color: whitesmoke;
    /* Optional: Ensure text is readable */
}

@media (max-width: 768px) {
    #canvas-section {
        display: none;
    }

    #map {
        display: none;
    }
}

.marker-icon-title {
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent background */
    color: white;
    /* White text for contrast */
    border-radius: 3px;
    /* Slightly rounded corners */
    font-size: 16px;
    /* Smaller font size */
    text-align: center;
    white-space: nowrap;
    /* Prevent text from wrapping */
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.parking {
    background-color: rgba(212, 31, 31, 0.8);
    /* Different background color for parking */
}

.highlighted-marker {
    border: 4px solid #1DB954;
}

.manrope-fonts {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#navigation-stack {
    display: flex;
    /* Use flexbox for horizontal alignment */
    align-items: center;
    /* Center items vertically */
    gap: 10px;
    /* Add spacing between navigation items */
    margin-bottom: 10px;
    /* Add spacing below the navigation stack */
    font-size: 16px;
    /* Adjust font size */
    color: whitesmoke;
    /* Ensure text is readable */
}

.nav-item {
    cursor: pointer;
    /* Change cursor to pointer for clickable items */
    color: #1DB954;
    /* Highlight navigation items */
}

.nav-item:hover {
    text-decoration: underline;
    /* Add underline on hover */
}

.nav-item-selected {
    text-decoration: underline;
    cursor: default;
}

.nav-separator {
    color: #ccc;
    /* Separator color */
}

.problem-count {
    width: 100%;
    text-align: right;
    margin: 0px;
    padding-bottom: 8px;
}

#problem-list {
    list-style-type: none;
    /* Remove default list styling */
    margin: 0;
    padding: 0;
}

#problem-list li {
    display: flex;
    /* Use flexbox for horizontal alignment */
    align-items: center;
    /* Center items vertically */
    padding: 10px;
    /* Add padding for spacing */
    border-bottom: 1px solid #444;
    /* Add a divider between items */
    color: whitesmoke;
    /* Ensure text is readable */
    font-size: 16px;
    /* Adjust font size */
    cursor: pointer;
}

#problem-list li:last-child {
    border-bottom: none;
    /* Remove the border for the last item */
}

#order-value {
    display: inline-block;
    /* Ensure the element only takes up as much space as its content */
    width: auto;
    /* Automatically adjust width based on text content */
    padding: 0;
    /* Remove any default padding */
}

#problem-list li h3 {
    font-weight: normal;
    /* Optional: Adjust font weight */
}

#problem-cell-title {
    margin-left: 8px;
    /* Add spacing between order value and title */
    flex: 1;
}

#problem-list li .quality-rating {
    font-size: 18px;
    /* Adjust font size for the rating */
}

#problem-list li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Enhances shadow on hover */
    background-color: #333;
    /* Slightly lighter background on hover */
}