/*
Theme Name: 99Acres Real Estate Pro
Theme URI: https://yourwebsite.com/
Author: Real Estate Solutions
Author URI: https://yourwebsite.com/
Description: Complete real estate WordPress theme inspired by 99acres.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 99acres-theme
Tags: real-estate, responsive, property, listings, agents, custom-logo, custom-menu
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.site-branding h1,
.site-branding p {
    margin: 0;
}

.site-title a {
    color: #2c5282;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.site-description {
    color: #666;
    font-size: 0.9rem;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #2c5282;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Property Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.property-content {
    padding: 1.5rem;
}

.property-title {
    margin-bottom: 1rem;
}

.property-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.property-title a:hover {
    color: #2c5282;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.property-meta .price {
    color: #27ae60;
    font-size: 1.1rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.property-details i {
    margin-right: 0.5rem;
    color: #2c5282;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #2c5282;
    color: #fff;
}

.btn-primary:hover {
    background: #2a4d7a;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #2c5282;
    border: 2px solid #2c5282;
}

.btn-outline:hover {
    background: #2c5282;
    color: #fff;
}

/* Single Property */
.property-single .container {
    max-width: 1400px;
}

.property-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.property-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.property-header {
    margin-bottom: 2rem;
}

.property-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    text-align: center;
}

.meta-item .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.meta-item .value {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.property-description {
    margin: 2rem 0;
    line-height: 1.8;
}

.property-terms {
    margin: 2rem 0;
}

.term-group {
    margin-bottom: 1rem;
}

.term-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #2c5282;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem;
}

/* Agent Info Sidebar */
.agent-info {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.agent-info h3 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #2c5282;
    padding-bottom: 0.5rem;
}

.agent-details {
    margin-bottom: 2rem;
}

.agent-details p {
    margin-bottom: 0.5rem;
}

.agent-details a {
    color: #2c5282;
    text-decoration: none;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44,82,130,0.1);
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    margin-bottom: 2rem;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #ccc;
}

.copyright {
    text-align: right;
}

.copyright p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #ccc;
}

.copyright a {
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .property-card {
        margin-bottom: 1rem;
    }
    
    .property-content {
        padding: 1rem;
    }
    
    .agent-info {
        padding: 1.5rem;
    }
    
    .property-meta {
        grid-template-columns: 1fr;
    }
}

/* WordPress specific styles */
.wp-block-cover {
    background-size: cover;
    background-position: center;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.editor-styles-wrapper {
    font-family: 'Inter', sans-serif;
}

/* Search Form Styles */
.property-search-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.search-fields input,
.search-fields select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.search-fields .btn {
    padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
    .search-fields {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }