/* Kenya Realty Theme CSS - Offline Ready */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

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

header {
    background: #1b5e20;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #8bc34a;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #cddc39;
}

.hero {
    background: linear-gradient(rgba(27, 94, 32, 0.8), rgba(27, 94, 32, 0.8)), 
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    color: white;
    padding: 10rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.6rem;
    margin-top: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: #cddc39;
    color: #1b5e20;
    text-decoration: none;
    font-weight: 900;
    border-radius: 8px;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-alt {
    background: transparent;
    border: 2px solid #cddc39;
    color: #cddc39;
}

.btn-sm {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #1b5e20;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.property-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #cddc39;
}

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

.card-body {
    padding: 20px;
}

.price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2e7d32;
}

.card-body h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.card-body h3 a {
    color: #333;
    text-decoration: none;
}

.location {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.specs {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.property-detail h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.price-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1b5e20;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 5px;
}

.specs-grid {
    background: #f4f4f4;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE QUERIES
   ============================================ */

/* TABLETS (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 15px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1.5rem;
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE (480px and below) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .property-detail h1 {
        font-size: 2rem;
    }

    .price-big {
        font-size: 1.8rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

footer {
    background: #1b5e20;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
}