/* public/styles/style.css */


/* Box-sizing */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    background-color: #f0f0f0;
    padding: 20px;
    margin: 0;
}

/* Container for the controls (dropdown and search box) */
.controls {
    display: flex;
    margin-bottom: 10px;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
    gap: 10px;
    /* Space between items, adjust as needed */
    padding: 10px;
    /* Optional padding around the controls */
}


/* Style all select dropdowns */
select {
    font-family: Arial, sans-serif;
    /* Change font family */
    font-size: 16px;
    /* Font size */
    padding: 10px;
    /* Padding inside the dropdown */
    border: 1px solid #ccc;
    /* Border color and style */
    border-radius: 4px;
    /* Rounded corners */
    background-color: #f9f9f9;
    /* Background color */
    color: #333;
    /* Text color */
    width: 200px;
    /* Width of the dropdown */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Optional: shadow for a 3D effect */
}

select:focus {
    border-color: #007bff;
    /* Border color when focused */
    outline: none;
    /* Remove default outline */
}


/* Style all input text boxes */
input[type="text"] {
    font-family: Arial, sans-serif;
    /* Change font family */
    font-size: 16px;
    /* Font size */
    padding: 10px;
    /* Padding inside the text box */
    border: 1px solid #ccc;
    /* Border color and style */
    border-radius: 4px;
    /* Rounded corners */
    background-color: #f9f9f9;
    /* Background color */
    color: #333;
    /* Text color */
    width: 200px;
    /* Width of the text box */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Optional: shadow for a 3D effect */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

input[type="text"]:focus {
    border-color: #007bff;
    /* Border color when focused */
    outline: none;
    /* Remove default outline */
}




.nav-button {
    display: inline-block;
    width: 30%;
    padding: 10px;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    text-align: center;
}

.nav-button.active {
    background-color: #aaa;
}

.nav-button:hover {
    background-color: #cbc;
}

.tab-content {
    margin-top: 20px;
    display: none;

}


.tab.active {
    background-color: #ddd;
    /* Highlight the active tab */
}



.hidden {
    display: none;
}

/* end of nav styling */

/* Style for the container holding the map and side panel */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}


/* Sidebar container (15-20% width) */
.sidebar-container {
    flex: 0 0 15%;
    /* Sidebar takes 15% of the width */
    max-width: 20%;
    padding: 15px;
    box-sizing: border-box;
    height: 100%;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
}

.map-container,
.focus-container,
.suggest-container {
    display: none;
    height: 90vh;
    width: 80%;

}

.map-container.active,
.suggest-container.active {
    display: block;
}

.focus-container.active {
    display: flex;
    flex-direction: row;
    /* or row, depending on your layout needs */
    justify-content: space-between;
    /* distributes space between flex items */
    align-items: stretch;
    /* stretches items to fill the container's cross axis */
}


/* Map container (40% width) */
.map-container2 {
    width: 50%;
    height: 100%;
    border: 1px solid #ccc;
    background-color: #f0f3f0;
}


.list-container {
    width: 50%;
    overflow-y: scroll;
    max-height: 100vh;
    background-color: #d0d0d0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #fff;
}

.list-content {
    max-height: 100%;
    /* Ensure the table occupies full height */
    overflow-y: auto;
    /* Vertical scroll if content exceeds the container */
    padding: 10px;
}

/* Scrollbar styling */
.list-content::-webkit-scrollbar {
    width: 8px;
}

.list-content::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.list-content::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}


.map-content {
    width: 100%;
    height: 100%;
    border: 1px solid #007bff;
}



/* Map styling */
#map {
    flex: 1;
    height: 100%;
    width: 100%;
    position: relative;
    float: right;
}

/* Optional styling to make it responsive */
@media screen and (max-width: 768px) {
    #side-panel {
        width: 30%;
    }

    #map {
        width: 70%;
    }
}

/* Navbar styles */
.map-navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
}


.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-item {
    width: 100%;
    /* Make the controls take full width of the container */
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
    /* Ensure padding is included in width */
}


.control-group button {
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
}

.control-group button:hover {
    background-color: #f0f0f0;
}

#zoomValue {
    display: inline-block;
    width: 30px;
    text-align: center;
    /* font-weight: bold;
    margin-top: 5px; */
}

#zoomControl {
    width: 100%;
    /* Ensure the zoom slider takes full width */
}


#searchControls {
    display: flex;
    display: block;
    flex-direction: column;
    /* Stack items vertically */
}




form {
    margin: 2px auto;
    /* display: inline-block; */
}