/* Aqarak reference design. Styles are shared by every existing view. */
:root{--brand:#076b54;--brand-dark:#053f34;--ink:#142c35;--muted:#78828a;--line:#e9eceb;--gold:#b69a57;--radius:8px}
body{background:#fff;color:var(--ink);font-family:Cairo,sans-serif}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #bd9c56;outline-offset:3px}
input:focus,select:focus,textarea:focus{outline:2px solid #0c80684d;outline-offset:2px;border-color:var(--brand)}
.max-w-7xl{max-width:1280px}
.bg-primary{background-color:var(--brand)}.bg-primary-dark{background-color:var(--brand-dark)}.text-primary{color:var(--brand)}
.rounded-2xl{border-radius:12px}.rounded-xl{border-radius:var(--radius)}
#siteHeader{background:#fff;backdrop-filter:none;border-bottom:1px solid var(--line)}
#siteHeader>div:first-child{height:70px;gap:20px}
#siteHeader nav{gap:19px;font-size:12px;color:#242c30}
#siteHeader .brand-name{font-size:36px;line-height:1.2}
#siteHeader .order-1{flex-direction:row-reverse;gap:8px}
#siteHeader .order-1>span:last-child{background:transparent!important;color:var(--brand);width:48px;height:48px;padding:0}
#siteHeader .order-1>span:first-child{align-items:center}
#siteHeader .order-1 .text-\[11px\]{font-size:8px;color:var(--brand);margin-top:2px}
#siteHeader .order-3{gap:8px}
#siteHeader .order-3>.rounded-full{border:0;border-radius:5px;color:#20282d;width:30px}
#siteHeader .order-3>.bg-primary{border-radius:6px;font-size:12px;padding:10px 15px}
.nav-link.active{color:var(--brand);font-weight:800}.nav-link.active::after{bottom:-13px}
#page-home.active{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;max-width:1280px;margin:auto}
#page-home>section{grid-column:1/-1;width:100%;min-width:0}
#page-home .hero-bg{width:100vw;max-width:none;margin-inline:calc((1280px - 100vw)/2);background:linear-gradient(270deg,#f9efe250,transparent 70%),url('hero.webp') center/cover no-repeat}
.hero-bg>div{padding-top:30px;padding-bottom:22px;min-height:395px}
#heroAdWrap{margin-right:0;margin-left:auto;max-width:560px;min-height:160px}
#heroAdTrack h1{font-size:52px;line-height:1.18;letter-spacing:-1.3px}
#heroAdTrack h1 span:first-child{color:#075b49!important}
#heroAdTrack h1 span:last-child{color:#142b2d!important}
#heroAdTrack p{color:#202828;font-size:15px;font-weight:700;max-width:560px;margin-top:10px}
#heroAdDots{margin-top:12px}.hero-dot{background:#ffffffb3}.hero-dot.active{background:var(--brand)}
.ad-label{color:var(--brand)!important;background:#ffffffdb}
.hero-trust{position:absolute;left:24px;bottom:35px;max-width:310px;background:#111c;backdrop-filter:blur(3px);border-radius:12px;padding:24px 12px;margin:0;gap:10px}
.hero-trust>div{flex-direction:column;align-items:center;text-align:center;font-size:12px;line-height:1.6;gap:12px}
.hero-trust i{width:30px;height:30px}
.hero-search{position:relative;width:70%;margin:44px 0 0 auto;padding:16px 18px!important;border-radius:14px;box-shadow:0 8px 25px #172d3514}
#typeTabs{position:absolute;right:0;bottom:calc(100% + 9px);width:100%;justify-content:space-between;gap:6px;overflow:visible;padding:0;margin:0}
#typeTabs button{flex:1;padding:8px 7px;font-size:12px;border:1px solid #eee;border-radius:6px;background:#fff;color:#24282b}
#typeTabs button.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.hero-search>.grid{margin-top:0;gap:9px}
.hero-search select{min-width:0;background:#fafbfa;padding:13px 8px;font-size:12px;border-color:#eceeed;height:49px}
.hero-search>.grid>button{font-size:14px;flex-direction:row-reverse}
.hero-search>button{display:block;margin:8px auto 0;font-size:11px}
#categories{padding-top:23px;padding-bottom:16px}
#categories .grid{gap:0}
#categories .grid>button{border:0;border-left:1px solid #d9dddb;border-radius:0;padding:8px 12px;background:#fff;box-shadow:none}
#categories .grid>button:last-child{border-left:0}
#categories .grid>button:nth-child(odd) i{color:var(--gold)}
#categories .grid>button .text-sm{font-size:12px}
#categories .grid>button>span{background:var(--brand);left:10px;top:0}
#page-home>section:not(.hero-bg):not(#categories){padding-top:15px;padding-bottom:12px}
h2.text-2xl{font-size:23px;line-height:1.5}#page-home h2.text-2xl{font-size:21px}
#page-home .mb-5{margin-bottom:12px}
#featuredGrid{gap:18px}.property-card{border:1px solid #e9eceb;border-radius:7px;box-shadow:0 1px 4px #152f3508}
.property-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #123d3512}
.property-card>.relative>img{height:160px}
.property-card>.relative>button{right:auto;left:9px;top:9px;color:#fff;background:transparent;width:27px;height:27px;padding:0;filter:drop-shadow(0 1px 2px #444)}
.property-card>.relative>button.text-red-500{color:#ef4444}
.property-card>.relative>span.bottom-3{bottom:auto;top:10px;left:auto;right:9px;border-radius:5px;font-size:11px;padding:4px 8px}
.property-card>.relative>a{top:auto;bottom:9px;left:9px;width:24px;height:24px}
.property-card>.relative>span.top-3{top:auto;bottom:9px;right:8px;font-size:9px;background:#ffffffeb}
.property-card>.p-4{padding:11px}
.property-card .text-\[15px\]{font-size:13px}
.property-card .eng-num.font-extrabold{font-size:18px;text-align:left;color:#142e3b;margin-top:10px;direction:rtl}
.property-card .text-slate-400{color:#7e858b}
.property-card .border-t{border:0;padding-top:0;margin-top:9px;justify-content:space-between;gap:5px;font-size:10px}
.property-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:7px}
.property-actions>*{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 3px;font-size:10px;border-radius:4px}
.details-action{background:#f5f6f7;color:#4d5864}.whatsapp-action{background:var(--brand)}
#areas{padding-bottom:6px!important}#areas>.grid{gap:12px}
#areasGrid>button{height:112px;border-radius:5px}
#areasGrid>button>div{align-items:flex-end;padding-bottom:10px;background:linear-gradient(transparent,#081e26df);font-size:17px}
.promo-banners{gap:15px}
.promo-banners>div{border-radius:7px;min-height:165px;padding:22px;overflow:hidden}
.promo-banners>div:first-child{background:linear-gradient(90deg,#043a3299,#043a32 75%),url('living.webp') left center/cover;position:relative}
.promo-banners>div:first-child a{background:#06b96b;color:#fff}
.promo-banners>div:first-child>div:last-child{opacity:.85}
.promo-banners>div:last-child{background:linear-gradient(90deg,#ffffff60,#e9f3f5 80%),url('hero.webp') center/cover!important;color:var(--ink)}
.promo-banners>div:last-child p{color:#4a5c62}
.promo-banners>div:last-child>div:last-child{color:var(--brand)}
.promo-banners h3{font-size:20px}
#page-home>.home-stats{grid-column:1;grid-row:auto;width:100%;padding-left:0}
#page-home>.home-testimonials{grid-column:2;width:100%;padding-right:0}
.home-stats>.grid{border:1px solid var(--line);border-radius:7px;gap:0;min-height:150px;align-items:center;margin-top:40px}
.home-stats .stat-card{border:0;border-left:1px solid var(--line);border-radius:0;padding:15px 8px;box-shadow:none}
.home-stats .stat-card:last-child{border-left:0}
.home-stats .stat-num{font-size:23px;color:#122c3d}
.home-stats .stat-card::before{content:'';display:block;width:30px;height:30px;margin:0 auto 9px;background:var(--brand);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l9 4v6c0 5-5 9-9 11-4-2-9-6-9-11V6z'/%3E%3C/svg%3E") center/contain no-repeat}
.home-testimonials #testiWrap{max-width:none;min-height:150px!important;border-radius:7px;padding:20px}
.home-request>div{padding:18px 22px;border-width:1px;border-style:solid;background:#f6faf8;border-radius:7px}
.home-final>div{padding:25px;border-radius:7px}.home-final h2{font-size:24px}
#footerContact{background:#063d33;margin-top:20px}
#footerContact>div:first-child{padding-top:35px;padding-bottom:30px;gap:35px}
#footerContact .text-white\/60,#footerContact .text-white\/50{color:#c0d7cd}
#footerContact .text-2xl{font-size:32px}#footerContact a:hover{color:#b8e3cd}
/* Shared internal pages: same surfaces, controls, typography and spacing. */
.page:not(#page-home){min-height:65vh;padding-top:30px;padding-bottom:40px}
.page:not(#page-home) .bg-white{border-color:var(--line);box-shadow:0 3px 15px #19372d05}
.page h2,.page h3{color:var(--ink)}
.page:not(#page-home) input,.page:not(#page-home) select,.page:not(#page-home) textarea{background:#fcfdfc;border-color:#dfe6e2;border-radius:6px}
.page:not(#page-home) aside{border-radius:9px}
#page-listings aside{background:#f8faf9}
#page-dashboard,#page-admin{background:linear-gradient(#f1f7f4,#fff);border-radius:12px;margin-top:24px}
#page-dashboard aside{background:linear-gradient(145deg,#096a53,#073d33)}
#page-dashboard table th,#page-admin table th{color:var(--brand);background:#f5f9f7}
#page-dashboard table td,#page-admin table td{padding:14px 5px;border-bottom:1px solid var(--line)}
.modal-panel{border-radius:14px;box-shadow:0 20px 70px #00352430}
@media(min-width:1281px){#page-home .hero-bg{margin-inline:calc((1280px - 100vw)/2)}}
@media(max-width:1280px){#page-home .hero-bg{margin-inline:0}#siteHeader nav{gap:12px;font-size:11px}#siteHeader .brand-name{font-size:30px}}
@media(max-width:1023px){#siteHeader>div:first-child{height:65px}#heroAdTrack h1{font-size:44px}.hero-trust{max-width:230px;padding:20px 8px;left:16px}.hero-trust>div{font-size:10px}.hero-search{width:72%}#heroAdWrap{max-width:65%}.hero-bg>div{min-height:390px}#featuredGrid{grid-template-columns:repeat(2,minmax(0,1fr))}#page-home>.home-stats,#page-home>.home-testimonials{grid-column:1/-1;padding-inline:16px}.home-stats>.grid{margin-top:0}.promo-banners h3{font-size:17px}}
@media(max-width:767px){
#siteHeader{background:var(--brand-dark);color:#fff;border:0}#siteHeader>div:first-child{height:64px;padding-inline:16px;gap:10px}
#siteHeader .brand-name{color:#fff!important;font-size:29px}#siteHeader .order-1>span:last-child{color:#c9e8db;width:37px;height:37px}#siteHeader .order-1 .text-\[11px\]{color:#d2e6dd;font-size:7px}
#siteHeader .order-3>.rounded-full{color:#fff;width:32px}#mobileNav{color:var(--ink);box-shadow:0 8px 20px #0002}
#page-home.active{display:block}.hero-bg{background:linear-gradient(180deg,#064535d9,transparent 80%),url('living.webp') center/cover!important}
.hero-bg>div{padding-top:27px;padding-bottom:20px;min-height:0}
#heroAdWrap{max-width:100%;min-height:142px;text-align:center}#heroAdTrack h1{font-size:31px;line-height:1.4;letter-spacing:0}#heroAdTrack h1 span{color:#fff!important}#heroAdTrack p{color:#fff;font-size:12px;line-height:1.7;font-weight:500;margin:9px auto 0}
#heroAdDots{justify-content:center;margin-top:10px}.hero-trust{position:static;max-width:none;margin-top:16px;padding:10px 7px;background:#073e3380;border-radius:7px}.hero-trust>div{flex-direction:row;gap:5px;font-size:9px;line-height:1.5}.hero-trust i{width:19px;height:19px}
.hero-search{width:100%;margin-top:53px;padding:13px!important;box-shadow:0 5px 20px #003d3519;border-radius:11px}
#typeTabs{overflow-x:auto;gap:5px;justify-content:flex-start;bottom:calc(100% + 8px)}#typeTabs button{flex:0 0 auto;font-size:11px;padding:6px 13px}
.hero-search>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hero-search select{height:42px;padding:9px 7px;font-size:11px}.hero-search #fRegion{grid-column:auto}.hero-search>.grid>button{grid-column:1/-1;padding:10px}.hero-search>button{margin-top:9px}
#categories{padding:16px 0 10px}#categories>.flex{display:block}#categories .grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:0 16px;gap:7px;scrollbar-width:none}#categories .grid>button{min-width:92px;border:1px solid var(--line);border-radius:7px;padding:12px 7px;background:#f9faf9;scroll-snap-align:start}#categories .grid>button i{width:27px;height:27px}#categories .grid>button .text-sm{font-size:10px}#categories .grid>button>span{font-size:8px;top:1px;left:1px}
#page-home h2.text-2xl{font-size:18px}#page-home>section:not(.hero-bg):not(#categories){padding-top:13px;padding-bottom:9px}
#featuredGrid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:11px;padding-bottom:8px;scrollbar-width:none}#featuredGrid>.property-card{flex:0 0 73%;scroll-snap-align:start}.property-card>.relative>img{height:150px}.property-card>.p-4{padding:11px}.property-card .text-\[15px\]{font-size:13px}.property-card .eng-num.font-extrabold{font-size:18px}.property-actions>*{font-size:11px;min-height:35px}
#areas>.grid{display:flex;overflow-x:auto;gap:9px;padding-bottom:5px;scrollbar-width:none}#areasGrid>button{flex:0 0 105px;height:90px}#areasGrid>button>div{font-size:14px}
.promo-banners{display:grid;grid-template-columns:1fr;gap:10px}.promo-banners>div{min-height:145px;padding:20px}.promo-banners h3{font-size:18px}.promo-banners p{font-size:12px}.promo-banners a,.promo-banners button{font-size:11px;margin-top:12px}
.home-stats>.grid{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0}.home-stats .stat-card{padding:16px 8px;border-bottom:1px solid var(--line)}.home-stats .stat-num{font-size:21px}.home-stats .stat-card::before{width:25px;height:25px}.home-stats .text-sm{font-size:12px}
.home-testimonials #testiWrap{padding:16px}.home-request>div{align-items:stretch;text-align:right;padding:17px}.home-request h3{font-size:16px}.home-request p{font-size:12px}.home-final>div{padding:23px 16px}.home-final h2{font-size:21px}.home-final p{font-size:12px}.home-final button,.home-final a{font-size:12px;padding:10px 13px}
#footerContact{margin-top:15px}#footerContact>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 18px;padding:27px 16px}#footerContact>div:first-child>div:first-child{grid-column:1/-1}#footerContact h4{font-size:13px}#footerContact .text-sm{font-size:11px;line-height:1.9}#footerContact>div:last-child{padding:16px;gap:15px;font-size:10px}
.page:not(#page-home){padding:22px 16px 30px}.page:not(#page-home)>h2{font-size:25px}.page:not(#page-home) .p-8{padding:22px}.page:not(#page-home) .gap-6{gap:16px}.page:not(#page-home) .property-card .text-\[15px\]{font-size:13px}
#page-dashboard,#page-admin{margin-top:0;border-radius:0}#page-dashboard aside nav{display:flex;flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:none}#page-dashboard aside nav a{white-space:nowrap}#page-dashboard aside .mb-6{margin-bottom:14px}
#page-details .h-80{height:245px}.modal-panel{max-height:90dvh;overflow-y:auto}.wa-pulse{width:48px;height:48px;bottom:15px;right:15px}#toast{max-width:calc(100vw - 32px);right:16px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}
/* Keep scrollable dashboard content inside its viewport. */
#page-dashboard>.grid>*,#page-admin>.grid>*,#page-listings>.grid>*{min-width:0}
#page-dashboard aside nav{max-width:100%}
/* Content remains visible before its optional scroll animation runs. */
#page-home .reveal{opacity:1;transform:none}
@media(max-width:767px){#heroAdTrack h1 span:first-child,#heroAdTrack h1 span:last-child{color:#fff!important}}
.brand-mark{display:block;width:100%;height:100%;color:inherit}
#footerContact>div:first-child>div:first-child>.flex:first-child{flex-direction:row-reverse;justify-content:flex-end}
#footerContact>div:first-child>div:first-child>.flex:first-child>span:first-child{width:48px;height:48px;background:transparent;padding:0}
#footerContact>div:first-child>div:first-child>.flex:first-child>span:last-child{font-size:36px}
.promo-phone{position:relative;display:block!important;width:65px;height:120px;flex-shrink:0;border:4px solid #172326;border-radius:13px;background:#07834e;transform:rotate(-13deg);box-shadow:0 0 0 2px #e1e6e3,0 7px 20px #0005;margin-left:15px}
.promo-phone:before{content:'';position:absolute;top:3px;left:17px;width:24px;height:5px;border-radius:8px;background:#152824}
.promo-phone i{width:38px;height:38px;position:absolute;top:38px;left:10px}
@media(max-width:767px){.promo-phone{width:55px;height:105px;margin-left:0;border-width:3px}.promo-phone i{width:32px;height:32px;left:9px;top:33px}.promo-banners>div:first-child h3{font-size:16px}}
.home-stats .stat-card::before{display:none}
.home-stats .stat-icon{display:flex;width:34px;height:34px;margin:0 auto 10px}
@media(min-width:1024px){
#featuredGrid{direction:ltr}#featuredGrid>.property-card{direction:rtl}
#page-home>.home-stats{grid-column:2;grid-row:7;padding-right:0;padding-left:24px}
#page-home>.home-testimonials{grid-column:1;grid-row:7;padding-left:0;padding-right:24px}
.promo-banners>div:first-child{grid-column:2;grid-row:1}.promo-banners>div:last-child{grid-column:1;grid-row:1}
#footerContact>div:first-child{direction:ltr}#footerContact>div:first-child>div{direction:rtl}
}
