/* =========================================================
   واجهة عقارك | حي عريض
   CSS FINAL
   هيدر واحد + ثابت أثناء النزول
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --green:#2e7d32;
    --green-dark:#256429;
    --green-light:#edf7ee;
    --black:#171717;
    --text:#333;
    --muted:#777;
    --bg:#f8f9f8;
    --white:#fff;
    --border:#e8e8e8;
    --shadow:0 12px 35px rgba(0,0,0,.07);
}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    width:100%;
    min-height:100vh;

    background:#fff;
    color:var(--black);

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    line-height:1.8;

    overflow-x:hidden;
    overflow-y:auto;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
select,
textarea{
    font-family:inherit;
}

img{
    display:block;
    max-width:100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.container{
    width:min(1180px,92%);
    margin:auto;
}


/* =========================================================
   QUICK NAV
   نخفي الشريط المكرر.
   الهيدر الرئيسي هو الذي يبقى ثابت.
========================================================= */

.quick-nav{
    display:none !important;
}


/* =========================================================
   HEADER
   هيدر واحد فقط وثابت أثناء النزول
========================================================= */

.site-header{
    position:fixed;

    top:18px;
    right:0;
    left:0;

    z-index:99999;

    width:100%;

    pointer-events:none;
}

.header-inner{
    width:min(1180px,92%);
    min-height:78px;

    margin:auto;
    padding:10px 24px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:25px;

    background:rgba(255,255,255,.97);

    border:1px solid rgba(0,0,0,.06);

    border-radius:17px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.12);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    pointer-events:auto;
}


/* =========================================================
   LOGO
========================================================= */

.logo{
    display:flex;
    align-items:center;

    flex-shrink:0;
}

.logo img{
    width:145px;
    height:auto;

    object-fit:contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav{
    display:flex;
    align-items:center;
    justify-content:center;

    gap:30px;
}

.main-nav a{
    position:relative;

    padding:10px 0;

    color:#222;

    font-size:14px;
    font-weight:900;

    transition:
        color .25s ease;
}

.main-nav a:hover{
    color:var(--green);
}

.main-nav a::after{
    content:"";

    position:absolute;

    right:0;
    bottom:1px;
    left:0;

    height:2px;

    border-radius:50px;

    background:var(--green);

    transform:scaleX(0);

    transform-origin:center;

    transition:
        transform .25s ease;
}

.main-nav a:hover::after{
    transform:scaleX(1);
}


/* =========================================================
   CONTACT HEADER BUTTON
========================================================= */

.header-contact{
    min-width:130px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:12px 20px;

    border-radius:9px;

    background:var(--green);
    color:#fff;

    font-size:13px;
    font-weight:900;

    transition:
        background .25s ease,
        transform .25s ease;
}

.header-contact:hover{
    background:var(--green-dark);

    color:#fff;

    transform:translateY(-2px);
}


/* =========================================================
   LANGUAGES
========================================================= */

.languages{
    position:fixed;

    top:38px;
    left:20px;

    z-index:100000;

    display:flex;
    align-items:center;

    gap:3px;

    padding:4px;

    background:#fff;

    border:1px solid #eee;

    border-radius:10px;

    box-shadow:
        0 6px 20px rgba(0,0,0,.10);
}

.languages button{
    border:0;
    outline:0;

    padding:7px 9px;

    border-radius:7px;

    background:transparent;

    color:#444;

    font-size:10px;
    font-weight:900;

    cursor:pointer;

    transition:.25s ease;
}

.languages button:hover{
    background:var(--green-light);

    color:var(--green);
}

.languages button.active{
    background:var(--green);

    color:#fff;
}


/* =========================================================
   HERO
========================================================= */

.hero{
    position:relative;

    width:100%;
    min-height:720px;

    display:flex;
    align-items:center;

    overflow:hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.76),
            rgba(0,0,0,.48),
            rgba(0,0,0,.65)
        ),
        url("images/arid-hero.jpg")
        center center / cover no-repeat;
}

.hero-overlay{
    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(46,125,50,.25),
            transparent 38%
        );
}

.hero-container{
    position:relative;
    z-index:2;
}

.hero-content{
    max-width:760px;

    padding-top:85px;

    color:#fff;
}

.hero-small{
    display:inline-flex;

    margin-bottom:16px;

    padding:6px 16px;

    border-radius:50px;

    background:var(--green);

    color:#fff;

    font-size:13px;
    font-weight:900;
}

.hero h1{
    margin-bottom:17px;

    color:#fff;

    font-size:
        clamp(45px,6vw,72px);

    line-height:1.15;

    font-weight:900;
}

.hero p{
    max-width:650px;

    color:rgba(255,255,255,.9);

    font-size:17px;

    line-height:2;
}

.hero-buttons{
    display:flex;

    gap:12px;

    margin-top:28px;
}

