@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap");

/* ==================================================
   GLOBAL
================================================== */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/* ==================================================
   MAP LAYOUT
================================================== */
#map{
  height: 100vh;
  width: 100%;
  position: relative;
}

.leaflet-interactive{ cursor: pointer; }
.leaflet-popup-content img{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==================================================
   HEADER / LOGO
================================================== */
#header-logo{
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1200;
  margin: 0;
  padding: 0;
}
#header-logo img{
  width: 220px;
  height: auto;
}

/* (Optional) smaller logo if you ever switch to #logo */
@media (max-width: 768px){
  #logo img{ max-width: 90px; }
}
@media (max-width: 480px){
  #logo img{ max-width: 70px; }
}

/* ==================================================
   TOP SEARCH CONTROLS (if used)
================================================== */
#controls{
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;

  width: min(560px, calc(100% - 24px));
  background: rgba(255,255,255,0.80);
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);

  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
#controls input,
#controls select{
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  outline: none;
}
#controls button{
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

/* ==================================================
   BOTTOM FILTER BUTTONS (footer .container)
================================================== */
.container{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 1200;

  width: min(720px, calc(100% - 24px));
  padding: 12px 12px;
  border-radius: 18px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

/* each button wrapper */
.container .btn{
  position: relative;
  width: 160px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* anchor button */
.container .btn a{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  border-radius: 18px;

  background: rgba(255,255,255,0.40);
  color: #1a1919;
  font-size: 14px;
  font-weight: 700;

  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.container .btn a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.50);
}
.container .btn a:active{ transform: scale(0.99); }

/* active outline (use .is-active on <a>) */
.container .btn a.is-active{
  outline: 2px solid rgba(191,139,71,0.95);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}

/* mobile layout: 3 columns */
@media (max-width: 640px){
  footer .container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    bottom: 14px;
  }
  .container .btn{
    width: 100%;
    height: 38px;
  }
  .container .btn a{
    font-size: 12.5px;
    border-radius: 14px;
  }
}

