/* =========================================================
   iDeal — DAMAC-style design system
   ========================================================= */
:root{
  --ink:#132d47;          /* navy — stands in for DAMAC black */
  --ink-2:#1a3a5c;
  --ink-3:#224870;
  --gold:#af955a;
  --gold-light:#c4a96e;
  --gold-dark:#7d6935;
  /* muted and gold-dark are darkened from #6b7a8c / #967f48: at the original
     values .lede (4.07), .eyebrow (3.59), .property-loc and .pf-reset (4.39)
     all failed WCAG AA 4.5:1 against --gray-50. Now 5.28 and 4.94. */
  --muted:#5a6878;
  --line:#e7e2d8;
  --gray-50:#f8f6f3;
  --gray-100:#f2efe9;
  --white:#fff;
  --nav-h:88px;
  --transition:.35s cubic-bezier(.4,0,.2,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:'Cairo',sans-serif;color:var(--ink);background:var(--white);line-height:1.7;overflow-x:hidden;}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
input,select{font-family:inherit;}
.container{max-width:1360px;margin:0 auto;padding:0 32px;}

/* ===== typography helpers ===== */
.eyebrow{display:flex;align-items:center;gap:12px;color:var(--gold-dark);font-weight:800;letter-spacing:2px;font-size:12.5px;margin-bottom:16px;}
.eyebrow::before{content:'';width:34px;height:1px;background:var(--gold);}
.center .eyebrow{justify-content:center;}
.center .eyebrow::before{display:none;}
.center .eyebrow::after{content:'';width:34px;height:1px;background:var(--gold);}
h2.title{font-size:clamp(26px,3.6vw,40px);font-weight:900;letter-spacing:.3px;margin-bottom:14px;}
/* 640px ran ~80 characters per line; 45-75 is the readable band. Measured in
   px, not ch: Cairo's "0" is ~5px here, so a ch-based cap landed at 39
   characters — narrower than the problem it was meant to fix. */
p.lede{color:var(--muted);max-width:530px;font-size:15.5px;}
.center{text-align:center;}
.center p.lede{margin:0 auto;}
.section{padding:110px 0;}
.section.tight{padding:80px 0;}

/* ===== buttons ===== */
.btn{display:inline-flex;align-items:center;gap:10px;padding:16px 34px;font-size:13.5px;font-weight:700;letter-spacing:1.6px;border:1.5px solid var(--ink);color:var(--ink);background:transparent;transition:var(--transition);white-space:nowrap;}
.btn:hover{background:var(--ink);color:var(--white);}
.btn-invert{border-color:var(--white);color:var(--white);}
.btn-invert:hover{background:var(--white);color:var(--ink);}
.btn-gold{border-color:var(--gold);background:var(--gold);color:var(--white);}
.btn-gold:hover{background:var(--gold-dark);border-color:var(--gold-dark);}
.btn-sm{padding:11px 22px;font-size:12.5px;}
.link-arrow{font-weight:700;font-size:13px;color:var(--ink);border-bottom:1.5px solid var(--gold);padding-bottom:3px;display:inline-flex;gap:8px;}

/* ============================================================
   HEADER + MEGA MENU
   ============================================================ */
header{position:fixed;top:0;insetInline:0;left:0;right:0;z-index:1000;background:var(--white);border-bottom:1px solid rgba(19,45,71,.08);}
header .bar-top{height:8px;background:var(--ink);}
header .bar-main{height:var(--nav-h);}
header .bar-main .container{height:100%;display:flex;align-items:center;justify-content:space-between;}
.logo{font-size:26px;font-weight:900;color:var(--ink);letter-spacing:.5px;}
.logo span{color:var(--gold-dark);}
nav.main-nav{height:100%;}
nav.main-nav ul{display:flex;align-items:center;gap:38px;height:100%;}
nav.main-nav a,nav.main-nav button.nav-link{color:var(--ink);font-size:14px;font-weight:700;letter-spacing:.2px;height:100%;display:flex;align-items:center;position:relative;}
nav.main-nav a.active::after,nav.main-nav a:hover::after,nav.main-nav button.nav-link:hover::after{content:'';position:absolute;bottom:0;right:0;left:0;height:2px;background:var(--gold);}
.nav-actions{display:flex;align-items:center;gap:22px;}
.icon-btn{width:38px;height:38px;display:flex;align-items:center;justify-content:center;color:var(--ink);}
.lang-switch-group{display:flex;align-items:center;border:1px solid var(--line);border-radius:20px;overflow:hidden;}
.lang-opt{padding:6px 11px;font-size:11px;font-weight:800;letter-spacing:.3px;color:var(--muted);transition:var(--transition);}
.lang-opt:hover{color:var(--ink);}
.lang-opt.active{background:var(--ink);color:var(--white);}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;}
.burger span{width:24px;height:2px;background:var(--ink);}

/* mega menu panel */
.mega{position:absolute;top:100%;insetInline:0;left:0;right:0;background:var(--white);box-shadow:0 30px 60px rgba(19,45,71,.18);border-top:1px solid var(--line);opacity:0;visibility:hidden;transform:translateY(-8px);transition:var(--transition);}
.mega.open{opacity:1;visibility:visible;transform:translateY(0);}
.mega-inner{max-width:1360px;margin:0 auto;padding:52px 32px 44px;display:grid;grid-template-columns:repeat(5,1fr);gap:36px;position:relative;}
.mega-close{position:absolute;top:-56px;left:0;width:38px;height:38px;border-radius:50%;background:var(--gray-50);display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ink);}
.mega-col h5{font-size:11.5px;letter-spacing:1.6px;color:var(--gold-dark);font-weight:800;margin-bottom:22px;}
.mega-col li{margin-bottom:15px;}
.mega-col a{font-size:14.5px;color:var(--ink);font-weight:600;}
.mega-col a:hover{color:var(--gold-dark);}
.mega-col .view-all{color:var(--gold-dark);font-weight:800;font-size:13.5px;margin-top:6px;display:inline-block;}
.mega-backdrop{position:fixed;inset:0;background:rgba(19,45,71,.35);z-index:900;opacity:0;visibility:hidden;transition:var(--transition);}
.mega-backdrop.open{opacity:1;visibility:visible;}

/* mobile nav */
.mobile-nav{position:fixed;inset:0;background:var(--ink);z-index:1100;display:none;flex-direction:column;padding:100px 36px;}
.mobile-nav.open{display:flex;}
.mobile-nav ul{display:flex;flex-direction:column;gap:26px;}
.mobile-nav a{color:var(--white);font-size:22px;font-weight:800;}
.mobile-nav .mnav-close{position:absolute;top:28px;left:28px;color:var(--white);font-size:26px;}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero{position:relative;height:calc(100svh - var(--nav-h) - 8px);min-height:560px;margin-top:calc(var(--nav-h) + 8px);overflow:hidden;background:var(--ink);}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease;}
.hero-slide.active{opacity:1;z-index:2;}
.hero-slide video,.hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,.35) 0%,rgba(19,45,71,.2) 45%,rgba(13,31,49,.88) 100%);}
.hero-content{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--white);padding:0 24px;pointer-events:none;}
.hero-content .inner{pointer-events:auto;}
.hero-eyebrow{letter-spacing:4px;font-size:12.5px;font-weight:800;color:var(--gold-light);margin-bottom:20px;}
.hero h1{font-size:clamp(30px,5.4vw,58px);font-weight:900;line-height:1.28;margin-bottom:22px;text-shadow:0 6px 30px rgba(0,0,0,.35);max-width:820px;}
.hero-ctas{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}
.hero-dots{position:absolute;bottom:34px;insetInline:0;left:0;right:0;z-index:4;display:flex;justify-content:center;gap:12px;}
.hero-dots span{width:34px;height:3px;background:rgba(255,255,255,.35);cursor:pointer;transition:var(--transition);}
.hero-dots span.active{background:var(--gold);}
.hero-arrows{position:absolute;bottom:30px;left:32px;z-index:4;display:flex;gap:10px;color:rgba(255,255,255,.7);font-size:11px;letter-spacing:1px;font-weight:700;}
.hero-arrows button{color:inherit;padding:6px 4px;}
.hero-arrows button:hover{color:var(--white);}

/* floating search bar */
.search-wrap{position:relative;z-index:20;margin-top:-46px;}
.search-bar{background:var(--white);max-width:1180px;margin:0 auto;padding:26px;display:grid;grid-template-columns:repeat(4,1fr) auto;gap:16px;box-shadow:0 24px 60px rgba(19,45,71,.22);}
.search-field label{display:block;font-size:10.5px;color:var(--muted);font-weight:800;letter-spacing:1px;margin-bottom:8px;}
.search-field select{width:100%;border:1px solid var(--line);padding:12px 10px;font-family:inherit;font-size:14px;color:var(--ink);background:var(--white);}
.search-bar .btn{width:100%;justify-content:center;align-self:end;}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats{padding:90px 0 70px;}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center;}
.stats-grid .div{padding:0 20px;border-right:1px solid var(--line);}
.stats-grid > div:first-child{border-right:none;}
.stat-num{font-size:clamp(32px,4vw,50px);font-weight:900;color:var(--ink);}
.stat-num::after{content:'+';color:var(--gold);}
.stat-label{color:var(--muted);font-size:13.5px;margin-top:10px;letter-spacing:.4px;}

/* photo-based stat cards (numbers on photos) */
/* auto-fit rather than a fixed 4 columns: the home page renders 3 cards, and a
   hard-coded 4th track left them squeezed against an empty column. */
