/*
Theme Name:  EstateWheels
Description: ثيم سينمائي فاخر لمكاتب العقارات – بيع وإيجار مع تقسيط ودعم WhatsApp وخرائط GPS
Version:     1.1.0
Author:      EstateWheels
Text Domain: estatewheels
Requires PHP: 7.3
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --c-black:      #0A0A0A; --c-dark:   #111115; --c-dark2:  #1A1A1F;
    --c-dark3:      #252530; --c-gold:   #C8A96E; --c-gold-lt:#E8D5A3;
    --c-gold-dk:    #9A7A45; --c-cream:  #F8F4EE; --c-white:  #FFFFFF;
    --c-text:       #E8E4DC; --c-text-muted:#8A8680;
    --c-border:     rgba(200,169,110,.18); --c-border-lt:rgba(255,255,255,.08);
    --c-sale:       #22C55E; --c-rent:   #60A5FA;
    --f-display:    'Playfair Display', Georgia, serif;
    --f-body:       'IBM Plex Sans Arabic','Segoe UI',sans-serif;
    --gap:          clamp(16px,3vw,32px); --radius:14px; --radius-sm:8px;
    --ease:         cubic-bezier(.22,1,.36,1); --dur:.45s;
    --container:    1340px; --header-h:76px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--f-body);background:var(--c-dark);color:var(--c-text);direction:rtl;line-height:1.7;font-size:15px;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
img{max-width:100%;height:auto;display:block;}
a{color:var(--c-gold);text-decoration:none;transition:color .2s;}
a:hover{color:var(--c-gold-lt);}

.ew-container{width:min(100%,var(--container));margin-inline:auto;padding-inline:var(--gap);}

h1,h2,h3,h4,h5,h6{font-family:var(--f-display);font-weight:700;line-height:1.25;color:var(--c-white);}
h1{font-size:clamp(2rem,5vw,3.8rem);}h2{font-size:clamp(1.6rem,3.5vw,2.8rem);}h3{font-size:clamp(1.2rem,2.5vw,1.8rem);}
.ew-gold-text{color:var(--c-gold);}

.ew-section-heading{text-align:center;margin-bottom:clamp(32px,5vw,56px);position:relative;}
.ew-section-heading h2{margin-bottom:10px;}.ew-section-heading p{color:var(--c-text-muted);max-width:520px;margin-inline:auto;}
.ew-section-heading::after{content:'';display:block;width:64px;height:2px;background:linear-gradient(90deg,transparent,var(--c-gold),transparent);margin:16px auto 0;}

/* ── BUTTONS ── */
.ew-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 28px;border-radius:8px;font-family:var(--f-body);font-size:14px;font-weight:700;cursor:pointer;border:none;transition:transform .2s var(--ease),box-shadow .2s;white-space:nowrap;}
.ew-btn:hover{transform:translateY(-2px);}
.ew-btn-gold{background:linear-gradient(135deg,var(--c-gold),var(--c-gold-dk));color:var(--c-black);box-shadow:0 4px 20px rgba(200,169,110,.35);}
.ew-btn-gold:hover{box-shadow:0 8px 32px rgba(200,169,110,.5);color:var(--c-black);}
.ew-btn-outline{background:transparent;border:1.5px solid var(--c-gold);color:var(--c-gold);}
.ew-btn-outline:hover{background:rgba(200,169,110,.1);color:var(--c-gold);}
.ew-btn-whatsapp{background:linear-gradient(135deg,#25D366,#128C7E);color:white !important;box-shadow:0 4px 20px rgba(37,211,102,.3);}
.ew-btn-whatsapp:hover{box-shadow:0 8px 32px rgba(37,211,102,.5);transform:translateY(-3px);color:white;}

/* ── HEADER ── */
#ew-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);z-index:8000;transition:background .4s,box-shadow .4s;}
#ew-header.scrolled{background:rgba(10,10,10,.92);backdrop-filter:blur(20px);box-shadow:0 2px 24px rgba(0,0,0,.5);border-bottom:1px solid var(--c-border);}
.ew-header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;}
.ew-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--c-white);}
.ew-logo-icon{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,var(--c-gold),var(--c-gold-dk));display:flex;align-items:center;justify-content:center;font-size:20px;color:var(--c-black);font-weight:900;font-family:var(--f-display);}
.ew-logo-text strong{display:block;font-family:var(--f-display);font-size:17px;font-weight:800;color:var(--c-white);line-height:1.1;}
.ew-logo-text span{font-size:11px;color:var(--c-gold);letter-spacing:1.5px;text-transform:uppercase;}
.ew-nav ul{display:flex;list-style:none;gap:6px;align-items:center;}
.ew-nav ul li a{color:var(--c-text);font-size:14px;font-weight:500;padding:8px 14px;border-radius:6px;transition:all .2s;text-decoration:none;display:block;}
.ew-nav ul li a:hover,.ew-nav ul li.current-menu-item a{color:var(--c-gold);background:rgba(200,169,110,.1);}
.ew-hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;background:none;border:none;}
.ew-hamburger span{display:block;width:24px;height:2px;background:var(--c-text);border-radius:2px;transition:all .3s;}
.ew-hamburger.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.ew-hamburger.active span:nth-child(2){opacity:0;}
.ew-hamburger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ── HERO ── */
.ew-hero{min-height:100svh;position:relative;display:flex;align-items:center;overflow:hidden;}
.ew-hero-bg{position:absolute;inset:0;z-index:0;background:linear-gradient(135deg,#0A0A0A 0%,#1A1520 50%,#0D0D12 100%);}
.ew-hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.35;transform:scale(1.05);animation:ewHeroBgZoom 12s ease-in-out infinite alternate;}
.ew-hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,rgba(10,10,10,.2) 0%,rgba(10,10,10,.5) 60%,var(--c-dark) 100%);}
@keyframes ewHeroBgZoom{from{transform:scale(1.05);}to{transform:scale(1.12);}}
.ew-hero-content{position:relative;z-index:2;max-width:680px;}
.ew-hero-tag{display:inline-block;background:rgba(200,169,110,.15);border:1px solid rgba(200,169,110,.4);color:var(--c-gold);font-size:12px;letter-spacing:2px;text-transform:uppercase;padding:6px 16px;border-radius:20px;margin-bottom:22px;backdrop-filter:blur(8px);}
.ew-hero h1{font-size:clamp(2.4rem,6vw,4.5rem);font-weight:900;line-height:1.12;margin-bottom:22px;text-shadow:0 4px 32px rgba(0,0,0,.5);}
.ew-hero h1 em{font-style:normal;color:var(--c-gold);}
.ew-hero p{font-size:17px;color:rgba(232,228,220,.8);margin-bottom:36px;max-width:520px;line-height:1.75;}
.ew-hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.ew-hero-search{position:relative;z-index:2;margin-top:48px;background:rgba(26,26,31,.75);backdrop-filter:blur(24px);border:1px solid var(--c-border);border-radius:var(--radius);padding:20px 24px;}
.ew-hero-stats{display:flex;gap:clamp(24px,4vw,48px);margin-top:40px;position:relative;z-index:2;}
.ew-hero-stat strong{display:block;font-family:var(--f-display);font-size:2rem;color:var(--c-gold);font-weight:800;}
.ew-hero-stat span{font-size:12px;color:var(--c-text-muted);}

