body { margin: 0; padding: 0; overflow: hidden; font-family: Arial, sans-serif; }

h2 {
    margin-top: 0px; 
    margin-bottom: 1px;
}
#info-box p {
    margin-top: 5px;
    margin-bottom: 1px;
}
#info-box h3 {
    margin-top: 5px;
    margin-bottom: 1px;
}
#map { position: absolute; top: 0; bottom: 0; right: 0; left: 350px; }
#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 100%;
    background-color: #f8f8f8;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
#search-container { 
    position: relative; /* Needed for absolute positioning of results */
    margin-bottom: 20px; 
}
#search-input { width: calc(100% - 22px); padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
#search-results { 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px; 
    overflow-y: auto; 
    border: 1px solid #ddd; 
    background-color: #fff; Z-index: 1001; /* Ensure it's above other elements */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    border-top: none;
}
.search-result-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
.search-result-item:hover { background-color: #f0f0f0; }
#info-box {
    margin-top: 0; /* Pushes the info box to the bottom */
    flex-grow: 1; /* Allows this box to fill available space */
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column; /* Stack children vertically */
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    overflow: auto;
}
#legend {
    position: absolute;
    top: 20px;
    right: 20px; /* Moved to top right */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 999;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.star-icon {
    background-image: url('assets/Wind Speed.svg');
    background-size: cover;
    width: 35px;
    height: 35px;
    display: block;
}
/* Hide arrows from number input */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}
#nearest-stations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 0.9em;
}
#nearest-stations-table th, #nearest-stations-table td {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: left;
}
#nearest-stations-table th:first-child,
#nearest-stations-table td:first-child {
    width: 80px;
    /* Allow text to wrap within the cell */
    white-space: normal;
    word-break: break-word;
}

.h1-style {
    margin-top: 5px;
    margin-bottom: 1px;
}

.p-style {
    margin-top: 5px;
    margin-bottom: 1px;
}

.search-container-style {
    margin-top: 20px;
}

.station-count-input-style {
    width: 25px; 
    text-align: center; 
    vertical-align: middle;
}

.nearest-stations-container-style {
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
}

.td-style {
    text-align: center;
}

.div-style {
    margin-top: auto;
}

.p-style-2 {
    font-size: small; 
    color:gray;
}

.h3-style {
    margin-top: 0px; 
    margin-bottom: 1px;
}

.h2-style {
    margin-top: 0px; 
    margin-bottom: 1px;
}

.star-icon-style {
    display: inline-block; 
    vertical-align: middle;
}

.span-style {
    vertical-align: middle;
}

.div-style-2 {
    display: flex; 
    align-items: center; 
    margin-top: 4px;
}

.i-style {
    background:#FF806D; 
    width: 18px; 
    height: 18px; 
    margin-right: 8px; 
    opacity: 0.7; 
    border: 1px solid grey; 
    flex-shrink: 0;
}

.i-style-2 {
    background:#FFFC9D; 
    width: 18px; 
    height: 18px; 
    margin-right: 8px; 
    opacity: 0.7; 
    border: 1px solid grey; 
    flex-shrink: 0;
}

#about-info-icon {
    cursor: pointer;
    
    font-weight: bold;
    
    
}

/* Modal styles */
.modal-overlay {
    display: none; /* Hidden by default, will be changed to 'flex' by JS */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    /* Flexbox for centering */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 0; /* Remove old margin positioning */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

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