.photo-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;}
.photo-stat-card{position:relative;height:clamp(260px,25vw,380px);overflow:hidden;display:flex;align-items:flex-end;}
.photo-stat-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s;}
.photo-stat-card:hover img{transform:scale(1.06);}
.photo-stat-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,.1) 30%,rgba(13,31,49,.88) 100%);}
.photo-stat-card .psc-content{position:relative;z-index:2;padding:28px;width:100%;}
.photo-stat-card .stat-num{font-size:clamp(36px,4vw,56px);color:#fff;}
.photo-stat-card .stat-num::after{color:var(--gold-light);}
.photo-stat-card .psc-label{color:rgba(255,255,255,.9);font-size:15px;margin-top:8px;font-weight:700;letter-spacing:.3px;}
@media(max-width:1024px){.photo-stat-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.photo-stat-grid{grid-template-columns:1fr;}.photo-stat-card{height:200px;}}

/* photo-based feature cards (trust bar, value cards, why-ideal) */
.photo-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;margin-top:50px;}
.photo-feature-card{position:relative;height:260px;overflow:hidden;display:flex;align-items:flex-end;}
.photo-feature-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s;}
.photo-feature-card:hover img{transform:scale(1.08);}
.photo-feature-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,.05) 35%,rgba(13,31,49,.9) 100%);}
.photo-feature-card .pfc-content{position:relative;z-index:2;padding:24px;}
.photo-feature-card h4{font-size:16.5px;font-weight:800;margin-bottom:8px;color:#fff;}
.photo-feature-card p{font-size:13px;color:rgba(255,255,255,.85);line-height:1.6;}

/* services scroll-row tiles reskinned as photo cards */
.service-tile.photo-tile{position:relative;height:280px;padding:0;overflow:hidden;border:none;background:var(--ink);}
.service-tile.photo-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s;}
.service-tile.photo-tile:hover img{transform:scale(1.08);}
.service-tile.photo-tile::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,.05) 30%,rgba(13,31,49,.92) 100%);}
.service-tile.photo-tile .num{color:var(--gold-light);z-index:2;}
.service-tile.photo-tile .stc-content{position:relative;z-index:2;padding:26px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;}
.service-tile.photo-tile h4{color:#fff;margin:0 0 8px;}
.service-tile.photo-tile p{color:rgba(255,255,255,.85);}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;margin-bottom:80px;}
.about-grid img{border-radius:2px;}
.about-text p{color:var(--muted);font-size:16px;margin:18px 0 26px;}
.value-row{display:flex;gap:0;overflow-x:auto;border-top:1px solid var(--line);padding-top:50px;}
.value-card{flex:0 0 33.333%;padding:0 30px;border-left:1px solid var(--line);}
.value-card:first-child{padding-right:0;}
.value-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:var(--gray-50);border:1px solid var(--gold-light);color:var(--gold-dark);font-size:22px;margin-bottom:22px;}
.value-icon svg{width:23px;height:23px;}
.contact-card .value-icon svg{width:22px;height:22px;}
.value-card h4{font-size:17px;font-weight:800;margin-bottom:10px;}
.value-card p{color:var(--muted);font-size:14px;}

/* ============================================================
   CURATED COLLABORATIONS (dark band, 1st homepage feature band)
   ============================================================ */
.collab{background:var(--ink);color:var(--white);padding:110px 0;}
.collab .eyebrow{color:var(--gold-light);}
.collab .eyebrow::before,.collab .eyebrow::after{background:var(--gold-light);}
.collab h2.title{color:var(--white);}
.collab p.lede{color:rgba(255,255,255,.65);}
.collab-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:56px;}
.collab-card{position:relative;height:460px;overflow:hidden;}
.collab-card img{width:100%;height:100%;object-fit:cover;transition:transform .8s;}
.collab-card:hover img{transform:scale(1.07);}
.collab-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,31,49,0) 40%,rgba(13,31,49,.92) 100%);}
.collab-info{position:absolute;bottom:0;insetInline:0;left:0;right:0;padding:30px;z-index:2;}
.collab-info .tag{color:var(--gold-light);font-size:11.5px;font-weight:800;letter-spacing:1.5px;margin-bottom:10px;display:block;}
.collab-info h3{font-size:22px;font-weight:800;margin-bottom:16px;}

/* masonry curated gallery */
.masonry{column-count:4;column-gap:20px;margin-top:56px;}
.masonry-item{position:relative;display:block;overflow:hidden;break-inside:avoid;margin-bottom:20px;border-radius:2px;background:var(--ink);}
.masonry-item img{width:100%;display:block;object-fit:cover;transition:transform .9s cubic-bezier(.4,0,.2,1);opacity:.92;}
.masonry-item:hover img{transform:scale(1.07);opacity:1;}
.masonry-item::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,31,49,0) 50%,rgba(13,31,49,.88) 100%);pointer-events:none;}
.masonry-label{position:absolute;bottom:28px;insetInline:0;left:0;right:0;text-align:center;z-index:2;padding:0 16px;}
.masonry-label h3{color:#fff;font-weight:500;font-size:18px;letter-spacing:.3px;}
.masonry-label .loc{display:block;color:var(--gold-light);font-size:10.5px;letter-spacing:2.5px;font-weight:700;margin-top:10px;opacity:0;transform:translateY(6px);transition:var(--transition);text-transform:uppercase;}
.masonry-item:hover .masonry-label .loc{opacity:1;transform:translateY(0);}
@media(max-width:1024px){ .masonry{column-count:3;} }
@media(max-width:768px){ .masonry{column-count:2;column-gap:14px;} .masonry-item{margin-bottom:14px;} .masonry-label{bottom:18px;} .masonry-label h3{font-size:15px;} }

/* brand-logo masonry variant (collaborations gallery) */
.masonry-item.brand .masonry-label{bottom:26px;}
.masonry-item.brand .brand-logo{max-width:120px;max-height:52px;filter:brightness(0) invert(1);opacity:.95;margin:0 auto;}
.masonry-caption{max-width:760px;margin:0 auto 10px;text-align:center;color:var(--muted);font-size:13.5px;}

/* image-background scroll tile (why-invest carousel) */
.why-tile{position:relative;flex:0 0 300px;height:400px;overflow:hidden;scroll-snap-align:start;}
.why-tile img{width:100%;height:100%;object-fit:cover;}
.why-tile::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,.1) 30%,rgba(13,31,49,.92) 100%);}
.why-tile .why-info{position:absolute;bottom:24px;insetInline:0;left:0;right:0;padding:0 22px;z-index:2;color:#fff;}
.why-tile .why-info .num{color:var(--gold-light);font-size:12px;font-weight:800;letter-spacing:1.5px;margin-bottom:8px;display:block;}
.why-tile .why-info h4{font-size:16.5px;font-weight:800;margin-bottom:8px;}
.why-tile .why-info p{font-size:12.5px;color:rgba(255,255,255,.82);}

/* ============================================================
   CONTACT-US POPUP MODAL (shared, site-wide)
   ============================================================ */
.cm-overlay{position:fixed;inset:0;background:rgba(13,31,49,.72);z-index:2000;display:none;align-items:center;justify-content:center;padding:20px;}
.cm-overlay.open{display:flex;}
.cm-modal{background:var(--white);max-width:480px;width:100%;max-height:92vh;overflow-y:auto;position:relative;border-top:3px solid var(--gold);}
.cm-close{position:absolute;top:16px;left:16px;width:36px;height:36px;background:var(--gray-50);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ink);z-index:2;}
.cm-body{padding:40px 32px 34px;}
.cm-body .eyebrow{justify-content:flex-start;}
.cm-body .eyebrow::before{display:none;}
.cm-body h3{font-size:22px;font-weight:900;margin-bottom:8px;}
.cm-body p.lede{margin:0 0 26px;font-size:14px;}
.cm-field{margin-bottom:18px;}
.cm-field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:8px;}
.cm-field input,.cm-field select,.cm-field textarea{width:100%;border:1px solid var(--line);padding:12px 14px;font-family:inherit;font-size:14px;color:var(--ink);background:var(--white);}
.cm-field textarea{resize:vertical;min-height:90px;}
.cm-field input:focus,.cm-field select:focus,.cm-field textarea:focus{outline:none;border-color:var(--gold);}
.cm-submit{width:100%;justify-content:center;margin-top:6px;}
.cm-note{font-size:12px;color:var(--muted);text-align:center;margin-top:14px;}
.cm-success{display:none;text-align:center;padding:20px 0;}
.cm-success.show{display:block;}
.cm-success .icon{width:60px;height:60px;border-radius:50%;background:var(--gold);color:var(--white);font-size:26px;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;}
.cm-success h4{font-size:18px;font-weight:800;margin-bottom:8px;}
.cm-success p{color:var(--muted);font-size:14px;}

/* ============================================================
   MOST SEARCHED CITIES GRID  (remax-style photo grid)
   ============================================================ */
.city-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:54px;}
.city-tile{position:relative;height:230px;border-radius:14px;overflow:hidden;box-shadow:0 14px 34px rgba(19,45,71,.14);}
.city-tile img{width:100%;height:100%;object-fit:cover;transition:transform .6s;}
.city-tile:hover img{transform:scale(1.08);}
.city-tile::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,0) 45%,rgba(13,31,49,.75) 100%);}
.city-tile-label{position:absolute;bottom:18px;right:22px;left:22px;z-index:2;color:var(--white);}
.city-tile-label h4{font-size:20px;font-weight:800;}
.city-tile-label span{font-size:12px;color:var(--gold-light);font-weight:700;}

/* ============================================================
   PROPERTY GRID + FILTERS
   ============================================================ */
