/* Custom Markers Styles */
.custom-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.custom-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* 1. Gruntowa (Land) - Green */
.marker-land {
  background-color: #4CAF50; /* Green */
  background: radial-gradient(circle at 30% 30%, #66bb6a, #2e7d32);
}

/* 2. Zabudowana (Built) - Red */
.marker-built {
  background-color: #F44336; /* Red */
  background: radial-gradient(circle at 30% 30%, #ef5350, #c62828);
}

/* 3. Lokalowa (Premise) - Blue */
.marker-premise {
  background-color: #2196F3; /* Blue */
  background: radial-gradient(circle at 30% 30%, #42a5f5, #1565c0);
}

/* Optional: Add an inner dot or icon if needed */
.custom-marker::after {
  content: '';
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}


/* Compact Professional Data Table (mojgeoportal style) */
.popup-table-container {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #333;
  min-width: 280px;
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
}

.popup-table th {
  background-color: #f5f7fa;
  color: #555;
  font-weight: 600;
  text-align: left;
  padding: 6px 10px;
  border-bottom: 2px solid #e0e0e0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.popup-table tr:last-child td {
  border-bottom: none;
}

.popup-table tr:hover {
  background-color: #f9fbfd;
}

.popup-table .label-cell {
  color: #666;
  width: 40%;
  font-weight: 500;
}

.popup-table .value-cell {
  color: #222;
  font-weight: 600;
  text-align: right;
}

/* Status badges in table */
.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.status-land { background-color: #4CAF50; }
.status-built { background-color: #F44336; }
.status-premise { background-color: #2196F3; }

/* Header for the popup */
.popup-header-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0058a4; /* MojGeoportal blue-ish */
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
