* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.logo span {
    color: #ff6b35;
}

.header-contacts {
    display: flex;
    gap: 30px;
    align-items: center;
}

.phone i, .city-selector i {
    color: #ff6b35;
    margin-right: 8px;
}

.city-selector select {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #ff6b35;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #e55a2b;
}

.btn-outline {
    border: 1px solid #ff6b35;
    color: #ff6b35;
    background: transparent;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-container h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: #fff;
    color: #ff6b35;
}

.search-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-search {
    padding: 10px 40px;
    align-self: flex-end;
}

.advanced-search {
    text-align: center;
    margin-top: 20px;
}

.advanced-search a {
    color: #666;
    text-decoration: none;
}

.advanced-search a:hover {
    color: #ff6b35;
}

/* Property Cards */
.popular-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    color: #1a1a1a;
}

.view-all {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.view-all i {
    margin-left: 5px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.property-content {
    padding: 20px;
}

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

.property-title a {
    color: #1a1a1a;
    text-decoration: none;
}

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

.property-address {
    color: #888;
    margin-bottom: 15px;
    font-size: 14px;
}

.property-address i {
    margin-right: 5px;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.property-features i {
    margin-right: 5px;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 40px;
    color: #ff6b35;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    color: #ff6b35;
    font-weight: 500;
}

/* Agents Section */
.agents-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.agents-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.agent-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agent-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px;
    border: 3px solid #ff6b35;
}

.agent-card h3 {
    margin-bottom: 5px;
}

.agent-card p {
    color: #888;
    margin-bottom: 15px;
}

.agent-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.agent-contacts {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.agent-contacts a {
    color: #888;
    font-size: 20px;
    transition: color 0.3s;
}

.agent-contacts a:hover {
    color: #ff6b35;
}

/* Mortgage Calculator */
.mortgage-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mortgage-calculator {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.mortgage-calculator h2 {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-row {
    display: flex;
    gap: 20px;
}

.calc-field {
    flex: 1;
}

.calc-field label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.calc-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.calc-result span {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: #ff6b35;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ff6b35;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 10px;
    color: #ff6b35;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #aaa;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-row {
        flex-direction: column;
    }
}