.filters{display:flex;flex-direction:column;align-items:center;gap:20px;margin:50px 0 54px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:28px 30px;box-shadow:0 18px 44px rgba(19,45,71,.06);}
.filter-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center;}
.filter-row-label{font-size:11px;font-weight:800;letter-spacing:1px;color:var(--muted);margin-left:6px;white-space:nowrap;}
.chip{display:inline-flex;align-items:center;gap:7px;padding:10px 22px;border-radius:30px;border:1.5px solid var(--line);background:var(--white);font-size:13.5px;font-weight:700;color:var(--ink-2);transition:var(--transition);}
.chip-count{opacity:.6;font-weight:600;font-size:12px;}
.chip svg{width:15px;height:15px;flex-shrink:0;opacity:.75;}
.chip:hover{border-color:var(--gold);color:var(--gold-dark);transform:translateY(-2px);}
.chip.active{background:var(--ink);border-color:var(--ink);color:var(--white);box-shadow:0 10px 22px rgba(19,45,71,.25);}
.chip.active svg{opacity:1;}
.chip.active:hover{transform:none;color:var(--white);}
.filters-divider{width:100%;height:1px;background:var(--line);}

/* pagination */
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:50px;flex-wrap:wrap;}
.page-btn{min-width:42px;height:42px;padding:0 14px;border:1.5px solid var(--line);border-radius:30px;background:var(--white);color:var(--ink-2);font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;transition:var(--transition);}
.page-btn:hover:not(:disabled){border-color:var(--gold);color:var(--gold-dark);}
.page-btn.active{background:var(--ink);border-color:var(--ink);color:var(--white);}
.page-btn.page-nav{padding:0 18px;font-weight:700;}
.page-btn:disabled{opacity:.35;cursor:default;}
.page-btn:disabled:hover{border-color:var(--line);color:var(--ink-2);}
.property-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
.property-grid.cols-4{grid-template-columns:repeat(4,1fr);}
.view-toggle{display:flex;gap:8px;justify-content:center;margin-bottom:6px;}
.view-toggle button{width:40px;height:40px;border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--muted);}
.view-toggle button.active{border-color:var(--ink);color:var(--ink);background:var(--gray-50);}
.view-toggle svg{width:18px;height:18px;}
.property-grid.list-view{grid-template-columns:1fr;gap:20px;}
.property-grid.list-view .property-card{display:grid;grid-template-columns:300px 1fr;}
.property-grid.list-view .property-media{height:100%;min-height:200px;}
.property-grid.list-view .property-body{display:flex;flex-direction:column;justify-content:center;}
@media(max-width:768px){.property-grid.list-view .property-card{grid-template-columns:1fr;}.property-grid.list-view .property-media{height:200px;}}
.property-card{background:var(--white);position:relative;overflow:hidden;border:1px solid var(--line);transition:var(--transition);}
.property-card:hover{transform:translateY(-6px);box-shadow:0 26px 50px rgba(19,45,71,.16);border-color:transparent;}
.property-media{position:relative;height:230px;overflow:hidden;}
.property-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s;}
.property-card:hover .property-media img{transform:scale(1.08);}
.badge-row{position:absolute;top:14px;right:14px;left:14px;display:flex;justify-content:space-between;}
.badge{padding:6px 14px;font-size:11px;font-weight:800;letter-spacing:.4px;}
.badge-purpose{background:var(--ink);color:var(--white);}
.badge-purpose.rent{background:var(--gold);}
.badge-featured{background:var(--white);color:var(--gold-dark);}
.fav-btn{position:absolute;bottom:14px;left:14px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;color:var(--ink);z-index:3;transition:var(--transition);}
.fav-btn:hover{transform:scale(1.1);}
.fav-btn svg{width:18px;height:18px;}
.fav-btn.active svg{fill:var(--gold);stroke:var(--gold);}
.fav-badge{position:absolute;top:-3px;left:-3px;background:var(--gold);color:#fff;font-size:10px;font-weight:800;width:17px;height:17px;border-radius:50%;display:none;align-items:center;justify-content:center;}
.empty-favorites{text-align:center;padding:100px 24px;}
.empty-favorites svg{width:60px;height:60px;color:var(--line);margin:0 auto 24px;}
.empty-favorites h3{font-size:20px;font-weight:800;margin-bottom:10px;}
.empty-favorites p{color:var(--muted);margin-bottom:26px;}
.property-body{padding:22px 24px 26px;}
.property-price{font-size:20px;font-weight:900;color:var(--ink);margin-bottom:8px;}
.property-title{font-size:16.5px;font-weight:800;margin-bottom:6px;}
.property-loc{font-size:13px;color:var(--muted);margin-bottom:16px;display:flex;align-items:center;gap:6px;}
.property-specs{display:flex;gap:16px;padding-top:14px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink-2);font-weight:700;flex-wrap:wrap;}
.property-specs b{color:var(--gold-dark);}
.empty-state{text-align:center;color:var(--muted);padding:60px 0;grid-column:1/-1;font-size:15px;}

/* ============================================================
   SERVICES (scroll row)
   ============================================================ */
.scroll-row{display:flex;gap:22px;overflow-x:auto;padding:10px 4px 20px;scroll-snap-type:x proximity;}
.scroll-row::-webkit-scrollbar{height:5px;}
.scroll-row::-webkit-scrollbar-thumb{background:var(--gold);}
.service-tile{flex:0 0 300px;scroll-snap-align:start;padding:38px 30px;border:1px solid var(--line);position:relative;background:var(--white);}
.service-tile .num{position:absolute;top:20px;left:24px;font-size:12px;color:var(--gold);font-weight:800;}
.service-tile h4{font-size:17.5px;font-weight:800;margin:18px 0 10px;}
.service-tile p{color:var(--muted);font-size:13.5px;}
.carousel-controls{display:flex;justify-content:center;gap:14px;margin-top:6px;}
.carousel-controls button{width:44px;height:44px;border:1.5px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;}
.carousel-controls button:hover{border-color:var(--ink);}

/* The home services row is a full-width grid rather than a scroller: as a
   .scroll-row it overflowed, which is what produced the gold scrollbar track
   and forced the prev/next arrows. Other .scroll-row users still scroll. */
#service-row{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;overflow:visible;padding:0;margin-top:48px;}
#service-row .service-tile{flex:none;width:auto;}
#service-row .service-tile.photo-tile{height:clamp(320px,27vw,420px);}
@media(max-width:1024px){#service-row{grid-template-columns:repeat(2,1fr);}}
@media(max-width:640px){#service-row{grid-template-columns:1fr;}}

/* ============================================================
   TEAM
   ============================================================ */
.team-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;text-align:center;margin-bottom:70px;padding-bottom:56px;border-bottom:1px solid var(--line);}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:54px;}
.team-card{text-align:center;}
.avatar{width:104px;height:104px;border-radius:50%;background:var(--ink);color:var(--gold-light);display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:800;margin:0 auto 20px;border:3px solid var(--gold-light);overflow:hidden;}
.avatar img{width:100%;height:100%;object-fit:cover;}
.team-card h4{font-size:18px;font-weight:800;}
.team-card .role{color:var(--gold-dark);font-size:13px;font-weight:700;margin:6px 0 12px;}
.team-card p{color:var(--muted);font-size:13.5px;padding:0 10px;}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials{background:var(--ink);color:var(--white);}
.testimonials .eyebrow{color:var(--gold-light);}
.testimonials .eyebrow::before,.testimonials .eyebrow::after{background:var(--gold-light);}
.testimonials h2.title{color:var(--white);}
.testi-track{position:relative;height:210px;max-width:780px;margin:50px auto 0;}
.testi-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s;text-align:center;display:flex;flex-direction:column;justify-content:center;}
.testi-slide.active{opacity:1;}
.testi-slide p{font-size:clamp(17px,2.1vw,21px);font-style:italic;line-height:1.8;margin-bottom:20px;}
.testi-name{color:var(--gold-light);font-weight:800;}
.testi-role{color:rgba(255,255,255,.55);font-size:12.5px;}
.testi-arrows{display:flex;justify-content:center;gap:22px;margin-top:26px;font-size:11px;letter-spacing:1.5px;font-weight:700;color:rgba(255,255,255,.6);}
.testi-arrows button{color:inherit;}
.testi-arrows button:hover{color:var(--white);}

/* ============================================================
   CONTACT
   ============================================================ */
.contact{padding:110px 0;text-align:center;background:var(--gray-50);}
.contact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:920px;margin:50px auto 0;}
.contact-card{background:var(--white);border:1px solid var(--line);padding:34px 22px;}
.contact-card .value-icon{margin:0 auto 16px;background:var(--ink);color:var(--gold-light);border:none;}
.contact-card h5{font-weight:800;margin-bottom:8px;}
.contact-card a,.contact-card span{color:var(--gold-dark);font-size:14.5px;}

/* ============================================================
   CONTACT FORM SECTION (visual photo panel + working form)
   ============================================================ */