.btn{
    min-width:165px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:13px 22px;

    border-radius:9px;

    font-size:13px;
    font-weight:900;

    transition:.3s ease;
}

.btn-primary{
    background:var(--green);
    color:#fff;
}

.btn-primary:hover{
    background:var(--green-dark);
    color:#fff;

    transform:translateY(-3px);
}

.btn-outline{
    border:1px solid #fff;

    color:#fff;
}

.btn-outline:hover{
    background:#fff;
    color:#222;

    transform:translateY(-3px);
}


/* =========================================================
   SECTIONS
========================================================= */

.section{
    position:relative;

    width:100%;

    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    padding:
        105px 0;

    overflow:visible !important;
}

.section + .section{
    border-top:
        1px solid #f0f0f0;
}

.section:nth-of-type(even){
    background:var(--bg);
}


/* =========================================================
   TITLES
========================================================= */

.section-title{
    width:100%;
    max-width:760px;

    margin:
        0 auto 60px;

    text-align:center;
}

.section-title > span{
    display:block;

    margin-bottom:8px;

    color:var(--green);

    font-size:13px;
    font-weight:900;
}

.section-title h2{
    margin:0;

    color:#171717;

    font-size:
        clamp(30px,4vw,43px);

    line-height:1.4;

    font-weight:900;

    text-align:center;
}

.title-line{
    width:54px;
    height:3px;

    margin:
        14px auto 18px;

    border-radius:50px;

    background:var(--green);
}

.section-title p{
    max-width:680px;

    margin:auto;

    color:var(--muted);

    font-size:14px;

    line-height:2;

    text-align:center;
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid{
    width:100%;

    display:grid;

    grid-template-columns:
        1fr 1fr;

    gap:28px;

    align-items:stretch;
}

.about-text{
    min-height:400px;

    padding:40px;

    display:flex;
    flex-direction:column;
    justify-content:center;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    box-shadow:var(--shadow);
}

.about-text h3{
    margin-bottom:16px;

    color:#171717;

    font-size:26px;
    font-weight:900;
}

.about-text p{
    color:#666;

    font-size:15px;

    line-height:2.15;
}

.map-box{
    position:relative;

    width:100%;
    height:400px;

    overflow:hidden;

    background:#eee;

    border-radius:18px;

    box-shadow:var(--shadow);
}

.map-box img{
    width:100%;
    height:100%;

    object-fit:cover;

    cursor:zoom-in;

    transition:
        transform .5s ease;
}

.map-box:hover img{
    transform:scale(1.025);
}

.map-caption{
    position:absolute;

    right:16px;
    bottom:16px;
    left:16px;

    padding:11px 15px;

    background:rgba(255,255,255,.95);

    border-radius:10px;

    color:#222;

    font-size:12px;
    font-weight:900;

    box-shadow:
        0 5px 18px rgba(0,0,0,.08);
}

.map-zoom{
    position:absolute;

    top:16px;
    left:16px;

    z-index:2;

    width:43px;
    height:43px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;

    border-radius:9px;

    background:var(--green);
    color:#fff;

    font-size:19px;

    cursor:pointer;

    transition:.25s ease;
}

.map-zoom:hover{
    background:var(--green-dark);

    transform:scale(1.05);
}


/* =========================================================
   FEATURES
========================================================= */

.features-grid{
    width:100%;

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:20px;
}

.feature-card{
    position:relative;

    min-height:275px;

    padding:30px;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    box-shadow:
        0 9px 28px rgba(0,0,0,.05);

    transition:.35s ease;
}

.feature-card:hover{
    transform:translateY(-7px);

    border-color:
        rgba(46,125,50,.25);

    box-shadow:
        0 18px 40px rgba(0,0,0,.10);
}

.feature-number{
    color:#b5b5b5;

    font-size:11px;
    font-weight:900;
}

.feature-icon{
    width:58px;
    height:58px;

    margin:
        17px 0;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:15px;

    background:var(--green-light);

    color:var(--green);

    font-size:27px;
    font-weight:900;
}

.feature-card h3{
    margin-bottom:8px;

    color:#171717;

    font-size:20px;
    font-weight:900;
}

.feature-card p{
    color:#777;

    font-size:13px;

    line-height:2;
}


/* =========================================================
   LOCATION
========================================================= */

.location-card{
    width:100%;

    display:grid;

    grid-template-columns:
        1.45fr .8fr;

    overflow:hidden;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    box-shadow:var(--shadow);
}

.location-image{
    min-height:440px;
}

.location-image img{
    width:100%;
    height:440px;

    object-fit:cover;
}

.location-info{
    min-height:440px;

    padding:42px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.location-icon{
    width:58px;
    height:58px;

    margin-bottom:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:15px;

    background:var(--green-light);

    color:var(--green);

    font-size:27px;
}

.location-info h3{
    margin-bottom:9px;

    font-size:26px;
    font-weight:900;
}

.location-info p{
    color:#777;

    font-size:14px;

    line-height:2;
}

.location-button{
    margin-top:23px;

    padding:13px;

    border-radius:9px;

    background:var(--green);
    color:#fff;

    text-align:center;

    font-size:12px;
    font-weight:900;

    transition:.25s ease;
}

.location-button:hover{
    background:var(--green-dark);
    color:#fff;
}


/* =========================================================
   PROPERTIES
========================================================= */

.property-grid{
    width:100%;

    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:20px;

    align-items:start;
}

.property-card{
    width:100%;
    min-width:0;

    height:auto !important;
    max-height:none !important;

    overflow:hidden;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    box-shadow:
        0 9px 28px rgba(0,0,0,.05);

    transition:.35s ease;
}

.property-card:hover{
    transform:translateY(-7px);

    box-shadow:
        0 18px 42px rgba(0,0,0,.10);
}

.property-image{
    width:100%;

    height:225px;
    min-height:225px;

    overflow:hidden;

    background:#eee;
}

.property-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:
        transform .5s ease;
}

.property-card:hover
.property-image img{
    transform:scale(1.05);
}

.no-image{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f0f0f0;

    color:#aaa;

    font-size:13px;
    font-weight:900;
}

.property-body{
    width:100%;

    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    padding:22px;

    overflow:visible !important;
}

.property-location{
    display:block;

    margin-bottom:6px;

    color:var(--green);

    font-size:11px;
    font-weight:900;
}

.property-body h3{
    margin:
        5px 0 13px;

    color:#222;

    font-size:18px;

    line-height:1.6;

    font-weight:900;
}

.property-row{
    width:100%;

    min-height:40px;

    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:12px;

    padding:9px 0;

    border-top:
        1px solid #eee;

    font-size:12px;
}

.property-row span{
    flex-shrink:0;

    color:#777;
}

.property-row strong{
    max-width:65%;

    color:var(--green);

    text-align:left;

    overflow-wrap:anywhere;
}

.property-description{
    margin-top:12px;

    padding-top:12px;

    border-top:
        1px solid #eee;

    color:#666;

    font-size:12px;

    line-height:1.9;

    overflow-wrap:anywhere;
}

.property-button{
    width:100%;

    display:block;

    margin-top:14px;

    padding:12px;

    border-radius:9px;

    background:var(--green);
    color:#fff;

    text-align:center;

    font-size:12px;
    font-weight:900;

    transition:.25s ease;
}

.property-button:hover{
    background:var(--green-dark);
    color:#fff;
}

.empty-properties{
    grid-column:1/-1;

    padding:65px 20px;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    text-align:center;
}

.empty-icon{
    margin-bottom:8px;

    color:var(--green);

    font-size:42px;
}

.empty-properties h3{
    margin-bottom:6px;

    font-size:21px;
    font-weight:900;
}

.empty-properties p{
    color:#777;

    font-size:13px;
}


/* =========================================================
   CONTACT
========================================================= */

.phones-grid{
    width:100%;

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:20px;
}

.phone-card{
    padding:32px 23px;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    box-shadow:
        0 9px 28px rgba(0,0,0,.05);

    text-align:center;

    transition:.35s ease;
}

.phone-card:hover{
    transform:translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.09);
}

