
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-text-color: #7f8c8d;
    --background-color: #f8f9fa;
    --white: #fff;
}
/* 
  Animation classes used throughout the site
  - fadeIn: Simple opacity fade
  - slideUp: Element slides up from bottom
*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}
/* 
  Navigation bar styling
  - Fixed at top with shadow
  - Contains logo, nav links and auth buttons
*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; /* Using var(--white) here might be too verbose, direct value is fine */
    background-color: #f4f2f2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.tagline {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.login-btn, .register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.register-btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white);
}

.login-btn:hover {
    background: #f5f5f5;
}

.register-btn:hover {
    background: #c0392b; /* Could create a --primary-dark variable */
    border-color: #c0392b;
}
/* 
  Hero banner section
  - Full-width image background
  - Contains headline and search functionality
*/
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('House.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 5%; /* Using var(--white) here might be too verbose, direct value is fine */
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}
/* 
  Property search component
  - Tabs for filtering property types
  - Location and keyword search fields
*/
.search-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.property-tabs {
    display: flex;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--light-text-color);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.search-field i {
    color: var(--light-text-color);
    margin-right: 0.5rem;
}

.search-field select, .search-field input {
    flex: 1;
    border: none;
    outline: none; 
    background: transparent;
    font-size: 1rem;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}
.search-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2ecc71;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.toast.error {
    background: var(--primary-color);
}
/* About Section Styles */
.about-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.about-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.about-container .subtitle {
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    height: 400px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    margin: 1rem 0;
}

.values-list li {
    margin: 0.8rem 0;
    color: #555;
}

.values-list i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.contact-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-container .subtitle {
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-info {
    flex: 1;
    padding: 1rem;
}

.contact-form {
    flex: 1;
    padding: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--light-text-color);
}

.social-title {
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Properties Section Styles */
.properties-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.properties-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.properties-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.properties-container p {
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.property-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 180px;
}

.filter-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    height: fit-content;
}

.filter-btn:hover {
    background: #c0392b; /* Could create a --primary-dark variable */
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.property-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.property-details {
    padding: 1.2rem;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem; 
    color: #2c3e50;
}

.property-location {
    display: flex;
    align-items: center; 
    gap: 0.3rem;
    color: #7f8c8d;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.3rem; 
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Upload Section Styles */
.upload-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.upload-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.upload-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.upload-container p {
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-weight: 600;
    color: var(--secondary-color);
}

input, select, textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea {
    resize: vertical;
}

.image-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-btn {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 1.5rem;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.upload-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.upload-btn i {
    font-size: 2rem;
}

#propertyImages {
    display: none;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #c0392b; 
}

/* Footer Styles */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.link-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.link-column a:hover {
    color: var(--primary-color);
}

.link-column p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-field, .search-btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}