.contact-form-section{padding:100px 0;background:var(--gray-50);}
.cf-grid{display:grid;grid-template-columns:1fr 1fr;background:var(--white);box-shadow:0 20px 60px rgba(19,45,71,.1);}
.cf-visual{position:relative;min-height:520px;color:#fff;padding:50px;display:flex;flex-direction:column;justify-content:flex-end;}
.cf-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.cf-visual::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,45,71,.35) 0%,rgba(13,31,49,.92) 100%);}
.cf-visual-content{position:relative;z-index:2;text-align:start;}
.cf-visual-content .eyebrow{color:var(--gold-light);}
.cf-visual-content .eyebrow::before{background:var(--gold-light);}
.cf-visual-content h2{color:#fff;font-size:clamp(22px,2.4vw,30px);font-weight:900;margin-bottom:14px;line-height:1.35;}
.cf-visual-content p{color:rgba(255,255,255,.75);font-size:14px;margin-bottom:26px;}
.cf-quick-links{display:flex;flex-direction:column;gap:14px;}
.cf-quick{display:flex;align-items:center;gap:12px;color:#fff;font-size:13.5px;font-weight:700;}
.cf-quick .cf-icon{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.cf-quick .cf-icon svg{width:16px;height:16px;}
.cf-form-wrap{padding:50px;text-align:start;}
.cf-form-wrap h3{font-size:20px;font-weight:900;margin-bottom:8px;}
.cf-form-wrap > p{color:var(--muted);font-size:13.5px;margin-bottom:26px;}
.cf-field{margin-bottom:16px;}
.cf-field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:7px;}
.cf-field input,.cf-field select,.cf-field textarea{width:100%;border:1px solid var(--line);padding:13px 14px;font-family:inherit;font-size:14px;color:var(--ink);background:var(--white);}
.cf-field input:focus,.cf-field select:focus,.cf-field textarea:focus{outline:none;border-color:var(--gold);}
.cf-field textarea{min-height:100px;resize:vertical;}
.cf-row2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.cf-submit{width:100%;justify-content:center;margin-top:6px;}
.cf-note{font-size:12px;color:var(--muted);text-align:center;margin-top:14px;}
.cf-success{display:none;text-align:center;padding:40px 20px;}
.cf-success.show{display:block;}
.cf-success .icon{width:60px;height:60px;border-radius:50%;background:var(--gold);color:#fff;font-size:26px;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;}
@media(max-width:900px){.cf-grid{grid-template-columns:1fr;}.cf-visual{min-height:280px;}.cf-row2{grid-template-columns:1fr;}}

/* offices map (contact.html) */
.offices-map-wrap{border:1px solid var(--line);overflow:hidden;margin-top:50px;}
#offices-map{height:380px;width:100%;}

/* ============================================================
   FOOTER
   ============================================================ */
footer{background:#0d1f31;color:rgba(255,255,255,.68);padding:70px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;padding-bottom:50px;}
.footer-grid h5{color:var(--white);font-weight:800;margin-bottom:20px;font-size:14.5px;letter-spacing:.5px;}
.footer-grid li{margin-bottom:12px;font-size:14px;}
.footer-grid a:hover{color:var(--gold-light);}
.footer-logo{font-size:23px;font-weight:900;color:var(--white);margin-bottom:16px;}
.footer-logo span{color:var(--gold-dark);}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:22px 0;text-align:center;font-size:13px;color:rgba(255,255,255,.4);}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float{position:fixed;bottom:26px;left:26px;z-index:999;width:56px;height:56px;background:#25d366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,.25);transition:var(--transition);}
.wa-float:hover{transform:scale(1.08);}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.4,0,.2,1),transform .7s cubic-bezier(.4,0,.2,1);}
.reveal.in{opacity:1;transform:translateY(0);}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* ============================================================
   BREADCRUMB + INNER PAGE HERO (property/city pages)
   ============================================================ */
.page-hero{position:relative;height:420px;margin-top:calc(var(--nav-h) + 8px);overflow:hidden;background:var(--ink);}
.page-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:kenburns 22s ease-in-out infinite alternate;}
@keyframes kenburns{from{transform:scale(1);}to{transform:scale(1.09);}}
@media(prefers-reduced-motion:reduce){.page-hero img{animation:none;}}
.page-hero .hero-overlay{background:linear-gradient(180deg,rgba(19,45,71,.25) 0%,rgba(13,31,49,.85) 100%);}
.page-hero-content{position:absolute;bottom:40px;insetInline:0;left:0;right:0;z-index:3;color:var(--white);}
.breadcrumb{font-size:13px;color:rgba(255,255,255,.7);margin-bottom:14px;display:flex;gap:8px;}
.breadcrumb a:hover{color:var(--gold-light);}
.page-hero-content h1{font-size:clamp(26px,4vw,44px);font-weight:900;}
.page-hero-content .sub{color:var(--gold-light);font-size:14px;margin-top:8px;font-weight:700;}

/* property detail */
.pd-wrap{max-width:1100px;margin:0 auto;padding:70px 32px 0;display:grid;grid-template-columns:1.6fr 1fr;gap:60px;}
.pd-gallery-grid{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,140px);gap:10px;margin-bottom:14px;height:400px;}
.pd-gallery-grid .g-main{grid-row:1/3;}
.pd-gallery-grid img{width:100%;height:100%;object-fit:cover;cursor:pointer;transition:filter .3s;}
.pd-gallery-grid img:hover{filter:brightness(.88);}
.pd-gallery-grid .g-thumb{position:relative;}
.pd-gallery-grid .g-thumb.more::after{content:attr(data-more);position:absolute;inset:0;background:rgba(19,45,71,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;cursor:pointer;}
@media(max-width:640px){.pd-gallery-grid{grid-template-columns:1fr;grid-template-rows:none;height:auto;}.pd-gallery-grid .g-main{height:260px;grid-row:auto;}.pd-gallery-grid .g-thumb{display:none;}}

.pd-map-wrap{margin-top:10px;}
.pd-map-wrap iframe{width:100%;height:220px;border:1px solid var(--line);filter:grayscale(.15);}
.pd-map-wrap .map-label{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:10px;}

.lightbox-overlay{position:fixed;inset:0;background:rgba(9,20,32,.95);z-index:3000;display:none;align-items:center;justify-content:center;}
.lightbox-overlay.open{display:flex;}
.lightbox-img{max-width:88vw;max-height:82vh;object-fit:contain;}
.lightbox-close{position:absolute;top:24px;left:24px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:20px;display:flex;align-items:center;justify-content:center;}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:26px;display:flex;align-items:center;justify-content:center;}
.lightbox-nav.prev{right:24px;}
.lightbox-nav.next{left:24px;}
.lightbox-nav:hover,.lightbox-close:hover{background:rgba(255,255,255,.25);}
.lightbox-counter{position:absolute;bottom:26px;insetInline:0;left:0;right:0;text-align:center;color:rgba(255,255,255,.7);font-size:13px;letter-spacing:1px;}
.pd-badges{display:flex;gap:10px;margin:20px 0 14px;}
.pd-badges .badge{background:var(--gray-100);color:var(--ink-2);}
.pd-desc{color:var(--muted);font-size:15.5px;margin:20px 0 30px;}
.pd-specs{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;background:var(--gray-50);padding:22px;margin-bottom:30px;text-align:center;}
.pd-specs div b{display:block;font-size:21px;color:var(--ink);}
.pd-specs div span{font-size:11.5px;color:var(--muted);}
.pd-amenities{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px;}
.amenity-tag{background:var(--gray-100);color:var(--ink-2);padding:9px 16px;font-size:13px;font-weight:600;border-right:3px solid var(--gold);}
.pd-side{align-self:start;position:sticky;top:calc(var(--nav-h) + 30px);background:var(--gray-50);padding:30px;border-top:3px solid var(--gold);}
.pd-side .price{font-size:26px;font-weight:900;margin-bottom:6px;}
.pd-side .price-sub{color:var(--muted);font-size:13px;margin-bottom:24px;}
.pd-side .btn{width:100%;justify-content:center;margin-bottom:12px;}
.pd-side .agent{display:flex;align-items:center;gap:14px;margin-top:26px;padding-top:26px;border-top:1px solid var(--line);}
.pd-side .agent .avatar{width:52px;height:52px;font-size:16px;margin:0;}
.pd-side .agent div p{font-size:12px;color:var(--muted);}
.similar-section{padding:100px 0;background:var(--gray-50);margin-top:80px;}

/* city page */
.city-blurb{max-width:800px;margin:0 auto 20px;text-align:center;color:var(--muted);}

@media(max-width:1100px){
  .pd-wrap{grid-template-columns:1fr;}
  .pd-side{position:static;}
}
@media(max-width:1024px){
  .about-grid,.property-grid,.collab-grid,.city-grid,.team-grid,.contact-cards{grid-template-columns:repeat(2,1fr);}
  .property-grid.cols-4{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .search-bar{grid-template-columns:repeat(2,1fr);}
  .pd-specs{grid-template-columns:repeat(2,1fr);}
  .mega-inner{grid-template-columns:repeat(3,1fr);}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .value-row{flex-wrap:wrap;}
  .value-card{flex:0 0 100%;border-left:none;border-top:1px solid var(--line);padding:30px 0 0;}
}
@media(max-width:768px){
  nav.main-nav,.nav-actions .btn{display:none;}
  .burger{display:flex;}
  .stats-grid,.about-grid,.property-grid,.property-grid.cols-4,.collab-grid,.city-grid,.team-grid,.team-stats,.contact-cards,.footer-grid{grid-template-columns:1fr;}
  .about-grid{gap:36px;}
  .search-bar{grid-template-columns:1fr;}
  .hero h1{font-size:30px;}
  .pd-specs{grid-template-columns:repeat(2,1fr);}
  .mega-inner{grid-template-columns:1fr 1fr;}
  .stats-grid .div,.stats-grid>div{border:none;}
}

/* ============================================================
   Hebrew typography
   Cairo carries no Hebrew glyphs, so Hebrew pages would fall back
   to an unstyled system font. Heebo covers Hebrew + Latin and keeps
   the same 400-900 weight range the layout already relies on.
   ============================================================ */
html[lang="he"] body,
html[lang="he"] input,
html[lang="he"] select,
html[lang="he"] textarea,
html[lang="he"] button{
  font-family:'Heebo','Cairo',-apple-system,'Segoe UI',sans-serif;
}
html[lang="he"] .logo,
html[lang="he"] .footer-logo{ letter-spacing:0; }

/* ============================================================
   Sort control + price range filter
   ============================================================ */
.filter-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:center;}
.sort-wrap{display:flex;align-items:center;gap:8px;}
.sort-wrap label{font-size:11px;font-weight:800;letter-spacing:1px;color:var(--muted);text-transform:uppercase;}
.sort-wrap select{border:1.5px solid var(--line);background:var(--white);color:var(--ink);
  font-family:inherit;font-size:13px;font-weight:700;padding:9px 12px;cursor:pointer;}