/* ── SECTIONS ── */
.ew-section{padding-block:clamp(48px,8vw,100px);}
.ew-section-dark{background:var(--c-dark);}
.ew-section-darker{background:var(--c-black);}
.ew-section-mid{background:var(--c-dark2);}

/* ── ARCHIVE HEADER ── */
.ew-archive-header{padding-block:clamp(80px,12vw,140px) clamp(40px,6vw,64px);text-align:center;position:relative;background:linear-gradient(to bottom,var(--c-black),var(--c-dark));border-bottom:1px solid var(--c-border);}
.ew-archive-header::before{content:'';position:absolute;inset:0;opacity:.04;background-image:repeating-linear-gradient(45deg,var(--c-gold) 0,var(--c-gold) 1px,transparent 0,transparent 50%);background-size:30px 30px;}
.ew-archive-header h1{position:relative;z-index:1;}
.ew-breadcrumb{font-size:13px;color:var(--c-text-muted);}
.ew-breadcrumb a{color:var(--c-text-muted);text-decoration:none;}.ew-breadcrumb a:hover{color:var(--c-gold);}

/* ── SINGLE PROPERTY ── */
.ew-single-layout{display:grid;gap:32px;grid-template-columns:1fr 360px;align-items:start;}
@media(max-width:900px){.ew-single-layout{grid-template-columns:1fr;}}
.ew-single-gallery{position:relative;border-radius:var(--radius);overflow:hidden;}
.ew-gallery-main{aspect-ratio:16/9;overflow:hidden;cursor:zoom-in;background:var(--c-dark2);}
.ew-gallery-main img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}.ew-gallery-main:hover img{transform:scale(1.04);}
.ew-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;margin-top:10px;}
.ew-gallery-thumb{aspect-ratio:1;border-radius:8px;overflow:hidden;cursor:pointer;border:2px solid transparent;opacity:.7;transition:opacity .2s,border-color .2s;}
.ew-gallery-thumb:hover,.ew-gallery-thumb.active{border-color:var(--c-gold);opacity:1;}
.ew-gallery-thumb img{width:100%;height:100%;object-fit:cover;}

