#map { height: 600px; width: 100%; }
#controls { margin: 10px; padding: 10px; background-color: #fff; border-radius: 5px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
#controls input, #controls select { padding: 8px; margin: 5px; }
button { padding: 10px 15px; background-color: #007bff; color: white; border: none; cursor: pointer; border-radius: 5px; }
button:hover { background-color: #0056b3; }
/* إضافة بعض التنسيق العام */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* تعيين الخريطة */
#map {
    height: 100vh;
    width: 100%;
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap");

/* تنسيق النص الذي سيتم طباعته على القطعة */
.land-label .label {
    font-size: 16px; /* حجم الخط */
    font-weight: bold; /* خط عريض */
    color: rgb(255, 255, 255); /* اللون */
    text-align: center; /* محاذاة النص في المنتصف */
    background-color: rgba(255, 255, 255, 0.7); /* خلفية شفافة */
    padding: 5px;
    border-radius: 5px;
}
/* تنسيق الأزرار */
#header-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* لضمان ظهور الأزرار فوق الخريطة */
    display: flex;
    gap: 10px;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap");
/* جعل الأزرار طبقة عائمة فوق الخريطة */
/* موضع الحاوية في أسفل الصفحة، أفقياً متراصة */
.container {
    position: absolute;
    bottom: 20px;              /* المسافة من أسفل الصفحة */
    left: 50%;
    transform: translateX(-50%);
    display: flex;             /* ترتيب أفقي */
    gap: 10px;                 /* المسافة الأفقية بين الأزرار */
    justify-content: center;
    align-items: center;
    z-index: 1000;             /* لضمان ظهورها فوق الخريطة */
    padding: 8px 15px;
    border-radius: 15px;
    background: rgba(255,255,255,0.7);
}

/* تنسيق عام لكل زر */
.container .btn {
    position: relative;
    width: 140px;              /* عرض موحّد لكل زر */
    height: 40px;              /* ارتفاع موحّد لكل زر */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;                 /* المسافة الداخلية تُعتمد من gap / padding */
    transition: 0.5s;
}

/* الرابط بداخل الزر */
.container .btn a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;           /* حجم خط صغير */
    padding: 10px;
    color: #1a1919;            /* لون النص */
    background: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.034);
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 1;
    transition: 0.5s;
}

.container .btn:hover a {
    letter-spacing: 3px;       /* توسعة حرفية عند التمرير */
}

/* التأثير الشرائطي (before) */
.container .btn a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    transform: skewX(45deg) translate(0);
    transition: 0.5s;
    filter: blur(0px);
}

.container .btn:hover a::before {
    transform: skewX(45deg) translate(200px);
}

/* التأثير الشرائطي (after) */
.container .btn::before,
.container .btn::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 30px;
    height: 10px;
    background: #f00;
    border-radius: 10px;
    transition: 0.5s;
    transition-delay: 0.5s;
    transform: translateX(-50%);
}

/* الجزء السفلي للزر عند التمرير */
.container .btn:hover::before {
    bottom: 0;
    height: 50%;
    width: 80%;
    border-radius: 30px;
}

/* الجزء العُلوي للزر عند التمرير */
.container .btn:hover::after {
    top: 0;
    height: 50%;
    width: 80%;
    border-radius: 30px;
}


/* تلوين كل زر حسب ترتيبه داخل الحاوية */
/* زر أول: “متاح” باللون الأخضر */
.container .btn:nth-child(1)::before,
.container .btn:nth-child(1)::after {
    background: #5ea250;
    box-shadow: 0 0 5px #5ea250, 0 0 15px #5ea250, 0 0 30px #5ea250, 0 0 60px #5ea250;
}
/* زر ثاني: “محجوز” باللون البرتقالي */
.container .btn:nth-child(2)::before,
.container .btn:nth-child(2)::after {
    background: #e0de62; /* برتقالي */
    box-shadow: 0 0 5px #e0de62, 0 0 15px #e0de62, 0 0 30px #e0de62, 0 0 60px #e0de62;
}

/* زر ثالث: “مباع” باللون الأحمر */
.container .btn:nth-child(3)::before,
.container .btn:nth-child(3)::after {
    background: #cd5647; /* أحمر مشابه للكود السابق */
    box-shadow: 0 0 5px #cd5647, 0 0 15px #cd5647, 0 0 30px #cd5647, 0 0 60px #cd5647;
}