.sort-wrap select:focus{outline:none;border-color:var(--gold);}

.price-filter{display:flex;flex-direction:column;gap:8px;min-width:280px;}
.price-filter .pf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.price-filter .pf-label{font-size:11px;font-weight:800;letter-spacing:1px;color:var(--muted);text-transform:uppercase;}
.price-filter .pf-value{font-size:12.5px;font-weight:800;color:var(--gold-dark);font-variant-numeric:tabular-nums;}
.price-filter .pf-track{position:relative;height:26px;display:flex;align-items:center;}
.price-filter input[type=range]{
  position:absolute;width:100%;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none;height:26px;
}
.price-filter input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;pointer-events:auto;
  width:17px;height:17px;border-radius:50%;background:var(--white);
  border:2.5px solid var(--gold);cursor:pointer;box-shadow:0 1px 4px rgba(19,45,71,.28);
}
.price-filter input[type=range]::-moz-range-thumb{
  pointer-events:auto;width:17px;height:17px;border-radius:50%;background:var(--white);
  border:2.5px solid var(--gold);cursor:pointer;
}
.price-filter .pf-rail{position:absolute;inset-inline:0;height:3px;background:var(--line);border-radius:2px;}
.price-filter .pf-fill{position:absolute;height:3px;background:var(--gold);border-radius:2px;}
.pf-reset{font-size:11.5px;font-weight:800;color:var(--muted);border-bottom:1px solid transparent;}
.pf-reset:hover{color:var(--gold-dark);border-bottom-color:var(--gold);}
@media(max-width:560px){ .price-filter{min-width:100%;} }

/* ===== sticky mobile action bar ===================================== */
.mobile-cta{display:none;}
@media(max-width:768px){
  .mobile-cta{
    display:grid;grid-template-columns:repeat(3,1fr);
    position:fixed;inset-inline:0;bottom:0;z-index:1000;
    background:var(--white);border-top:1px solid var(--line);
    box-shadow:0 -6px 24px rgba(19,45,71,.12);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .mcta-btn{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    padding:10px 6px;min-height:58px;
    font-size:11.5px;font-weight:800;color:var(--ink);
    background:none;border:none;font-family:inherit;text-align:center;
  }
  .mcta-btn + .mcta-btn{border-inline-start:1px solid var(--line);}
  .mcta-btn svg{width:21px;height:21px;flex-shrink:0;}
  .mcta-wa{color:#128c4a;}
  .mcta-enquire{color:var(--gold-dark);}
  .mcta-btn:active{background:var(--gray-50);}
  /* the floating bubble would sit on top of the bar */
  .wa-float-wrap{display:none !important;}
  body{padding-bottom:72px;}
}

/* ===== cities.html — country groups ================================= */
.cities-group + .cities-group{margin-top:64px;}
.cities-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--line);}
.cities-group-head h2{font-size:clamp(20px,2.4vw,28px);font-weight:900;}
.cities-group-head span{font-size:12.5px;font-weight:800;color:var(--gold-dark);letter-spacing:.4px;}
.cities-group .city-grid{margin-top:26px;}
.city-tile-lg{height:260px;}
.city-tile-range{margin-top:7px;font-size:12.5px;font-weight:800;color:var(--white);}
.city-tile-range em{display:block;font-style:normal;font-size:10.5px;font-weight:700;letter-spacing:.6px;color:rgba(255,255,255,.62);margin-bottom:2px;}

/* ===== image skeletons ============================================== */
@keyframes skeleton-sweep{0%{background-position:-160% 0;}100%{background-position:260% 0;}}
.property-media img{transition:transform .6s,opacity .35s;}
.is-loading{position:relative;background:var(--gray-100);}
.is-loading::before{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.72) 50%,rgba(255,255,255,0) 100%);
  background-size:60% 100%;background-repeat:no-repeat;
  animation:skeleton-sweep 1.25s ease-in-out infinite;
}
.is-loading img{opacity:0;}
@media(prefers-reduced-motion:reduce){.is-loading::before{animation:none;}}

/* ===== compare tray + comparison table ============================== */
.compare-bar{
  display:none;position:fixed;bottom:22px;inset-inline:0;margin-inline:auto;z-index:1400;
  width:max-content;max-width:calc(100% - 32px);
  align-items:center;gap:14px;padding:12px 18px;
  background:var(--white);border:1px solid var(--line);border-radius:60px;
  box-shadow:0 18px 44px rgba(19,45,71,.22);
}
.compare-bar.open{display:flex;}
.cmpbar-thumbs{display:flex;gap:8px;}
.cmpbar-thumb{position:relative;width:46px;height:36px;border-radius:6px;overflow:visible;flex-shrink:0;}
.cmpbar-thumb img{width:46px;height:36px;object-fit:cover;border-radius:6px;}
.cmpbar-x{
  position:absolute;top:-7px;inset-inline-end:-7px;width:18px;height:18px;border-radius:50%;
  background:var(--ink);color:#fff;font-size:10px;line-height:1;display:flex;align-items:center;justify-content:center;
}
.cmpbar-label{font-size:12.5px;font-weight:800;white-space:nowrap;}
.cmpbar-clear{font-size:11.5px;font-weight:800;color:var(--muted);white-space:nowrap;}
.cmpbar-clear:hover{color:var(--gold-dark);}
@media(max-width:768px){
  .compare-bar{bottom:84px;gap:10px;padding:10px 14px;}
  .cmpbar-label{display:none;}
}

.cmp-overlay{position:fixed;inset:0;background:rgba(13,31,49,.72);z-index:2100;display:none;align-items:center;justify-content:center;padding:20px;}
.cmp-overlay.open{display:flex;}
.cmp-modal{position:relative;background:var(--white);width:100%;max-width:900px;max-height:88vh;overflow:auto;padding:34px 30px 30px;}
.cmp-modal h3{font-size:20px;font-weight:900;margin-bottom:20px;}
.cmp-scroll{overflow-x:auto;}
.cmp-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.cmp-table th,.cmp-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top;}
.cmp-table thead th{border-bottom:2px solid var(--ink);}
.cmp-table thead img{width:100%;height:96px;object-fit:cover;margin-bottom:8px;}
.cmp-table thead span{display:block;font-size:13px;font-weight:800;line-height:1.4;}
.cmp-table thead a:hover span{color:var(--gold-dark);}
.cmp-table tbody th{width:132px;font-size:11.5px;font-weight:800;letter-spacing:.5px;color:var(--muted);white-space:nowrap;}
.cmp-table td{min-width:170px;}

/* ===== cursive scripts: no positive tracking =========================
   Arabic and Hebrew are joined scripts. letter-spacing inserts gaps between
   glyphs that read as broken words, so the tracking that gives the Latin
   design its airy feel is removed for ar/he only. English keeps it. */
html[lang="ar"], html[lang="he"]{
  --tracking-none:0;
}
html[lang="ar"] .btn,          html[lang="he"] .btn,
html[lang="ar"] .eyebrow,      html[lang="he"] .eyebrow,
html[lang="ar"] .hero-eyebrow, html[lang="he"] .hero-eyebrow,
html[lang="ar"] .mega-col h5,  html[lang="he"] .mega-col h5,
html[lang="ar"] .collab-info .tag,   html[lang="he"] .collab-info .tag,
html[lang="ar"] .masonry-label .loc, html[lang="he"] .masonry-label .loc,
html[lang="ar"] .why-tile .why-info .num, html[lang="he"] .why-tile .why-info .num,
html[lang="ar"] .testi-arrows, html[lang="he"] .testi-arrows,
html[lang="ar"] .filter-row-label, html[lang="he"] .filter-row-label,
html[lang="ar"] .search-field label, html[lang="he"] .search-field label,
html[lang="ar"] .sort-wrap label,  html[lang="he"] .sort-wrap label,
html[lang="ar"] .price-filter .pf-label, html[lang="he"] .price-filter .pf-label,
html[lang="ar"] .hero-arrows,  html[lang="he"] .hero-arrows,
html[lang="ar"] .lightbox-counter, html[lang="he"] .lightbox-counter{
  letter-spacing:0;
}
/* uppercase is a no-op in both scripts but still triggers font synthesis */
html[lang="ar"] .masonry-label .loc, html[lang="he"] .masonry-label .loc,
html[lang="ar"] .sort-wrap label,    html[lang="he"] .sort-wrap label,
html[lang="ar"] .price-filter .pf-label, html[lang="he"] .price-filter .pf-label{
  text-transform:none;
}

/* single market: the country field is hidden, so the bar closes up to three fields.
   Desktop only; the 1100px and 768px breakpoints already re-grid the bar. */
@media(min-width:1101px){ .search-bar.one-country{grid-template-columns:repeat(3,1fr) auto;} }

