/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Helvetica, sans-serif;
    background-color: #f7f7f7;
    color: #333333;
}

/* Container for the page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Remove any default margin/padding on the logo div or h1 */
.logo {
    margin: 0;
    padding: 0;
    text-align: center; /* Center the logo */
}

/* Style the logo image */
.TS-Image {
    max-width: 60%; /* Adjust this as needed */
    height: auto;
    display: inline-block;
}

/* Hide the text visually but keep it accessible for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


p {
    color: #388e3c; /* Dark green */
    margin-bottom: 30px;
    font-family: Arial;
    font-size: 10pt;
}

/* Flexbox for search controls */
.search-controls {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 20px; /* Add gap between button and form */
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Styling for the "Search Nearby" button */
.search-left button {
    background-color: #388e3c;
    color: white;
    border: none;
    padding: 10px 51px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-right: 10px; /* Space between button and input */
}

.search-left button:hover {
    background-color: #2e7d32; /* Darker green on hover */
}

/* Styling for the location search form */
.search-right input[type="text"] {
    padding: 10px;
    border: 1px solid #388e3c; /* Green border for input */
    border-radius: 0px;
    font-size: 16px;
    text-align: center;
    align-items: center;
    transition: border-color 0.3s ease;
    margin-right: 0px; /* Space between text input and search button */
}

.search-right input[type="text"]:focus {
    border-color: #2e7d32; /* Darker green border on focus */
}


/* Map Styling */
#map {
    height: 500px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px auto; /* Center map with auto margins */
    border-radius: 0px; /* Rounded corners */
    border: 1px solid #4caf50; /* Green border around the map */
}

.spinner {
    border: 8px solid #737272; /* Light gray */
    border-top: 8px solid #4CAF50; /* Green */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    z-index: 1000; /* Ensure it stays on top */
}

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

/* Results Section */
#results {
    margin-top: 20px;
    background-color: #e1e2e2;
    padding: 20px;
    border-radius: 0px;
    font-family: Helvetica
}

/* Centered container for the Add Filters button */
.filter-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Styles for the Add Filters button */
#add-filters-btn {
    background-color: #388e3c; /* Match primary color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    font-family: Helvetica, Arial, sans-serif;
}

#add-filters-btn:hover {
    background-color: #2e7d32; /* Darker green for hover */
}

/* Styles for the filter options section */
.filter-controls {
    margin-top: 5px;
    padding: 10px;
    border-radius: 0px;
    background-color: #e1e2e2; /* Light background to match other sections */
    border: 1px solid #4caf50; /* Border matching map border */
    max-width: 600px; /* Limit width to match form alignment */
    margin: 0 auto; /* Center align */
}

.filter-controls h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    font-family: Helvetica, Arial, sans-serif;
}

/* Styling for each filter option */
.filter-option {
    margin-bottom: 5px;
}

.filter-option label {
    display: block;
    font-size: 12px;
    color: #333;
    margin-bottom: 3px;
    font-family: Helvetica, Arial, sans-serif;
}

.filter-option select {
    width: 100%;
    padding: 5px;
    border-radius: 0px;
    border: 1px solid #388e3c; /* Match input styling */
    font-size: 12px;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

/* Apply Filters button styling */
.filter-controls button {
    background-color: #388e3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 0px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    font-family: Helvetica, Arial, sans-serif;
}

.filter-controls button:hover {
    background-color: #2e7d32; /* Darker green for hover */
}

/* Style for the info icon */
.info-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #388e3c; /* Dark green */
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

/* Popup styling */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #388e3c;
    border-radius: 0px;
    width: 300px;
    max-height: 60%; /* Limit height */
    padding: 20px;
    overflow-y: auto; /* Make it scrollable */
    z-index: 1000;
}

/* Popup content */
.popup-content {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    text-align: center;
}

/* Heading styles for the popup */
.popup-content h2 {
    font-size: 12px;
    color: #388e3c;
    margin-bottom: 10px;
}

.popup-content h3 {
    font-size: 12px;
    color: #388e3c;
    margin-top: 20px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: #888;
}

/* CSS to round the corners of the satellite image */
.place-satellite-image {
    border-radius: 0px; 
    overflow: hidden;
		image-rendering: auto;
		width: 300px;
    height: 300px;
		border: 1px solid #388e3c;
		margin-bottom: 5px;
		margin-top: 5px;
}


