html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: Al-Jazeera-Arabic-Regular;
    font-size: small;
}
#custom-box {
  position: fixed;
  bottom: 0px;
  left: 0.7%;
  bottom: 8px; /* تحديد الموقع من الجانب الأيسر */
  padding: 10px;
  background-color: rgba(0, 60, 136, 0.8);
  border: 20px rgba(149, 173, 204, 0.8);
  cursor: pointer;
  text-align: center;
  direction: rtl;
  font-family: "Jazeera", sans-serif;
  color: #ddd;
  width: 2%;
  transition: width 0.5s;
}

#custom-box.open {
  left: 10px; /* الجانب الأيسر عند الفتح */
  right: auto; /* إلغاء الخاصية right عند الفتح */
  width: calc(100% - 60%);
}

#message-box {
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(0, 60, 136, 0.8);
  border: 20px rgba(149, 173, 204, 0.8);
  width: 100%;
}
th, td {
    vertical-align: top;
    text-align: right;
}

#map {
    width: 100%;
    height: 100%;
}

.ol-feature-list {
    position: relative;
  }
  .ol-control.ol-feature-list {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  .ol-control.ol-feature-list > button:before {
    content: "";
    position: absolute;
    width: 60%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2.5px;  
    background-image: linear-gradient(90deg, currentColor, transparent);
  }
  
  .ol-control.ol-feature-list.ol-collapsed {
    bottom: .5em;
    left: .5em;
    width: auto;
  }
  .ol-feature-list .ol-content {
    background-color: #f4f6f8;
    clear: both;
  }
  .ol-feature-list.ol-collapsed .ol-content > * {
    display: none;
  }
  .ol-feature-list .ol-header {
    position: relative;
    overflow: hidden;
  }
  .ol-feature-list.ol-collapsed .ol-header {
    display: block;
  }
  
  .ol-control.ol-feature-list > button,
  .ol-control.ol-feature-list.ol-collapsed .ol-content {
    display: none;
  }
  .ol-control.ol-feature-list.ol-collapsed > button {
    display: block;
  }
  
  .ol-feature-list .ol-sizer {
    width: 100%;
    height: 1px;
    cursor: row-resize;
    background-color: #ccc;
    position: relative;
    border: 1px solid #f4f6f8;
    border-width: 1px 0;
  }
  .ol-feature-list.ol-bottom .ol-sizer {
    position: absolute;
    bottom: 0;
  }
  .ol-feature-list .ol-sizer:before {
    content: "";
    width: 1.5em;
    height: 4px;
    background-color: #ddd;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    border: 3px solid transparent;
    border-width: 3px 1.5em;
    box-shadow: inset 0 -1px #aaa, inset 0 1px #aaa;
    border-radius: 2px;
  }
  .ol-feature-list .ol-sizer:hover:before {
    background-color: #ccc;
  }
  
  .ol-feature-list .ol-content .ol-header p {
    display: inline-block;
    margin: 0.1em .25em;
    vertical-align: middle;
    white-space: nowrap;
    width: calc(100% - 2em);
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .ol-feature-list .ol-content .ol-header .ol-buttons {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .ol-feature-list .ol-content .ol-header button {
    position: relative;
    border: 0;
    background: transparent;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    margin: 0 .2em;
    box-sizing: border-box;
  }
  .ol-feature-list .ol-content .ol-header button.ol-closebox:before,
  .ol-feature-list .ol-content .ol-header button.ol-closebox:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: currentColor;
    width: .1em;
    height: 1em;
    display: block;
    font-style: normal;
  }
  .ol-feature-list .ol-content .ol-header button.ol-closebox:after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .ol-feature-list.ol-collapsed .ol-content .ol-header button.ol-closebox {
    border: 1px solid currentColor;
  }
  .ol-feature-list.ol-collapsed .ol-content .ol-header button.ol-closebox:before {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .ol-feature-list.ol-collapsed .ol-content .ol-header button.ol-closebox:after {
    display: none;
  }
  
  .ol-feature-list .ol-scroll-container {
    overflow: auto;
    height: 10em;
    min-height: 3em;
  }
  
  .ol-feature-list table {
    background-color: #fff;
    border-collapse: collapse;
    white-space: nowrap;
    position: relative;
  }
  .ol-feature-list table thead {
    background-color: #f4f6f8;
    position: sticky;
    top: 0;
    overflow: hidden;
  }
  /* Fixed height */
  .ol-feature-list table tr {
    height: 1.4em;
    box-sizing: border-box;
  }
  .ol-feature-list table tbody tr:hover {
    background-color: #eee;
    cursor: pointer;
  }
  
  .ol-feature-list table tbody tr.ol-selected {
    background-color: #eee;
  }
  
  .ol-feature-list table td {
    border: 0 solid #ddd;
    border-width: 0 0 1px 1px;
    overflow: hidden;
    width: 100px;
  }
  .ol-feature-list table td.number {
    text-align: right;
  }
  .ol-feature-list table td.undefined {
    text-align: center;
    background-color: #fafafa;
  }
  
  .ol-feature-list thead td {
    position: relative;
  }
  .ol-feature-list thead td.sort {
    padding-right: 1.5em;
  }
  
  .ol-feature-list thead td p {
    margin: 0;
    display: inline-block;
  }
  .ol-feature-list table td button {
    position: absolute;
    width: 1.2em;
    height: 1.4em;
    top: 0;
    right: 0;
    margin: .1em 0;
    padding: 0;
    background-color: transparent;
    border: 0;
  }
  .ol-feature-list thead td button.sort:before {
    content: '⇅';
    font-style: normal;
    font-weight: normal;
    cursor: pointer;
    font-size: 1em;
    line-height: 1em;
  }
  .ol-feature-list thead td button.sortup:before {
    content: '↧';
  }
  .ol-feature-list thead td button.sortdown:before {
    content: '↥';
  }

.ol-popup {
    display: none;
    position: fixed;
    top: 65%!important;
    right: 22%!important;
    background-color: rgba(0,60,136,0.6);
    -moz-box-shadow: 0 1px 4px rgba(0,60,136,0.2);
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,60,136,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 10px;
    border-radius: 10px;
    border: 2.5px solid #ffffff;
    bottom: 1;
    left: 1;
    height: auto;
    text-align: right;
    width: 60%;
    max-height: 27vh;
    overflow: auto;
         
}
.ol-popup .ol-popupfeature .ol-zoombt {
  border: 0;
  width: 2em;
  height: 2em;
  display: inline-block;
  color: rgba(0,60,136,.5);
  position: relative;
  background: transparent;
  outline: none;
}
.ol-popup .ol-popupfeature .ol-zoombt:before {
  content: "";
  position: absolute;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 1em;
  height: 1em;
  background-color: transparent;
  border: .17em solid currentColor;
  border-radius: 100%;
  top: .3em;
  left: .3em;
}
.ol-popup .ol-popupfeature .ol-zoombt:after {
  content: "";
  position: absolute;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  top: 1.35em;
  left: 1.15em;
  border-width: .1em .3em;
  border-style: solid;
  border-radius: .03em;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  -webkit-box-shadow: -0.2em 0 0 -0.04em;
          box-shadow: -0.2em 0 0 -0.04em;
}

.ol-popup .ol-popupfeature .ol-count{
  float: right;
  margin: .25em 0;
}
.ol-popup .ol-popupfeature .ol-prev,
.ol-popup .ol-popupfeature .ol-next {
  border-style: solid;
  border-color: transparent rgba(0,60,136,.5);
  border-width: .5em 0 .5em .5em;
  display: inline-block;
  vertical-align: bottom;
  margin: 0 .5em;
  cursor: pointer;
}
.ol-popup .ol-popupfeature .ol-prev{
  border-width: .5em .5em .5em 0;
}

/* أسلوب الزر */
.search-button {
    background-color: #be2020;
    padding: 5px 10px;
    cursor: pointer;
}
.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
    background-color: rgb(70, 70, 141); /* لون الخلفية للزر */
    color: white; /* لون النص داخل الزر */
    padding: 4px 8px; /* تعديل الحواف للزر */
    border-radius: 3px;
    font-size: 8px; /* إضافة زوايا مستديرة للزر */
}

.ol-popup-closer:after {
    content: "X";
    font-weight: bold; /* جعل النص أكثر سمكاً */
}

.ol-attribution a {
    text-decoration: none;
    color: #fff;
    font-family: sans-serif;
    font-size: 100%;
}

.layer-switcher .panel {
    border: 4px solid rgba(0,60,136,.5) !important;
    border-radius: 4px !important;
}

.layer-switcher {
    top: 1.5em;
    right: 1.5em;
    text-align: left;
}

#popup-content>ul>li:nth-child(even) {
    background-color: rgba(0,60,136,0.6);
    
}

#popup-content ul {
    list-style-type: space-counter;
    padding-left: 0em;
    direction: rtl; /* تحديد اتجاه الكتابة إلى اليمين */
    text-align: right;
}

#popup-content li {
    margin-bottom:0.9em;
    padding: 0.5em; /* إضافة هامش داخلي للعناصر لتحقيق تأثير البوكس */
    border: 1px solid #ccc; /* إضافة حدود لتحديد الحواف */
    border-radius: 5px;
    
}

#popup-content li span:first-child {
  font-weight: bold; /* تحديد سمك الخط للحقل الأول داخل البند */
  color: #e74c3c; /* لون النص للحقل الأول داخل البند */
}