/* ===== private listing gate (property.html?slug=… for a locked listing) ===== */
.pd-lock{padding:70px 24px 90px;display:flex;justify-content:center;}
.pd-lock-card{width:100%;max-width:440px;background:var(--white);border:1px solid var(--line);border-top:3px solid var(--gold);padding:38px 34px;display:flex;flex-direction:column;gap:12px;text-align:center;}
.pd-lock-ico{width:44px;height:44px;margin:0 auto 4px;fill:none;stroke:var(--gold-dark);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.pd-lock-card h2{font-size:24px;font-weight:900;color:var(--ink);}
.pd-lock-sub{color:var(--muted);font-size:14.5px;line-height:1.8;}
.pd-lock-card label{font-size:12px;font-weight:800;color:var(--muted);text-align:start;margin-top:6px;}
.pd-lock-card input{border:1px solid var(--line);padding:13px 14px;font-size:15px;text-align:center;letter-spacing:2px;}
.pd-lock-card input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(175,149,90,.18);}
.pd-lock-card .btn{justify-content:center;}
.pd-lock-card .btn:disabled{opacity:.6;cursor:wait;}
.pd-lock-err{color:#b3392b;font-size:13px;}
.pd-lock-help{font-size:13px;color:var(--gold-dark);font-weight:700;margin-top:4px;}
.pd-lock-help:hover{text-decoration:underline;}

/* ===== homepage blocks switched off in the admin panel ===== */
.block-off{display:none!important;}
.block-off + .search-wrap{margin-top:calc(var(--nav-h) + 40px);}
/* ===== admin preview highlight (?hl=) ===== */
.ideal-hl{outline:3px solid var(--gold)!important;outline-offset:6px;animation:idealHl 1.4s ease-in-out 3;}
@keyframes idealHl{50%{outline-color:rgba(175,149,90,.2);}}
.ideal-hl-hidden{position:relative;opacity:.6;}
.ideal-hl-hidden::before{content:'مخفي بالموقع · Hidden on site';position:absolute;top:10px;inset-inline-start:10px;z-index:30;background:var(--ink);color:#fff;font-size:12px;font-weight:800;padding:4px 10px;}
@media (prefers-reduced-motion: reduce){ .ideal-hl{animation:none;} }

/* ===== social links (admin → التواصل والفوتر) ===== */
.social-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.social-link{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);color:#fff;transition:var(--transition);}
.social-link:hover{border-color:var(--gold);color:var(--gold-light);}
.social-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

/* ===== property gallery with 1, 2 or many real photos ===== */
.pd-gallery-grid.single{grid-template-columns:1fr;}
.pd-gallery-grid.two .g-thumb{grid-row:1/3;}
.pd-gallery-grid .g-thumb{overflow:hidden;}
.pd-gallery-grid .g-thumb img{width:100%;height:100%;object-fit:cover;}
@media(max-width:640px){ .pd-gallery-grid.single .g-main,.pd-gallery-grid.two .g-main{height:260px;} }

/* ===== page builder blocks (assets/page.js) ===== */
.pb-gray{background:var(--gray-50);}
.pb-head{margin-bottom:34px;}
.pb-sub{color:rgba(255,255,255,.85);font-size:16px;max-width:640px;margin-top:8px;}
.pb-text{max-width:820px;}
.pb-text.center{margin:0 auto;}
.pb-rich h3{font-size:20px;font-weight:800;color:var(--ink);margin:30px 0 12px;}
.pb-rich p,.pb-rich li{color:var(--muted);font-size:15.5px;line-height:1.9;margin-bottom:12px;}
.pb-rich ul{padding-inline-start:22px;margin-bottom:14px;}
.pb-rich ul li{list-style:disc;}
.pb-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;}
.pb-split img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.pb-split.img-end img{order:2;}
.pb-split .btn{margin-top:18px;}
.pb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px;}
.pb-card{background:var(--white);border:1px solid var(--line);border-top:2px solid var(--gold);padding:28px 24px;display:flex;flex-direction:column;gap:10px;transition:var(--transition);}
.pb-card:hover{transform:translateY(-4px);box-shadow:0 18px 36px rgba(19,45,71,.10);}
.pb-card .pb-ico{width:30px;height:30px;color:var(--gold-dark);}
.pb-card-t{font-weight:800;font-size:17px;color:var(--ink);}
.pb-card p{font-size:14px;color:var(--muted);line-height:1.75;margin:0;}
.pb-cards.navy .pb-card{background:var(--ink);border:0;}
.pb-cards.navy .pb-ico{color:var(--gold-light);}
.pb-cards.navy .pb-card-t{color:#fff;}
.pb-cards.navy .pb-card p{color:rgba(255,255,255,.72);}
.pb-ico{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.pb-faq{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:10px;}
.pb-faq-item{background:var(--white);border:1px solid var(--line);}
.pb-faq-item summary{cursor:pointer;padding:18px 22px;font-weight:800;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:14px;}
.pb-faq-item summary::-webkit-details-marker{display:none;}
.pb-faq-item summary::after{content:'+';color:var(--gold-dark);font-size:20px;line-height:1;}
.pb-faq-item[open] summary::after{content:'−';}
.pb-faq-item .pb-rich{padding:0 22px 12px;}
.pb-cta{background:var(--ink);color:#fff;padding:70px 0;}
.pb-cta h2{font-size:clamp(24px,3vw,34px);font-weight:900;margin-bottom:12px;text-wrap:balance;}
.pb-cta p{color:rgba(255,255,255,.75);max-width:620px;margin:0 auto 26px;}
.pb-cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
@media(max-width:900px){ .pb-split{grid-template-columns:1fr;gap:28px;} .pb-split.img-end img{order:0;} }

.pb-text{margin-inline:auto;}
.pb-text.center{text-align:center;}

/* ===== Design settings from the admin panel =====
   Site-wide choices arrive as classes on <html> (applyDesignSettings in data.js),
   one section's choices as data-ds-* on the section (applySectionDesign). A phone
   has already taken its own values, so none of this needs a media query. */
html.ds-title-sm h2.title{font-size:clamp(22px,2.9vw,32px);}
html.ds-title-lg h2.title{font-size:clamp(30px,4.4vw,50px);}
html.ds-hero-sm .hero h1{font-size:clamp(24px,4.2vw,44px);}
html.ds-hero-lg .hero h1{font-size:clamp(34px,6.4vw,70px);}
html.ds-heroh-tall .hero{height:calc(72svh - var(--nav-h));min-height:440px;}
html.ds-heroh-short .hero{height:calc(52svh - var(--nav-h) / 2);min-height:340px;}
html.ds-space-compact .section{padding-block:clamp(44px,6vw,72px);}
html.ds-space-compact .section.tight{padding-block:clamp(34px,4.5vw,54px);}
html.ds-space-wide .section{padding-block:clamp(90px,11vw,150px);}
html.ds-space-wide .section.tight{padding-block:clamp(64px,8vw,110px);}
html.ds-align-center .section :is(h2.title,.lede){text-align:center;margin-inline:auto;}
html.ds-align-center .section .eyebrow{justify-content:center;}
html.ds-align-start .section :is(h2.title,.lede){text-align:start;margin-inline:0;}
html.ds-align-start .section .eyebrow{justify-content:flex-start;}
html.ds-radius-none :is(.property-card,.city-tile,.service-tile,.pb-card,.photo-stat-card,.photo-feature-card,.masonry-item,.pb-split img,.value-card){border-radius:0!important;}
html.ds-radius-soft :is(.property-card,.city-tile,.service-tile,.pb-card,.photo-stat-card,.photo-feature-card,.masonry-item,.pb-split img,.value-card){border-radius:12px!important;overflow:hidden;}
html.ds-radius-round :is(.property-card,.city-tile,.service-tile,.pb-card,.photo-stat-card,.photo-feature-card,.masonry-item,.pb-split img,.value-card){border-radius:22px!important;overflow:hidden;}
html.ds-btn-round .btn{border-radius:999px;}
html.ds-no-wa :is(.wa-float,.wa-float-wrap,.wa-teaser){display:none!important;}
html.ds-no-mbar .mobile-cta{display:none!important;}
html.ds-no-mbar body{padding-bottom:0!important;}

/* one section */
[data-ds-bg="white"]{background:var(--white)!important;}
[data-ds-bg="gray"]{background:var(--gray-50)!important;}
[data-ds-bg="navy"]{background:var(--ink)!important;color:#fff;}
[data-ds-bg="navy"] :is(h2.title,h2,h3,h4,.pb-card-t){color:#fff;}
[data-ds-bg="navy"] .lede{color:rgba(255,255,255,.78);}
[data-ds-bg="navy"] .eyebrow{color:var(--gold-light);}
[data-ds-space="compact"]{padding-block:clamp(40px,5vw,64px)!important;}
[data-ds-space="wide"]{padding-block:clamp(90px,11vw,150px)!important;}
[data-ds-align="center"] :is(h2.title,.lede){text-align:center!important;margin-inline:auto!important;}
[data-ds-align="center"] .eyebrow{justify-content:center!important;}
[data-ds-align="start"] :is(h2.title,.lede){text-align:start!important;margin-inline:0!important;}
[data-ds-align="start"] .eyebrow{justify-content:flex-start!important;}
/* its cards: a fixed number per row, or a sideways strip you swipe */
[data-ds-cols="1"]{--ds-c:1;} [data-ds-cols="2"]{--ds-c:2;} [data-ds-cols="3"]{--ds-c:3;} [data-ds-cols="4"]{--ds-c:4;}
[data-ds-cols]:not([data-ds-mode="row"]) .ds-items:not(.masonry){display:grid!important;grid-template-columns:repeat(var(--ds-c),minmax(0,1fr))!important;overflow:visible!important;}
[data-ds-mode="grid"]:not([data-ds-cols]) .ds-items:not(.masonry){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))!important;overflow:visible!important;}
:is([data-ds-cols],[data-ds-mode="grid"]):not([data-ds-mode="row"]) .ds-items:not(.masonry) > *{width:auto!important;min-width:0!important;max-width:none!important;flex:initial!important;}
[data-ds-cols]:not([data-ds-mode="row"]) .masonry.ds-items{column-count:var(--ds-c)!important;}
[data-ds-mode="row"] .ds-items{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;gap:16px!important;column-count:auto!important;grid-template-columns:none!important;padding-bottom:12px;-webkit-overflow-scrolling:touch;}
[data-ds-mode="row"] .ds-items > *{flex:0 0 var(--ds-w,min(340px,82%))!important;max-width:var(--ds-w,min(340px,82%))!important;scroll-snap-align:start;margin:0!important;break-inside:auto;}
[data-ds-mode="row"][data-ds-cols="1"]{--ds-w:88%;}
[data-ds-mode="row"][data-ds-cols="2"]{--ds-w:calc(50% - 8px);}
[data-ds-mode="row"][data-ds-cols="3"]{--ds-w:calc(33.333% - 11px);}
[data-ds-mode="row"][data-ds-cols="4"]{--ds-w:calc(25% - 12px);}

/* rows a script hides (e.g. «الدولة» when listings are in one country) must stay hidden */
.filter-row[hidden],.filters-divider[hidden]{display:none!important;}
/* filters on a phone: the first row, then «المزيد من الفلاتر» */
.filters-more{display:none;}
@media(max-width:768px){
  .filters-more{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13.5px;font-weight:800;color:var(--ink);background:var(--gray-50);border:1.5px solid var(--line);border-radius:30px;padding:9px 20px;cursor:pointer;}
  .filters-more svg{width:16px;height:16px;transition:transform .2s;}
  .filters-more[aria-expanded="true"] svg{transform:rotate(180deg);}
  .filters-more:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
  .filters-more .fm-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--gold);color:#fff;font-size:11.5px;}
  .filters:not(.show-all) > :not(#filter-purpose):not(.filters-more){display:none!important;}
}

/* «عرض المزيد»: a section with a card limit shows only the first N cards until opened */
[data-ds-limit="1"]:not(.ds-open) .ds-items > :nth-child(n+2){display:none!important;}
[data-ds-limit="2"]:not(.ds-open) .ds-items > :nth-child(n+3){display:none!important;}
[data-ds-limit="3"]:not(.ds-open) .ds-items > :nth-child(n+4){display:none!important;}
[data-ds-limit="4"]:not(.ds-open) .ds-items > :nth-child(n+5){display:none!important;}
[data-ds-limit="5"]:not(.ds-open) .ds-items > :nth-child(n+6){display:none!important;}
[data-ds-limit="6"]:not(.ds-open) .ds-items > :nth-child(n+7){display:none!important;}
[data-ds-limit="7"]:not(.ds-open) .ds-items > :nth-child(n+8){display:none!important;}
[data-ds-limit="8"]:not(.ds-open) .ds-items > :nth-child(n+9){display:none!important;}
[data-ds-limit="9"]:not(.ds-open) .ds-items > :nth-child(n+10){display:none!important;}
[data-ds-limit="10"]:not(.ds-open) .ds-items > :nth-child(n+11){display:none!important;}
[data-ds-limit="11"]:not(.ds-open) .ds-items > :nth-child(n+12){display:none!important;}
[data-ds-limit="12"]:not(.ds-open) .ds-items > :nth-child(n+13){display:none!important;}
[data-ds-limit]:not(.ds-open) #property-pagination{display:none!important;}
.ds-more-wrap{display:flex;justify-content:center;margin-top:26px;}
.ds-more-wrap[hidden]{display:none!important;}
.ds-more{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:14px;font-weight:800;color:var(--ink);background:var(--white);border:1.5px solid var(--ink);border-radius:30px;padding:11px 28px;cursor:pointer;transition:var(--transition);}
.ds-more:hover,.ds-more:focus-visible{background:var(--ink);color:#fff;outline:none;}
.ds-more svg{width:16px;height:16px;transition:transform .2s;}
.ds-more[aria-expanded="true"] svg{transform:rotate(180deg);}
[data-ds-bg="navy"] .ds-more,.collab-section .ds-more{border-color:var(--gold);}
@media(max-width:768px){
  /* stat photo cards side by side */
  [data-ds-cols] .photo-stat-grid{gap:8px!important;}
  [data-ds-cols="2"] .photo-stat-card{height:170px!important;}
  :is([data-ds-cols="3"],[data-ds-cols="4"]) .photo-stat-card{height:150px!important;}
  :is([data-ds-cols="2"],[data-ds-cols="3"],[data-ds-cols="4"]) .photo-stat-card .psc-content{padding:12px 10px;}
  :is([data-ds-cols="2"],[data-ds-cols="3"],[data-ds-cols="4"]) .photo-stat-card .stat-num{font-size:clamp(22px,7vw,32px);}
  :is([data-ds-cols="2"],[data-ds-cols="3"],[data-ds-cols="4"]) .photo-stat-card .psc-label{font-size:11.5px;margin-top:4px;line-height:1.35;letter-spacing:0;}
  /* footer link columns side by side (design → «روابط الفوتر») */
  html.ds-footer-side .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 14px;}
  html.ds-footer-side .footer-grid > :first-child{grid-column:1 / -1;}
  html.ds-footer-side .footer-grid h5{font-size:14px;margin-bottom:12px;}
  html.ds-footer-side .footer-grid li a{font-size:13px;}
}

/* «سلايدر»: a moving strip with dots */
[data-ds-slider] .ds-items{scrollbar-width:none;scroll-behavior:smooth;}
[data-ds-slider] .ds-items::-webkit-scrollbar{display:none;}
[data-ds-slider] .masonry.ds-items .masonry-item img{height:clamp(300px,92vw,400px)!important;}
[data-ds-slider] .masonry.ds-items .masonry-item .masonry-label .loc{opacity:1;transform:none;}
.ds-dots{display:flex;justify-content:center;gap:8px;margin-top:18px;}
.ds-dots[hidden]{display:none!important;}
.ds-dots button{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:var(--line);cursor:pointer;transition:width .25s,background .25s;}
.ds-dots button.on{width:24px;background:var(--gold);}
.ds-dots button:focus-visible{outline:2px solid var(--gold);outline-offset:3px;}
:is([data-ds-bg="navy"],.collab-section,[data-block="collab"]) .ds-dots button:not(.on){background:rgba(255,255,255,.35);}
@media (prefers-reduced-motion: reduce){ [data-ds-slider] .ds-items{scroll-behavior:auto;} .ds-dots button{transition:none;} }
/* team side by side on a phone (section «عدد البطاقات بالسطر» 2–4): smaller photo, name and role; the bio waits for a wider screen */
@media(max-width:768px){
  :is([data-ds-cols="2"],[data-ds-cols="3"],[data-ds-cols="4"]) .team-grid{gap:18px 10px!important;margin-top:36px;}
  :is([data-ds-cols="3"],[data-ds-cols="4"]) .team-card .avatar{width:88px;height:88px;font-size:24px;margin-bottom:10px;}
  [data-ds-cols="2"] .team-card .avatar{width:120px;height:120px;margin-bottom:12px;}
  :is([data-ds-cols="2"],[data-ds-cols="3"],[data-ds-cols="4"]) .team-card h4{font-size:14px;line-height:1.35;}
  :is([data-ds-cols="2"],[data-ds-cols="3"],[data-ds-cols="4"]) .team-card .role{font-size:11.5px;margin:4px 0 0;line-height:1.4;}
  :is([data-ds-cols="3"],[data-ds-cols="4"]) .team-card p{display:none;}
  [data-ds-cols="2"] .team-card p{font-size:12px;padding:0;margin-top:8px;}
}

/* ===== Phone spacing =====
   The sections kept their desktop padding (80–110px), so two white sections in a
   row left ~200px of empty screen on a phone. One rhythm on small screens:
   52px inside every section, tighter heads, and ~28px between a heading and its
   cards. Admin design choices (html.ds-space-*, data-ds-space) still win. */
@media(max-width:768px){
  .section,.section.tight,.collab,.contact,.contact-form-section{padding-block:52px;}
  .stats{padding-block:44px 28px;}
  .eyebrow{margin-bottom:10px;}
  h2.title{margin-bottom:10px;}
  .city-grid,.team-grid,.masonry,.photo-feature-grid{margin-top:28px;}
  .filters{margin:28px 0 30px;}
  #presence #country-tabs{margin-bottom:22px!important;}
  #presence .center[style*="margin-top"]{margin-top:24px!important;}
  .testi-arrows{margin-top:18px;}
  .ds-more-wrap{margin-top:20px;}
  .ds-dots{margin-top:14px;}
  .ds-dots + .ds-more-wrap{margin-top:14px;}
}
@media(max-width:768px){
  /* two plain white sections in a row (also across a hidden one): one gap between them, not two */
  :is(section.section:not(.testimonials):not([style*="background"]):not([data-ds-bg]), .stats:not([data-ds-bg])) + section.section:not(.testimonials):not([style*="background"]):not([data-ds-bg]):not([data-ds-space]),
  :is(section.section:not(.testimonials):not([style*="background"]):not([data-ds-bg]), .stats:not([data-ds-bg])) + :is(section[style*="display:none"], .block-off) + section.section:not(.testimonials):not([style*="background"]):not([data-ds-bg]):not([data-ds-space]){padding-top:12px;}
}

/* ===== Trust bar as icon cards (no photos) ===== */
.trust-icon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin-top:50px;}
.trust-icon-card{display:flex;flex-direction:column;gap:16px;padding:28px 24px 26px;background:var(--white);border:1px solid var(--line);border-top:2px solid var(--gold);transition:border-color .25s,transform .25s;}
.trust-icon-card:hover{border-color:var(--gold);transform:translateY(-3px);}
.tic-ico{width:54px;height:54px;flex:none;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--gold) 45%,transparent);background:color-mix(in srgb,var(--gold) 9%,var(--white));color:var(--gold-dark);}
.tic-ico .site-ico{width:27px;height:27px;}
.tic-ico img{width:30px;height:30px;object-fit:contain;}
.trust-icon-card h4{font-size:16.5px;font-weight:800;color:var(--ink);margin-bottom:6px;line-height:1.4;}
.trust-icon-card p{font-size:13.5px;color:var(--muted);line-height:1.7;}
[data-ds-bg="navy"] .trust-icon-card{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.14);border-top-color:var(--gold);}
[data-ds-bg="navy"] .trust-icon-card h4{color:#fff;}
[data-ds-bg="navy"] .trust-icon-card p{color:rgba(255,255,255,.72);}
html.ds-radius-soft .trust-icon-card{border-radius:12px;} html.ds-radius-soft .tic-ico{border-radius:10px;}
html.ds-radius-round .trust-icon-card{border-radius:22px;} html.ds-radius-round .tic-ico{border-radius:50%;}
@media(prefers-reduced-motion:reduce){.trust-icon-card{transition:none;}.trust-icon-card:hover{transform:none;}}
@media(max-width:768px){
  /* a phone reads them as a short list: icon beside the words */
  .trust-icon-grid:not([class*="ds-"]),[data-block="trust"]:not([data-ds-cols]):not([data-ds-mode]) .trust-icon-grid{grid-template-columns:1fr;gap:0;margin-top:22px;border-top:1px solid var(--line);}
  [data-block="trust"]:not([data-ds-cols]):not([data-ds-mode]) .trust-icon-card,.trust-icon-grid:not([class*="ds-"]) .trust-icon-card{flex-direction:row;align-items:flex-start;gap:14px;padding:18px 4px;border:0;border-bottom:1px solid var(--line);background:transparent;}
  [data-block="trust"]:not([data-ds-cols]):not([data-ds-mode]) .trust-icon-card:hover{transform:none;}
  .tic-ico{width:46px;height:46px;}
  .tic-ico .site-ico{width:23px;height:23px;}
  .trust-icon-card h4{font-size:15px;margin-bottom:2px;}
  .trust-icon-card p{font-size:13px;line-height:1.6;}
}

/* ===== «تواصل معنا» pop-up ===== */
.cpop-wrap{position:fixed;inset:0;z-index:1200;pointer-events:none;}
.cpop-wrap[hidden]{display:none!important;}
.cpop-backdrop{position:absolute;inset:0;background:rgba(13,31,49,.42);opacity:0;transition:opacity .25s;pointer-events:auto;}
.cpop{position:absolute;inset-inline:12px;bottom:calc(84px + env(safe-area-inset-bottom));margin-inline:auto;max-width:430px;background:var(--white);border-top:3px solid var(--gold);padding:26px 22px 22px;box-shadow:0 24px 60px rgba(13,31,49,.3);text-align:center;opacity:0;transform:translateY(24px);transition:opacity .25s,transform .3s cubic-bezier(.2,.8,.2,1);pointer-events:auto;outline:none;}
.cpop-wrap.open .cpop-backdrop{opacity:1;}
.cpop-wrap.open .cpop{opacity:1;transform:none;}
.cpop-x{position:absolute;top:10px;inset-inline-end:10px;width:36px;height:36px;display:grid;place-items:center;border:0;background:var(--gray-50);color:var(--ink);border-radius:50%;cursor:pointer;}
.cpop-x svg{width:18px;height:18px;}
.cpop-x:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.cpop-ico{width:52px;height:52px;margin:0 auto 12px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--gold) 45%,transparent);background:color-mix(in srgb,var(--gold) 9%,var(--white));color:var(--gold-dark);}
.cpop-ico .site-ico{width:26px;height:26px;}
.cpop h3{font-size:19px;font-weight:900;color:var(--ink);line-height:1.45;margin-bottom:6px;padding-inline:26px;text-wrap:balance;}
.cpop p{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:18px;}
.cpop-actions{display:flex;flex-direction:column;gap:10px;}
.cpop-actions .btn{justify-content:center;width:100%;padding:14px 18px;}
html.ds-radius-soft .cpop,html.ds-radius-round .cpop{border-radius:16px;}
html.ds-no-mbar .cpop{bottom:calc(16px + env(safe-area-inset-bottom));}
@media(min-width:769px){ .cpop{bottom:auto;top:50%;transform:translateY(-40%);} .cpop-wrap.open .cpop{transform:translateY(-50%);} }
@media(prefers-reduced-motion:reduce){.cpop,.cpop-backdrop{transition:none;}}