/* زر رابع: “الكل” (يمكن أن يكون لونًا محايدًا مثل الرمادي أو أزرق غامق) */
.container .btn:nth-child(4)::before,
.container .btn:nth-child(4)::after {
    background: #3a46a4; /* أزرق/رمادي غامق */
    box-shadow: 0 0 5px #3a46a4, 0 0 15px #3a46a4, 0 0 30px #3a46a4, 0 0 60px #3a46a4;
}

/* إن كنت تحتاج زر خامس (للاستثمار مثلاً)، يمكنك إضافة: */
/*
.container .btn:nth-child(5)::before,
.container .btn:nth-child(5)::after {
    background: #2980B9; 
    box-shadow: 0 0 5px #2980B9, 0 0 15px #2980B9, 0 0 30px #2980B9, 0 0 60px #2980B9;
}
*/


.status-btn {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* إضافة ظل خفيف */
}

.status-btn.available {
    background-color: rgb(60, 102, 60);
}

.status-btn.sold {
    background-color: rgb(145, 52, 52);
}

.status-btn.reserved {
    background-color: rgba(223, 223, 66, 0.959);
}

.status-btn.investment {
    background-color: blue;
}

.status-btn:hover {
    opacity: 0.8;
}

/* جعل عناصر البحث تظهر فوق الخريطة */
#controls {
    position: absolute;
    top: 80px;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 5px;
    display: flex;
    gap: 8px;
    flex-direction: column;

    align-items: center;
}

#controls input,
#controls select {
    padding: 5px;
    font-size: 14px;
}

#controls button {
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
}

.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.leaflet-interactive {
    cursor: pointer;
}


/* التأكد من أن الخريطة تغطي كامل الصفحة */
#map {
    height: 100vh; /* ملء كامل الشاشة */
    position: relative;
}


/* تنسيق الشعار في أقصى اليمين */
/* تنسيق الشعار في أقصى اليمين */
#header-logo {
    position: fixed; /* تحديد الموقع بشكل ثابت */
    top: 10px; /* المسافة من الأعلى */
    right: 10px; /* المسافة من اليمين */
    z-index: 1000; /* التأكد من ظهور الشعار فوق المحتوى */
    margin: 0; /* إزالة الهوامش */
    padding: 0; /* إزالة الحشوات */
}

/* تحديد حجم ثابت للشعار */
#header-logo img {
    width: 220px; /* عرض ثابت للشعار */
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
}

/* نقاط توقف لضبط حجم الشعار على الأجهزة المتوسطة والصغيرة */
@media (max-width: 768px) {
    #logo img {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    #logo img {
        max-width: 70px;
    }
}


/* تعديل النافذة المنبثقة لتتناسب مع .mdl */
/* جعل النافذة المنبثقة تغطي الطول بالكامل ولكن تبقى شفافة */



.popup-container {
    position: fixed;
    top: 0;
    right: -400px; /* تبدأ مخفية خارج الشاشة */
    width: 350px; /* تثبيت العرض */
    height: 75%; /* جعل الطول يأخذ كامل الشاشة */
    background: #FEFEFE;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 20px 0px;
    transition: transform 0.4s ease-in-out;
    top: 10%;
    direction: rtl;
    text-align: right;
    transform: translateX(100%);
    z-index: 1000;
    display: flex;
   
    align-items: center;
    border-radius: 20px;
    overflow-y: auto; /* إضافة تمرير إذا كان المحتوى طويلًا */
}

.popup-container.open {
    transform: translateX(0);
    right: 0;
}

.popup-content {
    width: 95%; /* زيادة التناسق مع الخلفية */
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 5px;
}

.popup-content h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color:#877359;
}

.popup-content p {
    font-size: 15px;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.8;
    text-align:center;
}

.popup-content .info {
    padding: 15px;
  }

  .popup-content .piece-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .popup-content .piece-info div {
    flex: 1;
    text-align: center;
  }
 .popup-content .piece-info .price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
  }


  .popup-content .piece-info .price::after {
    content: "م";
    display: inline-block;
    background: url('images/sr.png') no-repeat center;
    background-size: contain; /* أو cover حسب الحاجة */
    width: 20px;
    height: 20px;
   
    margin-right: 5px;
    flex-shrink: 0;
  }
  
  /* تفاصيل القطعة */
  .popup-content .details {
    margin-bottom: 15px;
    line-height: 1.6;
  }
