/* style.css */

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

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

header {
    background-color: #c0392b;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

.hero {
    background: url('https://images.pexels.com/photos/1396122/pexels-photo-1396122.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') no-repeat center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn {
    background-color: #c0392b;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #962d22;
}

.btn.secondary {
    background-color: #6c757d;
}

.btn.secondary:hover {
    background-color: #5a6268;
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.about-snippet, .featured-properties, .properties-section, .about-section, .contact-section {
    padding: 60px 0;
}

h2, h1 {
    font-family: 'Roboto', sans-serif;
    color: #c0392b;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.property-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

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

.property-card h3, .property-card p {
    padding: 0 15px;
}

.property-card h3 {
    margin: 15px 0 5px;
}

.property-card p {
    margin: 0 0 15px;
    color: #666;
}

.property-card .btn {
    display: block;
    text-align: center;
    margin: 0 15px 15px;
}

.property-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 40px;
}

.property-stats {
    display: flex;
    justify-content: space-around;
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.description {
    margin-bottom: 20px;
}

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

.photos img {
    width: 50%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.map {
    text-align: center;
}

.map iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border: none;
    border-radius: 5px;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-section label {
    margin: 10px 0 5px;
    font-weight: 600;
}

.contact-section input, .contact-section textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

.contact-section button {
    align-self: flex-start;
}

.contact-info {
    text-align: center;
}

footer {
    background-color: #c0392b;
    color: white;
    text-align: center;
    padding: 20px 0;
}

html {
    scroll-padding-top: 80px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #c0392b;
        flex-direction: column;
        padding: 10px 0;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 10px;
    }

    .property-stats {
        flex-direction: column;
    }

    .photos {
        flex-direction: column;
    }

    .photos img {
        width: 100%;
    }
}
