/* Base Styles Color Scheme of Website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
    line-height: 1.6; /* Spacing between text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('../img/home_banner_1.jpg');
    background-size: cover;
    background-position: center;
}

/* Headings */
h1, h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: bold;
}

h1 {
    font-size: 2.2em;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

/* Navigation Bar */
nav {
    background-color: var(--primary-color);
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--hover-color);
}

/* Section Styling */
section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--section-background-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    background-color: var(--link-hover-background-color);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Buttons */
button {
    background-color: var(--button-background-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: var(--button-hover-background-color);
    color: var(--button-hover-text-color);
}

/* Forms */
form {
    background-color: var(--form-background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

form label {
    color: var(--label-color);
    display: block;
    margin-bottom: 8px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    background-color: var(--input-background-color);
    color: var(--input-text-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: var(--table-background-color);
    color: var(--table-text-color);
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--table-border-color);
}

th {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
}

td {
    background-color: var(--table-cell-background-color);
}

/* Chat Box */
#chat-container {
    background-color: var(--chat-background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

#chat-box {
    height: 300px;
    overflow-y: auto;
    background-color: var(--chat-box-background-color);
    border: 1px solid var(--chat-box-border-color);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#message-input {
    width: 80%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--input-border-color);
    background-color: var(--input-background-color);
    color: var(--input-text-color);
    margin-right: 10px;
}

#send-btn {
    background-color: var(--button-background-color);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#send-btn:hover {
    background-color: var(--button-hover-background-color);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    background-color: var(--footer-background-color);
    color: white;
    font-size: 0.9em;
    border-top: 4px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        font-size: 90%;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    .image-container img {
        width: 100%;
        margin: 5px 0;
    }

    form input, form textarea {
        font-size: 0.9em;
    }
}

/* Light Theme Variables */
:root {
    --background-color: #ffffff;
    --text-color: #1f1f1f;
    --primary-color: #2980b9;
    --hover-color: #084298;
    --button-background-color: #2980b9;
    --button-hover-background-color: #084298;
    --button-hover-text-color: #ffffff;
    --table-background-color: #f9f9f9;
    --table-text-color: #1f1f1f;
    --table-header-background-color: #2980b9;
    --table-header-text-color: white;
    --table-border-color: #dddddd;
    --table-cell-background-color: #ffffff;
    --form-background-color: #f9f9f9;
    --label-color: #1f1f1f;
    --input-background-color: #ffffff;
    --input-text-color: #1f1f1f;
    --input-border-color: #dddddd;
    --chat-background-color: #f9f9f9;
    --chat-box-background-color: #ffffff;
    --chat-box-border-color: #dddddd;
    --footer-background-color: #2c3e50;
    --link-color: #C0C0C0;
    --link-hover-color: #FFFFFF;
    --link-hover-background-color: #556B2F;
}

/* Dark Theme Variables */
.dark-mode {
    --background-color: #2d2d2d;
    --text-color: #f1f1f1;
    --primary-color: #556B2F;
    --hover-color: #066b12;
    --button-background-color: #556B2F;
    --button-hover-background-color: #066b12;
    --button-hover-text-color: #f1f1f1;
    --table-background-color: #2c2c2c;
    --table-text-color: #f1f1f1;
    --table-header-background-color: #556B2F;
    --table-header-text-color: white;
    --table-border-color: #444444;
    --table-cell-background-color: #2c2c2c;
    --form-background-color: #2c2c2c;
    --label-color: #f1f1f1;
    --input-background-color: #2c2c2c;
    --input-text-color: #f1f1f1;
    --input-border-color: #444444;
    --chat-background-color: #2c2c2c;
    --chat-box-background-color: #2c2c2c;
    --chat-box-border-color: #444444;
    --footer-background-color: #1C1C1C;
    --link-color: #a0a0a0;
    --link-hover-color: #f1f1f1;
    --link-hover-background-color: #066b12;
}


#theme-toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px; /* Adjust the size of the icons */
    color: var(--text-color); /* Default icon color (light or dark mode) */
    transition: transform 2.50s ease; /* Smooth transition for scaling effect */
}

/* Ensure the icon remains visible when hovered */
#theme-toggle:hover {
    transform: scale(1.25); /* Slightly scale up the icon when hovered */
    color: var(--text-color); /* Keep the color the same as the default color on hover */
}

/* Keep the icon color consistent without changing on hover */
#theme-toggle i {
    transition: transform 2.50s ease;
}

/* Optional: Add a scale effect to make the icon grow slightly when hovered */
#theme-toggle:hover i {
    transform: scale(1.25); /* Scale the icon slightly when hovered */
}














/* General Section Fix */
section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}


section p {
    font-size: 1em;
    line-height: 1.6;
}

/* Call to Action Buttons */
.help-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space out buttons */
}

.help-button {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1em;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
}



/* About Section */
.about_us p {
    font-size: 1.1em;
    line-height: 1.6;
}


/* General Layout Fix */
section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
}

section.features ul {
    margin: 0;
    text-align: center;
}

section.features ul li {
    display: inline-block;
    margin-right: 15px;
}

section.features ul li div.icon {
    display: inline-block;
    margin: 5px;
    width: 250px;
    text-align: center;
}

section.features ul li div.icon img {
    height: 200px;
    width: 250px;
    object-fit: cover; /* Ensure image is correctly formatted */
}




/* Responsive Design */
@media (max-width: 768px) {
    .image-container img {
        width: 100%;
        height: auto;
    }

    .property-image {
        width: 100%;
        height: auto;
    }
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Adjust the width of images on smaller screens */
    .image-container img,
    .property-image {
        width: 100%;
        height: auto;
    }

    /* Ensure text aligns well on small screens */
    section {
        padding: 15px;
    }

    .help-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* General Image Fix */
.image-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.image-container img {
    width: 300px;  /* Set a fixed width for the images */
    height: 200px;  /* Set a fixed height for the images */
    object-fit: cover;  /* Ensures the image fits without distortion */
    border-radius: 8px;
}

/* For Property Images */
.property-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.property-image {
    width: 250px; /* Fixed width */
    height: 150px; /* Fixed height */
    object-fit: cover; /* Ensure the image doesn’t stretch */
    border-radius: 5px;
}

/* Features Section Images */
section.features ul li div.icon img {
    width: 250px;
    height: 200px;
    object-fit: cover; /* Prevents image stretching */
}





/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%; /* Make the search bar take up 60% of the width */
    margin: 0 auto; /* Center the search bar horizontally */
    border-radius: 25px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

/* Search Input Field */
#search-input {
    width: 80%; /* Make the input field 80% of the container width */
    padding: 10px 40px 10px 20px; /* Padding for text and icon spacing */
    border: none;
    border-radius: 25px;
    font-size: 18px;
    outline: none;
}

/* Search Button */
#search-button {
    position: absolute;
    right: 10px;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

#search-button img {
    width: 20px; /* Adjust icon size */
    height: 20px;
}

/* Clear Button */
#clear-button {
    position: absolute;
    right: 50px; /* Position the clear button next to the search icon */
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hidden by default, only shown when there’s text in input */
}

/* Show clear button when there's input text */
#search-input:not(:placeholder-shown) ~ #clear-button {
    display: block;
}

















