* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #142b45;
    --gold: #c49a5a;
    --light: #f6f7f9;
    --text: #263445;
    --muted: #778392;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

button, input, select {
    font-family: inherit;
}

button, a {
    cursor: pointer;
}

a {
    text-decoration: none;
}

/* Header */

.header {
    background: white;
    min-height: 85px;
    padding: 12px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 3px 20px #142b4510;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    direction: ltr;
}

.logo span {
    color: var(--gold);
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.navbar a:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.login-btn, .add-property-btn {
    padding: 10px 17px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.login-btn {
    background: white;
    border: 1px solid #ddd;
    color: var(--navy);
}

.add-property-btn {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: white;
}

/* Hero */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    padding: 70px 9%;
    background:
        linear-gradient(90deg, #10263ddd, #10263d55),
        url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1800")
        center/cover;
}

.hero-content {
    max-width: 650px;
    color: white;
}

.hero-label {
    display: inline-block;
    color: #f0c987;
    border: 1px solid #ffffff60;
    padding: 7px 17px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.4;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero h1 span {
    color: #e5bd80;
}

.hero p {
    color: #e6eaf0;
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 13px 30px;
    background: var(--gold);
    color: white;
    border-radius: 7px;
    font-weight: 700;
    transition: .3s;
}

.hero-btn:hover {
    background: #a97d40;
    transform: translateY(-3px);
}

/* Search */

.search-section {
    width: 86%;
    max-width: 1200px;
    margin: -55px auto 0;
    position: relative;
    z-index: 2;
    background: white;
    padding: 30px;
    border-radius: 13px;
    box-shadow: 0 10px 40px #142b4515;
}

.search-section h2 {
    font-size: 23px;
    color: var(--navy);
    margin-bottom: 20px;
}

.search-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
    gap: 15px;
}

.search-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.search-field select {
    width: 100%;
    padding: 13px;
    border: 1px solid #e0e4e9;
    border-radius: 7px;
    background: white;
    color: var(--text);
    outline: none;
}

.search-field select:focus {
    border-color: var(--gold);
}

.search-btn {
    padding: 13px 28px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    transition: .3s;
}

.search-btn:hover {
    background: var(--gold);
}

/* Properties */

.properties-section {
    padding: 100px 7%;
    background: var(--light);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.section-heading span {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.section-heading h2 {
    color: var(--navy);
    font-size: 32px;
    margin-top: 5px;
}

.section-heading > a {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px #142b450b;
    transition: .3s;
}

.property-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px #142b451a;
}

.property-image {
    height: 235px;
    position: relative;
    overflow: hidden;
    background: #e8eaed;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.property-card:hover .property-image img {
    transform: scale(1.06);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 13px;
    border-radius: 5px;
    background: var(--gold);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 19px;
    color: var(--navy);
    margin-bottom: 7px;
}

.property-location {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.property-price {
    color: var(--gold);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 15px;
}

.property-details {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    color: var(--muted);
    font-size: 12px;
}

.property-info button {
    width: 100%;
    padding: 11px;
    margin-top: 17px;
    border: none;
    border-radius: 6px;
    background: var(--navy);
    color: white;
    font-weight: 700;
}

.property-info button:hover {
    background: var(--gold);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

/* About */

.about-section {
    text-align: center;
    padding: 85px 7%;
}

.about-section h2 {
    color: var(--navy);
    font-size: 34px;
    margin-bottom: 15px;
}

.about-section p {
    max-width: 650px;
    margin: auto;
    color: var(--muted);
}

/* Contact */

.contact-section {
    text-align: center;
    padding: 75px 20px;
    background: var(--navy);
    color: white;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-section p {
    color: #d8e0e8;
    margin-bottom: 25px;
}

.contact-section a {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
}

/* Footer */

.footer {
    text-align: center;
    background: #0d1d30;
    color: white;
    padding: 35px 20px;
}

.footer h2 {
    color: #e5bd80;
    font-size: 28px;
    direction: ltr;
}

.footer p {
    color: #c4ced8;
    font-size: 13px;
    margin-top: 8px;
}

/* Responsive */

@media (max-width: 950px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 18px;
    }

    .search-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header {
        padding: 15px 4%;
    }

    .navbar {
        gap: 12px;
    }

    .navbar a {
        font-size: 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 470px;
        padding: 45px 7%;
    }

    .hero p {
        font-size: 14px;
    }

    .search-section {
        width: 92%;
        padding: 20px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .search-btn {
        width: 100%;
    }

    .properties-section {
        padding: 75px 5%;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-image {
        height: 230px;
    }
}