.phone-card-icon{
    width:60px;
    height:60px;

    margin:
        0 auto 15px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:var(--green-light);

    color:var(--green);

    font-size:24px;
}

.phone-card h3{
    margin-bottom:18px;

    direction:ltr;

    font-size:20px;
    font-weight:900;
}

.phone-actions{
    display:flex;

    justify-content:center;

    gap:8px;
}

.phone-actions a{
    flex:1;

    max-width:120px;

    padding:10px 7px;

    border-radius:8px;

    background:var(--green-light);

    color:var(--green);

    font-size:11px;
    font-weight:900;

    transition:.25s ease;
}

.phone-actions a:hover{
    background:var(--green);

    color:#fff;
}

.email-box{
    max-width:620px;

    margin:
        22px auto 0;

    padding:20px;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:13px;

    text-align:center;

    box-shadow:
        0 7px 22px rgba(0,0,0,.04);
}

.email-box span{
    display:block;

    margin-bottom:4px;

    color:#777;

    font-size:12px;
}

.email-box a{
    direction:ltr;

    color:var(--green);

    font-size:13px;
    font-weight:900;
}


/* =========================================================
   REQUEST
========================================================= */

.request-box{
    width:100%;
    max-width:850px;

    margin:auto;

    padding:40px;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

    box-shadow:var(--shadow);
}

.form-grid{
    width:100%;

    display:grid;

    grid-template-columns:
        1fr 1fr;

    gap:17px;
}

.form-field{
    min-width:0;
}