/* Lightbox */
#ew-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.96);display:none;align-items:center;justify-content:center;flex-direction:column;}
#ew-lightbox.open{display:flex;}
#ew-lightbox .ew-gallery-slide{display:none;text-align:center;max-width:90vw;}
#ew-lightbox .ew-gallery-slide.active{display:block;}
#ew-lightbox img{max-height:82vh;border-radius:8px;}
#ew-lightbox-close{position:absolute;top:16px;right:20px;background:rgba(255,255,255,.1);border:none;color:white;width:38px;height:38px;border-radius:50%;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;}
#ew-lightbox-close:hover{background:rgba(255,255,255,.25);}
#ew-lb-prev,#ew-lb-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.1);border:none;color:white;width:48px;height:48px;border-radius:50%;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;}
#ew-lb-prev:hover,#ew-lb-next:hover{background:rgba(200,169,110,.4);}
#ew-lb-prev{left:16px;}#ew-lb-next{right:16px;}
#ew-lb-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.6);font-size:13px;}

/* Detail card */
.ew-detail-card{background:var(--c-dark2);border:1px solid var(--c-border);border-radius:var(--radius);padding:28px;position:sticky;top:calc(var(--header-h) + 16px);}
.ew-price-display{margin-bottom:24px;}
.ew-price-row{display:flex;align-items:baseline;gap:10px;margin-bottom:8px;}
.ew-price-tag{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:3px 8px;border-radius:4px;min-width:50px;text-align:center;}
.ew-price-tag-sale{background:rgba(34,197,94,.2);color:var(--c-sale);}
.ew-price-tag-rent{background:rgba(96,165,250,.2);color:var(--c-rent);}
.ew-price-main{font-family:var(--f-display);font-size:2rem;font-weight:800;color:var(--c-gold);line-height:1;}
.ew-price-period{font-size:13px;color:var(--c-text-muted);}
.ew-price-divider{height:1px;background:var(--c-border);margin:12px 0;}

/* Installment box */
.ew-installment-box{background:linear-gradient(135deg,rgba(200,169,110,.08),rgba(200,169,110,.04));border:1px solid rgba(200,169,110,.25);border-radius:10px;padding:18px;margin-bottom:20px;}
.ew-installment-box h4{font-size:14px;margin-bottom:14px;color:var(--c-gold);display:flex;align-items:center;gap:8px;}
.ew-inst-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.ew-inst-item{text-align:center;}
.ew-inst-label{font-size:11px;color:var(--c-text-muted);display:block;margin-bottom:3px;}
.ew-inst-value{font-size:16px;font-weight:700;color:var(--c-white);}
.ew-inst-value.highlight{color:var(--c-gold);}
.ew-inst-progress{margin-top:14px;background:rgba(255,255,255,.1);border-radius:20px;height:8px;overflow:hidden;}
.ew-inst-progress-bar{height:100%;border-radius:20px;background:linear-gradient(90deg,var(--c-gold-dk),var(--c-gold));transition:width 1s var(--ease);display:flex;align-items:center;justify-content:flex-end;padding-right:6px;font-size:9px;color:var(--c-black);font-weight:800;min-width:24px;}

/* Contact box */
.ew-contact-box{margin-top:20px;}
.ew-contact-box h4{font-size:13px;color:var(--c-text-muted);margin-bottom:12px;text-transform:uppercase;letter-spacing:.8px;}
.ew-contact-btns{display:flex;flex-direction:column;gap:10px;}
.ew-contact-btns .ew-btn{width:100%;font-size:14px;}

