/* A quiet, moving architectural identity for Miftah Baghdad. */
.platform-home{background:#111e26!important;color:#f1f3f0!important}
.platform-home .hero{min-height:650px;background:#0d1d27;position:relative;overflow:hidden}
.platform-home .hero-inner{min-height:650px!important;display:flex;align-items:flex-end;padding-block:80px!important;position:relative;z-index:2}
.platform-home .hero:before{z-index:1;background:linear-gradient(90deg,rgba(8,18,25,.2),rgba(8,18,25,.15)),linear-gradient(0deg,#101f29 0%,rgba(11,25,34,.62) 33%,rgba(8,19,25,.12) 78%)!important}
.platform-home .home-hero-photo img{object-position:center;animation:signature-drift 24s ease-in-out infinite alternate!important}
.platform-home .home-hero-photo img.signature-enter{animation:signature-fade 1.4s ease,signature-drift 24s ease-in-out infinite alternate!important}
.platform-home .hero-copy{max-width:720px}.platform-home .hero h1{font-size:clamp(40px,6vw,76px)!important;line-height:1.35!important}.platform-home .hero p{font-size:clamp(16px,2vw,20px)!important;line-height:1.9}
.signature-eyebrow{font:600 11px/1.5 sans-serif;letter-spacing:.22em;color:#d2ddd9}.signature-hero-link{display:inline-flex;gap:24px;align-items:center;background:#e7ece9;color:#172c37;text-decoration:none;padding:14px 22px;border-radius:8px;font-weight:700;margin-top:15px}.signature-slide-name{color:#e6eeea;font-size:12px;margin-top:18px}
.signature-carousel{position:absolute;z-index:4;bottom:30px;inset-inline-start:max(20px,calc((100% - 1200px)/2));display:flex;align-items:center;gap:14px;color:#fff;font:12px sans-serif;direction:ltr}.signature-carousel button{width:39px;height:39px;border-radius:50%;border:1px solid #ffffff8a;background:#10253080;color:white;font-size:18px;cursor:pointer}.signature-carousel button:focus-visible{outline:3px solid white}
.signature-orbits{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}.signature-orbits i{position:absolute;width:620px;height:620px;inset-inline-end:-180px;top:3%;border:1px solid #e3eeeb25;border-radius:50%;animation:signature-orbit 32s linear infinite}.signature-orbits i:nth-child(2){transform:scale(.72);animation-direction:reverse;border-color:#e3eeeb1e}.signature-orbits i:nth-child(3){width:10px;height:10px;top:32%;inset-inline-end:15%;background:#e3eeeb85;box-shadow:0 0 20px #fff8}
.platform-home .home-project-banner{background:#253b45!important;color:#f5f6f3!important;border-color:#70847f!important}
.signature-projects{padding-block:72px 36px}.signature-section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:25px}.signature-section-heading span{font-size:12px;color:#aabdb9;letter-spacing:.05em}.signature-section-heading h2{font-size:clamp(27px,4vw,42px);margin:7px 0;color:#fff}.signature-section-heading p{color:#bbcac8;margin:0}.signature-section-heading>a{color:#eef4f1;text-decoration:none;white-space:nowrap}
.signature-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.signature-project-card{display:block;position:relative;height:430px;overflow:hidden;border-radius:16px;background:#243942;text-decoration:none;color:white!important;border:1px solid #ffffff24}.signature-project-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0b1b24eF,transparent 75%)}.signature-project-card img{width:100%;height:100%;object-fit:cover;transition:transform .7s}.signature-project-card>div{position:absolute;z-index:1;bottom:0;inset-inline:0;padding:25px}.signature-project-card small{color:#d7e1df}.signature-project-card h3{color:white;font-size:25px;margin:6px 0}.signature-project-card span{font-size:13px}.signature-photo-note{font-size:12px;color:#a7b9b7;margin-top:12px}
.platform-home .home-search-area,.platform-home #offers,.platform-home .signature-home,.platform-home .why-home{color:#172939}.platform-home .home-search-area{background:#f6f7f6;border-radius:18px;margin-block:25px;padding:22px}.platform-home #offers,.platform-home .why-home{background:#f6f7f6;border-radius:18px;padding:25px;margin-block:30px}.platform-home .section-heading h2{color:#172939}.platform-home .home-community-grid .home-entry{color:#172939}
@keyframes signature-drift{from{transform:scale(1.02)}to{transform:scale(1.1)}}@keyframes signature-fade{from{opacity:.25}to{opacity:1}}@keyframes signature-orbit{from{rotate:0deg}to{rotate:360deg}}
@media(hover:hover){.signature-project-card:hover img{transform:scale(1.06)}}
@media(max-width:700px){.platform-home .hero,.platform-home .hero-inner{min-height:540px!important}.platform-home .hero-inner{padding-block:80px!important}.platform-home .hero h1{font-size:38px!important}.platform-home .hero p{font-size:15px!important}.signature-orbits i{width:400px;height:400px}.signature-projects{padding-block:45px 15px}.signature-section-heading h2{font-size:27px}.signature-section-heading p{font-size:13px}.signature-section-heading>a{font-size:12px}.signature-project-grid{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:12px;margin-inline:-16px;padding-inline:16px;padding-bottom:8px}.signature-project-card{flex:0 0 78%;height:350px;scroll-snap-align:center}.signature-project-card h3{font-size:23px}.platform-home .home-search-area,.platform-home #offers,.platform-home .why-home{width:calc(100% - 32px);padding:16px}.signature-carousel{bottom:18px}}
@media(prefers-reduced-motion:reduce){.signature-orbits i,.platform-home .home-hero-photo img,.platform-home .home-hero-photo img.signature-enter{animation:none!important}.signature-project-card img{transition:none}}
/* The listings continue the moving dark theme below the hero. */
.platform-home #offers{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#152b39,#243943 58%,#142934)!important;color:#eef3f2!important;border:1px solid #ffffff1c;box-shadow:0 20px 55px #0003}
.platform-home #offers:before{content:'';position:absolute;z-index:-1;width:100%;height:100%;inset:0;pointer-events:none;background:radial-gradient(circle at 25% 25%,#afc9c318,transparent 40%),repeating-radial-gradient(ellipse at 85% 45%,transparent 0 96px,#c8dad80d 97px 98px,transparent 99px 168px);animation:offers-glow 18s ease-in-out infinite alternate}
.platform-home #offers .section-heading h2{color:#f5f7f5!important}.platform-home #offers .section-heading p{color:#c1d0cf!important}
.platform-home #offers .mb-view-all-button{background:#e7eeec!important;color:#192f3b!important;border-color:#bdcac7!important}
.platform-home #offers .view-switch button,.platform-home #offers .home-view-toggle button{color:#e8efed;background:#203945;border:1px solid #809598}
.platform-home #home-results .property-card{background:linear-gradient(145deg,#344a54,#233944)!important;border:1px solid #ffffff35!important;box-shadow:0 12px 30px #07131b33!important;color:#f3f6f5!important}
.platform-home #home-results .property-info,.platform-home #home-results .property-info h3,.platform-home #home-results .property-price{color:#f4f7f5!important}
.platform-home #home-results .property-location,.platform-home #home-results .property-facts,.platform-home #home-results .property-finance,.platform-home #home-results .property-price-full,.platform-home #home-results .card-reference{color:#c5d4d3!important}
.platform-home #home-results .property-photo .photo-placeholder{background:#30434a;color:#d3dfdc}
.platform-home #home-results .detail-link{background:#e8efed!important;color:#18303a!important;border:1px solid #d7e2df!important}
.platform-home #home-results .card-agent-whatsapp{background:#e8f4ed!important;color:#287347!important;border-color:#a6cfb5!important}
@keyframes offers-glow{from{transform:translate3d(-2%,0,0)}to{transform:translate3d(2%,-1%,0)}}
@media(prefers-reduced-motion:reduce){.platform-home #offers:before{animation:none}}
/* A continuous evening palette for the remaining home sections. */
.platform-home .signature-home,.platform-home .why-home{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#142936,#223d4b 55%,#112633)!important;color:#f3f6f5!important}
.platform-home .signature-home:before,.platform-home .why-home:before{content:'';position:absolute;inset:-10%;z-index:-1;pointer-events:none;background:radial-gradient(circle at 75% 25%,#d6be7b20,transparent 38%),repeating-radial-gradient(ellipse at 15% 70%,transparent 0 95px,#d0e0df18 96px 97px,transparent 98px 165px);animation:offers-glow 18s ease-in-out infinite alternate}
.platform-home .signature-home .section-heading h2,.platform-home .why-home h2,.platform-home #home-compounds h3,.platform-home #home-projects h3{color:#f4f7f5!important}
.platform-home .signature-home .section-heading p,.platform-home .why-home p,.platform-home #home-compounds p,.platform-home #home-projects p,.platform-home .home-services span{color:#c4d2d1!important}
.platform-home .signature-home .text-link,.platform-home #home-compounds .text-link,.platform-home #home-projects .text-link,.platform-home .home-service-action{color:#ead6a1!important;border-color:#bda16c!important}
.platform-home #home-compounds .home-entry,.platform-home #home-projects .home-entry,.platform-home .home-services>a{background:linear-gradient(145deg,#344d59eb,#203744f0)!important;border:1px solid #ffffff38!important;border-radius:16px!important;box-shadow:0 12px 30px #07151c38;color:#f5f8f7!important;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}
.platform-home #home-compounds .home-entry a,.platform-home #home-projects .home-entry a,.platform-home .home-services>a strong{color:#f5f8f7!important}
.platform-home .home-services svg{color:#dfc386!important;stroke:#dfc386!important}
@media(hover:hover){.platform-home #home-compounds .home-entry:hover,.platform-home #home-projects .home-entry:hover,.platform-home .home-services>a:hover{transform:translateY(-4px);border-color:#dfc38699!important;box-shadow:0 18px 38px #07151c66}}
@media(prefers-reduced-motion:reduce){.platform-home .signature-home:before,.platform-home .why-home:before{animation:none!important}.platform-home #home-compounds .home-entry,.platform-home #home-projects .home-entry,.platform-home .home-services>a{transition:none}}
/* Keep the favourite icon legible on bright image overlays. */
.platform-home .property-photo .save-button{color:#172d3b!important;background:#f7faf9!important;border:1px solid #ffffff!important;display:grid;place-items:center}
.platform-home .property-photo .save-button svg{width:21px!important;height:21px!important;stroke:#172d3b!important;stroke-width:2!important;fill:none}
.platform-home .property-photo .save-button[aria-pressed=true] svg{fill:#c9aa73!important;stroke:#172d3b!important}
/* Visible moving lines and light, layered beneath the content. */
.platform-home #offers:before,.platform-home .signature-home:before,.platform-home .why-home:before{z-index:0!important;inset:-15%!important;width:130%!important;height:130%!important;background:radial-gradient(ellipse at 25% 30%,#ddc99535,transparent 32%),repeating-radial-gradient(ellipse at 70% 55%,transparent 0 75px,#c8dcd534 76px 77px,transparent 78px 132px)!important;animation:miftah-flow 12s ease-in-out infinite alternate!important}
.platform-home #offers>* ,.platform-home .signature-home>*,.platform-home .why-home>*{position:relative;z-index:1}
@keyframes miftah-flow{from{transform:translate3d(-5%,-3%,0) rotate(-3deg)}to{transform:translate3d(5%,3%,0) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.platform-home #offers:before,.platform-home .signature-home:before,.platform-home .why-home:before{animation:none!important}}

.platform-home .signature-project-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}.platform-home .signature-project-card{flex:0 0 min(42%,460px);scroll-snap-align:start}@media(max-width:700px){.platform-home .signature-project-card{flex-basis:78%}}
.platform-home .home-search-area{background:linear-gradient(135deg,#294350,#1a3340)!important;color:#f4f7f6!important;border:1px solid #8ba1a555;box-shadow:0 18px 40px #0003}
.platform-home .home-search-area .home-intents button,.platform-home .home-search-area .home-intents a,.platform-home .home-search-area summary{color:#e8f0ef!important;background:#294553!important;border-color:#91a5a7!important}
.platform-home .home-search-area .home-intents [aria-pressed=true]{background:#e5ece9!important;color:#142e3b!important}
.platform-home .home-search-area input,.platform-home .home-search-area select{background:#f7faf9!important;color:#122b38!important}
.platform-home .property-photo .save-button{background:#102b39d9!important;border:1px solid #ffffffa0!important;border-radius:12px!important;color:#fff!important}
.platform-home .property-photo .save-button svg{stroke:#fff!important}
.platform-home #home-results .property-card{background:linear-gradient(140deg,#476474a0,#1c3546a8)!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}

/* Carry the moving line motif into the cards as well as the backdrop. */
.platform-home #home-compounds .home-entry,.platform-home #home-projects .home-entry,.platform-home #home-results .property-card {
  background: repeating-radial-gradient(ellipse at 20% 20%, transparent 0 90px, rgba(213,232,229,.22) 92px 93px, transparent 95px 160px), linear-gradient(145deg, rgba(52,77,89,.86), rgba(25,48,61,.88)) !important;
  background-size: 190% 190%, 100% 100% !important;
  animation: card-theme-flow 14s ease-in-out infinite alternate;
}
@keyframes card-theme-flow { from { background-position: 0% 0%, 0 0; } to { background-position: 100% 100%, 0 0; } }
@media (prefers-reduced-motion: reduce) { .platform-home #home-compounds .home-entry,.platform-home #home-projects .home-entry,.platform-home #home-results .property-card { animation: none !important; } }

/* Animated motif behind the featured projects section. */
.platform-home .signature-projects { position: relative; isolation: isolate; }
.platform-home .signature-projects::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(ellipse at 25% 35%, rgba(166,186,179,.13), transparent 45%), repeating-radial-gradient(ellipse at 18% 65%, transparent 0 95px, rgba(200,220,213,.22) 96px 97px, transparent 99px 165px), #10212a;
  background-size: 100% 100%, 150% 150%, 100% 100%;
  animation: project-section-flow 15s ease-in-out infinite alternate;
}
@keyframes project-section-flow { from { background-position: 0 0, 0% 0%, 0 0; } to { background-position: 0 0, 100% 100%, 0 0; } }
@media (prefers-reduced-motion: reduce) { .platform-home .signature-projects::before { animation: none; } }
/* Animate an actual layer: it moves independently of the card's content. */
.platform-home #home-compounds .home-entry,.platform-home #home-projects .home-entry,.platform-home #home-results .property-card{position:relative;isolation:isolate;overflow:hidden;background:rgba(28,49,61,.86)!important;animation:none!important}
.platform-home #home-compounds .home-entry::before,.platform-home #home-projects .home-entry::before,.platform-home #home-results .property-card::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:-45%;background:repeating-radial-gradient(ellipse at 25% 30%,transparent 0 105px,rgba(201,222,218,.19) 107px 108px,transparent 110px 185px),linear-gradient(135deg,#3a5662,#203a49 70%);animation:card-layer-drift 9s ease-in-out infinite alternate}
@keyframes card-layer-drift{from{transform:translate3d(-8%,-5%,0) rotate(-5deg)}to{transform:translate3d(8%,5%,0) rotate(5deg)}}
@media(prefers-reduced-motion:reduce){.platform-home #home-compounds .home-entry::before,.platform-home #home-projects .home-entry::before,.platform-home #home-results .property-card::before{animation:none!important}}
/* One shared moving background, visible through the quiet glass cards. */
.platform-home #home-compounds .home-entry::before,.platform-home #home-projects .home-entry::before,.platform-home #home-results .property-card::before{content:none!important;animation:none!important}
.platform-home #home-compounds .home-entry,.platform-home #home-projects .home-entry,.platform-home #home-results .property-card{background:rgba(38,65,77,.48)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important}
