:root{--panel:rgba(255,255,255,.93);--line:rgba(15,23,42,.10);--text:#172033;--muted:#667085;--primary:#00bfae}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:var(--font-main);background:#e9eef3;color:var(--text)}
.app{width:100%;height:100%;position:relative}
.map{position:absolute;inset:0}
#map{width:100%;height:100%;background:#dfe6eb}
.sidebar{position:absolute;z-index:1000;top:16px;right:16px;width:350px;max-height:calc(100vh - 32px);overflow:auto;background:var(--panel);border:1px solid rgba(255,255,255,.75);border-radius:22px;padding:18px;box-shadow:0 18px 55px rgba(15,23,42,.18);backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.brand h1{font-size:20px;margin:0;font-weight:800}.sub{font-size:12px;color:var(--muted);margin-bottom:16px}
.search-box{display:flex;gap:7px}.search-box input{flex:1;min-width:0;border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 12px;font-family:inherit;outline:0}.search-box input:focus{border-color:#00bfae;box-shadow:0 0 0 3px rgba(15,118,110,.10)}.search-box button{width:44px;border:0;border-radius:12px;background:#00bfae;color:#fff;cursor:pointer;font-size:17px}
.search-message{min-height:18px;color:#dc2626;font-size:11px;margin-top:5px}
.card{background:rgba(255,255,255,.76);border:1px solid var(--line);border-radius:16px;padding:13px;margin-top:11px}.card-title{font-size:13px;font-weight:800;margin-bottom:10px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat{border:1px solid var(--line);border-radius:12px;padding:9px;background:#fff}.stat small{display:block;color:var(--muted);font-size:10px}.stat strong{font-size:17px}
.stat.total{grid-column:span 2}.layer-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px dashed rgba(15,23,42,.08);font-size:12px}.layer-row:last-child{border:0}.layer-row label{display:flex;align-items:center;gap:8px;cursor:pointer}.layer-row input{accent-color:#00bfae}
.legend-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.legend-item{display:flex;align-items:center;gap:7px;font-size:11px}.dot{width:11px;height:11px;border-radius:50%;box-shadow:0 0 0 3px rgba(255,255,255,.8)}
.plot-info{position:absolute;z-index:2000;left:var(--popup-left,18px);top:var(--popup-top,18px);width:260px;display:none;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.8);border-radius:18px;padding:15px;box-shadow:0 15px 45px rgba(15,23,42,.20);backdrop-filter:blur(16px)}.plot-info.show{display:block}.plot-info-head{display:flex;align-items:center;justify-content:space-between}.plot-info h2{margin:0;font-size:16px}.close{border:0;background:#f1f5f9;width:30px;height:30px;border-radius:9px;cursor:pointer}.info-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(15,23,42,.07);font-size:12px}.info-row:last-child{border:0}.info-row span{color:var(--muted)}.info-status{font-weight:800;padding:3px 9px;border-radius:20px}
.menu-btn{display:none;position:absolute;z-index:1100;top:16px;right:16px;width:45px;height:45px;border:0;border-radius:13px;background:#fff;box-shadow:0 8px 25px rgba(15,23,42,.16);font-size:20px}
#loading{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;background:#f8fafc;transition:.45s}.loading-box{text-align:center}.loader{width:44px;height:44px;border:4px solid #dbe4ea;border-top-color:#00bfae;border-radius:50%;animation:spin .8s linear infinite;margin:auto auto 12px}.loading-box b{font-size:15px}.loading-box p{font-size:11px;color:#64748b}.loaded{opacity:0;pointer-events:none}
.plot-label{background:transparent!important;border:0!important}.plot-label span{display:flex;align-items:center;justify-content:center;height:28px;width:80px;font-size:11px;font-weight:800;color:#111827;text-shadow:0 1px 0 #fff,1px 0 0 #fff,-1px 0 0 #fff,0 -1px 0 #fff;pointer-events:none}

/* plot-selected intentionally removed: selection uses the parcel glow only. */
.leaflet-control-zoom{border:0!important;box-shadow:0 7px 20px rgba(15,23,42,.18)!important}.leaflet-control-zoom a{border:0!important;color:#172033!important;font-weight:700}
@media(max-width:800px){.sidebar{right:10px;top:10px;width:calc(100% - 20px);max-height:calc(100vh - 20px);transform:translateY(-120%);transition:.3s}.sidebar.open{transform:translateY(0)}.menu-btn{display:block}.plot-info{left:var(--popup-left,10px);top:var(--popup-top,10px);bottom:auto;width:calc(100% - 20px)}}

/* ==========================================================
   Brand / Logo
   ========================================================== */
.site-logo{
  position:fixed;
  z-index:1200;
  top:18px;
  left:18px;
  width:66px;
  height:66px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px;
  border-radius:19px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 12px 32px rgba(15,23,42,.22);
  backdrop-filter:blur(14px);
  transition:transform .2s ease,box-shadow .2s ease;
}
.site-logo:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(15,23,42,.26)}
.site-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:14px}

/* ==========================================================
   Quick actions — Comparison / Video
   ========================================================== */
.quick-actions-card{padding-bottom:12px}
.quick-action-btn{
  width:100%;
  min-height:47px;
  border:1px solid rgba(15,118,110,.12);
  border-radius:13px;
  margin-top:8px;
  padding:10px 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:linear-gradient(135deg,#0f8f86,#00bfae);
  color:#fff;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 9px 22px rgba(15,118,110,.20);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.quick-action-btn:first-of-type{margin-top:0}
.quick-action-btn:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 13px 28px rgba(15,118,110,.27)}
.quick-action-btn:active{transform:translateY(0) scale(.99)}
.quick-action-btn.active{box-shadow:0 0 0 3px rgba(15,118,110,.15),0 13px 28px rgba(15,118,110,.28)}
.quick-action-icon{
  width:27px;height:27px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:9px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:15px;
  font-weight:900;
}

  text-align:center;
  backdrop-filter:blur(8px);
}

/* ==========================================================
   Comparison modal
   ========================================================== */
.compare-modal,.video-modal{
  position:fixed;inset:0;z-index:5100;
  display:none;align-items:center;justify-content:center;
  padding:18px;background:rgba(15,23,42,.42);
  backdrop-filter:blur(8px);
}
.compare-modal.show,.video-modal.show{display:flex}
.compare-dialog,.video-dialog{
  width:min(520px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,255,255,.9);
  border-radius:21px;
  padding:18px;
  box-shadow:0 28px 90px rgba(15,23,42,.30);
}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.modal-head h3{margin:0;font-size:16px}
.modal-x{
  width:34px;height:34px;border:0;border-radius:10px;
  background:#f1f5f9;color:#172033;font-size:19px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  line-height:1;padding:0;text-align:center;
}
#compareHint{margin:0 0 12px;color:#667085;font-size:10px;line-height:1.7}
.compare-slots{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.compare-slot{
  min-height:86px;
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;text-align:center;
  border:1px dashed rgba(15,118,110,.25);
  border-radius:13px;background:rgba(15,118,110,.035);
  color:#667085;font-size:10px;line-height:1.6;
}
.compare-slot.selected{border-style:solid;border-color:rgba(15,118,110,.30);background:rgba(15,118,110,.07);color:#172033}
.compare-slot strong{font-size:19px;color:#00bfae}
.compare-result{margin-top:11px;border:1px solid rgba(15,23,42,.08);border-radius:13px;overflow:hidden}
.compare-row{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:6px;padding:9px 10px;border-bottom:1px solid rgba(15,23,42,.06);font-size:10px;text-align:center}
.compare-row:last-child{border-bottom:0}
.compare-row span{color:#667085;text-align:right}
.compare-clear{
  width:100%;margin-top:10px;padding:10px;border:0;border-radius:11px;
  background:#f1f5f9;color:#344054;font-family:inherit;font-weight:800;cursor:pointer;
}
.video-dialog{width:min(760px,100%)}
.youtube-dialog{padding:0;overflow:hidden}
.youtube-head{padding:20px 22px 10px;border-bottom:1px solid rgba(15,23,42,.08);align-items:flex-start}
.youtube-head h3{margin:0;font-size:19px;color:#172033}
.youtube-head p{margin:5px 0 0;color:#667085;font-size:12px;line-height:1.7}
.youtube-grid{display:grid;gap:16px;padding:22px}
.youtube-card{
  display:flex;flex-direction:column;gap:14px;
  text-decoration:none;color:inherit;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;padding:16px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 16px 40px rgba(15,23,42,.10);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.youtube-card:hover{
  transform:translateY(-3px);
  border-color:rgba(0,191,174,.28);
  box-shadow:0 22px 50px rgba(0,191,174,.16);
}
.youtube-thumb{
  position:relative;border-radius:18px;overflow:hidden;
  aspect-ratio:9/16;background:#0f172a;
}
.youtube-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.youtube-play{
  position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);
  width:68px;height:68px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,0,51,.92);color:#fff;font-size:28px;
  box-shadow:0 14px 34px rgba(255,0,51,.32);
}
.youtube-card-body{display:flex;flex-direction:column;gap:6px}
.youtube-card-body strong{font-size:16px;color:#172033}
.youtube-card-body span{font-size:12px;line-height:1.8;color:#667085}
@media(max-width:640px){
  .youtube-head{padding:18px 18px 10px}
  .youtube-grid{padding:18px}
  .youtube-card{padding:14px;border-radius:18px}
  .youtube-play{width:60px;height:60px;font-size:24px}
}

@media(max-width:800px){
  .site-logo{top:12px;left:12px;width:52px;height:52px;border-radius:15px}
  .site-logo img{border-radius:11px}
  .sidebar{padding-top:18px}
  .compare-slots{gap:7px}
}


/* ==========================================================
   Services — WhatsApp / Temporary Reservation
   ========================================================== */
.quick-actions-card{
  overflow:hidden;
}

.quick-actions-card .quick-action-btn{
  text-decoration:none;
  position:relative;
  isolation:isolate;
}

.service-whatsapp-action{
  background:linear-gradient(135deg,#25D366 0%,#128C7E 100%);
  border-color:rgba(18,140,126,.22);
  box-shadow:0 9px 22px rgba(18,140,126,.20);
}

.service-whatsapp-action:hover{
  background:linear-gradient(135deg,#2fe070 0%,#128C7E 100%);
  box-shadow:0 13px 30px rgba(18,140,126,.30);
}

.service-reserve-action{
  background:linear-gradient(135deg,#fb923c 0%,#f97316 100%);
  border-color:rgba(249,115,22,.24);
  box-shadow:0 9px 22px rgba(249,115,22,.20);
}

.service-reserve-action:hover{
  background:linear-gradient(135deg,#fb9b4f 0%,#ea580c 100%);
  box-shadow:0 13px 30px rgba(249,115,22,.30);
}

.service-icon{
  background:rgba(255,255,255,.17);
  color:#fff;
  flex:0 0 29px;
  width:29px;
  height:29px;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}

.service-whatsapp-action svg,
.service-reserve-action svg{
  color:#fff;
  stroke:currentColor;
}

.service-whatsapp-action:focus-visible,
.service-reserve-action:focus-visible{
  outline:3px solid rgba(15,118,110,.22);
  outline-offset:2px;
}

.service-reserve-action:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
  filter:none;
}

.service-whatsapp-action span:last-child,
.service-reserve-action span:last-child{
  letter-spacing:.05px;
}

@media(max-width:800px){
  .quick-actions-card .quick-action-btn{
    min-height:48px;
  }
}

/* ==========================================================
   Contact / Services separation + refined photo/logo
   ========================================================== */
.contact-card,
.quick-actions-card{padding-bottom:13px}
.contact-card .card-title,
.quick-actions-card .card-title{margin-bottom:11px}
.contact-card .quick-action-btn,
.quick-actions-card .quick-action-btn{margin-top:9px}
.contact-card .quick-action-btn:first-of-type,
.quick-actions-card .quick-action-btn:first-of-type{margin-top:0}

.site-logo{
  width:78px;
  height:78px;
  padding:4px;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 38px rgba(15,23,42,.25),0 0 0 1px rgba(255,255,255,.72);
}
.site-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}


.service-whatsapp-action{background:linear-gradient(135deg,#25d366,#128c7e)}
.service-reserve-action{background:linear-gradient(135deg,#fb923c,#f97316)}
.compare-action,.video-action{background:linear-gradient(135deg,#159d94,#00bfae)}
.compare-action:hover,.video-action:hover{background:linear-gradient(135deg,#1aaea4,#0d6b64)}

@media(max-width:800px){
  .site-logo{top:12px;left:12px;width:64px;height:64px;border-radius:50%;padding:3px}
  .site-logo img{border-radius:50%}
}


/* ==========================================================
   Final sidebar arrangement — logos / statistics / services / filters
   ========================================================== */
.logo-pair-card{padding:10px 12px;margin-bottom:10px}
.logo-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;min-height:76px}
.logo-pair-item{height:68px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:14px;background:rgba(255,255,255,.58);border:1px solid rgba(15,23,42,.07)}
.logo-pair-item img{display:block;width:100%;height:100%;object-fit:contain;padding:7px}
.logo-pair-divider{width:1px;height:44px;background:rgba(15,23,42,.10)}
.services-panel{padding-bottom:12px}
.services-panel>.card-title{margin-bottom:10px}
.filter-card{border:1px solid rgba(15,23,42,.075);border-radius:14px;background:rgba(255,255,255,.72);overflow:hidden;margin-top:8px}
.filter-card-head{min-height:44px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800;color:#172033}
.filter-toggle{width:30px;height:30px;border:0;border-radius:9px;background:rgba(0,191,174,.10);color:#00a996;cursor:pointer;font:inherit;font-weight:900;transition:.2s}
.filter-card.open .filter-toggle{transform:rotate(180deg);background:#00bfae;color:#fff}
.filter-body{display:none;padding:0 10px 10px;border-top:1px dashed rgba(15,23,42,.08)}
.filter-card.open .filter-body{display:block}
.filter-values{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:9px}
.filter-values label{font-size:9px;color:#667085;display:flex;align-items:center;gap:5px}
.filter-values input{width:100%;min-width:0;height:34px;border:1px solid rgba(15,23,42,.10);border-radius:9px;background:#fff;padding:0 7px;color:#172033;font:inherit;outline:none}
.filter-values input:focus{border-color:#00bfae;box-shadow:0 0 0 3px rgba(0,191,174,.10)}
.filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.filter-actions button{height:34px;border:0;border-radius:9px;cursor:pointer;font-family:inherit;font-size:10px;font-weight:800}
.filter-actions button:first-child{background:#00bfae;color:#fff;box-shadow:0 7px 16px rgba(0,191,174,.20)}
.filter-actions button:last-child{background:#f1f5f9;color:#475569}
.services-panel .quick-action-btn{margin-top:9px}
.compare-action,.video-action{background:linear-gradient(135deg,#00bfae,#0f9f92)!important;color:#fff!important;box-shadow:0 9px 22px rgba(0,191,174,.20)!important}
.compare-action:hover,.video-action:hover{background:linear-gradient(135deg,#12e2ca,#0b8f84)!important;box-shadow:0 13px 30px rgba(0,191,174,.30)!important}
.compare-action .quick-action-icon,.video-action .quick-action-icon{color:#fff;background:rgba(255,255,255,.18)}
/* The floating single logo is intentionally replaced by the two-logo container. */
.site-logo{display:none!important}

/* Search icon — requested turquoise accent */
.search-box button{width:50px;min-width:50px;background:#00bfae;color:#fff;font-size:23px;font-weight:900;line-height:1;box-shadow:0 8px 20px rgba(0,191,174,.22)}
.search-box button:hover{background:#00c9b2;transform:translateY(-1px);box-shadow:0 11px 24px rgba(0,191,174,.30)}
.search-box button:active{transform:translateY(0) scale(.98)}
.search-box input:focus{border-color:#00bfae;box-shadow:0 0 0 3px rgba(0,191,174,.11)}

/* ==========================================================
   تفاصيل القطعة — استعادة وإبراز البطاقة + صورة القطعة
   ========================================================== */
.plot-info{
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
  max-height:calc(100vh - 36px);
  overflow:auto;
}
.plot-info.show{
  display:block;
  pointer-events:auto;
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.plot-info::-webkit-scrollbar{width:5px}
.plot-info::-webkit-scrollbar-thumb{background:rgba(15,23,42,.16);border-radius:20px}

@media(max-width:800px){
  .plot-info{
    z-index:2500!important;
    width:calc(100% - 20px)!important;
    left:10px!important;
    right:10px!important;
    bottom:12px!important;
    top:auto!important;
    max-height:min(82vh,760px)!important;
    border-radius:20px!important;
  }
}

/* Logo: transparent image with an extremely subtle shadow only */
.logo-pair-item{background:transparent!important;box-shadow:none!important}
.logo-pair-item img{background:transparent!important;filter:drop-shadow(0 2px 3px rgba(15,23,42,.10));}
[data-theme="dark"] .logo-pair-item img,.dark-mode .logo-pair-item img{filter:drop-shadow(0 2px 4px rgba(0,0,0,.24));}
.logo-pair-item{background:transparent!important;box-shadow:none!important}.logo-pair-item img{background:transparent!important;filter:drop-shadow(0 2px 3px rgba(15,23,42,.10))}.dark-mode .logo-pair-item img{filter:drop-shadow(0 2px 4px rgba(0,0,0,.22))}


/* ==========================================================
   FINAL MAP FILTER REFINEMENT — reference style
   ========================================================== */
:root{
  --teal-filter:#00bfae;
  --teal-filter-dark:#009f93;
}
body,
button,input,select,textarea{font-family:var(--font-main)!important;font-size:14px}
.sidebar{font-size:14px}
.brand h1{font-size:22px}
.sub{font-size:13px}
.card-title{font-size:16px}
.search-box input{font-size:14px;min-height:48px}
.search-box button{font-size:25px;min-height:48px}

/* Logos remain transparent with only an extremely subtle shadow. */
.logo-pair-card,
.logo-pair,
.logo-pair-item{background:transparent!important;box-shadow:none!important}
.logo-pair-item{border-color:transparent!important}
.logo-pair-item img{background:transparent!important;filter:drop-shadow(0 1px 2px rgba(15,23,42,.08))!important}

/* Price filter is permanently visible; its collapse arrow is removed. */
#priceFilterCard .filter-card-head{min-height:46px}
#priceFilterCard .filter-body{display:block!important}
#priceFilterCard .filter-card-head{justify-content:flex-start}
#priceFilterCard .filter-toggle{display:none!important}

/* Area filter keeps its arrow. */
#areaFilterCard .filter-toggle{display:inline-flex!important;align-items:center;justify-content:center}

/* Larger controls/readouts. */
.filter-card-head{font-size:14px}
.range-value-row span{font-size:12px}
.range-value-row strong{font-size:15px}
.range-scale{font-size:11px}
.range-result{font-size:11px}
.land-range{height:8px}
.land-range::-webkit-slider-runnable-track{height:8px}
.land-range::-webkit-slider-thumb{width:22px;height:22px;margin-top:-7px}
.land-range::-moz-range-track{height:8px}
.land-range::-moz-range-thumb{width:17px;height:17px}

/* Parcel labels: NO background — numbers remain directly on the map. */
.plot-label,
.plot-label span,
.plot-label em,
.plot-label .metric-only{background:transparent!important;border:0!important;box-shadow:none!important}
.plot-label span,
.plot-label em,
.plot-label .metric-only{
  padding:0!important;
  border-radius:0!important;
  text-shadow:0 2px 4px rgba(0,0,0,.82),0 0 2px rgba(0,0,0,.55)!important;
  color:#fff!important;
  font-variant-numeric:lining-nums tabular-nums!important;
}
.plot-label span{font-size:16px!important;font-weight:900!important}
.plot-label .metric-only{min-width:0!important;font-size:17px!important;font-weight:900!important}
.plot-label .price-metric,.plot-label .area-metric{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  text-shadow:0 1px 0 #fff,1px 0 0 #fff,-1px 0 0 #fff,0 -1px 0 #fff,0 2px 4px rgba(0,0,0,.28)!important;
}

/* While a range filter is active, status fills are fully replaced by teal.
   Matching parcels are fully covered; their original parcel boundaries remain visible. */
.leaflet-overlay-pane svg path.plot-filter-match{fill:#00bfae!important;fill-opacity:.78!important;stroke:#fff!important}

/* Statistics and buttons slightly larger to match the approved reference. */
.statistics-card .stat-item small{font-size:11px}
.statistics-card .stat-item strong{font-size:20px}
.statistics-card .stat-icon{font-size:22px}
.quick-action-btn{font-size:14px;min-height:52px}
.filter-card{border-radius:16px}

/* English digits everywhere numeric. */
.sidebar,.plot-info,.compare-dialog,.video-dialog,.reservation-dialog,
.range-value-row,.range-scale,.range-result,.plot-label{
  font-variant-numeric:lining-nums tabular-nums;
}


/* FINAL FILTER BEHAVIOR — persistent teal selection + professional metric labels */
.plot-label .metric-only,
.plot-label .price-metric,
.plot-label .area-metric{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#0f172a!important;
  padding:0!important;
  font-weight:900!important;
  text-shadow:0 1px 2px rgba(255,255,255,.95),0 0 3px rgba(255,255,255,.85)!important;
}
.leaflet-overlay-pane svg path.plot-filter-match{
  fill:#00bfae!important;
  fill-opacity:.82!important;
  stroke:#ffffff!important;
  stroke-width:2.2px!important;
  opacity:1!important;
}

/* ==========================================================
   LOGO FINAL — large logos, fully transparent outer/inner containers
   ========================================================== */
.logo-pair-card,
.logo-pair,
.logo-pair-item{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.logo-pair-card{
  padding:6px 8px!important;
  margin-bottom:10px!important;
}
.logo-pair{
  grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr)!important;
  gap:4px!important;
  min-height:108px!important;
}
.logo-pair-item{
  height:104px!important;
  min-width:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
.logo-pair-item img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  filter:drop-shadow(0 1px 2px rgba(15,23,42,.07))!important;
}
.logo-pair-divider{display:none!important}
@media(max-width:800px){
  .logo-pair-card{padding:4px 6px!important}
  .logo-pair{min-height:96px!important}
  .logo-pair-item{height:92px!important}
}


/* Logo visibility fix: both brand marks are always rendered side by side. */
.logo-pair{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;align-items:center!important;min-height:108px!important}
.logo-pair-divider{display:none!important}
.logo-pair-item{display:flex!important;visibility:visible!important;opacity:1!important;height:108px!important;min-width:0!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.logo-pair-item img{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;background:transparent!important}


/* FINAL SEARCH BUTTON — requested turquoise with white magnifier */
.search-box button{
  width:50px!important;
  min-width:50px!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  background:#00bfae!important;
  color:#fff!important;
  border:0!important;
  border-radius:12px!important;
  box-shadow:0 8px 20px rgba(0,191,174,.22)!important;
}
.search-icon-svg{
  width:24px!important;
  height:24px!important;
  display:block!important;
  color:#fff!important;
}
.search-box button:hover{background:#00bfae!important;box-shadow:0 10px 24px rgba(0,191,174,.28)!important}

/* Typography override: Almarai for all Arabic UI text; headings bold */

/* FINAL RANGE REFERENCE LAYOUT */
.range-filter-card .filter-body{padding:12px 12px 13px}
.range-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:8px;direction:ltr}
.range-meta-side{display:flex;flex-direction:column;gap:2px;min-width:0;direction:rtl}
.range-meta-side span,.range-meta-side small{font-size:10px;font-weight:500;color:#667085;line-height:1.25}
.range-meta-side strong{font-size:18px;font-weight:800;color:#172033;line-height:1.15;white-space:nowrap}
.range-current{align-items:flex-start;text-align:left}
.range-current strong{color:#0f766e}
.range-max{align-items:flex-end;text-align:right}
.range-result{font-size:11px!important}
.filter-card-head{font-size:15px!important}
@media(max-width:800px){.range-meta-side strong{font-size:18px}.range-meta-side span,.range-meta-side small{font-size:10px}.filter-card-head{font-size:15px!important}}


/* ==========================================================
   FINAL USER REQUEST — logo divider + turquoise #00bfae + centered X
   ========================================================== */
:root{--primary:#00bfae;--teal-filter:#00bfae}

/* Logos: Haider on the left, Al-Khafaf on the right, with a very light vertical divider. */
.logo-pair{
  direction:ltr!important;
  grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr)!important;
  gap:12px!important;
  min-height:108px!important;
}
.logo-pair-divider{
  display:block!important;
  width:1px!important;
  height:72px!important;
  background:rgba(23,32,51,.16)!important;
  border:0!important;
  align-self:center!important;
}
.logo-pair-item{direction:ltr!important}

/* Keep the requested turquoise consistent across the primary controls. */
.search-box button,
.compare-action,
.video-action{
  background:#00bfae!important;
}
.search-box button:hover{background:#00bfae!important}

/* Sold icon: geometrically centered X, independent of the font glyph baseline. */
.stat-icon-x{
  position:relative!important;
  font-size:0!important;
  line-height:1!important;
}
.stat-icon-x::before,
.stat-icon-x::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:19px;
  height:4px;
  border-radius:3px;
  background:#fff;
  transform-origin:center;
}
.stat-icon-x::before{transform:translate(-50%,-50%) rotate(45deg)}
.stat-icon-x::after{transform:translate(-50%,-50%) rotate(-45deg)}


/* ==========================================================
   تحديد القطعة — Glow حسب حالة القطعة
   لا يوجد أي إطار مستطيل؛ التوهج يطبق على مسار القطعة نفسه.
   يبقى التوهج ظاهرًا بعد النقر حتى اختيار قطعة أخرى.
   ========================================================== */
#map .leaflet-interactive:focus,
#map svg path.leaflet-interactive:focus{
  outline:none!important;
}

#map .plot-search-glow{
  vector-effect:non-scaling-stroke;
  /* إطار أبيض واضح، مع توهج أخضر/ملوّن خفيف حول القطعة */
  stroke:#ffffff!important;
  stroke-width:2.4px!important;
  stroke-opacity:.98!important;
  fill:var(--glow-fill)!important;
  fill-opacity:.15!important;
  filter:
    drop-shadow(0 0 2px var(--glow-main))
    drop-shadow(0 0 5px var(--glow-soft));
  animation:plotGlowPulse 1.6s ease-in-out infinite alternate;
}

#map .plot-glow-status-0{
  --glow-main:#39ff88;
  --glow-fill:#39ff88;
  --glow-soft:rgba(57,255,136,.52);
}
#map .plot-glow-status-1{
  --glow-main:#ff4d5e;
  --glow-fill:#ff4055;
  --glow-soft:rgba(255,70,85,.52);
}
#map .plot-glow-status-2{
  --glow-main:#3b82f6;
  --glow-fill:#3b82f6;
  --glow-soft:rgba(59,130,246,.54);
}
#map .plot-glow-status-3{
  --glow-main:#49a7ff;
  --glow-fill:#3b9cff;
  --glow-soft:rgba(59,156,255,.54);
}
#map .plot-glow-status-4{
  --glow-main:#d8e2ec;
  --glow-fill:#b9c6d3;
  --glow-soft:rgba(220,230,240,.48);
}
#map .plot-glow-status-5{
  --glow-main:#e87516;
  --glow-fill:#d9680f;
  --glow-soft:rgba(232,117,22,.52);
}

@keyframes plotGlowPulse{
  from{
    stroke-width:2.2px;
    stroke-opacity:.94;
    fill-opacity:.13;
    filter:
      drop-shadow(0 0 1px var(--glow-main))
      drop-shadow(0 0 4px var(--glow-soft));
  }
  to{
    stroke-width:2.7px;
    stroke-opacity:1;
    fill-opacity:.18;
    filter:
      drop-shadow(0 0 2px var(--glow-main))
      drop-shadow(0 0 7px var(--glow-soft));
  }
}

/* ==========================================================
   FINAL PLOT DETAILS — approved reference layout
   ========================================================== */
.plot-info{
  width:300px;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 55px rgba(15,23,42,.24);
  max-height:calc(100vh - 24px);
}
.plot-info-head{margin-bottom:6px}
.plot-info h2{font-size:19px!important;font-weight:900!important;color:#172033}
.plot-info .close{width:34px;height:34px;border-radius:10px;font-size:19px;color:#172033;background:#f1f5f9}
.plot-summary-head{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:10px;
  min-height:82px;
  padding:6px 0 12px;
  border-bottom:1px solid rgba(15,23,42,.10);
}
.plot-number-block{
  text-align:right;
  padding-left:16px;
  border-left:2px dashed rgba(100,116,139,.48);
}
.plot-number-label{display:block;color:#667085;font-size:12px;font-weight:800;margin-bottom:2px}
.plot-number-block #infoNumber{
  display:block;
  direction:ltr;
  unicode-bidi:isolate;
  font-size:54px;
  line-height:.95;
  font-weight:900;
  color:var(--plot-status-color,#22c55e);
  text-shadow:0 0 7px color-mix(in srgb, var(--plot-status-color,#22c55e) 52%, transparent),0 0 18px color-mix(in srgb, var(--plot-status-color,#22c55e) 26%, transparent);
  font-variant-numeric:lining-nums tabular-nums;
}
.plot-status-block{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
}
.plot-status-block .info-status{
  font-size:16px;
  padding:6px 13px;
  border-radius:999px;
  font-weight:900;
}
.status-pulse-dot{
  width:14px;height:14px;border-radius:50%;display:inline-block;
  background:var(--plot-status-color,#22c55e);
  border:3px solid #fff;
  box-shadow:0 0 0 2px color-mix(in srgb, var(--plot-status-color,#22c55e) 18%, transparent),0 0 9px color-mix(in srgb, var(--plot-status-color,#22c55e) 75%, transparent);
  animation:statusPulse 1.35s ease-in-out infinite;
  flex:0 0 auto;
}
@keyframes statusPulse{
  0%,100%{transform:scale(.9);box-shadow:0 0 0 2px color-mix(in srgb, var(--plot-status-color,#22c55e) 14%, transparent),0 0 7px color-mix(in srgb, var(--plot-status-color,#22c55e) 48%, transparent);opacity:.86}
  50%{transform:scale(1.18);box-shadow:0 0 0 5px color-mix(in srgb, var(--plot-status-color,#22c55e) 10%, transparent),0 0 17px color-mix(in srgb, var(--plot-status-color,#22c55e) 92%, transparent);opacity:1}
}
.price-box{margin-top:12px!important;border-radius:16px!important;background:rgba(255,255,255,.80)!important}
.price-box .info-row{padding:10px 9px!important;font-size:13px!important}
.price-box .info-row span,.price-row span{font-weight:800!important;color:#667085!important}
.price-box .info-row b,.price-row b,.payment-row b{font-size:16px!important;direction:ltr;unicode-bidi:isolate;font-variant-numeric:lining-nums tabular-nums;display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;white-space:nowrap}
.value-unit{font-weight:900;direction:ltr;unicode-bidi:isolate;display:inline-block;order:0}.value-number{order:1}
.value-number{direction:ltr;unicode-bidi:isolate}
.price-box .info-row b{min-width:145px}
.price-row.final b{min-width:155px}
.payment-row b{color:#16a34a}
.price-row.final{padding:11px 10px!important;border-radius:12px!important;background:rgba(15,118,110,.09)!important}
.price-row.final span{font-size:14px!important;color:#0f766e!important}
.price-row.final b{font-size:16px!important;color:#0f766e!important}
.price-note{font-size:9px!important;text-align:center;line-height:1.7;margin-top:6px!important}
.plot-actions{margin-top:12px!important;padding-top:10px!important}
.plot-actions button,.plot-actions a{min-height:46px!important;font-size:12px!important;border-radius:12px!important}
@media(max-width:800px){
  .plot-info{width:calc(100% - 20px)!important;left:10px!important;right:10px!important;bottom:10px!important;top:auto!important;max-height:calc(100vh - 20px)!important;padding:16px!important;border-radius:20px!important}
  .plot-number-block #infoNumber{font-size:52px}
  .plot-number-block{padding-left:14px;border-left:2px dashed rgba(100,116,139,.48)}
  .plot-summary-head{min-height:80px}
  .price-box .info-row b,.price-row b,.payment-row b{font-size:17px!important}
}

/* FINAL TYPOGRAPHY REFINEMENT — +2px for readability */
.plot-info h2{font-size:22px!important}
.plot-info .plot-number-label{font-size:13px!important}
.plot-info .plot-number-block #infoNumber{font-size:58px!important}
.plot-info .plot-status-block .info-status{font-size:17px!important}
.plot-info .price-box .info-row{font-size:16px!important;padding:12px 10px!important}
.plot-info .price-box .info-row span{font-size:16px!important}
.plot-info .price-box .info-row b{font-size:17px!important}
.plot-info .price-row.final{padding:13px 10px!important}
.plot-info .price-row.final span{font-size:17px!important}
.plot-info .price-row.final b{font-size:20px!important}
.plot-info .purchase-head h3{font-size:17px!important}
.plot-info .purchase-label-row{font-size:14px!important}
.plot-info .purchase-label-row b{display:none!important}
.plot-info .purchase-scale{font-size:12px!important;padding-top:5px!important}
.plot-info .payment-row span{font-size:14px!important}
.plot-info .payment-row b{font-size:19px!important}
.plot-info .purchase-percent-badge{font-size:14px!important}
.plot-info .countdown-head h3{font-size:15px!important}
.plot-info .countdown-head span:not(.countdown-clock):not(.countdown-live){font-size:10px!important}
.plot-info .countdown-unit b{font-size:24px!important}
.plot-info .countdown-unit span{font-size:9px!important}
.plot-info .countdown-note{font-size:9.5px!important}
.plot-info .plot-actions button,.plot-info .plot-actions a{font-size:14px!important}

/* Keep the 0/50/100% scale clearly separated below the slider. */
.plot-info .purchase-scale{margin-top:4px!important;line-height:1.4!important}

@media(max-width:800px){
  .plot-info h2{font-size:21px!important}
  .plot-info .plot-number-label{font-size:12px!important}
  .plot-info .plot-number-block #infoNumber{font-size:56px!important}
  .plot-info .plot-status-block .info-status{font-size:16px!important}
  .plot-info .price-box .info-row{font-size:15px!important;padding:12px 9px!important}
  .plot-info .price-box .info-row span{font-size:15px!important}
  .plot-info .price-box .info-row b{font-size:17px!important}
  .plot-info .price-row.final span{font-size:16px!important}
  .plot-info .price-row.final b{font-size:19px!important}
  .plot-info .purchase-head h3{font-size:17px!important}
  .plot-info .purchase-label-row{font-size:14px!important}
  .plot-info .purchase-scale{font-size:11px!important;margin-top:5px!important}
  .plot-info .payment-row span{font-size:14px!important}
  .plot-info .payment-row b{font-size:18px!important}
  .plot-info .purchase-percent-badge{font-size:13px!important}
  .plot-info .countdown-head h3{font-size:14px!important}
  .plot-info .countdown-unit b{font-size:22px!important}
  .plot-info .countdown-unit span{font-size:9px!important}
}


/* ==========================================================
   FINAL DETAIL PANEL — same width as Land Planning sidebar
   +2 typography and readable value/unit ordering
   ========================================================== */
.plot-info{
  width:350px!important;
  max-width:calc(100vw - 32px)!important;
}
.plot-info .price-box .info-row b,
.plot-info .price-row b,
.plot-info .payment-row b{
  font-size:19px!important;
  gap:8px!important;
}
.plot-info .price-box .info-row span,
.plot-info .price-row span,
.plot-info .payment-row span{
  font-size:18px!important;
}
.plot-info .value-number{
  order:1!important;
  font-size:inherit!important;
}
.plot-info .value-unit{
  order:0!important;
  font-size:inherit!important;
  margin-inline-start:2px!important;
}
.plot-info .purchase-head h3{font-size:19px!important}
.plot-info .purchase-label-row{font-size:16px!important}
.plot-info .purchase-label-row b{display:none!important}
.plot-info .purchase-percent-badge{font-size:16px!important}
.plot-info .purchase-scale{
  margin-top:10px!important;
  padding-top:3px!important;
  font-size:13px!important;
  line-height:1.5!important;
}
.plot-info .payment-row b{font-size:21px!important}
.plot-info .plot-number-label{font-size:15px!important}
.plot-info .plot-number-block #infoNumber{font-size:60px!important}
.plot-info .plot-status-block .info-status{font-size:19px!important}
.plot-info h2{font-size:24px!important}

@media(max-width:800px){
  .plot-info{
    width:calc(100% - 20px)!important;
    max-width:none!important;
    left:10px!important;
    right:10px!important;
  }
  .plot-info h2{font-size:23px!important}
  .plot-info .plot-number-label{font-size:14px!important}
  .plot-info .plot-number-block #infoNumber{font-size:60px!important}
  .plot-info .plot-status-block .info-status{font-size:18px!important}
  .plot-info .price-box .info-row{padding:14px 10px!important}
  .plot-info .price-box .info-row span,
  .plot-info .price-row span,
  .plot-info .payment-row span{font-size:17px!important}
  .plot-info .price-box .info-row b,
  .plot-info .price-row b{font-size:19px!important}
  .plot-info .price-row.final b{font-size:21px!important}
  .plot-info .purchase-head h3{font-size:19px!important}
  .plot-info .purchase-label-row{font-size:16px!important}
  .plot-info .purchase-percent-badge{font-size:15px!important}
  .plot-info .purchase-scale{font-size:13px!important;margin-top:10px!important}
  .plot-info .payment-row b{font-size:20px!important}
  .plot-info .countdown-head h3{font-size:16px!important}
  .plot-info .countdown-unit b{font-size:24px!important}
  .plot-info .countdown-unit span{font-size:10px!important}
}

/* FINAL USER REQUEST: larger plot number + area value aligned left */
.plot-info .plot-number-block #infoNumber{font-size:64px!important}
.plot-info .price-box .info-row b,
.plot-info .price-row b,
.plot-info .payment-row b{
  direction:ltr!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
.plot-info .value-unit{order:0!important}
.plot-info .value-number{order:1!important}
@media(max-width:800px){
  .plot-info .plot-number-block #infoNumber{font-size:64px!important}
}

/* FINAL: plot number +2px and area unit matches price-unit styling */
.plot-info .price-box .info-row b .value-unit,
.plot-info .price-row b .value-unit,
.plot-info .payment-row b .value-unit{
  font-weight:900!important;
  font-size:inherit!important;
  line-height:1!important;
  display:inline-block!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
  order:0!important;
  margin-inline-start:0!important;
}
.plot-info .price-box .info-row b .value-number,
.plot-info .price-row b .value-number,
.plot-info .payment-row b .value-number{
  order:1!important;
  font-size:inherit!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
}
.plot-info .plot-number-block #infoNumber{font-size:64px!important}
@media(max-width:800px){.plot-info .plot-number-block #infoNumber{font-size:64px!important}}

/* ==========================================================
   FINAL DESKTOP LAYOUT — Land Planning left / Plot Details right
   ========================================================== */
@media (min-width:801px){
  .sidebar{
    left:16px!important;
    right:auto!important;
  }
  .plot-info{
    right:16px!important;
    left:auto!important;
    top:16px!important;
    bottom:auto!important;
  }
}

/* FINAL: unit position and payment value emphasis */
.price-box .info-row b,
.price-row b,
.payment-row b{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  white-space:nowrap!important;
}
.price-box .value-unit,
.price-row .value-unit,
.payment-row .value-unit{
  order:0!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
}
.price-box .value-number,
.price-row .value-number,
.payment-row .value-number{
  order:1!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
}
.payment-row b{
  color:#0f8f83!important;
  text-shadow:0 1px 0 rgba(15,143,131,.08);
}
.payment-row{
  border-color:rgba(15,143,131,.38)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(236,250,247,.88))!important;
}

/* ==========================================================
   FILTERS — turquoise accent + area unit on the left
   ========================================================== */
.range-filter-card .filter-card-head{
  color:#0f766e!important;
}
.range-filter-card .range-meta-side strong{
  color:#0f766e!important;
}
.range-filter-card .land-range{
  background:linear-gradient(90deg,#00bfae,#14b8a6)!important;
}
.range-filter-card .land-range::-webkit-slider-thumb{
  border-color:#00bfae!important;
  box-shadow:0 2px 9px rgba(0,191,174,.24)!important;
}
.range-filter-card .land-range::-moz-range-thumb{
  border-color:#00bfae!important;
  box-shadow:0 2px 9px rgba(0,191,174,.24)!important;
}
.range-filter-card .range-result{
  border:1px solid rgba(0,191,174,.10);
  background:rgba(0,191,174,.07)!important;
}
.range-filter-card .value-unit,
.range-filter-card .value-number{
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-block;
}
.range-filter-card .value-unit{order:0;font-weight:900}
.range-filter-card .value-number{order:1}
#areaRangeValue{
  display:inline-flex!important;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  direction:ltr!important;
}
.filter-area-value{
  display:inline-flex;
  align-items:center;
  gap:5px;
  direction:ltr;
  unicode-bidi:isolate;
  font-weight:800;
  color:#0f766e;
}

/* ==========================================================
   FINAL USER REQUEST — filter metric labels + wider plot details
   ========================================================== */
.plot-label .metric-only,
.plot-label .price-metric,
.plot-label .area-metric{
  color:#FFFFFF!important;
  text-shadow:
    0 1px 1px rgba(255,255,255,.98),
    0 -1px 1px rgba(255,255,255,.98),
    1px 0 1px rgba(255,255,255,.98),
    -1px 0 1px rgba(255,255,255,.98),
    0 0 3px rgba(255,255,255,.90)!important;
}

/* Wider details panel so plot numbers such as 19-2 stay on one line. */
.plot-info{
  width:390px!important;
  max-width:calc(100vw - 32px)!important;
}
.plot-number-block #infoNumber{
  white-space:nowrap!important;
  min-width:0!important;
  letter-spacing:-1px;
}
.plot-summary-head{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}


/* ==========================================================
   V51 PLOT DETAILS MOTION
   حركة مستخرجة من مشروع v51 ومتكيفة مع بطاقة .plot-info الحالية
   ========================================================== */
.plot-info{
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    visibility 0s linear 0.9s !important;
  will-change: transform, opacity;
}
.plot-info.show{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translate3d(0,0,0) !important;
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    visibility 0s linear 0s !important;
}
.plot-info.plot-panel-closing{
  opacity:0 !important;
  visibility:visible !important;
  pointer-events:none !important;
  transform:translate3d(0,calc(-100% - 50px),0) !important;
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease !important;
}


/* =========================================
   Plot Details — Pure Fade Transition
   ========================================= */
.plot-info{
  opacity:0;
  visibility:hidden;
  transform:none !important;
  transition:
    opacity .22s ease-in-out,
    visibility 0s linear .22s !important;
  will-change:opacity;
}

.plot-info.show{
  opacity:1;
  visibility:visible;
  transform:none !important;
  transition:
    opacity .28s ease-in-out,
    visibility 0s linear 0s !important;
}

.plot-info.plot-fade-out{
  opacity:0 !important;
  visibility:hidden !important;
  transform:none !important;
  pointer-events:none !important;
  transition:
    opacity .20s ease-in-out,
    visibility 0s linear .20s !important;
}


/* FINAL — تفاصيل القطعة: Fade فقط */
.plot-info{
  transform:none !important;
  transition:opacity .18s ease-in-out, visibility 0s linear .18s !important;
  will-change:opacity;
}
.plot-info.show{
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  pointer-events:auto !important;
  transition:opacity .24s ease-in-out, visibility 0s linear 0s !important;
}
.plot-info.plot-panel-fading-out{
  opacity:0 !important;
  visibility:hidden !important;
  transform:none !important;
  pointer-events:none !important;
  transition:opacity .18s ease-in-out, visibility 0s linear .18s !important;
}

/* بطاقة القطعة المحجوزة/المباعة — تظهر بدل تفاصيل السعر والحاسبة */
.status-owner-card{
  margin-top:12px; padding:22px 18px 20px; border-radius:20px; text-align:center;
  border:1px solid rgba(59,130,246,.22);
  background:linear-gradient(145deg,rgba(20,24,18,.96),rgba(28,28,18,.98));
  color:#fff; box-shadow:0 12px 32px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.06);
}
.status-owner-card.sold{border-color:rgba(239,68,68,.25);}
.status-owner-icon{width:58px;height:58px;margin:0 auto 14px;border:1.5px solid #7c3aed;border-radius:17px;display:grid;place-items:center;color:#7c3aed;font-size:26px;line-height:1;background:rgba(124,58,237,.04);}
.status-owner-card h3{margin:0 0 12px;font-size:20px;font-weight:950;color:#fff;}
.status-owner-card p{margin:0 auto;max-width:340px;color:#b9c0c8;font-size:13px;line-height:1.9;font-weight:700;}
.status-owner-customer{margin:16px auto 0;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(124,58,237,.20);max-width:340px;}
.status-owner-customer-label{display:block;color:#7c3aed;font-size:10px;font-weight:900;margin-bottom:5px;}
.status-owner-customer strong{display:block;color:#fff;font-size:17px;font-weight:950;}
.status-owner-card.is-hidden{display:none!important;}
/* FINAL GUARANTEE: السعر/المساحة/الإجمالي لا تظهر مع مباع أو محجوز. */
.price-box.status-hidden,
.purchase-box.status-hidden,
.plot-info .price-box[data-status="1"],
.plot-info .price-box[data-status="2"],
.plot-info .purchase-box[data-status="1"],
.plot-info .purchase-box[data-status="2"]{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
.plot-info.status-locked .plot-actions .reserve-btn{display:none!important;}

/* FINAL: بطاقة المحجوز/المباع بيضاء ولونها مطابق للحالة */
.status-owner-card{--status-color:#3b82f6!important;background:#fff!important;color:#172033!important;border:1.5px solid var(--status-color)!important;box-shadow:0 12px 32px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.95)!important;}
.status-owner-card.sold{--status-color:#ef4444!important;border-color:var(--status-color)!important;}
.status-owner-icon{width:58px!important;height:58px!important;margin:0 auto 14px!important;border:1.8px solid var(--status-color)!important;border-radius:17px!important;display:grid!important;place-items:center!important;color:var(--status-color)!important;background:#fff!important;box-shadow:0 5px 16px rgba(15,23,42,.07)!important;}
.status-owner-icon span{display:block!important;width:18px!important;height:25px!important;background:var(--status-color)!important;clip-path:polygon(0 0,100% 0,100% 100%,50% 73%,0 100%)!important;}
.status-owner-card h3{color:var(--status-color)!important;margin:0 0 12px!important;font-size:20px!important;font-weight:950!important;}
.status-owner-card p{color:#4b5563!important;margin:0 auto!important;max-width:360px!important;font-size:13px!important;line-height:1.9!important;font-weight:700!important;}
.status-owner-customer{background:#fff!important;border:1.5px solid var(--status-color)!important;box-shadow:0 5px 15px rgba(15,23,42,.06)!important;}
.status-owner-customer-label,.status-owner-customer strong{color:var(--status-color)!important;}


/* DESKTOP ONLY: hide the purchase-accounting toggle arrow.
   Mobile keeps its existing open/close control unchanged. */
@media (min-width: 601px){
  body.public-map .plot-info .purchase-toggle{
    display:none !important;
  }
}


/* Mobile comparison selection: hide the entire side panel/services container
   so the map is fully visible; only the bottom black selection prompt remains. */
@media (max-width: 767px) {
  body.comparison-selecting .services-panel,
  body.comparison-selecting #servicesPanel,
  body.comparison-selecting .sidebar,
  body.comparison-selecting aside,
  body.comparison-selecting .side-panel,
  body.comparison-selecting .filters-panel,
  body.comparison-selecting .left-panel,
  body.comparison-selecting .right-panel {
    display: none !important;
  }

  body.comparison-selecting .map-container,
  body.comparison-selecting #map,
  body.comparison-selecting .map {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
  }

  body.comparison-selecting #comparePrompt.compare-prompt {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    z-index: 99999 !important;
    display: flex !important;
  }
}



/* أثناء مقارنة القطع في الموبايل: إخفاء زر الإغلاق العلوي فقط،
   والإبقاء على زر الإلغاء داخل رسالة الاختيار السوداء. */
@media (max-width: 767px) {
  body.comparison-selecting .map-close-btn,
  body.comparison-selecting #mapClose,
  body.comparison-selecting #closeMap,
  body.comparison-selecting .close-map,
  body.comparison-selecting .map-header .close-btn,
  body.comparison-selecting .map-header button.close,
  body.comparison-selecting .map-close {
    display: none !important;
  }
}


@media (max-width: 767px) {
  body.comparison-selecting .comparison-top-close-hidden {
    display:none !important;
  }
}

/* Fullscreen requested from the menu button: keep the map application filling the viewport. */
:fullscreen .app,
:-webkit-full-screen .app {
  width: 100vw !important;
  height: 100vh !important;
}

/* المقارنة على الموبايل: أسفل شريط البحث مباشرة */
@media (max-width: 767px){
  body.comparison-open #comparisonModal,
  body.comparison-open .comparison-modal{
    position: fixed !important;
    top: 78px !important;
    bottom: 10px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
  }
}
\n\n@media (max-width: 767px){\n  body.comparison-open #sidebar,\n  body.comparison-open .sidebar{\n    display:none !important;\n    visibility:hidden !important;\n    opacity:0 !important;\n    pointer-events:none !important;\n  }\n  body.comparison-open .comparison-search-fixed{\n    display:flex !important;\n    position:fixed !important;\n    top:10px !important;\n    left:12px !important;\n    right:12px !important;\n    width:auto !important;\n    z-index:11000 !important;\n  }\n}\n

/* ==========================================================
   FINAL METRIC TYPOGRAPHY — desktop + mobile
   - Area unit is plain Latin m2 (not superscript ²)
   - Unit and number have identical visual size/weight
   - Map metric labels use a warm ivory/gold with deep turquoise depth
   ========================================================== */
.range-filter-card .range-meta-side strong,
.range-filter-card .range-meta-side strong .value-unit,
.range-filter-card .range-meta-side strong .value-number,
.range-filter-card .filter-area-value,
.range-filter-card .filter-area-value .value-unit,
.range-filter-card .filter-area-value .value-number{
  font-size:18px!important;
  font-weight:900!important;
  line-height:1.15!important;
  font-variant-numeric:lining-nums tabular-nums;
}

.range-filter-card .value-unit,
.range-filter-card .value-number{
  font-family:var(--font-main)!important;
  vertical-align:middle;
}

.plot-label .metric-only,
.plot-label .price-metric,
.plot-label .area-metric{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:900!important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.85),
    0 2px 3px rgba(0,72,68,.72),
    0 0 6px rgba(0,72,68,.30)!important;
}

@media(max-width:800px){
  .range-filter-card .range-meta-side strong,
  .range-filter-card .range-meta-side strong .value-unit,
  .range-filter-card .range-meta-side strong .value-number,
  .range-filter-card .filter-area-value,
  .range-filter-card .filter-area-value .value-unit,
  .range-filter-card .filter-area-value .value-number{
    font-size:18px!important;
  }
}


/* Hide video control */
.video-btn,.video-button,.video-control,.btn-video,.video-toggle,
[data-action="video"],[data-video],[data-tool="video"],
button[title*="فيديو"],button[aria-label*="فيديو"],
a[title*="فيديو"],a[aria-label*="فيديو"]{
  display:none!important;
}


/* Planning menu: video controls disabled */
#videoBtn,
#videoGuideBtn,
#mobileVideoBtn,
.video-action,
.video-menu-item,
[data-action="video"],
[data-video="project"],
a[href*="youtube.com"] .video-action{
  display:none !important;
}


/* إزالة الفواصل البيضاء بين صور أقمار الخريطة (Tile Seams) */
#map .leaflet-tile-pane,
#map .leaflet-tile-container {
  overflow: visible !important;
}
#map .leaflet-tile-pane img.leaflet-tile {
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/* FINAL FILTER METRIC PRESENTATION — price amount on one line and ريال below.
   Filtered parcels keep the approved turquoise fill for both price and area filters. */
.plot-label .filter-price-metric{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:2px!important;
  line-height:1!important;
  white-space:nowrap!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
}
.plot-label .filter-price-metric .filter-price-number{
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  font-size:1em!important;
  line-height:1.05!important;
  font-weight:900!important;
}
.plot-label .filter-price-metric .filter-price-unit{
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  font-size:.72em!important;
  line-height:1!important;
  font-weight:900!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
.leaflet-overlay-pane svg path.plot-filter-match{
  fill:#14b8a6!important;
  fill-opacity:.78!important;
  stroke:#ffffff!important;
}
.range-filter-card .land-range{
  background:linear-gradient(90deg,#0f766e,#14b8a6)!important;
}
.range-filter-card .land-range::-webkit-slider-thumb{
  border-color:#14b8a6!important;
  box-shadow:0 2px 9px rgba(20,184,166,.28)!important;
}
.range-filter-card .land-range::-moz-range-thumb{
  border-color:#14b8a6!important;
  box-shadow:0 2px 9px rgba(20,184,166,.28)!important;
}


/* Temporary extension modal — keep the close X perfectly centered inside its icon/button. */
.extend-modal-close,.temp-extend-modal-close,.temporary-extend-modal-close{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:1!important;
  text-align:center!important;
  box-sizing:border-box!important;
}

/* ===== دوران الخريطة 360° ===== */
.map-rotate-control{display:flex;flex-direction:column;border:0!important;box-shadow:0 7px 20px rgba(15,23,42,.18)!important;border-radius:12px;overflow:hidden;background:#fff;margin-bottom:10px!important}
.map-rotate-control a{display:flex;align-items:center;justify-content:center;width:34px;height:34px;color:#172033!important;font-size:20px;line-height:1;text-decoration:none;border:0!important;border-radius:0!important}
.map-rotate-control a+a{border-top:1px solid #e5e7eb!important}
.map-rotate-control a:hover{background:#f3f4f6}
.map-rotate-control .mr-compass svg{width:26px;height:26px}
.map-rotate-control .mr-needle{transition:none}
.map-rotate-control.is-rotated .mr-compass{background:#fff7ed}
@media (max-width:800px){.map-rotate-control a{width:44px;height:44px;font-size:23px}.map-rotate-control .mr-compass svg{width:32px;height:32px}}

/* ميلان الخريطة (3D) */
.map-rotate-control .mr-tilt-val{font-size:12px;font-weight:800;letter-spacing:0}
.map-rotate-control.is-tilted .mr-tilt-val{background:#fff7ed;color:#c2410c!important}
.map-tilt-stage{
  will-change:transform;
  overflow:visible!important;
  transform-style:preserve-3d;
}
/* عند الميلان: السماح بظهور كامل محتوى الخريطة بدون قص من الحاوية */
#map.is-tilted{
  background:#dfe6eb;
  overflow:visible!important;
}
#map.is-tilted .leaflet-map-pane,
#map.is-tilted .leaflet-tile-pane,
#map.is-tilted .leaflet-overlay-pane,
#map.is-tilted .leaflet-marker-pane,
#map.is-tilted .leaflet-shadow-pane,
#map.is-tilted .leaflet-tooltip-pane,
#map.is-tilted .leaflet-popup-pane{
  overflow:visible!important;
}
.map-tilt-haze{position:absolute;left:0;right:0;top:0;height:30%;z-index:500;pointer-events:none;background:linear-gradient(to bottom,#dfe6eb 0%,rgba(223,230,235,.85) 30%,rgba(223,230,235,0) 100%);transition:opacity .2s;}
@media (max-width:800px){.map-rotate-control .mr-tilt-val{font-size:14px}}

/* إخفاء قوائم الزوم والتدوير/الميلان — العرض في الحاوية فقط */
.leaflet-control-zoom,
.map-rotate-control{
  display:none!important;
}

/* حاوية عرض الزوم ودرجة الميلان */
.map-zoom-tilt-hud{
  display:flex!important;
  flex-direction:column;
  gap:6px;
  min-width:118px;
  margin:12px!important;
  padding:12px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(15,23,42,.12)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.20)!important;
  backdrop-filter:blur(14px);
  font-family:inherit;
  direction:rtl;
  z-index:1200!important;
}
.map-zoom-tilt-hud .hud-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  line-height:1.3;
}
.map-zoom-tilt-hud .hud-label{
  font-size:13px;
  font-weight:700;
  color:#64748b;
}
.map-zoom-tilt-hud .hud-value{
  font-size:16px;
  font-weight:800;
  color:#0f172a;
  font-variant-numeric:tabular-nums;
  min-width:2.6em;
  text-align:left;
  direction:ltr;
}
@media (max-width:800px){
  .map-zoom-tilt-hud{
    min-width:108px;
    margin:10px!important;
    padding:10px 14px;
    border-radius:12px;
  }
  .map-zoom-tilt-hud .hud-label{font-size:13px}
  .map-zoom-tilt-hud .hud-value{font-size:16px}
}

/* ========== معالم + دبابيس (ستايل Misharis) ========== */
.lm-marker-wrap {
  background: transparent !important;
  border: none !important;
}
.lm-marker {
  position: relative;
  width: 44px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  --lm-color: #f97316;
}
.lm-pulse {
  position: absolute;
  top: -16px;
  left: 0;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border-radius: 50%;
  background: #f97316;
  opacity: 0.55;
  animation: lm-pulse 1.4s ease-out infinite;
  pointer-events: none;
  box-shadow: 0 0 12px 2px rgba(249, 115, 22, 0.55);
}
.lm-pulse-delay {
  animation-delay: 0.7s;
}
@keyframes lm-pulse {
  0% { transform: scale(0.55); opacity: 0.7; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
.lm-pin {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  transition: transform 0.18s ease;
  animation: lm-pin-blink 1.6s ease-in-out infinite;
}
.lm-pin svg {
  display: block;
}
.lm-marker:hover .lm-pin,
.lm-active .lm-pin {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.55));
}
@keyframes lm-pin-blink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45)); }
  50% { opacity: 0.72; filter: drop-shadow(0 3px 10px rgba(249, 115, 22, 0.75)); }
}
.lm-caption {
  /* اسم المعلم فوق الدبوس (لا أسفله) */
  position: absolute;
  top: auto;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 10px 0;
  z-index: 3;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.leaflet-container.satellite-dim .leaflet-tile-pane {
  transition: filter 0.45s ease;
}
.leaflet-container.satellite-dim.lm-dim .leaflet-tile-pane {
  filter: brightness(0.6) contrast(1.06) saturate(0.92);
}
#landmarksBtn.active {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22), 0 13px 28px rgba(15, 118, 110, 0.28);
  filter: brightness(1.03);
}

/* ========== وضع المعالم: إخفاء اللوحات وإظهار حاوية «قائمة الأراضي» ========== */
body.landmarks-mode .sidebar,
body.landmarks-mode .plot-info,
body.landmarks-mode .menu-btn{
  display:none!important;
}
.landmarks-restore-btn{
  display:none;
  position:fixed;
  z-index:2600;
  top:16px;
  left:16px;
  right:auto;
  padding:14px 22px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:22px;
  background:var(--panel);
  color:var(--text,#0f172a);
  font-family:inherit;
  font-size:20px;
  font-weight:800;
  line-height:1.3;
  cursor:pointer;
  box-shadow:0 18px 55px rgba(15,23,42,.18);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transition:transform .18s ease;
}
.landmarks-restore-btn:hover{transform:translateY(-2px)}
.landmarks-restore-btn:active{transform:translateY(0) scale(.98)}
body.landmarks-mode .landmarks-restore-btn{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:800px){
  .landmarks-restore-btn{top:10px;left:10px;right:auto;padding:11px 18px;font-size:17px;border-radius:20px}
}

/* ========== دبوس المعالم: طبقة فوق الخريطة، عمودي دائماً ========== */
.lm-overlay{
  position:absolute;
  left:0;top:0;right:0;bottom:0;
  z-index:650;
  pointer-events:none;
  overflow:visible;
}
.lm-overlay-item{
  position:absolute;
  left:0;top:0;
  width:44px;height:60px;
  pointer-events:auto;
  cursor:pointer;
}
/* دائرة النبض على الأرض عند رأس الدبوس، وتنبسط (تُسطَّح) مع ميل الخريطة */
.lm-ground{
  position:absolute;
  left:50%;
  top:60px;
  width:0;height:0;
  transform:scaleY(var(--lm-flat, 1));
  pointer-events:none;
}

/* ========== المسار الأبيض المضيء (من دبوس المعلم إلى المخطط) ========== */
.lm-route-halo{
  filter:blur(6px);
}
.lm-route-glow{
  filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px rgba(255,255,255,.85));
  animation:lm-route-pulse 2.2s ease-in-out infinite;
}
.lm-route-core{
  filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #fff);
}
@keyframes lm-route-pulse{
  0%,100%{opacity:.45}
  50%{opacity:.85}
}

/* نبضات الضوء المتحركة على المسار */
.lm-route-flow{
  filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #fff);
  animation:lm-route-flow 1.1s linear infinite;
}
@keyframes lm-route-flow{
  from{stroke-dashoffset:28}
  to{stroke-dashoffset:0}
}
/* نقطة نهاية المسار: برتقالية مضيئة مع هالة */
.lm-route-end-wrap{background:transparent!important;border:0!important}
.lm-route-end{position:absolute;left:0;top:0;width:0;height:0;display:block}
.lm-route-end .dot{
  position:absolute;left:-8px;top:-8px;width:16px;height:16px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#ffd7a8 0,#fb923c 45%,#f97316 100%);
  border:2px solid #fff;
  box-shadow:0 0 8px 3px rgba(249,115,22,.95),0 0 22px 8px rgba(249,115,22,.65);
  animation:lm-end-glow 1.6s ease-in-out infinite;
}
.lm-route-end .halo{
  position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;
  background:rgba(249,115,22,.55);
  box-shadow:0 0 18px 4px rgba(249,115,22,.7);
  animation:lm-end-halo 1.8s ease-out infinite;
}
.lm-route-end .halo.d{animation-delay:.9s}
@keyframes lm-end-halo{
  0%{transform:scale(.4);opacity:.85}
  80%,100%{transform:scale(2.6);opacity:0}
}
@keyframes lm-end-glow{
  0%,100%{box-shadow:0 0 8px 3px rgba(249,115,22,.95),0 0 22px 8px rgba(249,115,22,.65)}
  50%{box-shadow:0 0 12px 5px rgba(249,115,22,1),0 0 32px 14px rgba(249,115,22,.8)}
}

/* مسار الشاشة (SVG) داخل طبقة الدبابيس */
.lm-route-svg{
  position:absolute;left:0;top:0;width:100%;height:100%;
  overflow:visible;pointer-events:none;
}
.lm-route-flow{ stroke-dasharray:2 26; }
.lm-route-end-item{
  position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;
}

/* ملصق طول المسار (أسفل منتصف المسار) */
.lm-route-label-item{
  position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:3;
}
.lm-route-label{
  /* الملصق أسفل خط المسار (لا فوقه) */
  position:absolute;left:var(--lm-lx,0px);top:var(--lm-ly,18px);transform:translate(-50%,0);transform-origin:50% 0;
  display:inline-flex;align-items:center;gap:10px;
  white-space:nowrap;direction:rtl;
  padding:9px 20px 9px 12px;border-radius:999px;
  background:linear-gradient(135deg,rgba(30,41,59,.96) 0%,rgba(15,23,42,.96) 100%);
  color:#fff;line-height:1;
  border:2px solid #fb923c;
  box-shadow:0 0 0 4px rgba(249,115,22,.22),0 0 22px rgba(249,115,22,.65),0 6px 18px rgba(0,0,0,.5);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  animation:lm-label-pop .5s cubic-bezier(.2,.9,.3,1.3) both;
}
.lm-route-label-icon{
  width:30px;height:30px;border-radius:50%;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#fdba74,#f97316);
  box-shadow:0 0 10px rgba(249,115,22,.9);
}
.lm-route-label-num{
  font-size:24px;font-weight:800;letter-spacing:.5px;color:#fff;
  font-variant-numeric:tabular-nums;
}
.lm-route-label-unit{
  font-size:16px;font-weight:700;color:#fdba74;
}
@keyframes lm-label-pop{
  0%{opacity:0;transform:translate(-50%,0) scale(.6)}
  100%{opacity:1;transform:translate(-50%,0) scale(1)}
}
@media (max-width:600px){
  .lm-route-label{padding:7px 16px 7px 10px;gap:8px}
  .lm-route-label-icon{width:26px;height:26px}
  .lm-route-label-num{font-size:20px}
  .lm-route-label-unit{font-size:14px}
}

/* صفوف إحداثيات الكاميرا داخل حاوية الزوم والميلان */
.map-zoom-tilt-hud{min-width:170px}
.map-zoom-tilt-hud .hud-coord-row{
  border-top:1px solid rgba(15,23,42,.10);
  padding-top:6px;
}
.map-zoom-tilt-hud .hud-coord-row ~ .hud-coord-row{border-top:0;padding-top:0}
.map-zoom-tilt-hud .hud-coord{
  font-size:14px;
  min-width:6.4em;
}

/* زر «تحديد المعالم» على الموبايل (داخل أزرار الخدمات) */
#landmarksServiceBtn.active{box-shadow:0 0 0 3px rgba(249,115,22,.25)!important;filter:brightness(1.05)}

/* ===== وضع المعالم: إبراز خطوط المخطط البيضاء (على زوم 14–17 تكون رفيعة وباهتة) ===== */
body.landmarks-mode .leaflet-limitsPane path{
  stroke:#fff!important;
  stroke-opacity:1!important;
  stroke-width:5px!important;
  filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px rgba(255,255,255,.85));
}
body.landmarks-mode .leaflet-plotsPane path{
  stroke:#fff!important;
  stroke-opacity:1!important;
  stroke-width:3px!important;
  fill-opacity:.8!important;
}
body.landmarks-mode .leaflet-sidewalkPane path,
body.landmarks-mode .leaflet-pedestrianPane path{
  stroke-opacity:1!important;
  stroke-width:3px!important;
}
/* تخفيف الضباب العلوي حتى لا يغطي المخطط والدبابيس */
body.landmarks-mode .map-tilt-haze{opacity:.3!important;}

/* زر 3D (رابط) بجانب زر المعالم */
a.view3d-link{text-decoration:none;box-sizing:border-box;cursor:pointer;}
a.view3d-link:hover{text-decoration:none;}
a.quick-action-btn.view3d-link{display:flex;align-items:center;justify-content:center;}


/* أزرار الميلان والزوم أسفل لوحة القيم */
.map-step-ctrl{
  display:flex!important;flex-direction:column;gap:8px;
  margin:0 12px 12px!important;padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(15,23,42,.12)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.20)!important;
  backdrop-filter:blur(14px);
  direction:rtl;font-family:inherit;z-index:1200!important;
}
.map-step-ctrl .step-row{display:flex;align-items:center;gap:8px}
.map-step-ctrl .step-label{flex:1;font-size:13px;font-weight:700;color:#64748b}
.map-step-ctrl .step-btn{
  width:38px;height:38px;border:0;border-radius:10px;cursor:pointer;
  background:#0f172a;color:#fff;font-size:22px;font-weight:800;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  touch-action:manipulation;user-select:none;-webkit-user-select:none;
}
.map-step-ctrl .step-btn:active{background:#f97316}

.map-step-ctrl .step-slider-row{padding-top:2px}
.map-step-ctrl .zoom-slider{width:100%;min-width:150px;direction:ltr;accent-color:#f97316;touch-action:pan-x}

/* دبابيس عنوانها أسفل الدبوس (ممشى حسين العلي · مدينة المبرز) */
.lm-marker.lm-caption-below .lm-caption{
  top: 74px;
  bottom: auto;
  margin: 0;
}

/* إخفاء حاويتي «الزوم/الميلان/الاتجاه/الإحداثيات» و«أزرار الميلان والزوم» (تبقى تعمل داخلياً دون عرض) */
html body .map-zoom-tilt-hud,
html body .map-step-ctrl{
  display:none!important;
}