#closest-locations {
    list-style-type: none;
}

#closest-locations li {
    padding: 5px;
    margin-bottom: 20px;
    margin-top: 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    font-family: Helvetica
}

#closest-locations li a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
    font-family: Helvetica
}

#closest-locations li a:hover {
    text-decoration: underline;
    font-family: Helvetica
}

.place-feedback {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e9f7ef; /* Light green background for feedback */
    border-radius: 0px;
    font-size: 14px;
    color: #2e7d32;
    font-family: Helvetica
}

/* Styling for "Rate this Field" button in search results */
.rate-field-button {
    background-color: #388e3c; /* Match green button color */
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    margin-top: 8px; /* Add space between button and previous elements */
    margin-bottom: 2px;
    text-align: center;
    display: inline-block; /* Keep button inline */
    font-family: Helvetica
}

.rate-field-button:hover {
    background-color: #2e7d32; /* Darker green on hover */
    font-family: Helvetica
}

/* Styling for "View Reviews" button in search results */
.view-reviews-button {
    background-color: #388e3c; /* Match green button color */
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    margin-top: 2px; /* Add space between button and previous elements */
    margin-bottom: 2px;
    text-align: center;
    display: inline-block; /* Keep button inline */
    font-family: Helvetica
}

.view-reviews-button:hover {
    background-color: #2e7d32; /* Darker green on hover */
    font-family: Helvetica
}

.floating-reviews-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-width: 90%;
    max-height: 400px; /* Fixed maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: #ffffff;
    border: 1px solid #388e3c; /* Match theme color */
    border-radius: 0px;
    padding: 20px;
    z-index: 1000;
}

.floating-reviews-window #reviewsContent {
    margin-top: 10px;
    font-size: 12px;
    color: #333;
    font-family: Helvetica
}

.close-reviews-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

.close-reviews-btn:hover {
    color: #2e7d32; /* Darker green on hover */
}



.floating-window {
    position: fixed;
    bottom: 60px; /* Raise the window slightly higher from the bottom */
    right: 80%; /* Shift towards the center */
    transform: translateX(50%); /* Center the window horizontally */
    width: 200px; /* Increase the width for more space */
    background-color: #f0f4f7; /* Light grey background for contrast */
    border: 1px solid #388e3c; /* Green border to match the theme */
    border-radius: 0px;
    padding: 25px; /* Increase padding for more space around elements */
    z-index: 1000;
    font-family: Helvetica
}

/* Header style in the floating window */
.floating-window h3 {
    color: #2e7d32; /* Dark green for the header text */
    margin-bottom: 15px; /* Space between header and form elements */
    font-size: 12pt;
    font-family: Helvetica
}

/* Styling for form labels */
.floating-window label {
    display: block;
    margin-top: 10px;
    color: #333; /* Dark text for labels */
    font-size: 12px;
    font-family: Helvetica
}

/* Styling for form select fields */
.floating-window select {
    width: 100%;
    padding: 5px;
    border: 1px solid #388e3c; /* Green border for inputs */
    border-radius: 0px;
    margin-top: 5px;
    background-color: white;
    color: #333;
    font-size: 12px;
    font-family: Helvetica
}

/* Styling for the submit button */
.floating-window input[id="feedbackSubmitButton"] {
    margin-top: 20px;
    background-color: #388e3c; /* Green submit button */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 1px;
    cursor: pointer;
    font-size: 12px;
    width: 100%; /* Full width button */
    transition: background-color 0.3s ease;
    font-family: Helvetica
}

.floating-window input[id="feedbackSubmitButton"]:hover {
    background-color: #2e7d32; /* Darker green on hover */
    font-family: Helvetica
}

/* Styling for the close button in the floating feedback window */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #2e7d32; /* Darker green on hover to match theme */
}


/* Responsive Design */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
        gap: 10px;
    }

    .search-left button, .search-right input[type="submit"] {
        width: 100%;
    }

    .search-right input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    #map {
        height: 350px; /* Smaller map for mobile */
    }
}

/* Larger screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
        margin: 0 auto; /* Center the container for larger screens */
    }
}
