/* Original: v40.css */
:root{--v40:#0b5f4b;--v40d:#073f34;--v40gold:#d8a84e;--v40ink:#14201d;--v40muted:#71807b;--v40bg:#f6f8f6;--v40line:#e5ebe7}
body{font-family:Tajawal,system-ui,sans-serif!important;background:var(--v40bg)!important;color:var(--v40ink)!important}header{background:rgba(255,255,255,.94)!important;border-color:var(--v40line)!important;box-shadow:0 8px 35px rgba(10,40,30,.06)}header>div{height:78px!important}header nav a{font-weight:700!important}.v40-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#073f34 0%,#0b5f4b 62%,#16765f 100%);min-height:590px;color:#fff}.v40-hero:after{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:22px 22px;mask-image:linear-gradient(to left,#000,transparent 75%)}.v40-hero-grid{position:relative;z-index:2;max-width:1280px;margin:auto;min-height:590px;padding:72px 28px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:70px}.v40-kicker{display:inline-flex;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);padding:9px 15px;border-radius:999px;font-size:13px;font-weight:700}.v40-hero h1{font-size:64px;line-height:1.12;font-weight:900;margin:24px 0 18px;letter-spacing:-1.5px}.v40-hero h1 em{font-style:normal;color:#f0c66d}.v40-hero-copy>p{max-width:610px;color:rgba(255,255,255,.75);font-size:18px;line-height:2}.v40-actions{display:flex;gap:12px;margin-top:28px}.v40-actions a{padding:14px 22px;border-radius:14px;font-weight:800}.v40-primary{background:#fff;color:var(--v40d)}.v40-secondary{border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.07)}.v40-trust{display:flex;gap:20px;margin-top:28px;color:rgba(255,255,255,.72);font-size:13px;font-weight:700}.v40-visual{position:relative;height:440px}.v40-phone-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-2deg);width:335px;background:#fff;color:var(--v40ink);border:7px solid rgba(255,255,255,.18);border-radius:32px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.28)}.v40-phone-top{display:flex;justify-content:space-between;padding:15px 18px;font-size:12px;font-weight:800}.v40-phone-card img{width:100%;height:230px;object-fit:cover}.v40-floating-price{position:absolute;top:215px;right:20px;background:var(--v40);color:#fff;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;box-shadow:0 8px 20px rgba(0,0,0,.2)}.v40-phone-info{display:flex;flex-direction:column;gap:5px;padding:20px}.v40-phone-info b{font-size:15px}.v40-phone-info small{color:var(--v40muted)}.v40-mini{position:absolute;background:#fff;color:var(--v40ink);padding:13px 15px;border-radius:16px;box-shadow:0 18px 40px rgba(0,0,0,.2);display:grid;grid-template-columns:28px 1fr;column-gap:8px;font-size:18px}.v40-mini b{font-size:12px}.v40-mini small{grid-column:2;color:var(--v40muted);font-size:10px}.v40-mini-one{right:0;top:65px}.v40-mini-two{left:0;bottom:55px}.v40-orb{position:absolute;border-radius:50%;filter:blur(2px);background:rgba(216,168,78,.16)}.v40-orb-a{width:380px;height:380px;left:-100px;top:-100px}.v40-orb-b{width:280px;height:280px;right:25%;bottom:-170px}.v40-search-wrap{position:relative;z-index:10;max-width:1240px;margin:-48px auto 0;padding:0 22px}.v40-search-card{background:#fff;border:1px solid var(--v40line);border-radius:24px;padding:22px;box-shadow:0 22px 60px rgba(19,48,39,.12)}.v40-search-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.v40-search-head small{display:block;color:var(--v40muted);font-size:11px}.v40-search-head strong{font-size:18px}.v40-purpose{display:flex;background:#f1f5f2;padding:4px;border-radius:12px}.v40-purpose button{padding:8px 14px;border-radius:9px;font-size:12px;font-weight:800;color:var(--v40muted)}.v40-purpose button.is-active{background:var(--v40);color:#fff;box-shadow:0 4px 12px rgba(11,95,75,.2)}.v40-fields{display:grid;grid-template-columns:1.2fr 1.1fr 1fr 1fr .7fr;gap:10px}.v40-fields label{display:flex;flex-direction:column;gap:5px}.v40-fields label>span{font-size:10px;font-weight:800;color:var(--v40muted)}.v40-fields input,.v40-fields select{height:48px;border:1px solid var(--v40line);background:#fafcfb;border-radius:12px;padding:0 12px;font-size:13px;outline:none}.v40-fields button{align-self:end;height:48px;border-radius:12px;background:var(--v40);color:#fff;font-weight:900}.v40-quick{max-width:1240px;margin:28px auto 6px;padding:0 22px;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.v40-quick a{background:#fff;border:1px solid var(--v40line);border-radius:18px;padding:17px;display:grid;grid-template-columns:38px 1fr;align-items:center;column-gap:10px;box-shadow:0 5px 20px rgba(15,50,39,.04)}.v40-quick a:hover{border-color:#a9c8bd;transform:translateY(-3px)}.v40-quick a>span{grid-row:1/3;width:38px;height:38px;border-radius:12px;background:#eaf3ef;color:var(--v40);display:flex;align-items:center;justify-content:center;font-size:19px}.v40-quick b{font-size:13px}.v40-quick small{font-size:10px;color:var(--v40muted)}section#browse-properties{margin-top:20px}section#browse-properties>div:first-child h2{font-size:32px!important}footer{background:#082d26!important}.group.block.overflow-hidden.rounded-2xl.border{border-radius:22px!important;background:#fff!important;border-color:var(--v40line)!important;box-shadow:0 10px 28px rgba(12,50,39,.06)!important}.group.block.overflow-hidden.rounded-2xl.border:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(12,50,39,.11)!important}
@media(max-width:900px){.v40-hero-grid{grid-template-columns:1fr;min-height:auto;padding:55px 22px 100px;text-align:center}.v40-hero h1{font-size:46px}.v40-hero-copy>p{margin:auto}.v40-actions,.v40-trust{justify-content:center}.v40-visual{display:none}.v40-search-head{align-items:flex-start;flex-direction:column}.v40-fields{grid-template-columns:1fr 1fr}.v40-fields button{grid-column:1/-1}.v40-quick{grid-template-columns:repeat(2,1fr)}.v40-quick a:last-child{grid-column:1/-1}.v40-purpose{width:100%;overflow:auto}.v40-purpose button{white-space:nowrap}}
@media(max-width:560px){header>div{height:66px!important}.v40-hero-grid{padding:38px 18px 92px}.v40-kicker{font-size:11px}.v40-hero h1{font-size:38px}.v40-hero-copy>p{font-size:14px;line-height:1.9}.v40-actions{flex-direction:column}.v40-trust{gap:9px;font-size:10px;flex-wrap:wrap}.v40-search-wrap{padding:0 12px;margin-top:-55px}.v40-search-card{padding:15px;border-radius:20px}.v40-fields{grid-template-columns:1fr}.v40-fields button{grid-column:auto}.v40-quick{padding:0 12px;gap:8px}.v40-quick a{padding:12px}.v40-purpose button{padding:7px 10px}.v40-search-head strong{font-size:16px}}
/* V40.1 — واجهة رئيسية مبسطة وسهلة */
.v40-simple-home{max-width:1240px;margin:0 auto;padding:30px 22px 8px}.v40-simple-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v40-simple-actions>a{min-height:104px;border-radius:22px;padding:20px 24px;display:flex;align-items:center;gap:15px;box-shadow:0 10px 30px rgba(12,50,39,.08);transition:.2s ease}.v40-simple-actions>a:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(12,50,39,.13)}.v40-start{background:linear-gradient(135deg,#0b5f4b,#14775e);color:#fff}.v40-map{background:#fff;color:var(--v40ink);border:1px solid var(--v40line)}.v40-action-icon{width:54px;height:54px;flex:0 0 54px;border-radius:17px;display:grid;place-items:center;font-size:27px;background:rgba(255,255,255,.14)}.v40-map .v40-action-icon{background:#eaf3ef;color:var(--v40)}.v40-simple-actions b{display:block;font-size:19px;font-weight:900}.v40-simple-actions small{display:block;margin-top:4px;font-size:12px;opacity:.75}.v40-simple-cats{display:flex;gap:8px;overflow-x:auto;padding:15px 2px 4px;scrollbar-width:none}.v40-simple-cats::-webkit-scrollbar{display:none}.v40-simple-cats a{white-space:nowrap;border:1px solid var(--v40line);background:#fff;border-radius:999px;padding:9px 17px;font-size:12px;font-weight:800;color:#45534e}.v40-simple-cats a:hover{border-color:#a9c8bd;color:var(--v40);background:#f4faf7}.v40-listing-image{display:flex;align-items:center;justify-content:center}.v40-card-img{object-fit:contain!important;background:#fff!important;padding:0!important;transform:none!important}.group.block.overflow-hidden.rounded-2xl.border{border-radius:18px!important}.group.block.overflow-hidden.rounded-2xl.border:hover .v40-card-img{transform:none!important}section#browse-properties{margin-top:6px!important;padding-top:24px!important}section#browse-properties>div:first-child p{display:none}section#browse-properties>div:first-child h2{font-size:27px!important}
@media(max-width:650px){.v40-simple-home{padding:16px 12px 2px}.v40-simple-actions{grid-template-columns:1fr;gap:9px}.v40-simple-actions>a{min-height:82px;padding:14px 16px;border-radius:18px}.v40-action-icon{width:46px;height:46px;flex-basis:46px;border-radius:14px;font-size:23px}.v40-simple-actions b{font-size:16px}.v40-simple-actions small{font-size:11px}.v40-simple-cats{padding-top:11px}.v40-simple-cats a{padding:8px 14px}.v40-listing-image{height:230px!important}}
\n/* V40.2 — واجهة أكثر نظافة وصور كاملة بلا مساحات فارغة */\n.v40-simple-home{padding-top:18px!important;padding-bottom:0!important}\n.v40-simple-actions>a{min-height:82px!important}\n.v40-simple-actions small,.v40-simple-cats{display:none!important}\n#browse-properties{padding-top:18px!important}\n#browse-properties>div:first-child{justify-content:flex-end!important;margin-bottom:16px!important}\n.v40-listing-image{position:relative!important;background:#18201d!important;isolation:isolate}\n.v40-card-backdrop{position:absolute;inset:-18px;width:calc(100% + 36px);height:calc(100% + 36px);object-fit:cover;filter:blur(18px);transform:scale(1.08);opacity:.58;z-index:0}\n.v40-card-img{position:relative!important;z-index:1;width:100%!important;height:100%!important;object-fit:contain!important;background:transparent!important;transform:none!important}\n.v40-card-shade{position:absolute;z-index:2;inset:0;pointer-events:none;box-shadow:inset 0 0 45px rgba(0,0,0,.12)}\n.v40-listing-image>.absolute{z-index:3}\n@media(max-width:640px){.v40-simple-actions{gap:9px}.v40-simple-actions>a{min-height:72px!important;padding:14px!important;border-radius:16px!important}.v40-action-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px;font-size:21px}.v40-simple-actions b{font-size:14px}.v40-simple-home{padding-inline:12px!important}}\n
/* V40.3 — أيقونات رئيسية احترافية */
.v40-simple-actions{gap:14px!important}
.v40-simple-actions>a{min-height:112px!important;justify-content:center!important;flex-direction:column!important;gap:9px!important;text-align:center!important;padding:18px 14px!important;border-radius:24px!important}
.v40-action-icon{width:62px!important;height:62px!important;flex:0 0 62px!important;border-radius:20px!important;display:grid!important;place-items:center!important}
.v40-action-icon svg{width:31px;height:31px;display:block;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.v40-start .v40-action-icon{background:rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.v40-map .v40-action-icon{background:linear-gradient(145deg,#eef7f3,#dfeee8)!important;color:#0b6b53!important}
.v40-simple-actions b{font-size:15px!important;line-height:1.2}
@media(max-width:650px){.v40-simple-actions{grid-template-columns:1fr 1fr!important;gap:9px!important}.v40-simple-actions>a{min-height:106px!important;padding:13px 8px!important;border-radius:19px!important}.v40-action-icon{width:55px!important;height:55px!important;flex-basis:55px!important;border-radius:17px!important}.v40-action-icon svg{width:28px;height:28px}.v40-simple-actions b{font-size:13px!important}}


/* Original: v41-1.css */

/* Aqar Yemen V41.1 */
:root{--aqar-green:#176b52;--aqar-white:#fff;--aqar-line:#e7e7e7}
.v41-top-first-row,.v41-hero-first-row,.v41-header-actions{display:none!important}
.v41-map-shell{height:calc(100dvh - 58px)!important;min-height:520px;position:relative}
.v411-map-tools{position:absolute;z-index:700;top:10px;right:10px;left:10px;display:flex;gap:7px;align-items:center;direction:rtl;pointer-events:none}
.v411-map-tools>*{pointer-events:auto}
.v411-icon-btn{width:42px;height:42px;border:1px solid var(--aqar-line);border-radius:13px;background:#fff;display:grid;place-items:center;box-shadow:0 5px 18px #00000016;color:#202520}
.v411-icon-btn svg{width:20px;height:20px}
.v411-switch{display:flex;background:#fff;border:1px solid var(--aqar-line);border-radius:13px;padding:3px;box-shadow:0 5px 18px #00000012}
.v411-switch a{padding:8px 12px;border-radius:10px;font-size:13px;font-weight:800;white-space:nowrap}
.v411-switch a.active{background:var(--aqar-green);color:#fff}
.v411-bottom-nav{display:none}
@media(max-width:768px){
 body{padding-bottom:66px!important}
 .v41-map-shell{height:calc(100dvh - 66px)!important}
 .v411-bottom-nav{display:flex;position:fixed;z-index:1200;bottom:0;right:0;left:0;height:64px;background:#fff;border-top:1px solid var(--aqar-line);align-items:center;justify-content:space-around;padding:4px 2px;box-shadow:0 -5px 20px #00000010;direction:rtl}
 .v411-bottom-nav a{color:#4c514e;font-size:10px;font-weight:800;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:55px}
 .v411-bottom-nav svg{width:21px;height:21px}
 .v411-bottom-nav .add{background:var(--aqar-green);color:#fff;width:52px;height:52px;min-width:52px;border-radius:50%;margin-top:-22px;box-shadow:0 6px 18px #176b5255}
 .v411-bottom-nav .add svg{width:25px;height:25px}
}


/* Original: v41-3.css */

/* V41.3: compact map header */
.v411-map-tools{display:none!important}
/* First row of the three map filter rows */
.v41-filter-panel > :first-child,
.v41-filter-rows > :first-child,
.v41-map-filters > :first-child{display:none!important}


/* Original: v41-5.css */

/* V41.5: hide ONLY the top search/filter row; keep the two rows below it */
.v415-hide-top-search{display:none!important}


/* Original: v41-6-desktop.css */
@media (min-width:769px){
.v41-map-filters,.v41-filter-panel,.v41-filter-rows{max-width:1180px!important;margin-inline:auto!important;gap:8px!important}
.v41-map-filters button,.v41-map-filters a,.v41-map-filters select,.v41-filter-panel button,.v41-filter-panel a,.v41-filter-panel select,.v41-filter-rows button,.v41-filter-rows a,.v41-filter-rows select{min-height:38px!important;height:38px!important;padding:5px 12px!important;font-size:14px!important;border-radius:10px!important;line-height:1.2!important}
.v41-map-filters svg,.v41-filter-panel svg,.v41-filter-rows svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important}
.v41-map-filters img,.v41-filter-panel img,.v41-filter-rows img{width:18px!important;height:18px!important;object-fit:contain!important}
.leaflet-control button svg,.leaflet-control a svg{width:18px!important;height:18px!important}
header svg,nav:not(.leaflet-control) svg{max-width:22px!important;max-height:22px!important}
.v41-map-shell{min-height:calc(100vh - 105px)!important}
}

/* Original: v41-9-apps.css */

.v419-apps-modal{display:none;position:fixed;inset:0;z-index:100000}
.v419-apps-modal.is-open{display:block}
.v419-apps-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.42)}
.v419-apps-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 28px));background:#fff;border-radius:20px;padding:22px;box-shadow:0 18px 60px rgba(0,0,0,.2);direction:rtl}
.v419-apps-sheet h3{margin:0 0 4px;font-size:20px}.v419-apps-sheet>p{margin:0 0 16px;color:#687078;font-size:14px}
.v419-apps-close{position:absolute;left:14px;top:12px;border:0;background:#f2f4f3;width:34px;height:34px;border-radius:50%;font-size:24px;cursor:pointer}
.v419-store-links{display:grid;gap:10px}.v419-store-links a,.v419-store-disabled{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e6e9e7;border-radius:14px;text-decoration:none;color:#151a17;background:#fff}
.v419-store-links a:hover{border-color:#159447;background:#f7fcf9}.v419-store-icon{width:38px;height:38px;border-radius:11px;background:#159447;color:#fff;display:grid;place-items:center;font-weight:700}
.v419-store-links span:last-child{display:grid}.v419-store-links small{color:#737b76;margin-top:2px}.v419-store-disabled{opacity:.55}
.v419-nav-icon{font-size:21px;line-height:1}
.v419-desktop-apps{display:none}
@media(min-width:769px){
 .v419-desktop-apps{display:flex;position:fixed;z-index:9999;top:12px;left:18px;align-items:center;gap:7px;height:38px;padding:0 12px;background:#fff;border:1px solid #e1e6e3;border-radius:10px;color:#176b3a;text-decoration:none;font-size:14px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.06)}
 .v419-desktop-apps svg{width:17px!important;height:17px!important;fill:none;stroke:currentColor;stroke-width:1.8}
}
@media(max-width:768px){.v419-apps-sheet{top:auto;bottom:12px;transform:translateX(-50%);border-radius:20px}}

.v419-account-notifications{display:inline-flex;margin:10px 14px;padding:8px 12px;border-radius:10px;background:#fff;border:1px solid #e4e8e5;text-decoration:none;color:#176b3a;font-weight:700}


/* Original: v41-10-governorates.css */

/* V41.10 — compact governorate labels; keep text size unchanged */
.gov-map-icon{
  min-width:0!important;
  width:auto!important;
  height:32px!important;
  overflow:visible!important;
}
.gov-map-name{
  min-width:0!important;
  width:max-content!important;
  height:30px!important;
  padding:0 8px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:30px!important;
  white-space:nowrap!important;
}


/* Original: v41-11-mapfix.css */

#v41-map,.v41-map{display:block!important;visibility:visible!important;min-height:100vh!important}
.leaflet-container{z-index:1}


/* Original: v41-12-appsfix.css */

#v419AppsModal{display:none;position:fixed!important;inset:0!important;z-index:2147483000!important}
#v419AppsModal.is-open{display:block!important}
#v419AppsModal .v419-apps-backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.48)!important}
#v419AppsModal .v419-apps-sheet{z-index:2!important}


/* Original: v41-13-desktop-restore.css */

/* V41.13 — restore compact desktop UI; mobile unchanged */
@media (min-width:769px){
  .v41-map-filters,.v41-filter-panel,.v41-filter-rows{
    max-width:1180px!important;
    margin-inline:auto!important;
    gap:8px!important;
  }
  .v41-map-filters button,.v41-map-filters a,.v41-map-filters select,
  .v41-filter-panel button,.v41-filter-panel a,.v41-filter-panel select,
  .v41-filter-rows button,.v41-filter-rows a,.v41-filter-rows select{
    min-height:38px!important;height:38px!important;
    padding:5px 12px!important;font-size:14px!important;
    border-radius:10px!important;line-height:1.2!important;
  }
  .v41-map-filters svg,.v41-filter-panel svg,.v41-filter-rows svg{
    width:17px!important;height:17px!important;
    min-width:17px!important;max-width:17px!important;
  }
  .v41-map-filters img,.v41-filter-panel img,.v41-filter-rows img{
    width:18px!important;height:18px!important;object-fit:contain!important;
  }
  .leaflet-control button svg,.leaflet-control a svg{
    width:18px!important;height:18px!important;
  }
  header svg,nav:not(.leaflet-control) svg{
    max-width:22px!important;max-height:22px!important;
  }
  .v419-desktop-apps{
    height:38px!important;padding:0 12px!important;
    font-size:14px!important;border-radius:10px!important;
  }
  .v419-desktop-apps svg{width:17px!important;height:17px!important}
  .v41-map-shell{min-height:calc(100vh - 105px)!important}

  /* Governorate labels remain compact, but text size stays readable */
  .gov-map-icon{min-width:0!important;width:auto!important;height:32px!important}
  .gov-map-name{
    min-width:0!important;width:max-content!important;height:30px!important;
    padding:0 8px!important;border-radius:10px!important;
    font-size:13px!important;line-height:30px!important;white-space:nowrap!important;
  }
}


/* Original: v41-14-desktop-exact.css */

/* V41.14 - force compact desktop layout on the actual current controls */
@media screen and (min-width:769px){
  /* Three filter rows and their wrappers */
  .v41-filter-wrap,.v41-filters,.v41-filter-bar,.v41-filter-row,
  .v41-purpose-row,.v41-type-row,.v41-gov-row,
  .v41-map-filters,.v41-filter-panel,.v41-filter-rows{
    max-width:1020px!important;
    margin-left:auto!important;margin-right:auto!important;
  }

  /* Current row containers */
  .v41-filter-row,.v41-purpose-row,.v41-type-row,.v41-gov-row,
  .v41-map-filters>div,.v41-filter-panel>div,.v41-filter-rows>div{
    min-height:44px!important;
    padding:5px 8px!important;
    gap:7px!important;
    border-radius:14px!important;
  }

  /* All clickable filter chips, including generic buttons/links */
  .v41-filter-wrap button,.v41-filter-wrap a,
  .v41-filters button,.v41-filters a,
  .v41-filter-bar button,.v41-filter-bar a,
  .v41-filter-row button,.v41-filter-row a,
  .v41-purpose-row button,.v41-purpose-row a,
  .v41-type-row button,.v41-type-row a,
  .v41-gov-row button,.v41-gov-row a,
  .v41-map-filters button,.v41-map-filters a,
  .v41-filter-panel button,.v41-filter-panel a,
  .v41-filter-rows button,.v41-filter-rows a{
    width:auto!important;min-width:0!important;
    height:34px!important;min-height:34px!important;
    padding:0 13px!important;
    font-size:14px!important;line-height:32px!important;
    border-radius:10px!important;
    flex:0 0 auto!important;
  }

  /* Any SVG/image icon inside current desktop controls */
  .v41-filter-wrap svg,.v41-filters svg,.v41-filter-bar svg,.v41-filter-row svg,
  .v41-purpose-row svg,.v41-type-row svg,.v41-gov-row svg,
  .v41-filter-wrap img,.v41-filters img,.v41-filter-bar img,.v41-filter-row img{
    width:16px!important;height:16px!important;
    min-width:16px!important;max-width:16px!important;
  }

  /* Governorate markers stay compact independently */
  .gov-map-icon{width:auto!important;min-width:0!important;height:32px!important}
  .gov-map-name{
    width:max-content!important;min-width:0!important;height:30px!important;
    padding:0 8px!important;font-size:13px!important;line-height:30px!important;
    border-radius:10px!important;
  }

  /* Compact desktop Apps button */
  .v419-desktop-apps{
    height:36px!important;min-height:36px!important;
    padding:0 11px!important;font-size:14px!important;
  }
  .v419-desktop-apps svg{width:16px!important;height:16px!important}

  /* Map occupies the rest of the desktop viewport */
  #v41-map,.v41-map,.v41-map-shell{min-height:calc(100vh - 155px)!important}
}


/* Original: v41-15-apps-reliable.css */

.v415-apps-modal{display:none;position:fixed;inset:0;z-index:2147483640}
.v415-apps-modal:target{display:block!important}
.v415-apps-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.48)}
.v415-apps-sheet{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 28px));background:#fff;border-radius:20px;padding:22px;box-shadow:0 18px 60px rgba(0,0,0,.25);direction:rtl}
.v415-apps-sheet h3{margin:0 0 5px;font-size:20px}.v415-apps-sheet>p{margin:0 0 16px;color:#6d756f;font-size:14px}
.v415-apps-close{position:absolute;left:14px;top:12px;width:34px;height:34px;border-radius:50%;background:#f1f4f2;color:#333;text-decoration:none;display:grid;place-items:center;font-size:24px}
.v415-store-links{display:grid;gap:10px}.v415-store-links>a,.v415-store-disabled{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e4e8e5;border-radius:14px;text-decoration:none;color:#161b18;background:#fff}
.v415-store-links>a:hover{border-color:#159447;background:#f7fcf9}.v415-store-badge{width:38px;height:38px;border-radius:11px;background:#159447;color:#fff;display:grid;place-items:center;font-weight:700;flex:0 0 38px}
.v415-store-links>a>span:last-child,.v415-store-disabled>span:last-child{display:grid}.v415-store-links small{color:#737b76;margin-top:2px}.v415-store-disabled{opacity:.55}
@media(max-width:768px){.v415-apps-sheet{top:auto;bottom:12px;transform:translateX(-50%)}}


/* Original: v41-16-final.css */
@media screen and (min-width:769px){
.v41-top{width:min(760px,calc(100% - 22px))!important;gap:7px!important}
.v41-tabs,.v41-chips{width:100%!important;padding:6px!important;gap:6px!important;border-radius:14px!important}
.v41-chip{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;padding:8px 13px!important;font-size:12px!important;line-height:1!important;border-radius:10px!important}
.v41-tabs .v41-chip{flex:1 1 0!important;min-width:82px!important;padding:8px 10px!important;text-align:center!important}
.v41-chips .v41-chip{flex:0 0 auto!important}
.v419-desktop-apps{height:36px!important;padding:0 11px!important;font-size:13px!important}
.v419-desktop-apps svg{width:16px!important;height:16px!important}
.gov-map-icon{width:auto!important;min-width:0!important;height:32px!important}
.gov-map-name{width:max-content!important;min-width:0!important;height:30px!important;padding:0 8px!important;font-size:13px!important;line-height:30px!important;border-radius:10px!important}
}

/* Original: v41-17-desktop-slim.css */

/* Desktop: keep controls slim so they do not cover the map */
@media screen and (min-width:769px){
  .v41-top{
    width:min(900px,calc(100vw - 180px))!important;
    top:8px!important;
    gap:4px!important;
  }
  .v41-tabs,.v41-chips{
    min-height:0!important;
    padding:3px 4px!important;
    gap:4px!important;
    border-radius:10px!important;
    box-shadow:0 2px 8px rgba(0,0,0,.08)!important;
  }
  .v41-chip,.v41-tabs .v41-chip,.v41-chips .v41-chip{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:28px!important;
    min-height:28px!important;
    padding:0 9px!important;
    font-size:12px!important;
    line-height:26px!important;
    border-radius:8px!important;
  }
  .v41-tabs{justify-content:center!important}
  .v41-tabs .v41-chip{min-width:100px!important;text-align:center!important}
  .v41-chips{justify-content:center!important;overflow-x:auto!important;scrollbar-width:none!important}
  .v41-chips::-webkit-scrollbar{display:none!important}

  /* All UI icons around the map */
  .v41-top svg,.v41-top img,
  .v419-desktop-apps svg,
  header svg,header img{
    width:14px!important;height:14px!important;
    max-width:14px!important;max-height:14px!important;
  }
  .v419-desktop-apps{
    top:8px!important;left:8px!important;
    height:30px!important;min-height:30px!important;
    padding:0 8px!important;font-size:12px!important;
    border-radius:8px!important;
  }

  /* Governorate markers: only text-sized green labels */
  .gov-map-icon{width:auto!important;min-width:0!important;height:26px!important}
  .gov-map-name{
    width:max-content!important;min-width:0!important;
    height:25px!important;padding:0 6px!important;
    font-size:13px!important;line-height:25px!important;
    border-radius:7px!important;
  }

  /* Smaller Leaflet controls on desktop */
  .leaflet-control-zoom a{
    width:28px!important;height:28px!important;
    line-height:28px!important;font-size:18px!important;
  }
  .leaflet-control{font-size:11px!important}

  /* Map itself remains full and visible */
  #v41-map,.v41-map,.v41-map-shell{
    min-height:100vh!important;height:100vh!important;
  }
}


/* Original: v41-19-desktop-refined.css */

/* V41.19 — refined desktop layout; mobile unchanged */
@media screen and (min-width: 769px){

  /* Make the map the dominant element */
  
  .v41-shell{height:100vh!important;min-height:100vh!important}
  .v41-map,#v41-map,.v41-map-shell{
    height:100vh!important;
    min-height:100vh!important;
  }

  /* Top control block: narrower, lighter, less coverage */
  .v41-top{
    width:min(780px,calc(100vw - 220px))!important;
    top:7px!important;
    gap:4px!important;
    padding:0!important;
  }

  .v41-tabs,.v41-chips{
    min-height:0!important;
    padding:3px 4px!important;
    gap:4px!important;
    border-radius:9px!important;
    box-shadow:0 1px 5px rgba(0,0,0,.08)!important;
    backdrop-filter:blur(4px);
  }

  /* Purpose buttons: compact but readable */
  .v41-tabs .v41-chip{
    flex:1 1 0!important;
    min-width:72px!important;
    height:27px!important;
    min-height:27px!important;
    padding:0 8px!important;
    font-size:11.5px!important;
    line-height:25px!important;
    border-radius:7px!important;
  }

  /* Property + governorate chips: content-sized, never huge */
  .v41-chips{
    justify-content:flex-start!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    flex-wrap:nowrap!important;
    scrollbar-width:none!important;
  }
  .v41-chips::-webkit-scrollbar{display:none!important}
  .v41-chips .v41-chip{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:26px!important;
    min-height:26px!important;
    padding:0 8px!important;
    font-size:11px!important;
    line-height:24px!important;
    border-radius:7px!important;
  }

  /* Any icon inside top controls */
  .v41-top svg,.v41-top img{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
    max-width:12px!important;
  }

  /* Desktop apps button: very compact */
  .v419-desktop-apps{
    top:7px!important;
    left:7px!important;
    height:28px!important;
    min-height:28px!important;
    padding:0 7px!important;
    gap:5px!important;
    font-size:11px!important;
    border-radius:7px!important;
    box-shadow:0 1px 5px rgba(0,0,0,.08)!important;
  }
  .v419-desktop-apps svg{
    width:12px!important;
    height:12px!important;
    max-width:12px!important;
    max-height:12px!important;
  }

  /* Governorate labels: smallest box possible, same readable text */
  .gov-map-icon{
    width:auto!important;
    min-width:0!important;
    height:24px!important;
  }
  .gov-map-name{
    width:max-content!important;
    min-width:0!important;
    height:23px!important;
    padding:0 5px!important;
    font-size:12px!important;
    line-height:23px!important;
    border-radius:6px!important;
    white-space:nowrap!important;
  }

  /* Leaflet controls smaller and less intrusive */
  .leaflet-control-zoom a{
    width:25px!important;
    height:25px!important;
    line-height:25px!important;
    font-size:16px!important;
  }
  .leaflet-control-layers-toggle{
    width:28px!important;
    height:28px!important;
    background-size:17px 17px!important;
  }
  .leaflet-control{
    font-size:10px!important;
  }

  /* Filter modal/button if present */
  .v41-filter-btn,.v41-search{
    min-height:28px!important;
    height:28px!important;
    padding:0 8px!important;
    font-size:11px!important;
    border-radius:7px!important;
  }

  /* Slight transparency helps map stay visually dominant */
  .v41-tabs,.v41-chips,.v419-desktop-apps{
    background:rgba(255,255,255,.94)!important;
  }
}


/* Original: v41-20-desktop-half.css */

/* V41.20 — desktop controls about 50% smaller, map more visible */
@media screen and (min-width: 769px){
  
  .v41-shell,.v41-map,#v41-map,.v41-map-shell{height:100vh!important;min-height:100vh!important}

  .v41-top{
    width:min(640px,calc(100vw - 260px))!important;
    top:6px!important;
    gap:3px!important;
    padding:0!important;
  }

  .v41-tabs,.v41-chips{
    min-height:0!important;
    padding:2px 3px!important;
    gap:3px!important;
    border-radius:8px!important;
    box-shadow:0 1px 4px rgba(0,0,0,.07)!important;
    backdrop-filter:blur(3px)!important;
    background:rgba(255,255,255,.92)!important;
  }

  .v41-tabs .v41-chip{
    flex:1 1 0!important;
    min-width:62px!important;
    height:20px!important;
    min-height:20px!important;
    padding:0 6px!important;
    font-size:10.5px!important;
    line-height:18px!important;
    border-radius:6px!important;
  }

  .v41-chips{
    justify-content:flex-start!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    flex-wrap:nowrap!important;
    scrollbar-width:none!important;
  }
  .v41-chips::-webkit-scrollbar{display:none!important}
  .v41-chips .v41-chip{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:19px!important;
    min-height:19px!important;
    padding:0 6px!important;
    font-size:10px!important;
    line-height:17px!important;
    border-radius:6px!important;
  }

  .v41-top svg,.v41-top img{
    width:8px!important;height:8px!important;
    min-width:8px!important;max-width:8px!important;
    min-height:8px!important;max-height:8px!important;
  }

  .v419-desktop-apps{
    top:6px!important;left:6px!important;
    height:21px!important;min-height:21px!important;
    padding:0 6px!important;gap:4px!important;
    font-size:10px!important;border-radius:6px!important;
    box-shadow:0 1px 4px rgba(0,0,0,.07)!important;
    background:rgba(255,255,255,.92)!important;
  }
  .v419-desktop-apps svg{
    width:8px!important;height:8px!important;
    max-width:8px!important;max-height:8px!important;
  }

  .gov-map-icon{width:auto!important;min-width:0!important;height:18px!important}
  .gov-map-name{
    width:max-content!important;min-width:0!important;height:18px!important;
    padding:0 4px!important;font-size:11px!important;line-height:18px!important;
    border-radius:5px!important;white-space:nowrap!important;
  }

  .leaflet-control-zoom a{
    width:22px!important;height:22px!important;line-height:22px!important;font-size:14px!important;
  }
  .leaflet-control-layers-toggle{
    width:24px!important;height:24px!important;background-size:14px 14px!important;
  }
  .leaflet-control{font-size:9px!important}
}


/* Original: v41-21-desktop-bottom-listfix.css */

/* V41.21 — smaller desktop bottom bar + list scrolling fix */
@media screen and (min-width:769px){
  .v41-bottom{
    width:300px!important;
    height:30px!important;
    bottom:6px!important;
    border-radius:9px!important;
    box-shadow:0 2px 8px rgba(0,0,0,.11)!important;
    background:rgba(255,255,255,.93)!important;
  }
  .v41-bottom a,.v41-bottom span{
    font-size:9.5px!important;
    line-height:1!important;
    padding:0 5px!important;
  }

  /* Properties list/grid must remain vertically scrollable on desktop */
  body.aqar-properties-list{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    height:auto!important;
    min-height:100vh!important;
  }
  body.aqar-properties-list main{
    height:auto!important;
    min-height:100vh!important;
    overflow:visible!important;
  }
}


/* Original: v41-22-pages-assistant.css */

/* V41.22 — restore normal desktop scrolling on all ordinary pages */
@media screen and (min-width:769px){
  html{
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body{
    height:auto!important;
    min-height:100vh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body:not(.aqar-home-map) main,
  body:not(.aqar-home-map) .page-content,
  body:not(.aqar-home-map) .site-content{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  /* Search results map is a normal page: allow scrolling above/below the map. */
  body.aqar-properties-map{
    height:auto!important;
    overflow-y:auto!important;
  }
  body.aqar-properties-map #properties-map-shell{
    height:min(68vh,680px)!important;
    min-height:480px!important;
    max-height:680px!important;
  }
  body.aqar-properties-map #map{
    height:100%!important;
    min-height:480px!important;
  }

  /* Keep only the homepage map visually full-screen. */
  body.aqar-home-map{
    height:100vh!important;
    min-height:100vh!important;
    overflow:hidden!important;
  }
}

/* Assistant: show the full answer and allow comfortable scrolling. */
#aqar-assistant-panel{
  width:min(430px,calc(100vw - 24px))!important;
  height:min(680px,82vh)!important;
  max-height:82vh!important;
}
#aqar-assistant-msgs{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
}
.aqar-bot-msg,.aqar-user-msg{
  max-width:96%!important;
  overflow:visible!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.aqar-bot-guide{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  overflow:visible!important;
}
@media(max-width:768px){
  #aqar-assistant-panel{
    height:min(620px,76vh)!important;
    max-height:76vh!important;
  }
  .aqar-bot-msg,.aqar-user-msg{max-width:98%!important}
}


/* Original: v41-23-global-scroll-reset.css */

/* V41.23 — definitive desktop scrolling reset for every non-home page */
@media screen and (min-width:769px){
  html{
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }

  body:not(.aqar-home-map){
    position:static!important;
    height:auto!important;
    min-height:100vh!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
  }

  body:not(.aqar-home-map) main{
    position:relative!important;
    height:auto!important;
    min-height:60vh!important;
    max-height:none!important;
    overflow:visible!important;
  }

  body:not(.aqar-home-map) footer{
    display:block!important;
    position:relative!important;
  }

  /* Account, add listing, notifications, profile, static pages and forms */
  body:not(.aqar-home-map) form,
  body:not(.aqar-home-map) section,
  body:not(.aqar-home-map) article{
    max-height:none;
  }

  /* Search/list results */
  body.aqar-properties-list,
  body.aqar-properties-map{
    height:auto!important;
    min-height:100vh!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
  }
  body.aqar-properties-list main,
  body.aqar-properties-map main{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  /* Map inside properties page must not turn the whole document into a fixed viewport */
  body.aqar-properties-map #properties-map-shell:not(.map-fullscreen-panel){
    position:relative!important;
    height:620px!important;
    min-height:480px!important;
    max-height:68vh!important;
    overflow:visible!important;
  }
  body.aqar-properties-map #properties-map-shell:not(.map-fullscreen-panel) #map{
    height:100%!important;
    min-height:480px!important;
    max-height:none!important;
  }

  /* Fullscreen is the only allowed page-lock state outside homepage */
  body.map-open-fullscreen{
    overflow:hidden!important;
  }
}

/* Homepage remains intentionally map-first/fullscreen */
body.aqar-home-map{
  overflow:hidden!important;
}


/* Original: v41-24-map-wheel-behavior.css */

@media(min-width:769px){
  .aqar-map-wheel-passive{cursor:grab}
  .aqar-map-wheel-active{cursor:crosshair}
  .aqar-map-wheel-passive::after{
    content:"مرّر الصفحة بعجلة الماوس — اضغط على الخريطة لتفعيل التكبير";
    position:absolute;
    z-index:650;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    background:rgba(20,24,21,.76);
    color:#fff;
    font-size:10px;
    line-height:1;
    padding:6px 9px;
    border-radius:8px;
    pointer-events:none;
    white-space:nowrap;
  }
  .aqar-map-wheel-active::after{
    content:"التكبير بالعجلة مفعّل — اضغط خارج الخريطة أو Esc للعودة للتمرير";
    position:absolute;
    z-index:650;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    background:rgba(23,107,82,.88);
    color:#fff;
    font-size:10px;
    line-height:1;
    padding:6px 9px;
    border-radius:8px;
    pointer-events:none;
    white-space:nowrap;
  }
}

