/* --- General Body and Container --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light background */
    color: #343a40; /* Darker text */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding for smaller screens */
}

/* --- Header Styles --- */
.main-header {
    background-color: #007bff; /* Primary blue */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex; /* Horizontal nav items */
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #cce5ff; /* Lighter blue on hover/active */
}

.search-bar-header {
    display: flex;
    align-items: center;
}

.search-bar-header form {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
}

.search-bar-header input[type="text"] {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    width: 200px;
    box-sizing: border-box;
}

.search-bar-header button {
    background-color: #28a745; /* Green search button */
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-bar-header button:hover {
    background-color: #218838;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
     background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    /* ... rest of the styles ... */
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Main Content Wrapper (Sidebar + Listings) --- */
.main-content-wrapper {
    display: flex;
    gap: 30px;
    padding-bottom: 40px;
}

.sidebar {
    flex: 0 0 250px; /* Fixed width for sidebar */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    height: fit-content; /* Adjust height to content */
    position: sticky; /* Sticky sidebar */
    top: 20px; /* Distance from top when scrolled */
}

.sidebar-block {
    margin-bottom: 30px;
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar h3 {
    font-size: 20px;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-list a:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.category-list a.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Filter/Search Box in Sidebar */
.filter-search-box .form-group {
    margin-bottom: 15px;
}

.filter-search-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.filter-search-box input[type="text"],
.filter-search-box select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.filter-search-box .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.listings-section {
    flex-grow: 1; /* Take remaining space */
}

.section-title {
    font-size: 32px;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

/* Message/Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.alert.info {
    background-color: #e7f3fe;
    color: #0056b3;
    border: 1px solid #b8daff;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Listing Grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.listing-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* For rounded corners */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    color: #007bff;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.card-category {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap; /* Prevent wrapping */
}

.card-body {
    flex-grow: 1;
    margin-bottom: 15px;
}

.card-body .description {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.card-body .location,
.card-body .contact-short {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.card-body .location i,
.card-body .contact-short i {
    margin-right: 8px;
    color: #007bff;
}

.card-footer {
    display: flex;
    justify-content: flex-end; /* Push button to the right */
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-details {
    background-color: #6f42c1; /* Purple */
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-details:hover {
    background-color: #5a32a0;
}

/* --- Footer Styles --- */
.main-footer {
    background-color: #343a40; /* Dark gray */
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #495057;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #cce5ff;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: #007bff;
    height: 2px;
    width: 50px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #adb5bd; /* Light gray for links */
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    margin: 0 10px 10px 0;
    text-decoration: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
    background-color: white;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #adb5bd;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column; /* Stack sidebar and content */
    }

    .sidebar {
        flex: 0 0 auto; /* Allow sidebar to take full width */
        width: 100%;
        position: static; /* Remove sticky behavior */
        margin-bottom: 30px;
    }

    .sidebar h3 {
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    .category-list {
        display: flex; /* Make category list horizontal/wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .category-list li {
        margin-bottom: 0;
    }

    .category-list a {
        padding: 8px 15px;
    }

    .filter-search-box {
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .filter-search-box .form-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%;
        order: 3; /* Push nav down */
        display: none; /* Hidden by default for mobile */
        transition: max-height 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
    }

    .main-nav.nav-open {
        display: block;
        max-height: 300px; /* Adjust as needed */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav ul li a {
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-bar-header {
        width: 100%;
        order: 2; /* Place search bar after logo */
        margin-top: 15px;
    }

    .search-bar-header form {
        width: 100%;
    }

    .search-bar-header input[type="text"] {
        width: calc(100% - 40px); /* Adjust for button */
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .listing-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }

    .footer-col h4::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 14px;
    }
}



/* --- Lazy Loading Elements Start--- */
.loading-indicator,
#no-more-listings {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #6c757d;
    margin-top: 30px;
}

.loading-indicator .fa-spinner {
    margin-right: 10px;
    color: #007bff;
}

/* Specific styling for the 'info' alert class if not already defined */
.alert.info {
    background-color: #e0f7fa;
    color: #007bff;
    border: 1px solid #b2ebf2;
}

.alert.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ef9a9a;
}
/* --- Lazy Loading Elements End--- */

/* --- About Us Simple Page Specific Styles --- */
/* (This section replaces all previous "About Us" specific styles) */

.about-us-simple-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center; /* Ensure the title is centered */
}

.section-title {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 40px; /* Space below title */
    display: block; /* Ensures it takes full width */
}

.about-simple-content {
    display: flex;
    flex-direction: row; /* Default: text on left, image on right */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: flex-start; /* Align items to the top */
    justify-content: center; /* Center the flex items if there's extra space */
    padding: 20px;
    max-width: 1200px; /* Constrain the main content width */
    margin: 0 auto; /* Center the container itself */
}

.about-simple-image {
    flex: 1 1 450px; /* Allows growing/shrinking, with a basis of 450px */
    max-width: 50%; /* Max width relative to parent */
    min-width: 300px;
    
    display: flex;
    justify-content: flex-end; /* Align image to the right within its space */
    align-items: center;
    order: 2; /* Place image on the right */
}

.about-simple-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.about-simple-image img:hover {
    transform: scale(1.02); /* Subtle zoom effect on hover */
}

.about-simple-text {
    flex: 1 1 500px; /* Allows growing/shrinking, with a basis of 500px */
    max-width: 50%; /* Max width relative to parent */
    min-width: 300px;
    padding: 0 20px;
    order: 1; /* Place text on the left */
}

/* Existing text styles (removed !important) */
.about-simple-text h2 {
    color: #007bff;
    font-size: 2.2em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}
.about-simple-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}
.about-simple-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
    text-align: left;
}
.about-simple-text ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}
.about-simple-text ul li {
    background: #e9f5ff;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 5px solid #007bff;
    border-radius: 5px;
    color: #333;
    font-size: 1em;
    display: flex;
    align-items: center;
    text-align: left;
}
.about-simple-text ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #28a745;
    margin-right: 10px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .about-simple-content {
        flex-direction: column; /* Ensures it stacks vertically */
        gap: 30px;
        max-width: 90%;
    }
    .about-simple-image {
        justify-content: center; /* Centers image when stacked */
        flex: 1 1 auto; /* Allow image to take natural width */
        max-width: 100%;
        order: initial; /* Reset order when stacked */
    }
    .about-simple-text {
        flex: 1 1 auto; /* Allow text to take natural width */
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
        order: initial; /* Reset order when stacked */
    }
    .about-simple-text h2 {
        font-size: 2em;
        text-align: center;
    }
    .about-simple-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-simple-text p, .about-simple-text ul {
        text-align: center;
        padding: 0 10px;
    }
    .about-simple-text ul li {
        text-align: left;
        justify-content: flex-start;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
}
@media (max-width: 576px) {
    .about-us-simple-section {
        padding: 20px 0;
    }
    .about-simple-content {
        padding: 10px;
    }
    .about-simple-text h2 {
        font-size: 1.8em;
    }
    .about-simple-text p {
        font-size: 1em;
    }
}


/* --- Contact Us Page Specific Styles --- */

.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-section .section-title {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 40px;
}

.contact-content {
    /* Adjusted max-width to make it wider */
    max-width: 1000px; /* Changed from 800px to 1000px for wider view */
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    flex: none;
    width: 100%;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    box-sizing: border-box;
}

.contact-info h2 {
    color: #007bff;
    font-size: 2em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.contact-info p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    color: #007bff;
    margin-right: 15px;
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.contact-info p a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.social-links-contact {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-links-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9f5ff;
    color: #007bff;
    font-size: 1.4em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links-contact a:hover {
    background-color: #007bff;
    color: #fff;
}


/* Responsive Adjustments for Contact Page */
@media (max-width: 992px) {
    .contact-section {
        padding: 40px 0;
    }
    .contact-section .section-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .contact-content {
        max-width: 90%; /* Adjusted for smaller screens */
        padding: 15px;
    }
    .contact-info {
        padding: 25px;
    }
    .contact-info h2 {
        font-size: 1.8em;
        text-align: center;
    }
    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-info p {
        justify-content: center;
        text-align: center;
    }
    .social-links-contact {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 20px 0;
    }
    .contact-info {
        padding: 20px;
    }
    .contact-info p {
        font-size: 1em;
    }
}

/* --- Final Full Screen Adjustment for Contact Page --- */

/* Override the default .container behavior for this specific page */
.main-content-wrapper.container.contact-page-wrapper {
    max-width: 95% !important; /* Make it take 95% of the viewport width */
    padding: 0 20px !important; /* Add some padding on the sides */
    width: auto !important; /* Allow width to be determined by max-width */
    box-sizing: border-box !important; /* Ensure padding is included in width */
    margin: 0 auto !important; /* Keep it centered */
}

/* Ensure the contact section within this wrapper also expands */
.main-content-wrapper.container.contact-page-wrapper .contact-section {
    max-width: 100% !important; /* Allow the inner section to take full width of the wrapper */
    margin: 0 auto !important; /* Center if it doesn't take full width */
    padding-left: 0 !important; /* Remove internal padding if wrapper handles it */
    padding-right: 0 !important; /* Remove internal padding if wrapper handles it */
    box-shadow: none !important; /* Optional: remove the shadow if you want it to blend more */
    border-radius: 0 !important; /* Optional: remove border-radius for full width */
    background-color: transparent !important; /* Optional: make background transparent if you want it to extend */
}

/* Ensure the contact-info block itself also takes the full available space */
.main-content-wrapper.container.contact-page-wrapper .contact-content {
    max-width: 100% !important; /* Make it take 100% of the section */
    margin: 0 !important; /* Remove auto margin to stretch */
    padding: 0 !important; /* Remove any padding that might limit width */
}

.main-content-wrapper.container.contact-page-wrapper .contact-info {
    width: 100% !important; /* Ensure it truly fills */
    padding: 40px !important; /* Increase padding inside the box for content */
    box-sizing: border-box !important;
}

/* Responsive adjustments for very small screens */
@media (max-width: 768px) {
    .main-content-wrapper.container.contact-page-wrapper {
        max-width: 100% !important; /* On small screens, take full width */
        padding: 0 15px !important;
    }
    .main-content-wrapper.container.contact-page-wrapper .contact-info {
        padding: 25px !important; /* Adjust padding for smaller screens */
    }
}