/*
Theme Name: OpenEstate
Theme URI: http://example.com/openestate
Author: OpenCode
Author URI: http://example.com
Description: A comprehensive Real Estate theme with built-in functionality (No plugins required). Similar to Houzez/Homy.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openestate
Tags: real-estate, custom-background, custom-logo, custom-menu, featured-images
*/

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --accent-color: #28a745;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Cards */
.property-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.property-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.property-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

/* Search Form */
.hero-search {
    background: var(--dark-color);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.search-form-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.search-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-fields input, .search-fields select {
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    min-width: 150px;
}

.btn-search {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.btn-search:hover {
    background: #0056b3;
    text-decoration: none;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    color: var(--dark-color);
    font-weight: 500;
}

/* Single Property */
.single-property-header {
    margin-bottom: 30px;
}

.property-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.property-features ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.property-features li {
    width: 50%;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .col-4, .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
