/* General Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #595959;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    text-align: center; /* Keep headings centered */
}

/* Centered Containers */
.form-container,
.listings-container {
    width: 65%; /* Adjust width */
    max-width: 800px; /* Prevents it from getting too wide */
    margin: 40px auto; /* Centers the div */
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Ensures text inside is left-aligned */
}

/* Form Styles */
.form-container p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-container label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-container input,
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container button {
    margin-top: 15px;
    background: #0033cc;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

.form-container button:hover {
    background: #cc5500;
}

/* Center "Back to Listings" link */
a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Listings Styles */
.listings-container ul {
    list-style: none; /* Removes default bullet points */
    padding: 0;
}

.listing-item {
    background: #ececec;
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left; /* Ensure all text is left-aligned */
}

/* Images Inside Listings */
.listing-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Dropdown Filter */
.filter-form {
    width: 50%;
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.filter-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Client Information Styles */
.client-info {
    text-align: left;
    font-size: 16px;
    margin-top: 10px;
}

.client-info p {
    margin: 5px 0; /* Add spacing between lines */
}

.client-info a {
    color: #007BFF;
    text-decoration: none;
    display: inline-block;
    text-align: left;
}

.client-info a:hover {
    text-decoration: underline;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    background-color: #dddddd;
    border-bottom: 1px solid #c5c5c5;
}

nav button {
    background-color: #4a6cda;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

nav button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

nav button:active {
    background-color: #00408d;
    transform: scale(0.98);
}

/* Style the label text */
.filter-form label {
    font-size: 18px; /* Make label text larger */
    font-weight: bold; /* Optional: Make it bold */
}

/* Style the dropdown */
#category {
    font-size: 18px; /* Increase dropdown text size */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Make both label and dropdown even bigger on small screens */
@media (max-width: 600px) {
    .filter-form label {
        font-size: 20px; /* Larger label on mobile */
    }

    #category {
        font-size: 20px; /* Larger dropdown on mobile */
        padding: 12px;
    }

    nav button {
        font-size: 18px;
    }
}

/* Full Listing Section Styles */
#full-listing-section {
    display: none; /* Hide by default */
    background-color: #f9f9f9;  /* Light grey background */
    border: 2px solid #ddd;  /* Light grey border */
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;  /* Rounded corners */
}

/* Section heading */
#full-listing-section h3 {
    color: #cc5500; /* Highlight heading in orange */
    margin-bottom: 10px;
}

/* Divider */
.divider {
    height: 2px;
    background-color: #ddd;
    margin-bottom: 15px;
}

/* Explicitly define the toggle button styles */
.toggle-btn {
    background-color: #d1d5db; /* Default Grey */
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    width: auto; /* Prevents full-width issue */
    display: inline-block;
}

/* Selected (Active) Button */
.toggle-btn.active {
    background-color: #2563eb; /* Blue */
    color: white;
}

/* Hover effect */
.toggle-btn:hover {
    background-color: #93c5fd; /* Lighter blue */
}

/* Ensure other buttons don't inherit incorrect styles */
.form-container button:not(.toggle-btn) {
    width: 100%; /* Keep form submit button full width */
}