/* a sold / rented listing stays on the site, clearly marked */
.badge-sold{background:#8a3325;color:#fff;}
.property-card.is-sold .property-media img{filter:grayscale(.55);opacity:.85;}
.property-card.is-sold .property-price{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px;}
.pd-sold-note{display:flex;align-items:center;gap:10px;background:#f7e2dd;color:#8a3325;border-inline-start:3px solid #8a3325;padding:12px 16px;font-size:14px;font-weight:800;margin-bottom:18px;}

/* ===== new listing / price drop badges ===== */
.badge-new{background:#1d6f4a;color:#fff;}
.badge-drop{background:#b3392b;color:#fff;}
.pd-price-old{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px;font-size:.62em;font-weight:700;margin-inline-end:8px;}

/* ===== blog cards on the homepage (same card as blog.html) ===== */
#home-blog .blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:50px;}
#home-blog .blog-card{display:block;border:1px solid var(--line);overflow:hidden;transition:var(--transition);background:var(--white);}
#home-blog .blog-card:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(19,45,71,.14);}
#home-blog .blog-card img{width:100%;height:210px;object-fit:cover;}
#home-blog .blog-body{padding:22px 24px 26px;}
#home-blog .blog-tag{color:var(--gold-dark);font-size:11.5px;font-weight:800;letter-spacing:1px;margin-bottom:10px;display:block;}
#home-blog .blog-body h3{font-size:17px;font-weight:800;margin-bottom:10px;line-height:1.5;}
#home-blog .blog-body p{color:var(--muted);font-size:13.5px;margin-bottom:16px;}
#home-blog .blog-meta{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;}
@media(max-width:1024px){#home-blog .blog-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:768px){#home-blog .blog-grid{grid-template-columns:1fr;gap:18px;}#home-blog .blog-card img{height:180px;}}

/* ===== property tour video ===== */
.pd-video-wrap{margin-top:26px;}
.pd-video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#0e1b2c;overflow:hidden;}
.pd-video-frame iframe,.pd-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover;}

/* ===== printable property card ===== */
#pd-print-root{display:none;}
@media print{
  body.printing-card>*:not(#pd-print-root){display:none !important;}
  body.printing-card #pd-print-root{display:block;}
  .pc-sheet{font-family:Cairo,Arial,sans-serif;color:#14202e;padding:0 6mm;}
  .pc-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid #af955a;padding-bottom:8px;}
  .pc-brand{font-size:26px;font-weight:900;color:#132d47;line-height:1;}
  .pc-brand span{display:block;font-size:9px;font-weight:700;letter-spacing:2px;color:#af955a;margin-top:4px;}
  .pc-ref{font-size:10px;color:#5a6878;}
  .pc-title{font-size:20px;font-weight:900;margin:14px 0 4px;}
  .pc-sub{font-size:12px;color:#5a6878;margin-bottom:12px;}
  .pc-photos{display:grid;grid-template-columns:2fr 1fr;grid-auto-rows:52mm;gap:3mm;}
  .pc-photos img{width:100%;height:100%;object-fit:cover;}
  .pc-photos img:nth-child(n+2){grid-auto-rows:25mm;height:100%;}
  .pc-price{font-size:22px;font-weight:900;color:#132d47;margin:12px 0;}
  .pc-table{width:100%;border-collapse:collapse;font-size:12px;}
  .pc-table td{border:1px solid #e4ddd0;padding:6px 10px;}
  .pc-table td:nth-child(odd){background:#f8f6f3;font-weight:800;width:18%;}
  .pc-desc{font-size:11.5px;line-height:1.8;margin-top:12px;}
  .pc-foot{margin-top:14px;border-top:1px solid #e4ddd0;padding-top:8px;font-size:11px;font-weight:800;color:#132d47;}
  @page{size:A4;margin:12mm;}
}

/* ===== "list your property" page ===== */
.sell-wrap{display:grid;grid-template-columns:1.6fr 1fr;gap:46px;align-items:start;}
.sell-form-col .cf-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.sell-why{background:var(--gray-50);border-top:3px solid var(--gold);padding:30px 28px;}
.sell-why .sw-item{padding:16px 0;border-bottom:1px solid var(--line);}
.sell-why .sw-item:last-child{border-bottom:0;}
.sell-why h4{font-size:15px;font-weight:900;color:var(--ink);margin-bottom:6px;}
.sell-why p{font-size:13.5px;color:var(--muted);line-height:1.8;}
#sf-success{display:none;}
#sf-success.show{display:block;background:var(--gray-50);border-top:3px solid var(--gold);padding:34px 30px;text-align:center;}
#sf-success h3{font-size:19px;font-weight:900;margin-bottom:8px;}
#sf-success p{color:var(--muted);font-size:14px;}
@media(max-width:900px){.sell-wrap{grid-template-columns:1fr;gap:28px;}.sell-form-col .cf-row{grid-template-columns:1fr;gap:0;}}

/* ===== closed deals page ===== */
.sold-count{font-size:12.5px;font-weight:800;color:var(--gold-dark);letter-spacing:1px;margin-top:22px;}

/* ===== request a viewing ===== */
.pd-viewing-btn{width:100%;justify-content:center;margin-top:10px;}
.vw-slot{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(max-width:600px){.vw-slot{grid-template-columns:1fr;}}