/* ==================================================
   MAP LEGEND (left panel) - hidden on mobile
================================================== */
.map-legend{
  background: rgba(255,255,255,0.95);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.9;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  direction: rtl;
}
.map-legend h4{ margin:0 0 6px; font-size:14px; }
.map-legend hr{ border:none; border-top:1px solid rgba(0,0,0,0.12); margin:8px 0; }
.leg-title{ font-weight:800; margin:6px 0 2px; color:#333; }
.leg-box{ display:inline-block; width:14px; height:14px; border-radius:3px; margin-left:6px; }

.u-res{ background:#3FAE5A; }
.u-com{ background:#2F80ED; }
.u-mix{ background:#F2994A; }
.u-park{ background:#27AE60; }
.u-edu{ background:#9B51E0; }
.u-health{ background:#EB5757; }
.u-rel{ background:#56CCF2; }

.leg-line{
  display:inline-block;
  width:26px;
  height:0;
  border-top:3px solid rgba(0,0,0,0.55);
  margin-left:6px;
}
.s-av{ border-top-style: solid; }
.s-res{ border-top-color: rgba(241,196,15,0.95); border-top-style: dashed; }
.s-sol{ border-top-color: rgba(145,52,52,0.95); border-top-style: dashed; opacity: 0.6; }

@media (max-width: 768px){
  .map-legend{ display: none !important; }
}

/* ==================================================
   LABELS (Street widths, Plot numbers)
================================================== */
.street-label{
  background-color: transparent;
  border: none;
  text-align: center;
}
.street-label-text{
  font-size: 14px;
  color: #ffffff63;
  font-weight: 800;
  padding: 5px;
  border-radius: 5px;
}

/* Road label "شارع عرض ...م" */
.road-label span{
  display: inline-block;
  direction: rtl;
  white-space: nowrap;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffffdd;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  transform-origin: center;
  pointer-events: none;
}

/* Plot number bubbles */
.plot-number{
  background: rgba(0,0,0,0.65);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: auto;
}

/* Phase 2 hatch overlay */
.phase2-hatch{
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.00) 0px,
    rgba(255,255,255,0.00) 7px,
    rgba(255,255,255,0.22) 7px,
    rgba(255,255,255,0.22) 11px
  );
  pointer-events: none;
}

/* ==================================================
   SOCIAL ICONS (left vertical)
================================================== */
.social-icons{
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1200;
}
.glassIco{
  --width: 50px;
  width: var(--width);
  height: var(--width);
  color: #fff;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(133, 180, 201, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform .2s ease;
}
.glassIco:hover{ transform: translateY(-4px); }
.glassIco > *{ opacity: 0.85; }

/* ==================================================
   FLOATING WHATSAPP (bottom right)
================================================== */
.whatsapp-button1{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
}
.whatsapp-button1 a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  font-size: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-button1 a:hover{
  background-color: #1ebe57;
  transform: translateY(-2px);
}

/* ==================================================
   POPUP (Parcel details) - Clean single source of truth
   - Desktop: right floating card
   - Mobile: bottom sheet
   - White background
   - Scroll only in calc result
================================================== */
.popup-container{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  background: rgba(0,0,0,0.20);
}
.popup-container.open{ display: flex; }

/* RTL inside popup */
.popup-container, .popup-container *{
  direction: rtl;
  text-align: right;
}

/* Desktop layout */
@media (min-width: 769px){
  .popup-container.open{
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 24px 90px 24px; /* leave space for floating WhatsApp */
  }
  .popup-container > .popup-content{
    width: 440px;
    max-width: calc(100vw - 48px);
  }
}

/* Mobile bottom sheet */
@media (max-width: 768px){
  .popup-container.open{
    align-items: flex-end;
    justify-content: center;
    padding: 12px 12px 90px; /* space for floating WhatsApp */
  }
  .popup-container > .popup-content{
    width: min(560px, 100%);
    max-height: 82vh;
  }
  .popup-container > .popup-content::before{
    content:"";
    display:block;
    width: 56px;
    height: 6px;
    margin: 10px auto 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.14);
  }
}

/* Popup card */
.popup-container > .popup-content{
  position: relative;
  height: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 55px rgba(0,0,0,0.22);
  overflow: visible; /* no global scroll */
}

/* Close button */
#close-popup{
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  color: #111;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: transform .15s ease, background .15s ease;
}
#close-popup:hover{
  background: rgba(0,0,0,0.12);
  transform: scale(1.05);
}

/* Title (assumes h1 directly inside popup-content) */
.popup-container > .popup-content > h1{
  margin: 0;
  padding: 20px 18px 12px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
}

/* Body wrapper */
.popup-body{
  padding: 0 18px 18px;
  overflow: visible;
}

/* Details grid */
.details{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: 14px;
}
@media (max-width: 640px){
  .details{ grid-template-columns: 1fr; }
}

.detail-row{
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.6;
}
.detail-row b{
  color: #6b5b46;
  display: inline-block;
  min-width: 95px;
}
.detail-row.full{ grid-column: 1 / -1; }

/* Calc area */
.calc-wrap{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* IMPORTANT: scroll only here if long */
.calc-result, #calc-total-result{
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;

  max-height: 220px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px){
  .calc-result, #calc-total-result{ max-height: 180px; }
}

.calc-btn{
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: #927917;
  color: #fff;
}
.calc-btn:active{ transform: scale(0.99); }

/* ==================================================
   PRICE BREAKDOWN (used inside calc result)
================================================== */
.price-breakdown{
  direction: rtl;
  text-align: right;
  display: grid;
  gap: 10px;
}
.pb-row, .pb-total{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px 12px;
}
.pb-label{
  font-weight: 900;
  color: #5c4b35;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.pb-label small{
  font-weight: 700;
  color: rgba(0,0,0,0.45);
}
.pb-val{
  font-weight: 900;
  color: #111;
  white-space: nowrap;
}
.pb-val small{
  font-weight: 700;
  color: rgba(0,0,0,0.5);
  margin-right: 6px;
}
.pb-divider{ height: 1px; background: rgba(0,0,0,0.10); margin: 4px 0; }
.pb-total{
  background: rgba(146,121,23,0.10);
  border: 1px solid rgba(146,121,23,0.22);
}
.pb-total .pb-val{ color: #6b5b46; font-size: 18px; }
.pb-note{
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  text-align: center;
  margin-top: 2px;
}

/* ==================================================
   FACILITY POPUP (icons/images on map)
================================================== */
.facility-popup{
  direction: rtl;
  text-align: center;
  padding: 8px 6px;
}
.facility-popup h2{
  margin: 10px 0 6px;
  font-size: 18px;
  color: #2c2c2c;
}
.facility-popup p{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
.facility-ico{
  width: 64px;
  height: 64px;
  margin: 8px auto 0;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.06);
  font-size: 28px;
  color: #2f80ed;
}
.facility-img{
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(0,0,0,0.08);
}

/* ==================================================
   SOLD IMAGE (if used)
================================================== */
.sold-image{
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px){
  .sold-image{ max-width: 80%; }
}

/* =========================
   FORCE POPUP RIGHT (fix RTL flex-end bug)
   ضع هذا آخر style.css
========================= */

/* خَلِّ محاذاة الحاوية LTR عشان flex-end = يمين */
.popup-container{
  direction: ltr !important;
}

/* لكن داخل البوب نفسه خلي كل شيء RTL */
.popup-container .popup-content,
.popup-container .popup-content *{
  direction: rtl !important;
  text-align: right !important;
}

/* ديسكتوب: البوب يمين الصفحة */
@media (min-width: 769px){
  .popup-container.open{
    display: flex !important;
    justify-content: flex-end !important; /* ✅ يمين */
    align-items: center !important;
    padding: 24px 32px 120px !important;
  }

  /* ضمان إضافي: ثبته يمين */
  .popup-container .popup-content{
    position: relative !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* جوال: مسافة تحت (زر واتساب) */
@media (max-width: 768px){
  .popup-container.open{
    padding-bottom: 90px !important;
  }
}

/* سكرول فقط لنتيجة الحساب */
#calc-total-result{
  max-height: 220px;
  overflow-y: auto;
}
/* =========================
   POPUP BUTTONS (Unified)
========================= */
.popup-btn{
  width: 100%;
  min-height: 52px;              /* نفس الارتفاع للجميع */
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 16px;
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  transition: transform .15s ease, filter .15s ease;
}

.popup-btn:active{ transform: scale(0.99); }
.popup-btn:hover{ filter: brightness(1.03); }

.popup-btn i{ font-size: 20px; }

/* زر الحساب (ذهبي) */
.popup-btn--gold{
  background: #927917;
  color: #fff;
}

/* زر الواتس (نفس الشكل لكن أخضر) */
.popup-btn--whatsapp{
  background: #2f5d45;
  color: #fff;
}/* =========================
   POPUP SPACING + CENTERED LAYOUT
   ضع هذا آخر style.css
========================= */

.popup-content{
  /* فراغات خارجية داخل الكرت */
  padding: 26px 22px 22px !important;  /* فوق | يمين/يسار | تحت */
  box-sizing: border-box !important;

  /* ترتيب المحتوى */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;      /* يخلي المحتوى بالنص */
  gap: 14px !important;               /* مسافة مريحة بين الأقسام */
}

/* جسم المحتوى يمسك عرض ثابت داخل البوب عشان ما يبان مرمي */
.popup-body{
  width: 100% !important;
  max-width: 420px !important;        /* يخلي المحتوى مرتب للعين */
  margin: 0 auto !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* العنوان بالنص + مسافة بعده */
.popup-content h1,
.popup-content h2{
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 6px 0 !important;
}

/* خلي مربعات التفاصيل Grid مرتب (عمودين) */
.popup-body .details-grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* لو عندك الحالة (سطر كامل) */
.popup-body .detail-full{
  grid-column: 1 / -1 !important;
}

/* فراغ بسيط فوق الأزرار */
.popup-body .popup-actions{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 6px !important;
}

/* زر الإغلاق لا يخرب المحاذاة */
#close-popup{
  top: 14px !important;
  left: 14px !important;
}



/* ==================================================
   FINAL POPUP OVERRIDES (fix: jump + stuck overlay)
   ضع هذا آخر ملف style.css
================================================== */

/* لا يظهر إلا عند وجود .open */
.popup-container{ display: none !important; }
.popup-container.open{ display: flex !important; }

/* خلّ محاذاة الحاوية LTR عشان flex-end = يمين */
.popup-container{ direction: ltr !important; }

/* داخل الكرت RTL */
.popup-container .popup-content,
.popup-container .popup-content *{
  direction: rtl !important;
  text-align: right !important;
}

/* Desktop: يمين الصفحة + بدون قفز عند الإغلاق */
@media (min-width: 769px){
  .popup-container{
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding: 24px 32px 120px !important; /* مساحة أسفل لزر الواتساب */
  }
  .popup-container .popup-content{
    width: 440px !important;
    max-width: calc(100vw - 48px) !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* Mobile: Bottom sheet */
@media (max-width: 768px){
  .popup-container{
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 12px 12px 90px !important;
  }
  .popup-container .popup-content{
    width: min(560px, 100%) !important;
    max-height: 82vh !important;
  }
}
/* =========================
   SPACE BETWEEN POPUP BUTTONS
========================= */

/* إذا زر الواتساب جاء بعد زر الحساب مباشرة */
.popup-btn--gold + .popup-btn--whatsapp{
  margin-top: 14px !important;  /* غيّرها 18px لو تبغى أكبر */
}

/* (اختياري) لو فيه عناصر ثانية بين الزرين، خله يمسكه برضو */
#popup-details .popup-btn--whatsapp{
  margin-top: 14px !important;
}
/* =========================
   PRIME PARCEL (POPUP ONLY)
========================= */

/* السطر التعريفي */
.prime-line{
  margin: 6px 18px 0;
  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(156,124,25,0.12);
  border: 1px solid rgba(156,124,25,0.45);

  color: #6b5512;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
}

/* Glow ذهبي للبوب كامل */
.popup-container.open .popup-content:has(.prime-line){
  box-shadow:
    0 0 0 1px rgba(156,124,25,0.35),
    0 18px 55px rgba(0,0,0,0.22),
    0 0 28px rgba(156,124,25,0.45);
}
/* FIX: keep popup top visible on desktop */
@media (min-width: 769px){
  .popup-container.open{
    align-items: flex-start !important; /* بدل center */
  }
}
/* =========================
   FIX POPUP HEIGHT + CLOSE BUTTON
========================= */

/* حد أقصى لطول البوب */
@media (min-width: 769px){
  .popup-container .popup-content{
    max-height: calc(100vh - 80px) !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* خلي جسم المحتوى يسكرول */
#popup-details{
  overflow-y: auto;
  padding-bottom: 12px;
}

/* تأكيد ظهور زر الإغلاق دائمًا */
#close-popup{
  position: sticky;
  top: 12px;
  z-index: 20;
}
/* =========================
   PRIME PARCEL GLOW (GOLD - ON TOP)
========================= */
/* =========================
   PRIME PARCEL GLOW (GOLD - SOFT & ELEGANT)
========================= */

.leaflet-interactive.prime-parcel{
  /* حد ذهبي ناعم */
  stroke: #d8c690 !important;        /* ذهبي هادئ */
  stroke-width: 3.2px !important;    /* أنحف شوي */

  /* وهج خفيف جدًا – راقي */
  filter:
    drop-shadow(0 0 2px rgba(216,198,144,0.55))
    drop-shadow(0 0 6px rgba(216,198,144,0.35))
    drop-shadow(0 0 12px rgba(216,198,144,0.22));

  /* يرسم الحد فوق التعبئة */
  paint-order: stroke fill;
}
/* =========================
   FACILITY ICON ON PARCEL
========================= */

.parcel-facility-icon{
  pointer-events: none;
}

.parcel-facility-icon i{
  font-size: 14px;
  color: #ffffff;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}



/* =========================
   FACILITY ICONS (ON MAP)
========================= */
.facility-map-icon{
  pointer-events: none;
}
.facility-map-icon i{
  font-size: 15px;
  color: #ffffff;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
/* =========================
   ROAD LABELS - BIG & CLEAR
========================= */

.road-label span{
  display: inline-block;
  white-space: nowrap;

  font-weight: 900;
  letter-spacing: 0.3px;
  color: #1b1b1b;

  /* شكل لافتة واضح */
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;

  /* وضوح فوق الخريطة */
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);

  /* يحسن اتجاه العربية */
  direction: rtl;
  unicode-bidi: plaintext;
}

/* اختياري: خليها أوضح أكثر فوق الخلفيات القوية */
.road-label{
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.road-label span{
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 9px;          /* كان كبير */
  padding: 4px 8px;         /* كان عريض */
  border-radius: 14px;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 16px;
  white-space: nowrap;
  box-shadow:
    0 2px 6px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.15);
  pointer-events: none;
}


/* اطوال اضلاع القطعة */
.edge-length-label span{
  display:inline-block;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  color: #111;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform-origin: center center;
}
.parcel-mini-wrap{
  margin: 10px 0 14px;
  border-radius: 18px;
  overflow: hidden;
}
.parcel-mini-svg{
  display:block;
  width: 100%;
  height: auto;
}
.front-road-box{
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg,#fff,#f6f6f6);
  border: 1px solid rgba(0,0,0,0.08);
}

.front-road-title{
  font-size: 12px;
  opacity: .75;
  margin-bottom: 4px;
}

.front-road-name{
  font-size: 15px;
  font-weight: 900;
  color: #111;
}

.front-road-width{
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

/* شارع تجاري */
.front-road-box.commercial{
  border-right: 6px solid #c62828;
}
/* صندوق "واجهة على شارع" */
.front-road-box{
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  text-align: center;
}
.front-road-box.commercial{ border-right: 8px solid #b71c1c; }

.front-road-title{ font-size: 12px; opacity:.75; margin-bottom:6px; }
.front-road-name{ font-size: 18px; font-weight: 900; }
.front-road-width{ font-size: 16px; font-weight: 800; margin-top: 6px; }

/* صندوق الرسم (SVG) */
.parcel-mini-wrap{
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
.parcel-mini-svg{
  display:block;
  width:100%;
  height:auto;
}