/* Specs */
.ew-specs-section{margin-top:32px;}
.ew-specs-section h3{font-size:1.2rem;margin-bottom:18px;padding-bottom:10px;border-bottom:1px solid var(--c-border);}
.ew-specs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;}
.ew-spec-item{background:var(--c-dark2);border:1px solid var(--c-border);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:4px;transition:border-color .2s;}.ew-spec-item:hover{border-color:var(--c-gold);}
.ew-spec-icon{font-size:20px;}.ew-spec-label{font-size:11px;color:var(--c-text-muted);}.ew-spec-value{font-size:15px;font-weight:700;color:var(--c-white);}
.ew-features-section{margin-top:28px;}
.ew-features-section h3{font-size:1.2rem;margin-bottom:14px;}
.ew-features-grid{display:flex;flex-wrap:wrap;gap:10px;}
.ew-feature-badge{display:flex;align-items:center;gap:6px;background:rgba(200,169,110,.1);border:1px solid rgba(200,169,110,.2);color:var(--c-text);padding:7px 14px;border-radius:20px;font-size:13px;}
.ew-map-section{margin-top:32px;}.ew-map-section h3{font-size:1.2rem;margin-bottom:14px;}
#ew-property-map{width:100%;height:320px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--c-border);background:var(--c-dark2);}
.ew-video-section{margin-top:32px;}.ew-video-section h3{font-size:1.2rem;margin-bottom:14px;}
.ew-video-embed{border-radius:var(--radius);overflow:hidden;border:1px solid var(--c-border);aspect-ratio:16/9;}
.ew-video-embed iframe{width:100%;height:100%;border:none;}
.ew-inquiry-section{margin-top:28px;border-top:1px solid var(--c-border);padding-top:24px;}
.ew-inquiry-section h4{font-size:15px;margin-bottom:14px;}

/* ── FOOTER ── */
#ew-footer{background:var(--c-black);border-top:1px solid var(--c-border);padding-top:60px;}
.ew-footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:40px;padding-bottom:48px;}
@media(max-width:900px){.ew-footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:500px){.ew-footer-grid{grid-template-columns:1fr;}}
.ew-footer-brand p{color:var(--c-text-muted);font-size:13px;margin-top:16px;max-width:280px;}
.ew-footer-col h5{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--c-gold);margin-bottom:16px;}
.ew-footer-col ul{list-style:none;}.ew-footer-col ul li{margin-bottom:10px;}.ew-footer-col ul li a{color:var(--c-text-muted);font-size:13px;transition:color .2s;}.ew-footer-col ul li a:hover{color:var(--c-gold);}
.ew-footer-bottom{border-top:1px solid var(--c-border);padding-block:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.ew-footer-bottom p{font-size:12px;color:var(--c-text-muted);}
.ew-social-links{display:flex;gap:10px;}
.ew-social-links a{width:34px;height:34px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid var(--c-border-lt);display:flex;align-items:center;justify-content:center;color:var(--c-text-muted);font-size:16px;transition:all .2s;}
.ew-social-links a:hover{background:rgba(200,169,110,.15);color:var(--c-gold);}

/* ── ANIMATIONS ── */
@keyframes ewFadeUp{from{opacity:0;transform:translateY(30px);}to{opacity:1;transform:translateY(0);}}
.ew-fade-up{animation:ewFadeUp .7s var(--ease) both;}
.ew-fade-up-d1{animation-delay:.1s;}.ew-fade-up-d2{animation-delay:.2s;}.ew-fade-up-d3{animation-delay:.3s;}.ew-fade-up-d4{animation-delay:.4s;}
.ew-reveal{opacity:0;transform:translateY(24px);transition:opacity .7s var(--ease),transform .7s var(--ease);}
.ew-reveal.visible{opacity:1;transform:none;}

/* ── RESPONSIVE ── */
@media(max-width:768px){
    :root{--header-h:64px;}
    .ew-nav{display:none;position:fixed;top:var(--header-h);left:0;right:0;bottom:0;background:rgba(10,10,10,.97);flex-direction:column;padding:32px var(--gap);z-index:7000;}
    .ew-nav.open{display:flex;}
    .ew-nav ul{flex-direction:column;gap:4px;}
    .ew-nav ul li a{font-size:18px;padding:14px;}
    .ew-hamburger{display:flex;}
    .ew-hero-stats{flex-wrap:wrap;}
}
@media(max-width:900px){#ew-page-content{padding-top:var(--header-h);}}
.ew-mt-lg{margin-top:clamp(32px,5vw,64px);}
#ew-page-content{padding-top:var(--header-h);}