.form-field.full{
    grid-column:1/-1;
}

.form-field label{
    display:block;

    margin-bottom:6px;

    color:#222;

    font-size:12px;
    font-weight:900;
}

.form-field input,
.form-field select,
.form-field textarea{
    width:100%;

    outline:none;

    border:
        1px solid #ddd;

    border-radius:9px;

    background:#fff;

    color:#222;

    transition:.25s ease;
}

.form-field input,
.form-field select{
    height:50px;

    padding:
        0 13px;
}

.form-field textarea{
    min-height:135px;

    padding:13px;

    resize:vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
    border-color:var(--green);

    box-shadow:
        0 0 0 4px
        rgba(46,125,50,.07);
}

.submit-button{
    position:relative;

    width:100%;
    height:53px;

    overflow:hidden;

    border:0;

    border-radius:9px;

    background:var(--green);

    color:#fff;

    cursor:pointer;

    font-size:13px;
    font-weight:900;

    transition:.25s ease;
}

.submit-button:hover{
    background:var(--green-dark);

    transform:translateY(-2px);
}

.submit-button i{
    position:absolute;

    top:0;
    left:-100%;

    width:55%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.30),
            transparent
        );

    animation:
        shine 3s infinite;
}

.success-message,
.error-message{
    margin-bottom:18px;

    padding:13px;

    border-radius:9px;

    text-align:center;

    font-size:12px;
    font-weight:900;
}

.success-message{
    background:var(--green-light);

    color:var(--green);
}

.error-message{
    background:#ffeded;

    color:#a00000;
}


/* =========================================================
   FOOTER
========================================================= */

.footer{
    width:100%;

    padding-top:60px;

    background:#111;

    color:#fff;
}

.footer-grid{
    display:grid;

    grid-template-columns:
        1.4fr 1fr 1fr;

    gap:45px;

    padding-bottom:40px;
}

.footer-brand img{
    width:140px;

    margin-bottom:13px;
}

.footer p{
    max-width:350px;

    color:#999;

    font-size:12px;

    line-height:2;
}

.footer h3{
    margin-bottom:15px;

    font-size:15px;
}

.footer a{
    display:block;

    width:max-content;

    margin-bottom:8px;

    color:#999;

    font-size:12px;

    transition:.2s ease;
}

.footer a:hover{
    color:#fff;
}

.footer-bottom{
    padding:18px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    color:#777;

    font-size:11px;

    text-align:center;
}


/* =========================================================
   ANIMATIONS
========================================================= */

.feature-card,
.property-card,
.phone-card,
.about-text,
.map-box,
.location-card,
.request-box{
    animation:
        fadeUp .65s ease both;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(22px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes shine{

    0%{
        left:-100%;
    }

    45%,
    100%{
        left:130%;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1000px){

    .main-nav{
        gap:18px;
    }

    .main-nav a{
        font-size:12px;
    }

    .header-contact{
        min-width:105px;

        padding:
            10px 14px;

        font-size:11px;
    }

    .about-grid,
    .location-card{
        grid-template-columns:1fr;
    }

    .features-grid,
    .property-grid,
    .phones-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

    .location-image img{
        height:380px;
    }

    .location-info{
        min-height:auto;
    }

    .footer-grid{
        grid-template-columns:
            1fr 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:700px){

    .site-header{
        top:10px;
    }

    .header-inner{
        width:94%;

        min-height:62px;

        padding:
            8px 12px;

        border-radius:14px;
    }

    .logo img{
        width:108px;
    }

    .main-nav{
        display:none;
    }

    .header-contact{
        min-width:auto;

        padding:
            9px 12px;

        font-size:10px;
    }

    .languages{
        top:82px;
        left:9px;
    }


    .hero{
        min-height:670px;
    }

    .hero-content{
        padding-top:100px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:14px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }


    .section{
        padding:
            80px 0;
    }

    .section-title{
        margin-bottom:42px;
    }

    .section-title h2{
        font-size:29px;
    }

    .section-title p{
        font-size:13px;
    }


    .about-grid,
    .features-grid,
    .property-grid,
    .phones-grid,
    .form-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }


    .about-text{
        min-height:0;

        padding:28px;
    }

    .map-box{
        height:320px;
    }


    .location-image img{
        height:320px;
    }

    .location-info{
        min-height:0;

        padding:28px;
    }


    .property-image{
        height:215px;
        min-height:215px;
    }

    .property-row strong{
        max-width:58%;
    }


    .request-box{
        padding:24px;
    }

    .form-field.full{
        grid-column:auto;
    }


    .footer-grid{
        gap:28px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:400px){

    .hero h1{
        font-size:36px;
    }

    .section-title h2{
        font-size:26px;
    }

    .phone-actions{
        flex-direction:column;
    }

    .phone-actions a{
        max-width:none;
    }
}