.popup-content .crook-image {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid #bf8b47cf; /* إطار ذهبي */
    box-sizing: border-box;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#close-popup {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 24px;
    color: black;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}

#close-popup:hover {
    background: rgba(255, 0, 0, 0.4);
    color: white;
}

.whatsapp-button {
    display: block;
    text-align: center;
    background: linear-gradient(to right, #316243, #3b644c);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-button i {
    font-size: 18px;
    margin-right: 10px;
}

.whatsapp-button:hover {
    background: #548066ee;
}

@media (max-width: 768px) {
    .popup-container {
        width: 320px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 280px;
    }

    #close-popup {
        font-size: 18px;
        top: 10px;
        left: 10px;
    }
}











  /*btn*/

  .plot-number {
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* جعل الرقم دائريًا */
    text-align: center;
    line-height: 30px;
}




/*new social*/

/* جعل الأيقونات طبقة عائمة فوق الخريطة */
.social-icons {
    position: fixed;
    left: 20px; /* تحديد المسافة من اليسار */
    top: 50%;
    transform: translateY(-50%); /* توسيط القائمة في منتصف الشاشة */
    display: flex;
    flex-direction: column; /* ترتيب الأيقونات عموديًا */
    gap: 15px; /* مسافة بين الأيقونات */
    z-index: 1000; /* لضمان ظهورها فوق الخريطة */
}

/* ضبط تنسيق الأيقونات */
.glassIco {
    --width: 50px; /* تصغير حجم الأيقونات */
    width: var(--width);
    height: var(--width);
    color: #fff;
    font-size: 20px;
    border-radius: 10px;
    background:  rgba(133, 180, 201, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

/* تأثير اللمعان عند التحويم */
.glassIco:hover {
    transform: translateY(-5px);
}

/* ضبط تأثيرات الأيقونات 
.glassIco:before {
    content: "";
    position: absolute;
    display: block;
    width: 50%;
    height: 100%;
    background: rgba(133, 180, 201, 0.5);
    filter: blur(0px);
    transition: 400ms;
    transform: skewX(45deg) translateX(calc(var(--width) + 50%));
}

.glassIco:hover:before {
    transform: skewX(45deg) translateX(calc(var(--width) * -1 - 50%));
}*/

.glassIco > * {
    opacity: 0.8;
}
/* التحكم في المظهر على الأجهزة الصغيرة */
@media (max-width: 1024px) {
    .container .btn {
        width: 150px; /* تصغير الأزرار في الأجهزة اللوحية */
    }
  
}

@media (max-width: 768px) {
    .container .btn {
        width: 120px; /* تصغير الأزرار في الأجهزة اللوحية */
    }
}


/* تنسيق النص المعروض على الخريطة */
.street-label {
    background-color: transparent;
    border: none;
    text-align: center;
}

.street-label-text {
    font-size: 14px;
    color: #ffffff63;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
}


/* CSS لضبط حجم الصورة */
/* CSS لضبط حجم الصورة */
/* CSS لضبط حجم الصورة "مباع" بحيث تكون مناسبة لجميع الأجهزة */
.sold-image {
    width: 100%;  /* تأخذ عرض الحاوية بالكامل */
    max-width: 300px; /* تحديد الحد الأقصى للعرض */
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    display: block; /* ضمان أن الصورة لا تؤثر على ترتيب المحتويات الأخرى */
    margin: 0 auto; /* لضبط الصورة في المنتصف */
}

/* تحسين العرض على الأجهزة المحمولة */
@media (max-width: 768px) {
    .sold-image {
        max-width: 80%;  /* تقليص حجم الصورة على الأجهزة المحمولة */
    }
}


/* زر واتساب في أسفل يمين الخريطة */
.whatsapp-button1 {
    position: fixed;
    bottom: 20px; /* المسافة من الأسفل */
    right: 20px; /* المسافة من اليمين */
    z-index: 1000;
}

.whatsapp-button1 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* لون واتساب */
    color: white;
    font-size: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
}

.whatsapp-button1 a:hover {
    background-color: #1ebe57; /* لون أغمق عند التمرير */
}

