html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background-color: #ddd;
}

#map {
  width: 100%;
  height: 100%;
}

/* کانتینر کلی برای دو باکس */
#stats-container {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column; /* اگر بخواهی کنار هم باشند: row */
  gap: 0px;
  z-index: 500;
}

/* استایل مشترک برای هر باکس */
.info-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 0px 0px;
  border: 2px solid #000; /* قاب مشکی */
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* متن‌های کوچک‌تر برای شاخص‌های فرعی */
.info-box.small-text {
  font-size: 14px;
  color: #555;
  width: 50%;
  border: 2px solid #000; /* قاب مشکی */
  border-top-width: 0px;
}

/* باکس دوم عمودی */
.info-box.column {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px; /* فاصله عمودی کم */
}

/* خط افقی بین همپذیری و تعارض فقط در باکس دوم */
.info-box.column > div:first-child {
  border-bottom: 1px solid #999; /* خط نازک خاکستری */
  padding-bottom: 2px;           /* فاصله متن از خط */
  margin-bottom: 2px;            /* فاصله خط از آیتم بعدی */
}

.info-box strong {
  display: inline-block;
  min-width: 70px;
}

.info-box .value {
  font-weight: bold;
}

/* پاپ‌آپ مختصات */
.coord-popup {
  font-family: sans-serif;
  font-size: 14px;
  padding: 8px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: center;
  min-width: 140px;
}

.coord-popup strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.coord-popup button {
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 13px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.coord-popup button:hover {
  background: #005a9e;
}
